cocoapods-try 1.0.0.beta.2 → 1.0.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6a9d000e63b28ada739bd6f1c754fe3081b9b61
4
- data.tar.gz: 8600ca9993e3dfaa786e90e6dbca0f12dd17c374
3
+ metadata.gz: 78a248a639b7b48f098819b914ad01cb33360997
4
+ data.tar.gz: e8007b1824a14a9688d90eac64426479b8440a9d
5
5
  SHA512:
6
- metadata.gz: 67d4ae8e4e58f16f344797d2876d877393ba8896318151db0ab95117660dd203995a872ed58fbb2defdc3ba0cb60e9b18a3580496587cb56e70aab9be39a588d
7
- data.tar.gz: 9f47683e5793351fb65c778ab0c1cab4365862115fdf45a776fcc7dc602c60eb88c09915ef7446aa7265225a920d09450c448d14bb5a3db7f592705073339990
6
+ metadata.gz: 8fcc0e18b33c1b58c61d67fafab2957a6c3e690d4465bfa307f376429edd2a7d140969740c051c5bfea6bcb2eec7538da6ded39dfafb8b3de8928f1a3148f434
7
+ data.tar.gz: 04458c21d978a9812b97de735dcfc7fad349d65a7805f8f76e253ea52424d6bfc0559646bf649e947df6ab3a1f9d5417abda28f9ce1ac66481107181499d34db
@@ -1,5 +1,13 @@
1
1
  # Cocoapods::Try Changelog
2
2
 
