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 +4 -4
- data/lib/wss_agent/specifications.rb +6 -1
- data/lib/wss_agent/version.rb +1 -1
- data/spec/wss_agent/specifications_spec.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1df6cf145c4f7cf522c6f701237af48b686e252260a0542644464c0249e1234
|
4
|
+
data.tar.gz: dbf324c2d02b3f7b168a15c30d06bb29ef25fb5eb06376ffc21f8f21312a87e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
)
|
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 = {}
|
data/lib/wss_agent/version.rb
CHANGED
@@ -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(
|
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(:
|
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.
|
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-
|
11
|
+
date: 2018-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|