cocoapods-plugins 0.4.1 → 0.4.2

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: e0818eab56cf8665d080a84433c07b08ddcb3974
4
- data.tar.gz: 9f30417b4e31325d7af758da615e536ecf19486d
3
+ metadata.gz: e8229321bc18560791b90ae2854d1d5135ff7c26
4
+ data.tar.gz: c391efe510be81995cf68af58201516b4119ef5c
5
5
  SHA512:
6
- metadata.gz: e24a012f47bfb958633a3b8dc71dcc0538f2f5181867986f3b259bbd10ae5e2f6a3ff09644f59df8429d9512d18bc23024697acefc19e5e430536f02b39695a8
7
- data.tar.gz: 88d4422953d603c7dc70a63be4c24cbf0c64c436509cf224f6300912a9959d130c798b91b60011fb789c20a1f815f7c13b0a2226d13392e5d43987ce6873481f
6
+ metadata.gz: 1300074f2b163ee56825cf88068462966ee74d4e8e83aa2dcf2ddc218fb318ec947f4e46d3ffc87ab80a9eb06d44729b98d2beac2b7353f7cbbbe4a7828a9d33
7
+ data.tar.gz: e403bc9bee1ce814bc68abbe129b7871794cbe007b19f5989b62a190941c54060e099a6374536f50dfafe13dbd209512cafa2fcd27aa95e7b124ba3a5d5eee32
@@ -1,5 +1,8 @@
1
1
  # Cocoapods::Plugins Changelog
2
2
 
3
+ ## 0.4.2
4
+
5
+
3
6
  ## 0.4.1
4
7
 
5
8
  * Added the `pod plugins installed` subcommand.
@@ -1,36 +1,36 @@
1
1
  GIT
2
2
  remote: https://github.com/CocoaPods/CLAide.git
3
- revision: 4cb13d48a907d8acf8d398f1104843df029def6d
3
+ revision: 00927807580554b7d3485d673c90386d3fd8fde0
4
4
  branch: master
5
5
  specs:
6
6
  claide (0.8.1)
7
7
 
8
8
  GIT
9
9
  remote: https://github.com/CocoaPods/CocoaPods.git
10
- revision: 0c5a0f0d264922a63f0a30f554c41cf2aa7bd43b
10
+ revision: 06f9a9870f1fc205f06c6d0193502fd7cf0241ef
11
11
  branch: master
12
12
  specs:
13
- cocoapods (0.36.0.beta.2)
13
+ cocoapods (0.36.3)
14
14
  activesupport (>= 3.2.15)
15
15
  claide (~> 0.8.1)
16
- cocoapods-core (= 0.36.0.beta.2)
17
- cocoapods-downloader (~> 0.8.1)
18
- cocoapods-plugins (~> 0.4.0)
19
- cocoapods-trunk (~> 0.5.0)
16
+ cocoapods-core (= 0.36.3)
17
+ cocoapods-downloader (~> 0.9.0)
18
+ cocoapods-plugins (~> 0.4.1)
19
+ cocoapods-trunk (~> 0.6.0)
20
20
  cocoapods-try (~> 0.4.3)
21
21
  colored (~> 1.2)
22
22
  escape (~> 0.0.4)
23
23
  molinillo (~> 0.2.1)
24
24
  nap (~> 0.8)
25
25
  open4 (~> 1.3)
26
- xcodeproj (~> 0.22.0)
26
+ xcodeproj (~> 0.23.1)
27
27
 
28
28
  GIT
29
29
  remote: https://github.com/CocoaPods/Core.git
30
- revision: ecb22ed9f829b0345e14c08da5294ee4078dfdbb
30
+ revision: 11f3eee2008e822e5af0b01866a5a0b376c930a7
31
31
  branch: master
32
32
  specs:
33
- cocoapods-core (0.36.0.beta.2)
33
+ cocoapods-core (0.36.3)
34
34
  activesupport (>= 3.2.15)
35
35
  fuzzy_match (~> 2.0.4)
36
36
  nap (~> 0.8.0)
@@ -38,13 +38,13 @@ GIT
38
38
  PATH
39
39
  remote: .
40
40
  specs:
41
- cocoapods-plugins (0.4.1)
41
+ cocoapods-plugins (0.4.2)
42
42
  nap
43
43
 
44
44
  GEM
45
45
  remote: https://rubygems.org/
46
46
  specs:
47
- activesupport (4.2.0)
47
+ activesupport (4.2.1)
48
48
  i18n (~> 0.7)
49
49
  json (~> 1.7, >= 1.7.7)
50
50
  minitest (~> 5.1)
@@ -55,8 +55,8 @@ GEM
55
55
  astrolabe (1.3.0)
56
56
  parser (>= 2.2.0.pre.3, < 3.0)
57
57
  bacon (1.2.0)
58
- cocoapods-downloader (0.8.1)
59
- cocoapods-trunk (0.5.0)
58
+ cocoapods-downloader (0.9.0)
59
+ cocoapods-trunk (0.6.0)
60
60
  nap (>= 0.8)
