smart_proxy_abrt 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 67aec33650621602a83b0f87c061a67b2b2ff768
4
- data.tar.gz: decded2331b8c8ee3eb6338eec0f043e39b80240
3
+ metadata.gz: b4ebc27d34f0c54d710106814d4073249e0e39e6
4
+ data.tar.gz: 528c8ddc06b0a5b459ca916fdd48cb2cc168284c
5
5
  SHA512:
6
- metadata.gz: 4e876bbe34ad759394aeb696b1365b93227bfa19909fb40bf44f32509d6ee5055ea585b71dac7b29912758d0bb57a6082e5319f17aaf8bc643a7ea924b7882f6
7
- data.tar.gz: 7bea9399b742136347b71520c6023aca1cdb0a0b86d2e815163be3c70d6826d28a4d3836ba749d8a9e937a8d2eb88c347d699472cfaa6dd7dbf655a0539223e0
6
+ metadata.gz: 86d994cc3e406bd85a3a481f27c0f097dc785168a32a68aa57a2ab579f27359fc7b0d1590eb371f053b8143eeb3aacfc3e04f13dcbafb8da7788a961e4e95112
7
+ data.tar.gz: ab61d26f1fde83361a9bdcf345b4bcb668c99fe54d3c41ef0872b2cb32f042fea5514e96b3bb4133f1eb26d6302b9b78182370890a55622a4761207cb427f35f
@@ -53,8 +53,12 @@ module AbrtProxy
53
53
  uri = URI.parse(AbrtProxy::Plugin.settings.server_url.to_s)
54
54
  http = Net::HTTP.new(uri.host, uri.port)
55
55
  http.use_ssl = uri.scheme == 'https'
56
- http.verify_mode = AbrtProxy::Plugin.settings.server_ssl_noverify ? OpenSSL::SSL::VERIFY_NONE
57
- : OpenSSL::SSL::VERIFY_PEER
56
+ http.verify_mode =
57
+ if AbrtProxy::Plugin.settings.server_ssl_noverify
58
+ OpenSSL::SSL::VERIFY_NONE
59
+ else
60
+ OpenSSL::SSL::VERIFY_PEER
61
+ end
58
62
 
59
63
  if AbrtProxy::Plugin.settings.server_ssl_cert && !AbrtProxy::Plugin.settings.server_ssl_cert.to_s.empty? \
60
64
  && AbrtProxy::Plugin.settings.server_ssl_key && !AbrtProxy::Plugin.settings.server_ssl_key.to_s.empty?
@@ -170,7 +174,7 @@ module AbrtProxy
170
174
  end
171
175
 
172
176
  # rename it
173
- final_fname = unique_filename ("ureport-" + DateTime.now.iso8601 + "-")
177
+ final_fname = unique_filename("ureport-" + DateTime.now.iso8601 + "-")
174
178
  File.link temp_fname, final_fname
175
179
  File.unlink temp_fname
176
180
  end
@@ -1,3 +1,3 @@
1
1
  module AbrtProxy
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_abrt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Milata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-29 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: satyr
@@ -33,22 +33,22 @@ extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
35
  - bin/smart-proxy-abrt-send
36
- - lib/smart_proxy_abrt/abrt_api.rb
37
36
  - lib/smart_proxy_abrt/abrt_plugin.rb
38
- - lib/smart_proxy_abrt/abrt_lib.rb
39
37
  - lib/smart_proxy_abrt/http_config.ru
38
+ - lib/smart_proxy_abrt/abrt_lib.rb
40
39
  - lib/smart_proxy_abrt/abrt_version.rb
40
+ - lib/smart_proxy_abrt/abrt_api.rb
41
41
  - lib/smart_proxy_abrt.rb
42
42
  - settings.d/abrt.yml.example
43
43
  - bundler.d/abrt.rb
44
- - test/test_helper.rb
45
44
  - test/fixtures/ureport-ondisk-host1-02
46
45
  - test/fixtures/ureport-ondisk-host2-01
46
+ - test/fixtures/ureport-ondisk-host1-01
47
47
  - test/fixtures/ureport1.json
48
48
  - test/fixtures/ureport-ondisk-host1-03
49
- - test/fixtures/ureport-ondisk-host1-01
50
- - test/abrt_test.rb
49
+ - test/test_helper.rb
51
50
  - test/abrt_api_test.rb
51
+ - test/abrt_test.rb
52
52
  - extra/foreman-proxy-abrt-send.cron
53
53
  - README
54
54
  - LICENSE