cocoapods-watch 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +34 -0
- data/.rubocop.yml +50 -0
- data/.travis.yml +10 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +79 -0
- data/LICENSE +21 -0
- data/README.md +4 -0
- data/Rakefile +46 -0
- data/cocoapods-watch.gemspec +22 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/lib/cocoapods_watch.rb +8 -0
- data/lib/command/watch.rb +18 -0
- data/spec/command/watch_spec.rb +18 -0
- data/spec/spec_helper.rb +50 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a727b3aeb6a705d2a81c901178bfc1022b345fff
|
4
|
+
data.tar.gz: 4064a711239ba753aae3f92d0cf7edc36f546185
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 33dc0eef483b1976f262376198bffa9e2425e43d57d02eb873ee051e9f04b9393981a92f2919db793425ea320e6da29a7f70c6f9eaebda418b2ef2f2293a5540
|
7
|
+
data.tar.gz: a3fc8fe3641785c5cd1e3af1a7324d84b1c9720ef6a2197b98c041e122779b1ab174b09b3d62aa68ebe5efe19f03930bae856b832ae7f105bb762ac506705ff9
|
data/.gitignore
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/test/tmp/
|
9
|
+
/test/version_tmp/
|
10
|
+
/tmp/
|
11
|
+
|
12
|
+
## Specific to RubyMotion:
|
13
|
+
.dat*
|
14
|
+
.repl_history
|
15
|
+
build/
|
16
|
+
|
17
|
+
## Documentation cache and generated files:
|
18
|
+
/.yardoc/
|
19
|
+
/_yardoc/
|
20
|
+
/doc/
|
21
|
+
/rdoc/
|
22
|
+
|
23
|
+
## Environment normalisation:
|
24
|
+
/.bundle/
|
25
|
+
/lib/bundler/man/
|
26
|
+
|
27
|
+
# for a library or gem, you might want to ignore these files since the code is
|
28
|
+
# intended to run in multiple environments; otherwise, check them in:
|
29
|
+
# Gemfile.lock
|
30
|
+
# .ruby-version
|
31
|
+
# .ruby-gemset
|
32
|
+
|
33
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
34
|
+
.rvmrc
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
HashSyntax:
|
2
|
+
EnforcedStyle: hash_rockets
|
3
|
+
|
4
|
+
StringLiterals:
|
5
|
+
Enabled: false
|
6
|
+
EnforcedStyle: double_quotes
|
7
|
+
|
8
|
+
SignalException:
|
9
|
+
EnforcedStyle: only_raise
|
10
|
+
|
11
|
+
ConstantName:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
IfUnlessModifier:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
EmptyLinesAroundBody:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
AsciiComments:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Proc:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
BracesAroundHashParameters:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Encoding:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
TrailingComma:
|
33
|
+
EnforcedStyleForMultiline: comma
|
34
|
+
|
35
|
+
FileName:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
#------------------------------------------------------------------------------
|
39
|
+
# Needs fixing
|
40
|
+
#------------------------------------------------------------------------------
|
41
|
+
|
42
|
+
ClassLength:
|
43
|
+
Max: 200
|
44
|
+
|
45
|
+
MethodLength:
|
46
|
+
Max: 18
|
47
|
+
|
48
|
+
LineLength:
|
49
|
+
Enabled: false
|
50
|
+
|
data/.travis.yml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
language: objective-c
|
2
|
+
env:
|
3
|
+
# This is what 10.8.x comes with and we want to support that.
|
4
|
+
- RVM_RUBY_VERSION=system NOEXEC_DISABLE=1 RUBY_VERSION_SPECIFIC='sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2' SSL_CERT_FILE=/usr/local/share/cacert.pem GIT_AUTHOR_NAME=CocoaPods GIT_AUTHOR_EMAIL=cocoapods@example.com PYTHONPATH=/usr/local/lib/python2.7/site-packages
|
5
|
+
- RVM_RUBY_VERSION=2.0.0-p247 NOEXEC_DISABLE=1 RUBY_VERSION_SPECIFIC='sudo gem install bundler --no-ri --no-rdoc' GIT_AUTHOR_NAME=CocoaPods GIT_AUTHOR_EMAIL=cocoapods@example.com PYTHONPATH=/usr/local/lib/python2.7/site-packages
|
6
|
+
before_install:
|
7
|
+
- curl http://curl.haxx.se/ca/cacert.pem -o /usr/local/share/cacert.pem
|
8
|
+
- source ~/.rvm/scripts/rvm && rvm use $RVM_RUBY_VERSION
|
9
|
+
install: eval $RUBY_VERSION_SPECIFIC && rake bootstrap[use_bundle_dir]
|
10
|
+
script: bundle exec rake specs
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
cocoapods-watch (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activesupport (3.2.17)
|
10
|
+
i18n (~> 0.6, >= 0.6.4)
|
11
|
+
multi_json (~> 1.0)
|
12
|
+
ast (1.1.0)
|
13
|
+
bacon (1.2.0)
|
14
|
+
claide (0.5.0)
|
15
|
+
cocoapods (0.30.0)
|
16
|
+
activesupport (>= 3.2.15, < 4)
|
17
|
+
claide (~> 0.5.0)
|
18
|
+
cocoapods-core (= 0.30.0)
|
19
|
+
cocoapods-downloader (~> 0.4.0)
|
20
|
+
cocoapods-try (~> 0.2.0)
|
21
|
+
colored (~> 1.2)
|
22
|
+
escape (~> 0.0.4)
|
23
|
+
json_pure (~> 1.8)
|
24
|
+
nap (~> 0.5)
|
25
|
+
open4 (~> 1.3)
|
26
|
+
xcodeproj (~> 0.15.0)
|
27
|
+
cocoapods-core (0.30.0)
|
28
|
+
activesupport (>= 3.2.15, < 4)
|
29
|
+
fuzzy_match (~> 2.0.4)
|
30
|
+
json_pure (~> 1.8)
|
31
|
+
nap (~> 0.5)
|
32
|
+
cocoapods-downloader (0.4.0)
|
33
|
+
cocoapods-try (0.2.0)
|
34
|
+
colored (1.2)
|
35
|
+
escape (0.0.4)
|
36
|
+
fuzzy_match (2.0.4)
|
37
|
+
i18n (0.6.9)
|
38
|
+
json (1.8.1)
|
39
|
+
json_pure (1.8.1)
|
40
|
+
metaclass (0.0.4)
|
41
|
+
mocha (1.0.0)
|
42
|
+
metaclass (~> 0.0.1)
|
43
|
+
mocha-on-bacon (0.2.2)
|
44
|
+
mocha (>= 0.13.0)
|
45
|
+
multi_json (1.9.2)
|
46
|
+
nap (0.6.0)
|
47
|
+
open4 (1.3.3)
|
48
|
+
parser (2.1.7)
|
49
|
+
ast (~> 1.1)
|
50
|
+
slop (~> 3.4, >= 3.4.5)
|
51
|
+
powerpack (0.0.9)
|
52
|
+
prettybacon (0.0.1)
|
53
|
+
bacon (~> 1.2)
|
54
|
+
rainbow (2.0.0)
|
55
|
+
rake (10.2.2)
|
56
|
+
rubocop (0.19.1)
|
57
|
+
json (>= 1.7.7, < 2)
|
58
|
+
parser (~> 2.1.7)
|
59
|
+
powerpack (~> 0.0.6)
|
60
|
+
rainbow (>= 1.99.1, < 3.0)
|
61
|
+
ruby-progressbar (~> 1.4)
|
62
|
+
ruby-progressbar (1.4.2)
|
63
|
+
slop (3.5.0)
|
64
|
+
xcodeproj (0.15.3)
|
65
|
+
activesupport (~> 3.0)
|
66
|
+
colored (~> 1.2)
|
67
|
+
|
68
|
+
PLATFORMS
|
69
|
+
ruby
|
70
|
+
|
71
|
+
DEPENDENCIES
|
72
|
+
bacon
|
73
|
+
bundler (~> 1.3)
|
74
|
+
cocoapods
|
75
|
+
cocoapods-watch!
|
76
|
+
mocha-on-bacon
|
77
|
+
prettybacon
|
78
|
+
rake
|
79
|
+
rubocop
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014 Marin Usalj
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
|
3
|
+
task :default => "spec"
|
4
|
+
|
5
|
+
# Bootstrap
|
6
|
+
#-----------------------------------------------------------------------------#
|
7
|
+
|
8
|
+
task :bootstrap, :use_bundle_dir? do |t, args|
|
9
|
+
if args[:use_bundle_dir?]
|
10
|
+
sh "bundle install --path ./travis_bundle_dir"
|
11
|
+
else
|
12
|
+
sh "bundle install"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# Spec
|
17
|
+
#-----------------------------------------------------------------------------#
|
18
|
+
|
19
|
+
desc "Runs all the specs"
|
20
|
+
task :spec do
|
21
|
+
start_time = Time.now
|
22
|
+
sh "bundle exec bacon #{specs('**')}"
|
23
|
+
duration = Time.now - start_time
|
24
|
+
puts "Tests completed in #{duration}s"
|
25
|
+
Rake::Task["rubocop"].invoke
|
26
|
+
end
|
27
|
+
|
28
|
+
def specs(dir)
|
29
|
+
FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
|
30
|
+
end
|
31
|
+
|
32
|
+
# Rubocop
|
33
|
+
#-----------------------------------------------------------------------------#
|
34
|
+
|
35
|
+
desc 'Checks code style'
|
36
|
+
task :rubocop do
|
37
|
+
if RUBY_VERSION >= '1.9.3'
|
38
|
+
require 'rubocop'
|
39
|
+
cli = Rubocop::CLI.new
|
40
|
+
result = cli.run(FileList['{spec,lib}/**/*.rb'])
|
41
|
+
abort('RuboCop failed!') unless result == 0
|
42
|
+
else
|
43
|
+
puts "[!] Ruby > 1.9 is required to run style checks"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cocoapods_watch.rb'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "cocoapods-watch"
|
8
|
+
spec.version = Pod::Command::Watch::VERSION
|
9
|
+
spec.authors = ["Marin Usalj"]
|
10
|
+
spec.summary = %q{CocoaPods plugin that watches your Podfile and installs pods}
|
11
|
+
spec.homepage = "https://github.com/supermarin/cocoapods-watch"
|
12
|
+
spec.license = "MIT"
|
13
|
+
|
14
|
+
spec.files = `git ls-files`.split($/)
|
15
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
16
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
|
+
spec.require_paths = ["lib"]
|
18
|
+
|
19
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
20
|
+
spec.add_development_dependency "rake"
|
21
|
+
end
|
22
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'command/watch'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Pod
|
2
|
+
class Command
|
3
|
+
class Watch < Command
|
4
|
+
self.summary = 'Watches Podfile for changes and runs `pod install`'
|
5
|
+
|
6
|
+
#def initialize(argv)
|
7
|
+
#@name = argv.shift_argument
|
8
|
+
#super
|
9
|
+
#end
|
10
|
+
|
11
|
+
#def run
|
12
|
+
#puts "IMPLEMENT ME"
|
13
|
+
#end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
# The CocoaPods namespace
|
4
|
+
#
|
5
|
+
module Pod
|
6
|
+
describe Command::Watch do
|
7
|
+
|
8
|
+
#-------------------------------------------------------------------------#
|
9
|
+
|
10
|
+
describe "Try" do
|
11
|
+
it "registers it self" do
|
12
|
+
Command.parse(%w(watch)).should.be.instance_of Command::Watch
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
|
3
|
+
$LOAD_PATH.unshift((ROOT + 'lib').to_s)
|
4
|
+
$LOAD_PATH.unshift((ROOT + 'spec').to_s)
|
5
|
+
|
6
|
+
require 'bundler/setup'
|
7
|
+
require 'bacon'
|
8
|
+
require 'mocha-on-bacon'
|
9
|
+
require 'pretty_bacon'
|
10
|
+
require 'cocoapods'
|
11
|
+
|
12
|
+
require 'cocoapods_plugin'
|
13
|
+
|
14
|
+
#-----------------------------------------------------------------------------#
|
15
|
+
|
16
|
+
# The CocoaPods namespace
|
17
|
+
#
|
18
|
+
module Pod
|
19
|
+
|
20
|
+
# Disable the wrapping so the output is deterministic in the tests.
|
21
|
+
#
|
22
|
+
UI.disable_wrap = true
|
23
|
+
|
24
|
+
# Redirects the messages to an internal store.
|
25
|
+
#
|
26
|
+
module UI
|
27
|
+
@output = ''
|
28
|
+
@warnings = ''
|
29
|
+
|
30
|
+
class << self
|
31
|
+
attr_accessor :output
|
32
|
+
attr_accessor :warnings
|
33
|
+
|
34
|
+
def puts(message = '')
|
35
|
+
@output << "#{message}\n"
|
36
|
+
end
|
37
|
+
|
38
|
+
def warn(message = '', actions = [])
|
39
|
+
@warnings << "#{message}\n"
|
40
|
+
end
|
41
|
+
|
42
|
+
def print(message)
|
43
|
+
@output << message
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
#-----------------------------------------------------------------------------#
|
50
|
+
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cocoapods-watch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marin Usalj
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files: []
|
46
|
+
files:
|
47
|
+
- ".gitignore"
|
48
|
+
- ".rubocop.yml"
|
49
|
+
- ".travis.yml"
|
50
|
+
- Gemfile
|
51
|
+
- Gemfile.lock
|
52
|
+
- LICENSE
|
53
|
+
- README.md
|
54
|
+
- Rakefile
|
55
|
+
- cocoapods-watch.gemspec
|
56
|
+
- lib/cocoapods_plugin.rb
|
57
|
+
- lib/cocoapods_watch.rb
|
58
|
+
- lib/command/watch.rb
|
59
|
+
- spec/command/watch_spec.rb
|
60
|
+
- spec/spec_helper.rb
|
61
|
+
homepage: https://github.com/supermarin/cocoapods-watch
|
62
|
+
licenses:
|
63
|
+
- MIT
|
64
|
+
metadata: {}
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
requirements: []
|
80
|
+
rubyforge_project:
|
81
|
+
rubygems_version: 2.2.0
|
82
|
+
signing_key:
|
83
|
+
specification_version: 4
|
84
|
+
summary: CocoaPods plugin that watches your Podfile and installs pods
|
85
|
+
test_files:
|
86
|
+
- spec/command/watch_spec.rb
|
87
|
+
- spec/spec_helper.rb
|
88
|
+
has_rdoc:
|