cocoapods-release 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pod/command/release.rb +5 -7
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 782f3bf72f5b8b55b4cc1397f95bdac6a87abf62
|
4
|
+
data.tar.gz: eaade8700977262a315600b738e9d39150949882
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a76f76a17aea9f21c4d33c9199877b47c40aadc9c8d53759d895bc026b0a9bcdc03dc758d1ed9a3b0462a8c5b1264b50a3992be1ff2f54d9a9f42167a47f00fc
|
7
|
+
data.tar.gz: 54dfbc950e24513f39f43aafee6d273c0fb3d9a70d903c11956a7f7e98097422871762b52e0353c9d25fd211db9f91e22b09859d89e1d142ba2e6b723bb027b6
|
data/lib/pod/command/release.rb
CHANGED
@@ -36,9 +36,10 @@ module Pod
|
|
36
36
|
name = spec.gsub(".podspec", "")
|
37
37
|
version = Specification.from_file(spec).version
|
38
38
|
|
39
|
-
sources = SourcesManager.all
|
39
|
+
sources = SourcesManager.all.select { |r| r.name == "master" || r.url.start_with?("git") }
|
40
40
|
sources = sources.select { |s| s.name == @repo } if @repo
|
41
41
|
pushed_sources = []
|
42
|
+
available_sources = SourcesManager.all.map { |r| r.name }
|
42
43
|
|
43
44
|
abort "Please run #{"pod install".green} to continue" if sources.count == 0
|
44
45
|
for source in sources
|
@@ -72,11 +73,8 @@ module Pod
|
|
72
73
|
end
|
73
74
|
|
74
75
|
# verify lib
|
75
|
-
execute "pod lib lint #{spec} #{@allow_warnings}"
|
76
|
-
|
77
|
-
if `pod --version`.to_f >= 0.36
|
78
|
-
execute "pod lib lint #{spec} --use-frameworks #{@allow_warnings}"
|
79
|
-
end
|
76
|
+
execute "pod lib lint #{spec} #{@allow_warnings} --sources=#{available_sources.join(',')}"
|
77
|
+
execute "pod lib lint #{spec} --use-libraries #{@allow_warnings} --sources=#{available_sources.join(',')}"
|
80
78
|
|
81
79
|
# TODO: create git tag for current version
|
82
80
|
unless system("git tag | grep #{version} > /dev/null")
|
@@ -85,7 +83,7 @@ module Pod
|
|
85
83
|
execute "git push && git push --tags"
|
86
84
|
end
|
87
85
|
|
88
|
-
repo =
|
86
|
+
repo = @repo || pushed_sources.first.name
|
89
87
|
if repo == "master"
|
90
88
|
execute "pod trunk push #{spec} #{@allow_warnings}"
|
91
89
|
else
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-release
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Letterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
77
|
+
rubygems_version: 2.4.5
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
80
|
summary: Tags and releases pods for you.
|