cocoapods-stats 1.0.0.beta.3 → 1.0.0.beta.4

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: e9ddf8b9591fb258c991c29b51905f3c2464c914
4
- data.tar.gz: 0a4a17dc4b4b90b1e0182706ae70c8157ab1dc19
3
+ metadata.gz: a332e6d2868165fa3fed69f47dc903c1734b1eeb
4
+ data.tar.gz: 8fd27836993117f7ae3f356608f54595117230ba
5
5
  SHA512:
6
- metadata.gz: 09ae1d7747773271cc65ac1a11235869c7a7dd522796c5bac9d653f3aa4062e9d870e36ce73a05906cbe724bc12a76044e80652c5e0953751d77b53d05b53528
7
- data.tar.gz: 060d875ebb6a0a8e8803c541f70fbf217f3d593501ca3abb3f9bf7d337fde76645fbcaf793af7199f2d130dbe863194aebbc50ae1b4bcdcc4bb57533466d6e05
6
+ metadata.gz: 386a31e3a9f268af1b522674aea8cf80d3846704a225d49d5d5905d9347943e1bb03e0b4423c352d4c6962c9155849cf5db5e46014a139f6159f737149950433
7
+ data.tar.gz: 2297c83d500069aa2d848ddabfc1732113741d5923ed4aa694e52d1b0175bbdb923fa86847c1e586149ea470d83b58a9285b4047be957404278ee692269a331a
@@ -5,6 +5,7 @@ AllCops:
5
5
  - ./*.gemspec
6
6
  Exclude:
7
7
  - ./spec/fixtures/**/*
8
+ - ./vendor/bundle/**/*
8
9
 
9
10
  # At the moment not ready to be used
10
11
  # https://github.com/bbatsov/rubocop/issues/947
@@ -39,7 +40,10 @@ Encoding:
39
40
 
40
41
  # Having these make it easier to *not* forget to add one when adding a new
41
42
  # value and you can simply copy the previous line.
42
- TrailingComma:
43
+ Style/TrailingCommaInArguments:
44
+ EnforcedStyleForMultiline: comma
45
+
46
+ Style/TrailingCommaInLiteral:
43
47
  EnforcedStyleForMultiline: comma
44
48
 
45
49
  Style/MultilineOperationIndentation:
@@ -53,11 +57,21 @@ GuardClause:
53
57
  Next:
54
58
  Enabled: false
55
59
 
60
+ # Autocorrect makes this cop much more useful, taking away needless guessing
61
+ Lint/EndAlignment:
62
+ AutoCorrect: true
63
+
64
+
56
65
  # Arbitrary max lengths for classes simply do not work and enabling this will
57
66
  # lead to a never ending stream of annoyance and changes.
58
67
  Metrics/ClassLength:
59
68
  Enabled: false
60
69
 
70
+ # Arbitrary max lengths for modules simply do not work and enabling this will
71
+ # lead to a never ending stream of annoyance and changes.
72
+ Metrics/ModuleLength:
73
+ Enabled: false
74
+
61
75
  # Arbitrary max lengths for methods simply do not work and enabling this will
62
76
  # lead to a never ending stream of annoyance and changes.
63
77
  Metrics/MethodLength:
@@ -77,6 +91,11 @@ Metrics/AbcSize:
77
91
  Metrics/CyclomaticComplexity:
78
92
  Enabled: false
79
93
 
94
+ # It will be obvious which code is complex, Rubocop should only lint simple
95
+ # rules for us.
96
+ Metrics/PerceivedComplexity:
97
+ Enabled: false
98
+
80
99
  #- CocoaPods support for Ruby 1.8.7 ------------------------------------------#
81
100
 
82
101
  HashSyntax:
@@ -101,6 +120,10 @@ AmbiguousRegexpLiteral:
101
120
  Exclude:
102
121
  - spec/**/*
103
122
 
123
+ Performance/RedundantMatch:
124
+ Exclude:
125
+ - spec/**/*
126
+
104
127
  # Allow `object.should == object` syntax.
105
128
  Void:
106
129
  Exclude:
@@ -113,4 +136,3 @@ ClassAndModuleChildren:
113
136
  UselessComparison:
114
137
  Exclude:
115
138
  - spec/**/*
116
-
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CocoaPods Stats CHANGELOG
2
2
 
