dpl 1.9.1 → 1.9.2.travis.2724.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +45 -19
- data/gemspec_helper.rb +2 -0
- data/lib/dpl/version.rb +1 -1
- metadata +33 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1b78e9fbaf950917bcdd61433a87b84b35a6da3c0d21f3e96b667b9393b6a2a2
|
4
|
+
data.tar.gz: 3c9612cefbf81793664a524dc078b92ab44cc32a56264607780ee6604064ff1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71a4747f10a8b6e1acb733b20b81e975ddfca73e848927b16224801afe99e310f132c640ea530a76f73e52714f15bb05ba0e2a8c3260fc9336dafcb1371eb98d
|
7
|
+
data.tar.gz: 1d5f2f28db51de05180822ab1131aa447f4bdada5e198906b7b5b586cafeffc0d847dfa64c345c42ca68bf1e978b2c3c19c510636ba7ca5edea4d7c9c8722cea
|
data/Rakefile
CHANGED
@@ -4,6 +4,7 @@ require 'pathname'
|
|
4
4
|
require 'logger'
|
5
5
|
require './lib/dpl/version'
|
6
6
|
require 'highline'
|
7
|
+
require 'faraday'
|
7
8
|
|
8
9
|
include Term::ANSIColor
|
9
10
|
|
@@ -44,7 +45,19 @@ gemspecs = FileList[File.join(top, "dpl-*.gemspec")]
|
|
44
45
|
|
45
46
|
providers = gemspecs.map { |f| /dpl-(?<provider>.*)\.gemspec/ =~ f && provider }
|
46
47
|
|
47
|
-
|
48
|
+
desc "Build dpl gem"
|
49
|
+
file "dpl-#{gem_version}.gem" do
|
50
|
+
logger.info green("Building dpl gem")
|
51
|
+
ruby "-S gem build dpl.gemspec"
|
52
|
+
end
|
53
|
+
|
54
|
+
desc "Install dpl gem"
|
55
|
+
file dpl_bin => "dpl-#{gem_version}.gem" do
|
56
|
+
logger.info green("Installing dpl gem")
|
57
|
+
ruby "-S gem install dpl-#{gem_version}.gem"
|
58
|
+
end
|
59
|
+
|
60
|
+
task :default => [:spec, Rake::FileTask[dpl_bin]] do
|
48
61
|
Rake::Task["spec_providers"].invoke
|
49
62
|
Rake::Task["check_providers"].invoke
|
50
63
|
end
|
@@ -82,9 +95,34 @@ end
|
|
82
95
|
desc "Release all gems"
|
83
96
|
task :release do
|
84
97
|
confirm
|
85
|
-
|
86
|
-
providers.each
|
87
|
-
|
98
|
+
released = []
|
99
|
+
providers.each do |provider|
|
100
|
+
while !released.include? provider
|
101
|
+
logger.info "checking dpl-#{provider}"
|
102
|
+
|
103
|
+
cli = Faraday.new url: 'https://rubygems.org'
|
104
|
+
|
105
|
+
begin
|
106
|
+
response = cli.get("/api/v2/rubygems/dpl-#{provider}/versions/#{gem_version}.json")
|
107
|
+
if response.success?
|
108
|
+
released << provider
|
109
|
+
logger.info green("dpl-#{provider} #{gem_version} exists")
|
110
|
+
next
|
111
|
+
else
|
112
|
+
begin
|
113
|
+
if Rake::Task["release-#{provider}"].invoke
|
114
|
+
released << provider
|
115
|
+
end
|
116
|
+
rescue => e
|
117
|
+
Rake::Task["release-#{provider}"].reenable
|
118
|
+
end
|
119
|
+
end
|
120
|
+
rescue Faraday::Error => e
|
121
|
+
logger.info yellow("connection failed. retrying")
|
122
|
+
retry
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
88
126
|
logger.info green("Pushing dpl-#{gem_version}.gem")
|
89
127
|
sh "gem push dpl-#{gem_version}.gem"
|
90
128
|
end
|
@@ -95,9 +133,9 @@ task :yank, [:version] do |t, args|
|
|
95
133
|
confirm "yank"
|
96
134
|
logger.info green("Yanking `dpl` version #{version}")
|
97
135
|
sh "gem yank dpl -v #{version}"
|
98
|
-
|
99
|
-
|
100
|
-
|
136
|
+
providers.each do |provider|
|
137
|
+
Rake::Task["yank-#{provider}"].invoke
|
138
|
+
end
|
101
139
|
end
|
102
140
|
|
103
141
|
task :deep_clean do
|
@@ -117,18 +155,6 @@ task :spec do
|
|
117
155
|
ruby '-S rspec spec/cli_spec.rb spec/provider_spec.rb'
|
118
156
|
end
|
119
157
|
|
120
|
-
desc "Build dpl gem"
|
121
|
-
file "dpl-#{gem_version}.gem" do
|
122
|
-
logger.info green("Building dpl gem")
|
123
|
-
ruby "-S gem build dpl.gemspec"
|
124
|
-
end
|
125
|
-
|
126
|
-
desc "Install dpl gem"
|
127
|
-
file dpl_bin => "dpl-#{gem_version}.gem" do
|
128
|
-
logger.info green("Installing dpl gem")
|
129
|
-
ruby "-S gem install dpl-#{gem_version}.gem"
|
130
|
-
end
|
131
|
-
|
132
158
|
providers.each do |provider|
|
133
159
|
desc "Write Gemfile-#{provider}"
|
134
160
|
file "Gemfile-#{provider}" do |t|
|
data/gemspec_helper.rb
CHANGED
@@ -34,6 +34,8 @@ def gemspec_for(provider_name=nil, runtime_dependencies=[])
|
|
34
34
|
s.add_development_dependency 'tins'
|
35
35
|
s.add_development_dependency 'coveralls'
|
36
36
|
s.add_development_dependency 'highline'
|
37
|
+
s.add_development_dependency 'term-ansicolor'
|
38
|
+
s.add_development_dependency 'faraday'
|
37
39
|
|
38
40
|
# set up files
|
39
41
|
if provider_name
|
data/lib/dpl/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.2.travis.2724.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -108,6 +108,34 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: term-ansicolor
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: faraday
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
111
139
|
description: deploy tool abstraction for clients
|
112
140
|
email: konstantin.mailinglists@googlemail.com
|
113
141
|
executables:
|
@@ -191,16 +219,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
219
|
version: '2.2'
|
192
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
221
|
requirements:
|
194
|
-
- - "
|
222
|
+
- - ">"
|
195
223
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
224
|
+
version: 1.3.1
|
197
225
|
requirements: []
|
198
226
|
rubyforge_project:
|
199
|
-
rubygems_version: 2.6
|
227
|
+
rubygems_version: 2.7.6
|
200
228
|
signing_key:
|
201
229
|
specification_version: 4
|
202
230
|
summary: deploy tool
|
203
|
-
test_files:
|
204
|
-
- spec/cli_spec.rb
|
205
|
-
- spec/provider_spec.rb
|
206
|
-
- spec/spec_helper.rb
|
231
|
+
test_files: []
|