61
61
  netrc (= 0.7.8)
62
62
  cocoapods-try (0.4.3)
@@ -76,41 +76,39 @@ GEM
76
76
  metaclass (~> 0.0.1)
77
77
  mocha-on-bacon (0.2.2)
78
78
  mocha (>= 0.13.0)
79
- molinillo (0.2.1)
79
+ molinillo (0.2.3)
80
80
  multi_json (1.10.1)
81
81
  nap (0.8.0)
82
82
  netrc (0.7.8)
83
83
  open4 (1.3.4)
84
- parser (2.2.0.pre.7)
84
+ parser (2.2.0.3)
85
85
  ast (>= 1.1, < 3.0)
86
- slop (~> 3.4, >= 3.4.5)
87
- powerpack (0.0.9)
86
+ powerpack (0.1.0)
88
87
  prettybacon (0.0.2)
89
88
  bacon (~> 1.2)
90
89
  rainbow (2.0.0)
91
90
  rake (10.3.2)
92
- rubocop (0.27.1)
91
+ rubocop (0.29.1)
93
92
  astrolabe (~> 1.3)
94
- parser (>= 2.2.0.pre.7, < 3.0)
95
- powerpack (~> 0.0.6)
93
+ parser (>= 2.2.0.1, < 3.0)
94
+ powerpack (~> 0.1)
96
95
  rainbow (>= 1.99.1, < 3.0)
97
96
  ruby-progressbar (~> 1.4)
98
- ruby-progressbar (1.7.0)
97
+ ruby-progressbar (1.7.5)
99
98
  safe_yaml (1.0.4)
100
99
  simplecov (0.9.0)
101
100
  docile (~> 1.1.0)
102
101
  multi_json
103
102
  simplecov-html (~> 0.8.0)
104
103
  simplecov-html (0.8.0)
105
- slop (3.6.0)
106
- thread_safe (0.3.4)
104
+ thread_safe (0.3.5)
107
105
  tzinfo (1.2.2)
108
106
  thread_safe (~> 0.1)
109
107
  vcr (2.9.3)
110
108
  webmock (1.20.4)
111
109
  addressable (>= 2.3.6)
112
110
  crack (>= 0.3.2)
113
- xcodeproj (0.22.0)
111
+ xcodeproj (0.23.1)
114
112
  activesupport (>= 3)
115
113
  colored (~> 1.2)
116
114
 
data/Rakefile CHANGED
@@ -29,6 +29,7 @@ begin
29
29
  duration = Time.now - start_time
30
30
  puts "Tests completed in #{duration}s"
31
31
  Rake::Task['rubocop'].invoke
32
+ Rake::Task['validate_json'].invoke
32
33
  end
33
34
 
34
35
  def specs(dir)
@@ -46,6 +47,39 @@ begin
46
47
  abort('RuboCop failed!') unless result == 0
47
48
  end
48
49
 
50
+ # plugins.json
51
+ #----------------------------------------------------------------------------#
52
+
53
+ desc 'Validates plugins.json'
54
+ task :validate_json do
55
+ require 'json'
56
+ require 'pathname'
57
+
58
+ puts 'Validating plugins.json'
59
+
60
+ json_file = Pathname(__FILE__).parent + 'plugins.json'
61
+ json = json_file.read
62
+ plugins = JSON.load(json)
63
+ abort('Invalid JSON in plugins.json') unless plugins
64
+ keys = %w(gem name author social_media_url url description)
65
+ optional_keys = %w(social_media_url)
66
+ errors = plugins['plugins'].reduce([]) do |errors, plugin|
67
+ extra_keys = plugin.keys - keys
68
+ unless extra_keys.empty?
69
+ errors << "plugin `#{plugin['name']}` has extra keys #{extra_keys}"
70
+ end
71
+ (keys - optional_keys).each do |key|
72
+ unless plugin[key]
73
+ errors << "plugin `#{plugin['name']}` is missing key `#{key}`"
74
+ end
75
+ end
76
+ errors
77
+ end
78
+ unless errors.empty?
79
+ abort("Invalid plugins.json:\n\n#{errors.join("\n")}")
80
+ end
81
+ end
82
+
49
83
  rescue LoadError
50
84
  $stderr.puts "\033[0;31m" \
51
85
  '[!] Some Rake tasks haven been disabled because the environment' \
@@ -1,6 +1,5 @@
1
-
2
1
  # The namespace of the Cocoapods plugins plugin.
3
2
  #
4
3
  module CocoapodsPlugins
5
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
6
5
  end
@@ -57,7 +57,6 @@ module Pod
57
57
 
58
58
  extend Executable
59
59
  executable :git
60
- executable :ruby
61
60
 
62
61
  TEMPLATE_BASE_URL = 'https://github.com/CocoaPods/'
63
62
  TEMPLATE_REPO = TEMPLATE_BASE_URL + 'cocoapods-plugin-template.git'