3
+ ## 1.0.0.beta.4 (2016-04-14)
4
+
5
+ ##### Bug Fixes
6
+
7
+ * Compatibility with CocoaPods 1.0.0.beta.7.
8
+ [Samuel Giddins](https://github.com/segiddins)
9
+
10
+
3
11
  ## 1.0.0.beta.3 (2016-01-16)
4
12
 
5
13
  ##### Bug Fixes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-stats (1.0.0.beta.3)
4
+ cocoapods-stats (1.0.0.beta.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,9 +12,7 @@ GEM
12
12
  minitest (~> 5.1)
13
13
  thread_safe (~> 0.3, >= 0.3.4)
14
14
  tzinfo (~> 1.1)
15
- ast (2.0.0)
16
- astrolabe (1.3.0)
17
- parser (>= 2.2.0.pre.3, < 3.0)
15
+ ast (2.2.0)
18
16
  bacon (1.2.0)
19
17
  claide (1.0.0.beta.1)
20
18
  cocoapods (1.0.0.beta.2)
@@ -62,23 +60,24 @@ GEM
62
60
  molinillo (0.4.1)
63
61
  nap (1.0.0)
64
62
  netrc (0.7.8)
65
- parser (2.2.2.2)
66
- ast (>= 1.1, < 3.0)
63
+ parser (2.3.0.7)
64
+ ast (~> 2.2)
67
65
  powerpack (0.1.1)
68
66
  prettybacon (0.0.2)
69
67
  bacon (~> 1.2)
70
- rainbow (2.0.0)
68
+ rainbow (2.1.0)
71
69
  rake (10.4.2)
72
- rubocop (0.31.0)
73
- astrolabe (~> 1.3)
74
- parser (>= 2.2.2.1, < 3.0)
70
+ rubocop (0.39.0)
71
+ parser (>= 2.3.0.7, < 3.0)
75
72
  powerpack (~> 0.1)
76
73
  rainbow (>= 1.99.1, < 3.0)
77
- ruby-progressbar (~> 1.4)
74
+ ruby-progressbar (~> 1.7)
75
+ unicode-display_width (~> 1.0, >= 1.0.1)
78
76
  ruby-progressbar (1.7.5)
79
77
  thread_safe (0.3.5)
80
78
  tzinfo (1.2.2)
81
79
  thread_safe (~> 0.1)
80
+ unicode-display_width (1.0.3)
82
81
  xcodeproj (1.0.0.beta.2)
83
82
  activesupport (>= 3)
84
83
  claide (>= 1.0.0.beta.1, < 2.0)
@@ -20,7 +20,12 @@ module CocoaPodsStats
20
20
  validator = OptOutValidator.new
21
21
  next unless validator.validates?
22
22
 
23
- master_source = Pod::SourcesManager.master.first
23
+ sources_manager = if defined?(Pod::SourcesManager)
24
+ Pod::SourcesManager
25
+ else
26
+ Pod::Config.instance.sources_manager
27
+ end
28
+ master_source = sources_manager.master.first
24
29
  validator = SpecsRepoValidator.new
25
30
  next unless validator.validates?(master_source)
26
31
 
@@ -1,3 +1,3 @@
1
1
  module CocoapodsStats
2
- VERSION = '1.0.0.beta.3'.freeze
2
+ VERSION = '1.0.0.beta.4'.freeze
3
3
  end
@@ -2,7 +2,7 @@ require 'rest'
2
2
 
3
3
  module CocoaPodsStats
4
4
  class Sender
5
- API_URL = 'https://stats.cocoapods.org/api/v1/install'
5
+ API_URL = 'https://stats.cocoapods.org/api/v1/install'.freeze
6
6
 
7
7
  def send(targets, pod_try: false)
8
8
  body = {
@@ -13,8 +13,8 @@ module CocoaPodsStats
13
13
  # can check if the pod exists in the master specs repo though
14
14
 
15
15
  pods = root_specs.
16
- select { |spec| master_pods.include?(spec.name) }.
17
- map { |spec| { :name => spec.name, :version => spec.version.to_s } }
16
+ select { |spec| master_pods.include?(spec.name) }.
17
+ map { |spec| { :name => spec.name, :version => spec.version.to_s } }
18
18
 
19
19
  # This will be an empty array for `integrate_targets: false` Podfiles
20
20
  user_targets(target).map do |user_target|
@@ -26,7 +26,7 @@ describe CocoaPodsStats::TargetMapper do
26
26
  end
27
27
 
28
28
  it 'returns expected data' do
29
- master_pods = Set.new(['ORStackView'])
29
+ master_pods = Set.new(['ORStackView'])
30
30
 
31
31
  mapper = CocoaPodsStats::TargetMapper.new
32
32
  pods = mapper.pods_from_project(@context, master_pods)
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: 1.0.0.beta.3
4
+ version: 1.0.0.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
@@ -9,34 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-16 00:00:00.000000000 Z
12
+ date: 2016-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
20
  version: '1.3'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.3'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ~>
33
33
  - !ruby/object:Gem::Version
34
34
  version: '10.0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ~>
40
40
  - !ruby/object:Gem::Version
41
41
  version: '10.0'
42
42
  description: Uploads statistics for Pod Analytics.
@@ -47,10 +47,10 @@ executables: []
47
47
  extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
- - ".gitignore"
51
- - ".rubocop.yml"
52
- - ".rubocop_cocoapods.yml"
53
- - ".travis.yml"
50
+ - .gitignore
51
+ - .rubocop.yml
52
+ - .rubocop_cocoapods.yml
53
+ - .travis.yml
54
54
  - CHANGELOG.md
55
55
  - Gemfile
56
56
  - Gemfile.lock
@@ -78,17 +78,17 @@ require_paths:
78
78
  - lib
79
79
  required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">"
86
+ - - '>'
87
87
  - !ruby/object:Gem::Version
88
88
  version: 1.3.1
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.5.1
91
+ rubygems_version: 2.6.3
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Uploads installation version data to stats.cocoapods.org to provide per-Pod