3
+ ## 1.0.0.beta.3 (2016-03-15)
4
+
5
+ ##### Bug Fixes
6
+
7
+ * Compatibility with CocoaPods 1.0.0.beta.6.
8
+ [Marius Rackwitz](https://github.com/mrackwitz)
9
+
10
+
3
11
  ## 1.0.0.beta.2 (2016-01-05)
4
12
 
5
13
  ##### Bug Fixes
@@ -1,39 +1,39 @@
1
1
  GIT
2
2
  remote: https://github.com/CocoaPods/CLAide.git
3
- revision: d5a7ef8f3e730f195ecb3dfd2ec5891d1c6988d7
3
+ revision: 90b7d532037960a2a7befcafe7a7147fcf86982c
4
4
  branch: master
5
5
  specs:
6
- claide (1.0.0.beta.1)
6
+ claide (1.0.0.beta.2)
7
7
 
8
8
  GIT
9
9
  remote: https://github.com/CocoaPods/CocoaPods.git
10
- revision: 1fd0fe8d218c6983fd982f4ef7efe38ac540768e
10
+ revision: 1f06a58c62661831f246f2e7349be48575b6192e
11
11
  branch: master
12
12
  specs:
13
- cocoapods (1.0.0.beta.1)
13
+ cocoapods (1.0.0.beta.5)
14
14
  activesupport (>= 4.0.2)
15
- claide (>= 1.0.0.beta.1, < 2.0)
16
- cocoapods-core (= 1.0.0.beta.1)
15
+ claide (>= 1.0.0.beta.2, < 2.0)
16
+ cocoapods-core (= 1.0.0.beta.5)
17
17
  cocoapods-deintegrate (>= 1.0.0.beta.1, < 2.0)
18
18
  cocoapods-downloader (>= 1.0.0.beta.1, < 2.0)
19
19
  cocoapods-plugins (>= 1.0.0.beta.1, < 2.0)
20
20
  cocoapods-search (>= 1.0.0.beta.1, < 2.0)
21
- cocoapods-stats (>= 1.0.0.beta.1, < 2.0)
22
- cocoapods-trunk (>= 1.0.0.beta.1, < 2.0)
23
- cocoapods-try (>= 1.0.0.beta.1, < 2.0)
21
+ cocoapods-stats (>= 1.0.0.beta.3, < 2.0)
22
+ cocoapods-trunk (>= 1.0.0.beta.2, < 2.0)
23
+ cocoapods-try (>= 1.0.0.beta.2, < 2.0)
24
24
  colored (~> 1.2)
25
25
  escape (~> 0.0.4)
26
26
  fourflusher (~> 0.3.0)
27
- molinillo (~> 0.4.1)
27
+ molinillo (~> 0.4.4)
28
28
  nap (~> 1.0)
29
- xcodeproj (>= 1.0.0.beta.1, < 2.0)
29
+ xcodeproj (>= 1.0.0.beta.3, < 2.0)
30
30
 
31
31
  GIT
32
32
  remote: https://github.com/CocoaPods/Core.git
33
- revision: f1b6ae5c1c0f45405e71d508c441398e6fa5191f
33
+ revision: 66c7b3b40fde614bb3eb6e287c25da4dfc6529c1
34
34
  branch: master
35
35
  specs:
36
- cocoapods-core (1.0.0.beta.1)
36
+ cocoapods-core (1.0.0.beta.5)
37
37
  activesupport (>= 4.0.2)
38
38
  fuzzy_match (~> 2.0.4)
39
39
  nap (~> 1.0)
@@ -41,12 +41,12 @@ GIT
41
41
  PATH
42
42
  remote: .
43
43
  specs:
44
- cocoapods-try (1.0.0.beta.2)
44
+ cocoapods-try (1.0.0.beta.3)
45
45
 
46
46
  GEM
47
47
  remote: https://rubygems.org/
48
48
  specs:
49
- activesupport (4.2.5)
49
+ activesupport (4.2.6)
50
50
  i18n (~> 0.7)
51
51
  json (~> 1.7, >= 1.7.7)
52
52
  minitest (~> 5.1)
@@ -61,8 +61,8 @@ GEM
61
61
  cocoapods-plugins (1.0.0.beta.1)
62
62
  nap
63
63
  cocoapods-search (1.0.0.beta.1)
64
- cocoapods-stats (1.0.0.beta.1)
65
- cocoapods-trunk (1.0.0.beta.1)
64
+ cocoapods-stats (1.0.0.beta.3)
65
+ cocoapods-trunk (1.0.0.beta.2)
66
66
  nap (>= 0.8, < 2.0)
67
67
  netrc (= 0.7.8)
68
68
  codeclimate-test-reporter (0.4.7)
@@ -75,13 +75,13 @@ GEM
75
75
  i18n (0.7.0)
76
76
  json (1.8.3)
77
77
  metaclass (0.0.4)
78
- minitest (5.8.3)
78
+ minitest (5.8.4)
79
79
  mocha (1.1.0)
80
80
  metaclass (~> 0.0.1)
81
81
  mocha-on-bacon (0.2.2)
82
82
  mocha (>= 0.13.0)
83
- molinillo (0.4.1)
84
- nap (1.0.0)
83
+ molinillo (0.4.4)
84
+ nap (1.1.0)
85
85
  netrc (0.7.8)
86
86
  parser (2.2.2.6)
87
87
  ast (>= 1.1, < 3.0)
@@ -105,7 +105,7 @@ GEM
105
105
  thread_safe (0.3.5)
106
106
  tzinfo (1.2.2)
107
107
  thread_safe (~> 0.1)
108
- xcodeproj (1.0.0.beta.2)
108
+ xcodeproj (1.0.0.beta.3)
109
109
  activesupport (>= 3)
110
110
  claide (>= 1.0.0.beta.1, < 2.0)
111
111
  colored (~> 1.2)
@@ -1,5 +1,5 @@
1
1
  # The namespace of the Cocoapods try plugin.
2
2
  #
3
3
  module CocoapodsTry
4
- VERSION = '1.0.0.beta.2'.freeze
4
+ VERSION = '1.0.0.beta.3'.freeze
5
5
  end
@@ -7,6 +7,8 @@ module Pod
7
7
  # The pod try command.
8
8
  #
9
9
  class Try < Command
10
+ include RepoUpdate
11
+
10
12
  self.summary = 'Try a Pod!'
11
13
 
12
14
  self.description = <<-DESC
@@ -17,14 +19,7 @@ module Pod
17
19
 
18
20
  self.arguments = [CLAide::Argument.new(%w(NAME URL), true)]
19
21
 
20
- def self.options
21
- [
22
- ['--no-repo-update', 'Skip running `pod repo update` before install'],
23
- ].concat(super)
24
- end
25
-
26
22
  def initialize(argv)
27
- config.skip_repo_update = !argv.flag?('repo-update', !config.skip_repo_update)
28
23
  @name = argv.shift_argument
29
24
  super
30
25
  end
@@ -201,7 +196,7 @@ module Pod
201
196
  # @return [void] Updates the specs repo unless disabled by the config.
202
197
  #
203
198
  def update_specs_repos
204
- return if config.skip_repo_update?
199
+ return unless repo_update?(:default => true)
205
200
  UI.section 'Updating spec repositories' do
206
201
  SourcesManager.update
207
202
  end
@@ -33,14 +33,12 @@ module Pod
33
33
  end
34
34
 
35
35
  it 'allows the user to try the Pod with the given name' do
36
- Config.instance.with_changes(:skip_repo_update => false) do
37
- command = Pod::Command.parse(%w(try ARAnalytics))
38
- Installer::PodSourceInstaller.any_instance.expects(:install!)
39
- command.expects(:update_specs_repos)
40
- command.expects(:pick_demo_project).returns(XCODE_PROJECT)
41
- command.expects(:open_project).with(XCODE_PROJECT)
42
- command.run
43
- end
36
+ command = Pod::Command.parse(%w(try ARAnalytics))
37
+ Installer::PodSourceInstaller.any_instance.expects(:install!)
38
+ command.expects(:update_specs_repos)
39
+ command.expects(:pick_demo_project).returns(XCODE_PROJECT)
40
+ command.expects(:open_project).with(XCODE_PROJECT)
41
+ command.run
44
42
  end
45
43
 
46
44
  it 'allows the user to try the Pod with the given Git URL' do
@@ -51,7 +49,6 @@ module Pod
51
49
  stub_spec = stub(:name => 'ARAnalytics')
52
50
  Pod::Specification.stubs(:from_file).with(spec_file).returns(stub_spec)
53
51
 
54
- Config.instance.skip_repo_update = false
55
52
  command = Pod::Command.parse(['try', 'https://github.com/orta/ARAnalytics.git'])
56
53
  Installer::PodSourceInstaller.any_instance.expects(:install!)
57
54
  command.expects(:update_specs_repos).never
@@ -59,6 +56,26 @@ module Pod
59
56
  command.expects(:open_project).with(XCODE_PROJECT)
60
57
  command.run
61
58
  end
59
+
60
+ describe 'updates of the spec repos' do
61
+ it 'updates the spec repos by default' do
62
+ command = Pod::Command.parse(%w(try ARAnalytics))
63
+ Installer::PodSourceInstaller.any_instance.expects(:install!)
64
+ SourcesManager.expects(:update)
65
+ command.expects(:pick_demo_project).returns(XCODE_PROJECT)
66
+ command.expects(:open_project).with(XCODE_PROJECT)
67
+ command.run
68
+ end
69
+
70
+ it "doesn't update the spec repos if that option was given" do
71
+ command = Pod::Command.parse(%w(try ARAnalytics --no-repo-update))
72
+ Installer::PodSourceInstaller.any_instance.expects(:install!)
73
+ SourcesManager.expects(:update).never
74
+ command.expects(:pick_demo_project).returns(XCODE_PROJECT)
75
+ command.expects(:open_project).with(XCODE_PROJECT)
76
+ command.run
77
+ end
78
+ end
62
79
  end
63
80
 
64
81
  describe 'Helpers' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-try
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.2
4
+ version: 1.0.0.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Pelosin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-05 00:00:00.000000000 Z
11
+ date: 2016-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: 1.3.1
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.5.1
86
+ rubygems_version: 2.6.2
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: CocoaPods plugin which allows to quickly try the demo project of a Pod.