cocoapods-try 0.3.0 → 0.4.0

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: 96c77d593882a43d42a31cbeb6cb8db6ea234cd7
4
- data.tar.gz: 18062853945e64715d58e9b1e1facf3b3128f678
3
+ metadata.gz: 72558761bfd19ca05dd50b4b240b6bc941c21e02
4
+ data.tar.gz: 69fa6ff987af60ca26a5b40b0f7bfc27213e811f
5
5
  SHA512:
6
- metadata.gz: 57ef162b36fdd68ee2d7ccfe8465a6814ba3de6a265c51a9b625c624bd0658b40b523648629c5d6464938c4310fd60d89cc663c82b9ee379b0bea479379b6b44
7
- data.tar.gz: 2cdc4f983a001547e7b22dafd072a24a830c588717b0f1e9c3bfbd6d6209a734a7cb334e3bbe77699181a7200510a35a8c87ad0eae70642f95c1a0fc37a5dd79
6
+ metadata.gz: 9f9d663777117443d331935098027cde324cdf0cf9c55d0cb0905ff94bcae3b9173d412e8608c6fb1f5a4af935d9408ef97791cc3b4917f0ff98436c59996339
7
+ data.tar.gz: 49a0757a1f80eb1eaf93ace8a7cc8a1d92595096697dd69841267c0019fa920e7c61fe96d56250bcd6e39ff058fec649b3fe3d13a805af750d71c97860a90d3c
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .idea
@@ -42,6 +42,14 @@ Encoding:
42
42
  TrailingComma:
43
43
  EnforcedStyleForMultiline: comma
44
44
 
45
+ # Clashes with CLAide Command#validate!
46
+ GuardClause:
47
+ Enabled: false
48
+
49
+ # Not always desirable: lib/claide/command/plugins_helper.rb:12:15
50
+ Next:
51
+ Enabled: false
52
+
45
53
  #- CocoaPods support for Ruby 1.8.7 ------------------------------------------#
46
54
 
47
55
  HashSyntax:
@@ -53,6 +61,9 @@ Lambda:
53
61
  DotPosition:
54
62
  EnforcedStyle: trailing
55
63
 
64
+ EachWithObject:
65
+ Enabled: false
66
+
56
67
  #- CocoaPods specs -----------------------------------------------------------#
57
68
 
58
69
  # Allow for `should.match /regexp/`.
data/.travis.yml CHANGED
@@ -1,35 +1,25 @@
1
-
2
- # Sets Travis to run the Ruby specs on OS X machines which are required to
3
- # build the native extensions of Xcodeproj.
1
+ # Sets Travis to run the Ruby specs on OS X machines to be as close as possible
2
+ # to the user environment.
4
3
  #
5
4
  language: objective-c
6
-
7
- env:
8
- - RVM_RUBY_VERSION=system
9
- - RVM_RUBY_VERSION=1.8.7-p358
10
-
11
5
  addons:
12
6
  code_climate:
13
7
  repo_token: e8abdb417b7d86d7427d8861e85209c7b194820bb372a1c05f0529835eac9c7c
14
8
 
9
+ env:
10
+ - RVM_RUBY_VERSION=system
11
+ # - RVM_RUBY_VERSION=1.8.7-p358
12
+
15
13
  before_install:
16
14
  - export LANG=en_US.UTF-8
17
15
  - curl http://curl.haxx.se/ca/cacert.pem -o /usr/local/share/cacert.pem
18
16
  - source ~/.rvm/scripts/rvm
19
17
  - if [[ $RVM_RUBY_VERSION != 'system' ]]; then rvm install $RVM_RUBY_VERSION; fi
20
18
  - rvm use $RVM_RUBY_VERSION
21
- - if [[ $RVM_RUBY_VERSION == 'system' ]]; then export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future; fi
22
19
  - if [[ $RVM_RUBY_VERSION == 'system' ]]; then sudo gem install bundler --no-ri --no-rdoc; else gem install bundler --no-ri --no-rdoc; fi
23
20
 
21
+
24
22
  install:
25
- - bundle install --without=debugging documentation --path ./travis_bundle_dir
23
+ - sudo bundle install --without=documentation
26
24
 
27
25
  script: bundle exec rake spec