@@ -71,7 +70,15 @@ module Pod
71
70
  def clone_template
72
71
  UI.section("-> Creating `#{@name}` plugin") do
73
72
  UI.notice "using template '#{template_repo_url}'"
74
- git! "clone '#{template_repo_url}' #{@name}"
73
+ command = ['clone', template_repo_url, @name]
74
+ if method(:git!).arity == -1
75
+ git! command
76
+ else
77
+ # TODO: delete this conditional and use the other branch when
78
+ # 0.5.0 is released
79
+ require 'shellwords'
80
+ git! command.map(&:to_s).map(&:shellescape).join(' ')
81
+ end
75
82
  end
76
83
  end
77
84
 
@@ -99,6 +99,7 @@
99
99
  {
100
100
  "gem":"cocoapods-watch",
101
101
  "name":"Pod watch",
102
+ "author":"Marin Usalj",
102
103
  "url":"https://github.com/supermarin/cocoapods-watch",
103
104
  "description":"Watch for Podfile changes and run pod install."
104
105
  },
@@ -152,6 +153,21 @@
152
153
  "social_media_url":"https://twitter.com/mikejowens",
153
154
  "url":"https://github.com/mowens/cocoapods-links",
154
155
  "description":"A CocoaPods plugin to manage local development pods"
156
+ },
157
+ {
158
+ "gem": "cocoapods-prune-localizations",
159
+ "name": "CocoaPods Prune Localizations",
160
+ "author": "Diego Torres",
161
+ "social_media_url": "https://twitter.com/dtorres",
162
+ "url": "https://github.com/dtorres/cocoapods-prune-localizations",
163
+ "description": "Upon running pod install, this plugin will remove unused localizations by your project"
164
+ },
165
+ {
166
+ "gem": "cocoapods-readonly",
167
+ "name": "CocoaPods Readonly",
168
+ "author": "Mason Glidden",
169
+ "url": "https://github.com/Yelp/cocoapods-readonly",
170
+ "description": "Developers switching from submodules are used to modifying library source files from within Xcode. This locks those files as needed so Xcode warns you when attempting to edit them."
155
171
  }
156
172
  ]
157
173
  }
@@ -4,7 +4,6 @@ require File.expand_path('../spec_helper', File.dirname(__FILE__))
4
4
  #
5
5
  module Pod
6
6
  describe Command::GemIndexCache do
7
-
8
7
  before do
9
8
  @cache = Command::GemIndexCache.new
10
9
  UI.output = ''
@@ -34,6 +33,5 @@ module Pod
34
33
  UI.output.should.include('Downloading Rubygem specification index...')
35
34
  UI.output.should.include('Error downloading Rubygem specification')
36
35
  end
37
-
38
36
  end
39
37
  end
@@ -68,7 +68,7 @@ module Pod
68
68
 
69
69
  template_repo = 'https://github.com/CocoaPods/' \
70
70
  'cocoapods-plugin-template.git'
71
- git_command = "clone '#{template_repo}' cocoapods-banana"
71
+ git_command = ['clone', template_repo, 'cocoapods-banana']
72
72
  @command.expects(:git!).with(git_command)
73
73
  @command.expects(:configure_template)
74
74
  @command.run
@@ -80,7 +80,7 @@ module Pod
80
80
  'cocoapods-banana-plugin-template.git'
81
81
  @command = create_command('cocoapods-banana', alt_repo)
82
82
 
83
- @command.expects(:git!).with("clone '#{alt_repo}' cocoapods-banana")
83
+ @command.expects(:git!).with(['clone', alt_repo, 'cocoapods-banana'])
84
84
  @command.expects(:configure_template)
85
85
  @command.run
86
86
  UI.output.should.include('Creating `cocoapods-banana` plugin')
@@ -37,7 +37,6 @@ module Pod
37
37
  #--- Output printing
38
38
 
39
39
  describe 'Compact List' do
40
-
41
40
  before do
42
41
  @command = Pod::Command::Plugins::Installed.new CLAide::ARGV.new([])
43
42
  end
@@ -75,7 +74,6 @@ module Pod
75
74
  end
76
75
 
77
76
  describe 'Verbose List' do
78
-
79
77
  before do
80
78
  verbose_args = CLAide::ARGV.new(['--verbose'])
81
79
  @command = Pod::Command::Plugins::Installed.new verbose_args
@@ -128,6 +128,5 @@ Please add the following entry to the `plugins.json` file:
128
128
  command.run
129
129
  end
130
130
  end
131
-
132
131
  end
133
132
  end
@@ -29,6 +29,5 @@ module Pod
29
29
  Command::PluginsHelper.download_json
30
30
  end.message.should.match(expected_error)
31
31
  end
32
-
33
32
  end
34
33
  end
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Grandinetti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-25 00:00:00.000000000 Z
12
+ date: 2015-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nap
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.4.5
123
+ rubygems_version: 2.4.6
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: CocoaPods plugin which shows info about available CocoaPods plugins.