dpl-rubygems 1.9.1.travis.2592.5 → 1.9.1.travis.2603.5

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: 6d58a4f073b00ffc4307065720458b5d7ca6d6f995664be60afaf48511f28aaf
4
- data.tar.gz: e1de3d602983ab8ec669f4a84a17278edc37cc73f4129fc970020d375285f35c
3
+ metadata.gz: f553dbe434b6a2b6ee99d361184293fe7226c1acf4e0b8148be5e233e1e278cf
4
+ data.tar.gz: e46c17968d39e79979a250d7ab05ca9d69f3f035011d1f95a10f04f6763efa4d
5
5
  SHA512:
6
- metadata.gz: ab7384bc87a255dfd5c2310d785a88bd2e46875ca411e6e50e87bcc31d88edda8a16299c7f023c9a23f949f24c743f17b032f57df12460f0458a1c314c366c58
7
- data.tar.gz: 61a7c6fa0852e1602458ca7566239fda971ce9ceb3f94d4c90989a1830253b3a859f0c49bbb9752989fd8b3e6ed27b2a24c17e3f815027a829a454f356187858
6
+ metadata.gz: 1c4feccf9fb0efe0a625da1bcd4b19a96b384a7a39751cd2684c0c2b7f53ed78dd5a3b03708904cc27c689e1b836550c245a1156f11e2d4eb7a79d92d990136b
7
+ data.tar.gz: e834aa1ee83e4a7ce3b141290522041b0cd59d0bd4766892067d8fd97d084af57f2a9b5dec54aab38a0d53d6863f336cd4fee78e1b0d840966c0a566875b341e
@@ -50,31 +50,38 @@ describe DPL::Provider::RubyGems do
50
50
 
51
51
  example "with options[:app]" do
52
52
  provider.options.update(:app => 'example')
53
- expect(provider.context).to receive(:shell).with("gem build example.gemspec")
53
+ expect(provider.context).to receive(:shell).with("for f in example.gemspec; do gem build $f; done")
54
54
  expect(Dir).to receive(:glob).with('example-*.gem').and_yield('File')
55
55
  expect(::Gems).to receive(:push).with('Test file').and_return('Yes!')
56
56
  end
57
57
 
58
58
  example "with options[:gem]" do
59
59
  provider.options.update(:gem => 'example-gem')
60
- expect(provider.context).to receive(:shell).with("gem build example-gem.gemspec")
60
+ expect(provider.context).to receive(:shell).with("for f in example-gem.gemspec; do gem build $f; done")
61
61
  expect(Dir).to receive(:glob).with('example-gem-*.gem').and_yield('File')
62
62
  expect(::Gems).to receive(:push).with('Test file').and_return('Yes!')
63
63
  end
64
64
 
65
65
  example "with options[:gemspec]" do
66
66
  provider.options.update(:gemspec => 'blah.gemspec')
67
- expect(provider.context).to receive(:shell).with("gem build blah.gemspec")
67
+ expect(provider.context).to receive(:shell).with("for f in blah.gemspec; do gem build $f; done")
68
68
  expect(Dir).to receive(:glob).with('blah-*.gem').and_yield('File')
69
69
  expect(::Gems).to receive(:push).with('Test file').and_return('Yes!')
70
70
  end
71
71
 
72
72
  example "with options[:host]" do
73
73
  provider.options.update(:host => 'http://example.com')
74
- expect(provider.context).to receive(:shell).with("gem build example.gemspec")
74
+ expect(provider.context).to receive(:shell).with("for f in example.gemspec; do gem build $f; done")
75
75
  expect(Dir).to receive(:glob).with('example-*.gem').and_yield('File')
76
76
  expect(::Gems).to receive(:push).with('Test file', host='http://example.com').and_return('Yes!')
77
77
  end
78
+
79
+ example "with options[:gemspec_glob]" do
80
+ provider.options.update(:gemspec_glob => 'example-*.gemspec')
81
+ expect(provider.context).to receive(:shell).with("for f in example-*.gemspec; do gem build $f; done")
82
+ expect(Dir).to receive(:glob).with('example-*.gem').and_yield('File')
83
+ expect(::Gems).to receive(:push).with('Test file').and_return('Yes!')
84
+ end
78
85
  end
79
86
 
80
87
  describe "#setup_gem" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl-rubygems
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1.travis.2592.5
4
+ version: 1.9.1.travis.2603.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.9.1.travis.2592.5
19
+ version: 1.9.1.travis.2603.5
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.9.1.travis.2592.5
26
+ version: 1.9.1.travis.2603.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gems
29
29
  requirement: !ruby/object:Gem::Requirement