wss_agent 18.5.2 → 18.6.2

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: 6a168842e0686c32bc7165a9175e5be05470a161e88ab99f9adb37e80c60c2e9
4
- data.tar.gz: 4d6b01926bc21b67eb0604aa4700398ca5de190c91434ebfee903aeda10a1bfd
3
+ metadata.gz: b1df6cf145c4f7cf522c6f701237af48b686e252260a0542644464c0249e1234
4
+ data.tar.gz: dbf324c2d02b3f7b168a15c30d06bb29ef25fb5eb06376ffc21f8f21312a87e6
5
5
  SHA512:
6
- metadata.gz: e1957d887f52a2c9bcc867f3d1ae5954fa00271f89f7184ad00ffc4a8d4aa981108f27bc4506d0ddb549d1a808683c0b99dec5a53051166789ac583be746658e
7
- data.tar.gz: 39ff2e97b3d0858d3c05431bee93a18bc0eb7471884032fe5acbd240368c44dd714759d4e91e5dbaa496cd74c9afdbdf00b725f985b8907a900583bfe01107e9
6
+ metadata.gz: 1db48d3fa53866c82e36afd95dd8df19b733f0d7a7d391efdefd89f931b82f36c29c4a8d64314e35b5051691b6f7de1bea8ab3ef8e17085990eb2d471bfef712
7
+ data.tar.gz: f75f80961966e58b047a41ebe8a242b7feb65fef216be54e5f9edcbf45a027fdbe853b365f7bc816b4c42f83d76550ba5a29aac7da1d7a01a10441c2905ce175
@@ -14,7 +14,12 @@ module WssAgent
14
14
  Bundler.default_gemfile,
15
15
  Bundler.default_lockfile,
16
16
  false
17
- ).specs.to_a
17
+ )
18
+ list_gems = list_gems.resolve.materialize(
19
+ list_gems.send(
20
+ Bundler.settings[:cache_all_platforms] ? :dependencies : :requested_dependencies
21
+ )
22
+ )
18
23
  if options['all']
19
24
  # get all gems
20
25
  list = {}
@@ -1,4 +1,4 @@
1
1
  module WssAgent
2
- VERSION = '18.5.2'.freeze
2
+ VERSION = '18.6.2'.freeze
3
3
  NAME = 'wss_agent'.freeze
4
4
  end
@@ -136,7 +136,10 @@ describe WssAgent::Specifications, vcr: true do
136
136
  it 'should build list gems'do
137
137
  allow_any_instance_of(WssAgent::GemSha1).to receive(:sha1).and_return("85b19b68a33f1dc0e147ff08bad66f7cfc52de36")
138
138
 
139
- load_specs = double(specs: Bundler::SpecSet.new([Gem::Specification.new('bacon', '1.2.0')]))
139
+ load_specs = double(
140
+ resolve: Bundler::SpecSet.new([Gem::Specification.new('bacon', '1.2.0')]),
141
+ requested_dependencies: [Bundler::Dependency.new("bacon", "1.2.0")]
142
+ )
140
143
  allow(Bundler::Definition).to receive(:build).and_return(load_specs)
141
144
  expect(WssAgent::Specifications.list).to eq([{"groupId"=>"bacon",
142
145
  "artifactId"=>"bacon-1.2.0.gem",
@@ -149,8 +152,9 @@ describe WssAgent::Specifications, vcr: true do
149
152
 
150
153
  describe '.specs' do
151
154
  it 'load bundle spec' do
152
- specs_double = double
153
- expect(specs_double).to receive(:specs).and_return([])
155
+ specs_double = double()
156
+ expect(specs_double).to receive(:resolve).and_return(Bundler::SpecSet.new([]))
157
+ expect(specs_double).to receive(:requested_dependencies).and_return([])
154
158
  expect(Bundler::Definition).to receive(:build).and_return(specs_double)
155
159
  WssAgent::Specifications.specs
156
160
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wss_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.5.2
4
+ version: 18.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Pechnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-10 00:00:00.000000000 Z
11
+ date: 2018-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler