wss_agent 0.0.22 → 0.0.23

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: 553cbb4078181b71510d97b87a24bb5457c7603e
4
- data.tar.gz: d22f452a74083b7d73ec765f0eaa9ccacdd347aa
3
+ metadata.gz: 30a45b25697365d6784786aa0822264980c096dc
4
+ data.tar.gz: f18c9d67fb7a17fc4cdd77a8d46d86ae8c97fed6
5
5
  SHA512:
6
- metadata.gz: 3ecc3bf2097bf4a806d75a93d91e37de9195951a640797530cca4197f48243e8378c43bb4fd866546cfb20c04b8f2c779fed30df83d8aa0d510cff72b52fe31f
7
- data.tar.gz: faaacda910ab27219ee65e385ec238dc255811a5fba4ac1bf37a76333444056ea37ab283d196f6f1eb2f46cc565e11cb56c723fc8cea9b396acbc43280566297
6
+ metadata.gz: ee7735d701b55b9893ea5e5041812ff3d833191a2c01211d2243f32f340096b93244e8dca145ce54e5f55f4577eed63db42621683652ae447bfbfbca360b49dd
7
+ data.tar.gz: dfa4e269e4c1e50dfaa115ba8ff01546fa496e1c7ec09b813b8bb3c9a0bfe42b730a40f598e74246a38a5b022a291bbc890d68b766f3206b835a919f48a08388
@@ -55,7 +55,7 @@ module WssAgent
55
55
  )
56
56
  if policy_results.success? && policy_results.policy_violations?
57
57
  puts policy_results.message
58
- return false
58
+ return Struct.new(:status) { def success?; status; end; }.new(false)
59
59
  end
60
60
  end
61
61
 
@@ -1,4 +1,4 @@
1
1
  module WssAgent
2
- VERSION = '0.0.22'.freeze
2
+ VERSION = '0.0.23'.freeze
3
3
  NAME = 'wss_agent'.freeze
4
4
  end
@@ -61,7 +61,8 @@ describe WssAgent::Specifications, vcr: true do
61
61
  allow_any_instance_of(WssAgent::Client).to receive(:update)
62
62
  .and_return(success_response)
63
63
  allow(WssAgent::Specifications).to receive(:list).and_return(gem_list)
64
- expect(WssAgent::Specifications.update).to be true
64
+ res = WssAgent::Specifications.update
65
+ expect(res.success?).to be true
65
66
  end
66
67
  end
67
68
 
@@ -77,8 +78,8 @@ describe WssAgent::Specifications, vcr: true do
77
78
  allow(policy_success_response).to receive(:policy_violations?).and_return(true)
78
79
  expect(wss_client).to receive(:check_policies).and_return(policy_success_response)
79
80
  expect(wss_client).to_not receive(:update)
80
-
81
- expect(WssAgent::Specifications.update).to be false
81
+ res = WssAgent::Specifications.update
82
+ expect(res.success?).to be false
82
83
  end
83
84
  end
84
85
 
@@ -89,7 +90,8 @@ describe WssAgent::Specifications, vcr: true do
89
90
  expect(wss_client).to receive(:check_policies).and_return(policy_success_response)
90
91
  expect(wss_client).to receive(:update).and_return(success_response)
91
92
 
92
- expect(WssAgent::Specifications.update).to be true
93
+ res = WssAgent::Specifications.update
94
+ expect(res.success?).to be true
93
95
  end
94
96
  end
95
97
  end
@@ -106,7 +108,8 @@ describe WssAgent::Specifications, vcr: true do
106
108
  expect(wss_client).to_not receive(:check_policies)
107
109
  expect(wss_client).to receive(:update).and_return(success_response)
108
110
 
109
- expect(WssAgent::Specifications.update).to be true
111
+ res = WssAgent::Specifications.update
112
+ expect(res.success?).to be true
110
113
  end
111
114
  end
112
115
  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: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Pechnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-03 00:00:00.000000000 Z
11
+ date: 2016-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler