tclink 4.2.1 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/ext/config.h +1 -1
  3. data/ext/extconf.rb +13 -10
  4. data/tclink.gemspec +1 -1
  5. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 003859dbbabc0a0369896e0079ed86d5818222d9
4
- data.tar.gz: 8cc24d48fb5ea02a8bcd0a952a4803fdee4ad148
3
+ metadata.gz: 7eff8ec974d9d8d2cb7cc719f8c6f947b89044e1
4
+ data.tar.gz: 26f96ae032b6a37d0a0051071bbe90ffc4f2e530
5
5
  SHA512:
6
- metadata.gz: e1733a17108cb54771bfb0e32a4cdfeb0264197323f848602629c32c096f0f10d975a18a9cedf4928cd01aa3967bb4280ab6b0ed92bc40015c7c55070fd64326
7
- data.tar.gz: fee90d269c23f72f763a9e9b2f13107e0a891455133f32a4e6e581a152937eeaab2fcf83d4c008555331f91d343470b0e1fd5ff449eb0f41eb5ba1ebb865f0e6
6
+ metadata.gz: 81a8ea160f69240e412a8164e34e20d4478c6ec240b237852606f12017fb031354996446c8f646fd5541e287bc0527ddf0dd6b519284cd6550e3590a96685a43
7
+ data.tar.gz: f139123b7172c5e37d52d675420ce1abd75ac6fdce60a2751b1a80bf87a78932a68bb2bdcfb20204a1573824c4e4e9b1f51340e31089e120b0e52a7e2de7ea2d
@@ -1,2 +1,2 @@
1
- #define TCLINK_VERSION "4.2.0-Ruby-Darwin-x86_64"
1
+ #define TCLINK_VERSION "4.2.2-Ruby-Darwin-x86_64"
2
2
  #define TCLINK_CA_PATH "/usr/local/etc/openssl/cert.pem"
@@ -10,19 +10,22 @@ File.delete 'config.h' if File.exist? 'config.h'
10
10
 
11
11
  ssldir = (`openssl version -d`.chomp.split(/:/)[1]).gsub(' ', '').gsub(/"/, '')
12
12
  certdir = "#{ssldir}/certs"
13
- certpath = nil
14
-
15
- filenames = %w(ca-bundle.crt ca-certificates.crt ca-bundle.trust.crt tls-ca-bundle.pem cert.pem)
16
- dirs = [ssldir, certdir]
17
-
18
- filenames.each do |name|
19
- dirs.each do |dir|
20
- path = "#{dir}/#{name}"
21
- if File.exist?(path) & certpath.nil?
22
- certpath = path
13
+ certpath = ENV['SSL_CERT_PATH']
14
+
15
+ if certpath.nil?
16
+ filenames = %w(ca-bundle.crt ca-certificates.crt ca-bundle.trust.crt tls-ca-bundle.pem cert.pem)
17
+ dirs = [ssldir, certdir]
18
+
19
+ filenames.each do |name|
20
+ dirs.each do |dir|
21
+ path = "#{dir}/#{name}"
22
+ if File.exist?(path) & certpath.nil?
23
+ certpath = path
24
+ end
23
25
  end
24
26
  end
25
27
  end
28
+ puts "certpath=#{certpath}"
26
29
 
27
30
  # determine the platform name
28
31
  uname=`uname -sm | tr ' ' -`.chomp
@@ -3,7 +3,7 @@ require 'rubygems' unless defined?(Gem)
3
3
  spec=Gem::Specification.new do |s|
4
4
  s.name = 'tclink'
5
5
  #note: extconf takes version out of this file
6
- s.version = '4.2.1'
6
+ s.version = '4.2.2'
7
7
  s.summary = "TCLink Trust Commerce link"
8
8
  s.description = "Trust Commerce connectivity layer"
9
9
  s.homepage = "https://github.com/peejaybee/TCLink"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tclink
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Puetz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-02 00:00:00.000000000 Z
11
+ date: 2016-11-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Trust Commerce connectivity layer
14
14
  email: developer@trustcommerce.com
@@ -56,4 +56,3 @@ signing_key:
56
56
  specification_version: 4
57
57
  summary: TCLink Trust Commerce link
58
58
  test_files: []
59
- has_rdoc: