mla_active_duty_status 0.1.6 → 0.1.7

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: a456b36b718da80c5f86c31347a7efa36d81f25a
4
- data.tar.gz: 0e3ad0d164f25ff3c298f1e6372ac32c7f2e70e6
3
+ metadata.gz: 318d1eebf06af9899e50265cc0fb3ac8ce37c70f
4
+ data.tar.gz: fcabe4b0c28aa22e6d224eab89b991456bcf49a3
5
5
  SHA512:
6
- metadata.gz: 5624225561739973aa0de75e4842ed1dcfacac3c6c4b7174755ccd103e722b653c692f0edbda711012af6ad1457c57e4ccbe6a55d81710e003df6349d0d568a6
7
- data.tar.gz: 6c7fe16c6ff06011d17cb776d11312b73d6aac1cfb1ded4c7e5b662dedd45a821e89dcf37e2549f56f44f63e712bdd913e42024359e8b816bf0ea983a57cbe3b
6
+ metadata.gz: 75eee16ff42e887797741e788fdb4150454631c6cff5d57052ada963b3361c268d2ab20af8aecfa8a1fefbd44f3aa22323c2213015fec3a2b3e845678e906927
7
+ data.tar.gz: 09f729b67bf3fe0dbc9643a0f0b86fa3bc2a449c4291ac63b1807f77dd7a8bbe59fec8e3fbe34d1da9bd84f8b32e2734d1e2636a074bc32c99a0a79cc87579c0
data/README.md CHANGED
@@ -100,7 +100,7 @@ but you will most likely need to download the cert file to your production serve
100
100
  MlaActiveDutyStatus.configuration.ca_path = '/path/to/my/ca_cert.crt'
101
101
  ```
102
102
 
103
- By default, this gem will use this certificates path: `"#{ENV['JAVA_HOME']}/jre/lib/security/cacerts"`
103
+ By default, this gem will use the java keystore on jruby.
104
104
 
105
105
  It is highly recommended that you do NOT disable certificate verification, but if you need to debug a problem
106
106
  then set the configuration like this:
@@ -18,9 +18,10 @@ module MlaActiveDutyStatus
18
18
  if MlaActiveDutyStatus.configuration.ssl_verify
19
19
  browser.agent.http.verify_mode = OpenSSL::SSL::VERIFY_PEER
20
20
  cert_store = OpenSSL::X509::Store.new
21
- ca_path = File.expand_path(MlaActiveDutyStatus.configuration.ca_path)
22
- cert_store.add_file ca_path
23
- browser.agent.http.cert_store = cert_store
21
+ if ca_path = File.expand_path(MlaActiveDutyStatus.configuration.ca_path)
22
+ cert_store.add_file ca_path
23
+ browser.agent.http.cert_store = cert_store
24
+ end
24
25
  else
25
26
  browser.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE
26
27
  end
@@ -22,7 +22,7 @@ module MlaActiveDutyStatus
22
22
  @mla_host = 'mla.dmdc.osd.mil'
23
23
  @mla_path = '/mla/single_record.xhtml'
24
24
  @ssl_verify = true
25
- @ca_path = "#{ENV['JAVA_HOME']}/jre/lib/security/cacerts"
25
+ @ca_path = nil
26
26
  end
27
27
 
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module MlaActiveDutyStatus
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mla_active_duty_status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - jimjames99
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-17 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler