Skip to content

Commit

Permalink
add package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent committed Sep 17, 2016
1 parent c88031c commit 8fefbc3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ script:
pod lib lint;
fi

- ruby Tests/CheckCocoaPodsQualityIndexes.rb
- ruby Tests/CheckCocoaPodsQualityIndexes.rb FDTake
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import PackageDescription

let package = Package(
name: "FDTake"
)
21 changes: 15 additions & 6 deletions Tests/CheckCocoaPodsQualityIndexes.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 8fefbc3

Please sign in to comment.