28
-
29
- notifications:
30
- campfire:
31
- on_success: change
32
- on_failure: always
33
- rooms:
34
- - secure: "qOE5zmgaHe/qQu3W9rmj7wygA5Ivl+cx50fqWGag2bdRl8ly5yj1NVoOKk/O\nZmQc4Lze+301uvTXi+r5v8A/tF6W1kUZw7yBiKuXoYFUGmDiVR9o2I/FPwkL\ngSzPJttrXTQfkQ4PbnrkX+JO+5bLWrKaO0hKXT4B2yUu4UXLVk0="
35
-
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Cocoapods::Try Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Enhancements
6
+
7
+ * Adopted new argument format of CLAide.
8
+ [Olivier Halligon](https://github.com/AliSoftware)
9
+
3
10
  ## 0.3.0
4
11
 
5
12
  ### Enhancements
data/Gemfile CHANGED
@@ -3,17 +3,17 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development do
6
- gem 'cocoapods', :git => "https://github.com/CocoaPods/Cocoapods.git", :branch => 'master'
6
+ gem 'cocoapods', :git => 'https://github.com/CocoaPods/CocoaPods.git', :branch => 'master'
7
+ gem 'cocoapods-core', :git => 'https://github.com/CocoaPods/Core.git', :branch => 'master'
8
+ gem 'claide', :git => 'https://github.com/CocoaPods/CLAide.git', :branch => 'master'
9
+
7
10
  gem 'bacon'
8
- gem 'mocha-on-bacon'
9
11
  gem 'mocha'
12
+ gem 'mocha-on-bacon'
10
13
  gem 'prettybacon'
11
14
 
12
15
  if RUBY_VERSION >= '1.9.3'
13
- gem 'rubocop'
14
-
15
16
  gem 'codeclimate-test-reporter', :require => nil
16
- # Bug: https://github.com/colszowka/simplecov/issues/281
17
- gem 'simplecov', '0.7.1'
17
+ gem 'rubocop'
18
18
  end
19
19
  end
data/Rakefile CHANGED
@@ -33,26 +33,19 @@ begin
33
33
  sh "bundle exec bacon #{specs('**')}"
34
34
  duration = Time.now - start_time
35
35
  puts "Tests completed in #{duration}s"
36
- Rake::Task['rubocop'].invoke
36
+
37
+ Rake::Task['rubocop'].invoke if RUBY_VERSION >= '1.9.3'
37
38
  end
38
39
 
39
40
  def specs(dir)
40
41
  FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
41
42
  end
42
43
 
43
- # Rubocop
44
- #-----------------------------------------------------------------------------#
44
+ #-- Rubocop ----------------------------------------------------------------#
45
45
 
46
- desc 'Checks code style'
47
- task :rubocop do
48
- if RUBY_VERSION >= '1.9.3'
49
- require 'rubocop'
50
- cli = Rubocop::CLI.new
51
- result = cli.run(FileList['{spec,lib}/**/*.rb'])
52
- abort('RuboCop failed!') unless result == 0
53
- else
54
- puts '[!] Ruby > 1.9 is required to run style checks'
55
- end
46
+ if RUBY_VERSION >= '1.9.3'
47
+ require 'rubocop/rake_task'
48
+ RuboCop::RakeTask.new
56
49
  end
57
50
 
58
51
  rescue LoadError
data/lib/cocoapods_try.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # The namespace of the Cocoapods try plugin.
3
3
  #
4
4
  module CocoapodsTry
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.0'
6
6
  end
@@ -9,12 +9,12 @@ module Pod
9
9
  self.summary = 'Try a Pod!'
10
10
 
11
11
  self.description = <<-DESC
12
- Downloads the Pod with the given NAME (or Git URL), install its
12
+ Downloads the Pod with the given `NAME` (or Git `URL`), install its
13
13
  dependencies if needed and opens its demo project. If a Git URL is
14
14
  provided the head of the repo is used.
15
15
  DESC
16
16
 
17
- self.arguments = [['NAME_OR_URL', :required]]
17
+ self.arguments = [CLAide::Argument.new(%w(NAME URL), true)]
18
18
 
19
19
  def initialize(argv)
20
20
  @name = argv.shift_argument
@@ -107,7 +107,6 @@ module Pod
107
107
  def install_pod(spec, sandbox)
108
108
  specs = { :ios => spec, :osx => spec }
109
109
  installer = Installer::PodSourceInstaller.new(sandbox, specs)
110
- installer.aggressive_cache = config.aggressive_cache?
111
110
  installer.install!
112
111
  sandbox.root + spec.name
113
112
  end
@@ -184,10 +183,9 @@ module Pod
184
183
  # @return [void] Updates the specs repo unless disabled by the config.
185
184
  #
186
185
  def update_specs_repos
187
- unless config.skip_repo_update?
188
- UI.section 'Updating spec repositories' do
189
- SourcesManager.update
190
- end
186
+ return if config.skip_repo_update?
187
+ UI.section 'Updating spec repositories' do
188
+ SourcesManager.update
191
189
  end
192
190
  end
193
191
 
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,18 @@
1
+
2
+ # Set up coverage analysis
3
+ #-----------------------------------------------------------------------------#
4
+
5
+ if RUBY_VERSION >= '1.9.3'
6
+ require 'codeclimate-test-reporter'
7
+ CodeClimate::TestReporter.configure do |config|
8
+ config.logger.level = Logger::WARN
9
+ end
10
+ CodeClimate::TestReporter.start
11
+ end
12
+
13
+ # Set up
14
+ #-----------------------------------------------------------------------------#
15
+
1
16
  require 'bundler/setup'
2
17
  require 'pathname'
3
18
  require 'bacon'
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-try
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Pelosin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description:
@@ -44,10 +44,10 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
- - ".gitignore"
48
- - ".rubocop-cocoapods.yml"
49
- - ".rubocop.yml"
50
- - ".travis.yml"
47
+ - .gitignore
48
+ - .rubocop-cocoapods.yml
49
+ - .rubocop.yml
50
+ - .travis.yml
51
51
  - CHANGELOG.md
52
52
  - Gemfile
53
53
  - LICENSE
@@ -70,17 +70,17 @@ require_paths:
70
70
  - lib
71
71
  required_ruby_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ">="
78
+ - - '>='
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.2.2
83
+ rubygems_version: 2.0.14
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: CocoaPods plugin which allows to quickly try the demo project of a Pod.