dpl 1.9.1.travis.2711.5 → 1.9.1

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
- SHA256:
3
- metadata.gz: e5d5c9833860251ad59f9e381626ea8f9e46cdeafdcc4a0da939ab9d6e20b805
4
- data.tar.gz: e289d52872f2c7e5041e65d01cfeed208904c332763ee4dce8dbc39ab7043740
2
+ SHA1:
3
+ metadata.gz: 422e1b8c1dbfdc55c7c37f7d5a74da489c935812
4
+ data.tar.gz: f443c1a5bced981d345a0c73e468766c3182d4f8
5
5
  SHA512:
6
- metadata.gz: e6cba4b6fb168bb1a4d571d635be71bc5ee97dafe0e2dfec80ea2cca233881ccee71099d0dd98c77d3e8420a45c8025099e00df674dee28688f079a5a93da4ad
7
- data.tar.gz: 62fdcabb1d44633677838ea8f8adacac37130bd126cb776ba0bfc190eb6087b3b9122d41ddf714a6284ef44881cd24a8105113cf9b78948cf34a4c1ab7259552
6
+ metadata.gz: 47b70ce5bbc0eda8eb20fef074e083b887bdf88a936ae00c575ac1b94cd49ae592c998ba528a0cde0b26f7f75cd2192859b59cc2e3ae134393f0e4886ffcf0b4
7
+ data.tar.gz: fbcbbd7bae3df5f25e659bce95e2779e06630bef77a49abd33195a4ca2ce2954393fa0a8bff62d0285c34690b10490481d2627e66514ee4cd5c7ee4b6125f31c
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  Gemfile-*
2
2
  Gemfile.lock
3
+ .bundle
3
4
  .coverage
4
5
  coverage
5
6
  .dpl
@@ -8,3 +9,5 @@ google_appengine_*.zip
8
9
  google_appengine/*
9
10
  npm-debug.log
10
11
  *.gem
12
+ stubs
13
+ vendor
data/Rakefile CHANGED
@@ -36,6 +36,10 @@ def confirm(verb = "release")
36
36
  end
37
37
  end
38
38
 
39
+ def dpl_bin
40
+ File.join(Gem.bindir, 'dpl')
41
+ end
42
+
39
43
  gemspecs = FileList[File.join(top, "dpl-*.gemspec")]
40
44
 
41
45
  providers = gemspecs.map { |f| /dpl-(?<provider>.*)\.gemspec/ =~ f && provider }
@@ -66,6 +70,15 @@ task :build => "dpl-#{gem_version}.gem" do
66
70
  end
67
71
  end
68
72
 
73
+ desc "Uninstall all gems"
74
+ task :uninstall do
75
+ providers.each do |provider|
76
+ Rake::Task["uninstall-#{provider}"].invoke
77
+ end
78
+ logger.info red("Uninstalling dpl")
79
+ sh "gem uninstall -aIx dpl"
80
+ end
81
+
69
82
  desc "Release all gems"
70
83
  task :release do
71
84
  confirm
@@ -95,6 +108,8 @@ end
95
108
  task :clean do
96
109
  rm_rf "stubs"
97
110
  rm_rf "vendor"
111
+ rm_rf "dpl-*.gem"
112
+ Rake::Task[:uninstall].invoke
98
113
  end
99
114
 
100
115
  desc "Run dpl specs"
@@ -109,7 +124,7 @@ file "dpl-#{gem_version}.gem" do
109
124
  end
110
125
 
111
126
  desc "Install dpl gem"
112
- task :install => "dpl-#{gem_version}.gem" do
127
+ file dpl_bin => "dpl-#{gem_version}.gem" do
113
128
  logger.info green("Installing dpl gem")
114
129
  ruby "-S gem install dpl-#{gem_version}.gem"
115
130
  end
@@ -123,7 +138,7 @@ providers.each do |provider|
123
138
  end
124
139
 
125
140
  desc %Q(Run dpl-#{provider} specs)
126
- task "spec-#{provider}" => [:install, "Gemfile-#{provider}"] do
141
+ task "spec-#{provider}" => [Rake::FileTask[dpl_bin], "Gemfile-#{provider}"] do
127
142
  sh "rm -f $HOME/.npmrc"
128
143
  logger.info green("Running `bundle install` for #{provider}")
129
144
  sh 'bash', '-cl', "bundle install --gemfile=Gemfile-#{provider} --path=vendor/cache/dpl-#{provider} --retry=3 --binstubs=stubs"
@@ -138,13 +153,19 @@ providers.each do |provider|
138
153
  end
139
154
 
140
155
  desc "Test dpl-#{provider} gem"
141
- task "check-#{provider}" => [:install, "dpl-#{provider}-#{gem_version}.gem"] do
156
+ task "check-#{provider}" => [Rake::FileTask[dpl_bin], "dpl-#{provider}-#{gem_version}.gem"] do
142
157
  logger.info green("Installing dpl-#{provider} gem")
143
158
  sh "gem install --no-post-install-message dpl-#{provider}-#{gem_version}.gem"
144
159
  logger.info green("Testing dpl-#{provider} loads correctly")
145
160
  ruby "-S dpl --provider=#{provider} --skip-cleanup=true --no-deploy"
146
161
  end
147
162
 
163
+ desc "Uninstall dpl-#{provider}"
164
+ task "uninstall-#{provider}" do
165
+ logger.info red("Uninstalling dpl-#{provider}")
166
+ sh "gem uninstall -aIx dpl-#{provider}"
167
+ end
168
+
148
169
  desc "Release dpl-#{provider} gem"
149
170
  task "release-#{provider}" => "dpl-#{provider}-#{gem_version}.gem" do
150
171
  confirm
@@ -1,3 +1,3 @@
1
1
  require './gemspec_helper'
2
2
 
3
- gemspec_for 'puppet_forge', [['puppet'], ['puppet-blacksmith']]
3
+ gemspec_for 'puppet_forge', [['puppet'], ['puppet-blacksmith'], ['json_pure']]
@@ -1,3 +1,3 @@
1
1
  module DPL
2
- VERSION = '1.9.1.travis.2711.5'
2
+ VERSION = '1.9.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1.travis.2711.5
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-10 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -191,13 +191,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
191
  version: '2.2'
192
192
  required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
- - - ">"
194
+ - - ">="
195
195
  - !ruby/object:Gem::Version
196
- version: 1.3.1
196
+ version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.7.6
199
+ rubygems_version: 2.6.13
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: deploy tool
203
- test_files: []
203
+ test_files:
204
+ - spec/cli_spec.rb
205
+ - spec/provider_spec.rb
206
+ - spec/spec_helper.rb