dpl 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +22 -0
- data/dpl.gemspec +1 -1
- data/lib/dpl/provider/heroku/anvil.rb +11 -7
- data/lib/dpl/version.rb +1 -1
- data/spec/provider/heroku_spec.rb +1 -1
- data/spec/provider_spec.rb +5 -5
- data/spec/spec_helper.rb +6 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93ce71779fe4b69f95cb737be55a02615d1ea8aa
|
4
|
+
data.tar.gz: 18e56ae59cfd47a3dbabefeeede24d2446f5929e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 415890241d197518bbe3f16947b12df05d299fe563177cbab2f2917554bfb8dc6161d1bc8e2e14549b7018c32c4e762444f438d476a715735130e7e092d0b5ec
|
7
|
+
data.tar.gz: 9eec8192b631ed8ece10680ba7de80eaaee5fa4ede5f09bff83618eaf37274d8549f1ce66c00e5b07afa23df33ce46e1a7b319d2e281d27a93ad5804eb1f0b0f
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Konstantin Haase
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
4
|
+
obtaining a copy of this software and associated documentation
|
5
|
+
files (the "Software"), to deal in the Software without
|
6
|
+
restriction, including without limitation the rights to use,
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the
|
9
|
+
Software is furnished to do so, subject to the following
|
10
|
+
conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be
|
13
|
+
included in all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
data/dpl.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_path = 'lib'
|
17
17
|
s.required_ruby_version = '>= 1.8.7'
|
18
18
|
|
19
|
-
s.add_development_dependency 'rspec'
|
19
|
+
s.add_development_dependency 'rspec', '~> 2.13.0'
|
20
20
|
s.add_development_dependency 'rake'
|
21
21
|
s.add_development_dependency 'simplecov'
|
22
22
|
end
|
@@ -28,16 +28,20 @@ module DPL
|
|
28
28
|
print '.'
|
29
29
|
end
|
30
30
|
|
31
|
-
|
32
|
-
|
31
|
+
if response.status.between? 200, 299
|
32
|
+
puts " success!"
|
33
|
+
else
|
34
|
+
raise Error, "deploy failed, anvil response: #{response.body}"
|
35
|
+
end
|
33
36
|
end
|
34
37
|
|
35
38
|
def slug_url
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
39
|
+
"https://api.anvilworks.org/slugs/4da48704-7495-416f-981a-83890a1c7e55.tgz"
|
40
|
+
# @slug_url ||= begin
|
41
|
+
# ::Anvil.headers["X-Heroku-User"] = user
|
42
|
+
# ::Anvil.headers["X-Heroku-App"] = option(:app)
|
43
|
+
# ::Anvil::Engine.build "."
|
44
|
+
# end
|
41
45
|
end
|
42
46
|
|
43
47
|
def release_url
|
data/lib/dpl/version.rb
CHANGED
@@ -4,7 +4,7 @@ require 'dpl/provider/heroku'
|
|
4
4
|
|
5
5
|
describe DPL::Provider::Heroku do
|
6
6
|
subject :provider do
|
7
|
-
described_class.new(
|
7
|
+
described_class.new(DummyContext.new, :app => 'example', :key_name => 'key', :api_key => "foo", :strategy => "git")
|
8
8
|
end
|
9
9
|
|
10
10
|
describe :api do
|
data/spec/provider_spec.rb
CHANGED
@@ -3,16 +3,16 @@ require 'dpl/provider'
|
|
3
3
|
|
4
4
|
describe DPL::Provider do
|
5
5
|
let(:example_provider) { Class.new(described_class)}
|
6
|
-
subject(:provider) { example_provider.new(
|
6
|
+
subject(:provider) { example_provider.new(DummyContext.new, :app => 'example', :key_name => 'foo', :run => ["foo", "bar"]) }
|
7
7
|
|
8
8
|
before { described_class.const_set(:Example, example_provider) }
|
9
9
|
after { described_class.send(:remove_const, :Example) }
|
10
10
|
|
11
11
|
describe :new do
|
12
|
-
example { described_class.new(
|
13
|
-
example { described_class.new(
|
14
|
-
example { described_class.new(
|
15
|
-
example { described_class.new(
|
12
|
+
example { described_class.new(DummyContext.new, :provider => "example") .should be_an(example_provider) }
|
13
|
+
example { described_class.new(DummyContext.new, :provider => "Example") .should be_an(example_provider) }
|
14
|
+
example { described_class.new(DummyContext.new, :provider => "exa_mple").should be_an(example_provider) }
|
15
|
+
example { described_class.new(DummyContext.new, :provider => "exa-mple").should be_an(example_provider) }
|
16
16
|
end
|
17
17
|
|
18
18
|
describe :requires do
|
data/spec/spec_helper.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.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -14,16 +14,16 @@ dependencies:
|
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.13.0
|
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
|
-
version:
|
26
|
+
version: 2.13.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- .rspec
|
64
64
|
- .travis.yml
|
65
65
|
- Gemfile
|
66
|
+
- LICENSE
|
66
67
|
- README.md
|
67
68
|
- Rakefile
|
68
69
|
- bin/dpl
|