cocoapods-stats 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adbf3b0d3602b48902a13ae228deca79fce80522
4
- data.tar.gz: 7214a51419b67d2b2e03054183566e6960191b24
3
+ metadata.gz: f75c7e4e3bf27438ee7ad359284e66133b60c372
4
+ data.tar.gz: 8acd9235c26db9e72dc49ee39a5a971e956367db
5
5
  SHA512:
6
- metadata.gz: 0b181b7bc127816069a451851f9f7c0ce23eda99f5d992431c34859d9924b6d064a842f9682be4022329571e3a565e18c9a8b7b7f21f8ffa2b25fe655e727bae
7
- data.tar.gz: aec5cb787c1ed1ac8f378eb14e198284ea9492c3c914935672d2304c4d8cd2477235de004a2959b60cc54ba4ea54c108de892c1c9c010e4a8cd18aecdb31639a
6
+ metadata.gz: 690f2b6f1d3fa1ae86852b56e1d952884557bce09f0f82166424e859998934fe51171f41bdbfa233abc56eed7c70ff768a27d80e19c7fc457ef766f25721c317
7
+ data.tar.gz: 4c08b27857af737b2ed615e9f1d68989778c6efff8253a12f984f7ce8675e131b439129d87cef9ded56c01dd57525257fe9cd06bb5c4492d2ceda48a6daee48b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CocoaPods Stats CHANGELOG
2
2
 
3
+ ## 0.6.2 (2015-10-05)
4
+
5
+ ##### Bug Fixes
6
+
7
+ * Don't crash when a source has no URL.
8
+ [Samuel Giddins](https://github.com/segiddins)
9
+ [CocoaPods#4093](https://github.com/CocoaPods/CocoaPods/issues/4093)
10
+ [CocoaPods#4311](https://github.com/CocoaPods/CocoaPods/issues/4311)
11
+
12
+
3
13
  ## 0.6.1 (2015-08-28)
4
14
 
5
15
  ##### Bug Fixes
data/Gemfile CHANGED
@@ -7,6 +7,7 @@ group :development do
7
7
  gem 'cocoapods'
8
8
 
9
9
  gem 'bacon'
10
+ gem 'prettybacon'
10
11
  gem 'mocha-on-bacon'
11
12
 
12
13
  gem 'rubocop'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-stats (0.6.1)
4
+ cocoapods-stats (0.6.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -58,6 +58,8 @@ GEM
58
58
  parser (2.2.2.2)
59
59
  ast (>= 1.1, < 3.0)
60
60
  powerpack (0.1.1)
61
+ prettybacon (0.0.2)
62
+ bacon (~> 1.2)
61
63
  rainbow (2.0.0)
62
64
  rake (10.4.2)
63
65
  rubocop (0.31.0)
@@ -83,6 +85,7 @@ DEPENDENCIES
83
85
  cocoapods
84
86
  cocoapods-stats!
85
87
  mocha-on-bacon
88
+ prettybacon
86
89
  rake (~> 10.0)
87
90
  rubocop
88
91
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # cocoapods-stats
2
2
 
3
- A description of cocoapods-stats.
3
+ Collects and sends simple analytics data to the [stats.cocoapods.org](https://stats.cocoapods.org) back-end.
4
4
 
5
5
  ## Installation
6
6
 
@@ -1,7 +1,7 @@
1
1
  module CocoaPodsStats
2
2
  class SpecsRepoValidator
3
3
  def validates?(source)
4
- source && source.url.end_with?('CocoaPods/Specs.git')
4
+ source && source.url && source.url.end_with?('CocoaPods/Specs.git')
5
5
  end
6
6
  end
7
7
 
@@ -1,3 +1,3 @@
1
1
  module CocoapodsStats
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -5,6 +5,7 @@ $LOAD_PATH.unshift((ROOT + 'spec').to_s)
5
5
 
6
6
  require 'bundler/setup'
7
7
  require 'bacon'
8
+ require 'pretty_bacon'
8
9
  require 'mocha-on-bacon'
9
10
  require 'cocoapods'
10
11
 
@@ -7,6 +7,13 @@ describe CocoaPodsStats::SpecsRepoValidator do
7
7
  subject.should.not.validates?(nil)
8
8
  end
9
9
 
10
+ it 'returns no when given a source with no url' do
11
+ source = mock(:url => nil)
12
+
13
+ subject = CocoaPodsStats::SpecsRepoValidator.new
14
+ subject.should.not.validates?(source)
15
+ end
16
+
10
17
  it 'returns no when given a master repo that is not cocoapods/specs' do
11
18
  sources = mock
12
19
  sources.stubs(:url).returns('CocoaPods/NotSpecs.git')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-28 00:00:00.000000000 Z
12
+ date: 2015-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.4.8
91
+ rubygems_version: 2.0.14.1
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Uploads installation version data to stats.cocoapods.org to provide per-Pod