cocoapods-repo-svn 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +7 -1
- data/README.md +3 -0
- data/Rakefile +58 -1
- data/lib/pod/command/repo_svn.rb +13 -4
- data/lib/repo_svn_ext/version.rb +2 -2
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e737cc20730f3b6e981496b5da75b19bcefe33cf
|
4
|
+
data.tar.gz: 060584f6fd8baa274d79d5a111ba565f1a9f4c4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20e02a1bd0e57d7231cd18b8e49867627dba274885d926fd4b64660dc1fa21bc5b5d3a2246dd594db3f6dafd2725ade66078638f797ba1d15a33ffab4f0be249
|
7
|
+
data.tar.gz: a152e53a25cc59a3d1dc6df8c5c8ff4dabcf4c298d5dd588bb9ad4c076dbc2eaedbc365bf29b40cf41986f2a4ebf29db3c9eaf3cc835913aa0b2de196cb240c1
|
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
@@ -1,3 +1,9 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gemspec
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
group :development do
|
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
|
+
end
|
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/cocoapods-repo-svn.svg)](http://badge.fury.io/rb/cocoapods-repo-svn)
|
2
|
+
[![Code Climate](https://codeclimate.com/github/clarkda/cocoapods-repo-svn/badges/gpa.svg)](https://codeclimate.com/github/clarkda/cocoapods-repo-svn)
|
3
|
+
|
1
4
|
# Cocoapods::RepoSvn
|
2
5
|
|
3
6
|
Adds subversion support to manage spec-repositories
|
data/Rakefile
CHANGED
@@ -1 +1,58 @@
|
|
1
|
-
|
1
|
+
# Bootstrap
|
2
|
+
#-----------------------------------------------------------------------------#
|
3
|
+
|
4
|
+
task :bootstrap do
|
5
|
+
if system('which bundle')
|
6
|
+
sh 'bundle install'
|
7
|
+
else
|
8
|
+
$stderr.puts "\033[0;31m" \
|
9
|
+
"[!] Please install the bundler gem manually:\n" \
|
10
|
+
' $ [sudo] gem install bundler' \
|
11
|
+
"\e[0m"
|
12
|
+
exit 1
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
begin
|
17
|
+
|
18
|
+
require 'bundler/gem_tasks'
|
19
|
+
|
20
|
+
task :default => 'spec'
|
21
|
+
|
22
|
+
# Spec
|
23
|
+
#-----------------------------------------------------------------------------#
|
24
|
+
|
25
|
+
desc 'Runs all the specs'
|
26
|
+
task :spec do
|
27
|
+
start_time = Time.now
|
28
|
+
sh "bundle exec bacon #{specs('**')}"
|
29
|
+
duration = Time.now - start_time
|
30
|
+
puts "Tests completed in #{duration}s"
|
31
|
+
Rake::Task['rubocop'].invoke
|
32
|
+
end
|
33
|
+
|
34
|
+
def specs(dir)
|
35
|
+
FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
|
36
|
+
end
|
37
|
+
|
38
|
+
# Rubocop
|
39
|
+
#-----------------------------------------------------------------------------#
|
40
|
+
|
41
|
+
desc 'Checks code style'
|
42
|
+
task :rubocop do
|
43
|
+
if RUBY_VERSION >= '1.9.3'
|
44
|
+
require 'rubocop'
|
45
|
+
cli = RuboCop::CLI.new
|
46
|
+
result = cli.run(FileList['{spec,lib}/**/*.rb'])
|
47
|
+
abort('RuboCop failed!') unless result == 0
|
48
|
+
else
|
49
|
+
puts '[!] Ruby > 1.9 is required to run style checks'
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
rescue LoadError
|
54
|
+
$stderr.puts "\033[0;31m" \
|
55
|
+
'[!] Some Rake tasks haven been disabled because the environment' \
|
56
|
+
' couldn’t be loaded. Be sure to run `rake bootstrap` first.' \
|
57
|
+
"\e[0m"
|
58
|
+
end
|
data/lib/pod/command/repo_svn.rb
CHANGED
@@ -15,7 +15,10 @@ module Pod
|
|
15
15
|
remote can later be referred to by `NAME`.
|
16
16
|
DESC
|
17
17
|
|
18
|
-
self.arguments =
|
18
|
+
self.arguments = [
|
19
|
+
CLAide::Argument.new('URL', true),
|
20
|
+
CLAide::Argument.new('NAME', true)
|
21
|
+
]
|
19
22
|
|
20
23
|
def initialize(argv)
|
21
24
|
@name, @url = argv.shift_argument, argv.shift_argument
|
@@ -50,7 +53,9 @@ module Pod
|
|
50
53
|
Updates the checked out spec-repo `NAME`.
|
51
54
|
DESC
|
52
55
|
|
53
|
-
self.arguments =
|
56
|
+
self.arguments = [
|
57
|
+
CLAide::Argument.new('NAME', true)
|
58
|
+
]
|
54
59
|
|
55
60
|
def initialize(argv)
|
56
61
|
@name = argv.shift_argument
|
@@ -141,7 +146,9 @@ module Pod
|
|
141
146
|
will lint all the spec-repos known to CocoaPods.
|
142
147
|
DESC
|
143
148
|
|
144
|
-
self.arguments =
|
149
|
+
self.arguments = [
|
150
|
+
CLAide::Argument.new(%w(NAME DIRECTORY), true)
|
151
|
+
]
|
145
152
|
|
146
153
|
def self.options
|
147
154
|
[["--only-errors", "Lint presents only the errors"]].concat(super)
|
@@ -216,7 +223,9 @@ module Pod
|
|
216
223
|
Deletes the checked out copy named `NAME` from the local spec-repos directory at `~/.cocoapods/repos/.`
|
217
224
|
DESC
|
218
225
|
|
219
|
-
self.arguments =
|
226
|
+
self.arguments = [
|
227
|
+
CLAide::Argument.new('NAME', true)
|
228
|
+
]
|
220
229
|
|
221
230
|
def initialize(argv)
|
222
231
|
@name = argv.shift_argument
|
data/lib/repo_svn_ext/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module RepoSvnExt
|
2
|
-
VERSION = '0.1.
|
3
|
-
end
|
2
|
+
VERSION = '0.1.1'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-repo-svn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-07 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: CocoaPod plugin to add subversion support for spec repositories
|
@@ -45,7 +45,8 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
-
|
48
|
+
- .gitignore
|
49
|
+
- CHANGELOG.md
|
49
50
|
- Gemfile
|
50
51
|
- LICENSE
|
51
52
|
- README.md
|
@@ -65,17 +66,17 @@ require_paths:
|
|
65
66
|
- lib
|
66
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
68
|
requirements:
|
68
|
-
- -
|
69
|
+
- - '>='
|
69
70
|
- !ruby/object:Gem::Version
|
70
71
|
version: '0'
|
71
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
73
|
requirements:
|
73
|
-
- -
|
74
|
+
- - '>='
|
74
75
|
- !ruby/object:Gem::Version
|
75
76
|
version: '0'
|
76
77
|
requirements: []
|
77
78
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.2.
|
79
|
+
rubygems_version: 2.2.2
|
79
80
|
signing_key:
|
80
81
|
specification_version: 4
|
81
82
|
summary: Subversion support for spec repository
|