From 8fefbc31203c2b751a18b8dcbe76ed7055f6987c Mon Sep 17 00:00:00 2001 From: William Entriken Date: Sat, 17 Sep 2016 19:04:04 -0400 Subject: [PATCH] add package.swift --- .travis.yml | 2 +- CHANGELOG.md | 3 +++ Package.swift | 5 +++++ Tests/CheckCocoaPodsQualityIndexes.rb | 21 +++++++++++++++------ 4 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 Package.swift diff --git a/.travis.yml b/.travis.yml index 6de19c7..bdcb922 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,4 +31,4 @@ script: pod lib lint; fi - - ruby Tests/CheckCocoaPodsQualityIndexes.rb + - ruby Tests/CheckCocoaPodsQualityIndexes.rb FDTake diff --git a/CHANGELOG.md b/CHANGELOG.md index 80044b4..4596a21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ All notable changes to this project will be documented in this file. ## [Master](https://github.com/fulldecent/FDBarGuage/compare/0.4.1...master) +#### KNOWN ISSUES +- Localization is broken, discuss at https://github.com/fulldecent/FDTake/pull/99 + --- ## [0.4.1](https://github.com/fulldecent/FDBarGuage/releases/tag/0.4.1) diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..ca460d4 --- /dev/null +++ b/Package.swift @@ -0,0 +1,5 @@ +import PackageDescription + +let package = Package( + name: "FDTake" +) \ No newline at end of file diff --git a/Tests/CheckCocoaPodsQualityIndexes.rb b/Tests/CheckCocoaPodsQualityIndexes.rb index 2c0f1ce..a00f259 100644 --- a/Tests/CheckCocoaPodsQualityIndexes.rb +++ b/Tests/CheckCocoaPodsQualityIndexes.rb @@ -1,20 +1,29 @@ #!/bin/ruby -# FROM https://github.com/fulldecent/swift3-module-template/issues/7 - - +# +# CheckCocoaPodsQualityIndexes.rb +# by William Entriken, version 1.0.1 +# Part of https://github.com/fulldecent/swift3-module-template # # The validates that all controllable quality metrics receive maximum score +# from CocoaPods's scoring quality algorithm # -# Metrics are at: https://guides.cocoapods.org/making/quality-indexes.html -# Your modifiers are at: https://cocoadocs-api-cocoapods-org.herokuapp.com/pods/FDTake/stats -# Your raw data is at: http://metrics.cocoapods.org/api/v1/pods/FDTake +# Usage: ruby CheckCocoaPodsQualityIndexes.rb PODNAME # require "json" require "uri" require "net/http" +pod_name = ARGV.shift + +puts "Reviewing CocoaPods's quality metrics for #{pod_name}" +puts "Metrics documentation: https://guides.cocoapods.org/making/quality-indexes.html" +puts "Modifiers from: https://cocoadocs-api-cocoapods-org.herokuapp.com/pods/#{pod_name}/stats" +puts "Raw data from: http://metrics.cocoapods.org/api/v1/pods/#{pod_name}" +puts "NOTE: You must pust a new version to CocoaPods to get new metrics!" +puts "" + uri = URI.parse('https://cocoadocs-api-cocoapods-org.herokuapp.com/pods/FDTake/stats') http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true if uri.scheme == 'https'