dpl-firebase 1.10.1.travis.2932.6 → 1.10.1.travis.2947.6

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
2
  SHA256:
3
- metadata.gz: 88d95432b6f8401f8b2ecc532f1a1781b630ff253797943ca03d21eb89820f1e
4
- data.tar.gz: 31f58bdea306a0b767feab846f65677c7563dcf68d49e7374599c51ff2b817ab
3
+ metadata.gz: e3032c60f1b02211f0e79e2cb6370bd2889bc1d78e6f9aa8e164284b4f827b27
4
+ data.tar.gz: d31bea446df9351a75cf8eaa9b2644c795bf6595901e3cf0947ddcbdf90d853e
5
5
  SHA512:
6
- metadata.gz: 01f1952dc370e18e3d8909469920cd353c0b70697d6676730aa94f98c1c96c9fedd7947ec2cef0854de8d7177e3d307427793646c1d5dc628e08c132fbd9824a
7
- data.tar.gz: cab758d2aeaf9022f6e4be1dd02965e936f3c9c6c731b0129779568a1a6b554dca42820a45f8d7e1a90c29a0742e3686758966a043a5288b062d89959e435ec1
6
+ metadata.gz: 25ab585f2d2a43d32d3dcbec917035c7ebd6c97d2c032c1009077124137cc323b9ad5be76e64e02b82fd0938b5b1eecc84279f9c956f590a884e8d23283cf568
7
+ data.tar.gz: a36f62e2442ef0efb1b86e2d4ed2f05001bbec2748fdd9b1371bf74f7ea157823f36d0530682cc360dbda192406e06fd58685eea4be4bf3d1038a24b70dc8344
@@ -20,7 +20,7 @@ module DPL
20
20
  command << " --project #{options[:project]}" if options[:project]
21
21
  command << " --message '#{options[:message]}'" if options[:message]
22
22
  command << " --token '#{options[:token]}'" if options[:token]
23
- context.shell command
23
+ context.shell command or raise Error, "Firebase deployment failed"
24
24
  end
25
25
  end
26
26
  end
@@ -22,19 +22,26 @@ describe DPL::Provider::Firebase do
22
22
  describe "#push_app" do
23
23
  it 'should include the project specified' do
24
24
  provider.options.update(:project => 'myapp-dev')
25
- expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --project myapp-dev --token 'abc123'")
25
+ expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --project myapp-dev --token 'abc123'").and_return(true)
26
26
  provider.push_app
27
27
  end
28
28
 
29
29
  it 'should include the message specified' do
30
30
  provider.options.update(:message => 'test message')
31
- expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --message 'test message' --token 'abc123'")
31
+ expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --message 'test message' --token 'abc123'").and_return(true)
32
32
  provider.push_app
33
33
  end
34
34
 
35
35
  it 'should default to no project override' do
36
- expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --token 'abc123'")
36
+ expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --token 'abc123'").and_return(true)
37
37
  provider.push_app
38
38
  end
39
+
40
+ it 'should report an error when deployment fails' do
41
+ expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --token 'abc123'").and_return(false)
42
+ expect {
43
+ provider.push_app
44
+ }.to raise_error(DPL::Error)
45
+ end
39
46
  end
40
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl-firebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1.travis.2932.6
4
+ version: 1.10.1.travis.2947.6
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-08-17 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dpl
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.10.1.travis.2932.6
19
+ version: 1.10.1.travis.2947.6
20
20
  type: :runtime
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: 1.10.1.travis.2932.6
26
+ version: 1.10.1.travis.2947.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement