dpl 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93221bbb43d418a1d0813b28be7fe51b9831d1d1
4
- data.tar.gz: 7fc3ba48af19a3915628e5b8b85b4094205ab7d4
3
+ metadata.gz: 93ce71779fe4b69f95cb737be55a02615d1ea8aa
4
+ data.tar.gz: 18e56ae59cfd47a3dbabefeeede24d2446f5929e
5
5
  SHA512:
6
- metadata.gz: f349cd28f7099db9283274c761006b35278efda7db13494acdc191692ce7d61f1f2eca6dca00d52fa0c9d24cb3f2a33762c56a5632440da86ac6f7abd12c2827
7
- data.tar.gz: a4fe2772182e3d1e45d8c282bafa2b31adf44ca1ad897bfe63fbcdefcd2008e8f749a8d7e360fe0ac674f4a83f2e852ea2290fefab05c319f626cd5e1e1f5676
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
- puts
32
- raise Error, 'deploy failed' unless response.status == 200
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
- @slug_url ||= begin
37
- ::Anvil.headers["X-Heroku-User"] = user
38
- ::Anvil.headers["X-Heroku-App"] = option(:app)
39
- ::Anvil::Engine.build "."
40
- end
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
@@ -1,3 +1,3 @@
1
1
  module DPL
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -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(nil, :app => 'example', :key_name => 'key', :api_key => "foo", :strategy => "git")
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
@@ -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(nil, :app => 'example', :key_name => 'foo', :run => ["foo", "bar"]) }
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(nil, :provider => "example") .should be_an(example_provider) }
13
- example { described_class.new(nil, :provider => "Example") .should be_an(example_provider) }
14
- example { described_class.new(nil, :provider => "exa_mple").should be_an(example_provider) }
15
- example { described_class.new(nil, :provider => "exa-mple").should be_an(example_provider) }
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
@@ -6,3 +6,9 @@ SimpleCov.start do
6
6
  add_filter "/spec/"
7
7
  add_group 'Library', 'lib'
8
8
  end
9
+
10
+ class DummyContext
11
+ def fold(message)
12
+ yield
13
+ end
14
+ end
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.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: '0'
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: '0'
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