figo 1.3.3 → 1.4.0

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: 522d66983f2ecf3c65e75386ef0749f3bbcb2919
4
- data.tar.gz: 1db05284c5e87715a096355f07d61704312d194d
3
+ metadata.gz: 964feb9bc0d957cec8fbf503be8481bd134a573a
4
+ data.tar.gz: c4f643cbae56b7c0318742c6f235982aad67c4c3
5
5
  SHA512:
6
- metadata.gz: 73d0b043a1b5eb4337bc51a0e8f5c740da13954fe1063135b65791f2b8b2532d2d2f5314c339c81a6455dda7ef89d01a9dd8fe5b413ebcfe4d8e81153a56ca4c
7
- data.tar.gz: 7cd01b360f8cfad374e8558fa5ddfb9ea41a939b73fb6d36f8cc10b9ff59dbb717d2b2b2f206074271107aea54e76274bedccd60ce216598e4ef3b11fa46dfd2
6
+ metadata.gz: 2259aa184af58b52617224fab08f3a2229ae10b7a7a4e640c0bdfc67582be8aa5c6512ceedfff0b658e600a708a7dc96d2a817cb8853705ab90da4f7cdc27705
7
+ data.tar.gz: bc14a69b249f2ccb41e4b461676abd8e716175765a408a3a7049ad8e1e1148a7337cd9f9fe921eac18fe0836a0dbf478315697dffcdd7103bbee44be7b6cd45e
data/.travis.yml CHANGED
@@ -1,6 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
3
  - 2.1.1
6
4
  - ruby-head
5
+ before_install: gem install bundler
6
+ install:
7
+ - bundle install --jobs=3 --retry=3
8
+ - gem install rake
9
+ - gem install minitest
10
+ - gem install minitest-reporters
11
+
12
+
data/Gemfile CHANGED
@@ -4,4 +4,5 @@ gemspec
4
4
 
5
5
  gem "rake"
6
6
  gem "minitest"
7
+ gem "minitest-reporters"
7
8
  gem "net-http-persistent", ">= 3.0.0"
data/config.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  API_ENDPOINT: api.figo.me
2
2
  FINGER_PRINTS:
3
- - "38:AE:4A:32:6F:16:EA:15:81:33:8B:B0:D8:E4:A6:35:E7:27:F1:07"
4
- - "DB:E2:E9:15:8F:C9:90:30:84:FE:36:CA:A6:11:38:D8:5A:20:5D:93"
3
+ - "79:B2:A2:93:00:85:3B:06:92:B1:B5:F2:24:79:48:58:3A:A5:22:0F:C5:CD:E9:49:9A:C8:45:1E:DB:E0:DA:50" # valid until Jun 24 23:59:59 2018
4
+ - "07:0F:14:AE:B9:4A:FB:3D:F8:00:E8:2B:69:A8:51:5C:EE:D2:F5:B1:BA:89:7B:EF:64:32:45:8F:61:CF:9E:33" # valid until Jun 24 23:59:59 2017
data/figo.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "figo"
3
- s.version = "1.3.3"
4
- s.authors = ["Denys Zaliskyi"]
5
- s.email = ["dz@figo.me"]
3
+ s.version = "1.4.0"
4
+ s.authors = ["Denys Zaliskyi", "Berend Kapelle"]
5
+ s.email = ["sdks@figo.me"]
6
6
  s.homepage = "https://github.com/figo-connect/ruby-figo"
7
7
  s.license = "MIT"
8
8
  s.summary = %q{API wrapper for figo Connect.}
data/lib/helpers/https.rb CHANGED
@@ -13,7 +13,7 @@ module Figo
13
13
  @verify_callback = proc do |preverify_ok, store_context|
14
14
  if preverify_ok and store_context.error == 0
15
15
  certificate = OpenSSL::X509::Certificate.new(store_context.chain[0])
16
- fingerprint = Digest::SHA1.hexdigest(certificate.to_der).upcase.scan(/../).join(":")
16
+ fingerprint = Digest::SHA256.hexdigest(certificate.to_der).upcase.scan(/../).join(":")
17
17
  fingerprints.include?(fingerprint)
18
18
  else
19
19
  false
data/test/test_figo.rb CHANGED
@@ -28,7 +28,7 @@ require_relative "../lib/figo"
28
28
  require "yaml"
29
29
 
30
30
  class FigoTest < MiniTest::Unit::TestCase
31
- CONFIG = YAML.load_file(File.join(__dir__, 'CONFIG.yml'))
31
+ CONFIG = YAML.load_file(File.join(__dir__, 'config.yml'))
32
32
 
33
33
  def setup
34
34
  @sut = Figo::Session.new(CONFIG["ACCESS_TOKEN"])
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: figo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denys Zaliskyi
8
+ - Berend Kapelle
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-12-09 00:00:00.000000000 Z
12
+ date: 2017-06-15 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: flt
@@ -40,7 +41,7 @@ dependencies:
40
41
  version: '0'
41
42
  description: Library to easily use the API of http://figo.io
42
43
  email:
43
- - dz@figo.me
44
+ - sdks@figo.me
44
45
  executables: []
45
46
  extensions: []
46
47
  extra_rdoc_files: []
@@ -120,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
121
  version: '0'
121
122
  requirements: []
122
123
  rubyforge_project:
123
- rubygems_version: 2.6.6
124
+ rubygems_version: 2.6.11
124
125
  signing_key:
125
126
  specification_version: 4
126
127
  summary: API wrapper for figo Connect.