cocoapods-plugins 0.3.0 → 0.3.1

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: 175693b505a342790eaf3cbcfab9fe7d6c927632
4
- data.tar.gz: 1eb97667021a96671e34ee923e62240661435bfc
3
+ metadata.gz: 384e6fe9b86ffee0b8c43f281644ddc2a301c18d
4
+ data.tar.gz: 2fbb80f933f27c86da4fde25e4f2f2ba48dcc750
5
5
  SHA512:
6
- metadata.gz: 7efb87c03471c63a0b594674a09cba9e8fe1360e494cb3d2a6c3f23e485fde14d2f948f97b39a382fa399039ec7ea4eb2c0cd50b9a3faba4eae220ca53ad0f35
7
- data.tar.gz: b5bf88be513744b69e474ca6954d574074fb4e35adee075654eda5f5eda76e4e5d24243318495332b7a62b943a427d4db4fbe3248c6b24706c8667cb8a3e001c
6
+ metadata.gz: bcad7845fe4ea0f908517fb2033a469291d0dd5b2da24d610293b3454691180ed14527ed7fa246c915ed4fab06a68a9ec08329e60ebef5881eb42a8173b3f4ea
7
+ data.tar.gz: 1f8a2e105083f1da4a0ed8cfd9609823bd8881328dc5aca8cb6950583cbd1ea0e8a8b27c414555b32d8c17c820bde1702366fe6a4b3da238d51b6908088c4a48
@@ -1,5 +1,9 @@
1
1
  # Cocoapods::Plugins Changelog
2
2
 
3
+ ## 0.3.1
4
+
5
+ * Restore compatibility with Ruby 1.8.7.
6
+
3
7
  ## 0.3.0
4
8
 
5
9
  * Added a reminder to add plugin to `plugins.json` once released (fix #27)
@@ -1,13 +1,13 @@
1
1
  GIT
2
2
  remote: https://github.com/CocoaPods/CLAide.git
3
- revision: 31e74fae76461e9832e488f77a9e8116703c201b
3
+ revision: ce2a7890dbfcaecd38347195d5c753cdb893e636
4
4
  branch: master
5
5
  specs:
6
6
  claide (0.7.0)
7
7
 
8
8
  GIT
9
9
  remote: https://github.com/CocoaPods/CocoaPods.git
10
- revision: 576b10b9bf72c3aaded4e767bc0f8735a8e1fcca
10
+ revision: a71dcc4f6a1b30043db66134fa31cda56561e2f6
11
11
  branch: master
12
12
  specs:
13
13
  cocoapods (0.33.1)
@@ -27,7 +27,7 @@ GIT
27
27
 
28
28
  GIT
29
29
  remote: https://github.com/CocoaPods/Core.git
30
- revision: 2c5be5dbb1157c10e86ff75223a119b74d01ae7f
30
+ revision: 34e217967230dc9d1905e1a731458fc2f3f7c950
31
31
  branch: master
32
32
  specs:
33
33
  cocoapods-core (0.33.1)
@@ -39,7 +39,7 @@ GIT
39
39
  PATH
40
40
  remote: .
41
41
  specs:
42
- cocoapods-plugins (0.3.0)
42
+ cocoapods-plugins (0.3.1)
43
43
  nap
44
44
 
45
45
  GEM
@@ -2,5 +2,5 @@
2
2
  # The namespace of the Cocoapods plugins plugin.
3
3
  #
4
4
  module CocoapodsPlugins
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
@@ -40,14 +40,15 @@ module Pod
40
40
  def self.gem_installed?(gem_name, version_string = nil)
41
41
  version = Gem::Version.new(version_string) if version_string
42
42
 
43
- gems = Gem::Specification.find_all_by_name(gem_name)
44
- return !gems.empty? unless version
45
-
46
- gems.each do |gem|
47
- return true if gem.version == version
43
+ if Gem::Specification.respond_to?(:find_all_by_name)
44
+ gems = Gem::Specification.find_all_by_name(gem_name)
45
+ return !gems.empty? unless version
46
+ gems.each { |gem| return true if gem.version == version }
47
+ false
48
+ else
49
+ dep = Gem::Dependency.new(gem_name, version_string)
50
+ !Gem.source_index.search(dep).empty?
48
51
  end
49
-
50
- false
51
52
  end
52
53
 
53
54
  # Get the version of a gem that is installed locally. If more than
@@ -58,7 +59,12 @@ module Pod
58
59
  # or nil if it is not installed.
59
60
  #
60
61
  def self.installed_version(gem_name)
61
- gem = Gem::Specification.find_all_by_name(gem_name).first
62
+ if Gem::Specification.respond_to?(:find_all_by_name)
63
+ gem = Gem::Specification.find_all_by_name(gem_name).first
64
+ else
65
+ dep = Gem::Dependency.new(gem_name)
66
+ gem = Gem.source_index.search(dep).first
67
+ end
62
68
  gem ? gem.version.to_s : nil
63
69
  end
64
70
 
@@ -24,7 +24,7 @@ module Pod
24
24
  end
25
25
 
26
26
  it 'notifies the user when getting the spec index fails' do
27
- error = Gem::RemoteFetcher::UnknownHostError.new('no host', 'bad url')
27
+ error = Gem::RemoteFetcher::FetchError.new('no host', 'bad url')
28
28
  wrapper_error = stub(:error => error)
29
29
  response = [[], [wrapper_error]]
30
30
  Gem::SpecFetcher.any_instance.stubs(:available_specs).returns(response)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Grandinetti
@@ -9,48 +9,48 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-11 00:00:00.000000000 Z
12
+ date: 2014-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nap
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
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: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1.3'
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: '1.3'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  description: |2
@@ -63,10 +63,10 @@ executables: []
63
63
  extensions: []
64
64
  extra_rdoc_files: []
65
65
  files:
66
- - .gitignore
67
- - .rubocop.yml
68
- - .rubocop_cocoapods.yml
69
- - .travis.yml
66
+ - ".gitignore"
67
+ - ".rubocop.yml"
68
+ - ".rubocop_cocoapods.yml"
69
+ - ".travis.yml"
70
70
  - CHANGELOG.md
71
71
  - Gemfile
72
72
  - Gemfile.lock
@@ -102,17 +102,17 @@ require_paths:
102
102
  - lib
103
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.0.14
115
+ rubygems_version: 2.2.2
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: CocoaPods plugin which shows info about available CocoaPods plugins.