cocoapods-try 0.3.0 → 0.4.0
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 +4 -4
- data/.gitignore +1 -0
- data/.rubocop-cocoapods.yml +11 -0
- data/.travis.yml +8 -18
- data/CHANGELOG.md +7 -0
- data/Gemfile +6 -6
- data/Rakefile +6 -13
- data/lib/cocoapods_try.rb +1 -1
- data/lib/pod/command/try.rb +5 -7
- data/spec/spec_helper.rb +15 -0
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72558761bfd19ca05dd50b4b240b6bc941c21e02
|
4
|
+
data.tar.gz: 69fa6ff987af60ca26a5b40b0f7bfc27213e811f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f9d663777117443d331935098027cde324cdf0cf9c55d0cb0905ff94bcae3b9173d412e8608c6fb1f5a4af935d9408ef97791cc3b4917f0ff98436c59996339
|
7
|
+
data.tar.gz: 49a0757a1f80eb1eaf93ace8a7cc8a1d92595096697dd69841267c0019fa920e7c61fe96d56250bcd6e39ff058fec649b3fe3d13a805af750d71c97860a90d3c
|
data/.gitignore
CHANGED
data/.rubocop-cocoapods.yml
CHANGED
@@ -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
|
-
#
|
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=
|
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
data/Gemfile
CHANGED
@@ -3,17 +3,17 @@ source 'https://rubygems.org'
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
group :development do
|
6
|
-
gem 'cocoapods',
|
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
|
-
|
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
|
-
|
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
|
-
|
44
|
-
#-----------------------------------------------------------------------------#
|
44
|
+
#-- Rubocop ----------------------------------------------------------------#
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
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
data/lib/pod/command/try.rb
CHANGED
@@ -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 = [
|
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
|
-
|
188
|
-
|
189
|
-
|
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.
|
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-
|
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
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
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.
|
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.
|