jive-signed_request 0.1.1 → 0.1.2

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: 4043964dc8562a65968f2ea81c868852eff5b9d7
4
- data.tar.gz: 6d1d4e8f6db9c8183896bfe967c3b2309a8054f7
3
+ metadata.gz: b978f0046267418c305c7d1b0059281a61da8f3e
4
+ data.tar.gz: f75ddc12191bedb0a749f3839efaade33dff509e
5
5
  SHA512:
6
- metadata.gz: 12333b4db5a76f0fea0389a4106b438459d90d19a7eda5681a3bb1cf98e3476735d2636f8f6f9de5571f37c22cdad9dbbb4d215607b0689f70b81c98859b4e2d
7
- data.tar.gz: b4a6b375a81e6ff07e7ff77b3a449920d04485dcd4b2e5f6d8c46a7f0469209574413005fe4acf3f6361f2a5af111680d84eae500e1ad8a3e1a405e08d7dcade
6
+ metadata.gz: c61dd48828552b6f2d32acc6be2bbc3e3adbd31ed74a574f057449e7019aa4458bc27e0ed3c8cfedc858c4d37e57a20d3084edfff59e487397fc4b1ffd17c073
7
+ data.tar.gz: 33ee892c313311842eec8d57b953fc1488d8c2638314b59824a2575a476c29109a26ff6c908aad7eed9a79e23936547381aa2e0ac7454815a64d62b11ae5dbfd
@@ -1,7 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.1.1
4
- - 2.0.0
5
- - 1.9.3
6
4
  script:
7
5
  - rspec spec
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Gem Version](https://badge.fury.io/rb/ruby-jive-signed_request.svg)](http://badge.fury.io/rb/active_record_survey_api)
1
+ [![Gem Version](https://badge.fury.io/rb/jive-signed_request.svg)](http://badge.fury.io/rb/jive-signed_request)
2
2
  [![Build Status](https://travis-ci.org/butchmarshall/ruby-jive-signed_request.svg?branch=master)](https://travis-ci.org/butchmarshall/ruby-jive-signed_request)
3
3
 
4
4
  # Jive::SignedRequest
@@ -113,7 +113,9 @@ module Jive # :nodoc:
113
113
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl? && !options[:verify_ssl]
114
114
 
115
115
  buffer = ''
116
- validationBlock.sort.to_h.each_pair { |k,v|
116
+ validationBlock = validationBlock.sort
117
+
118
+ (validationBlock.respond_to?(:to_h) ? validationBlock.to_h : Hash[validationBlock] ).each_pair { |k,v|
117
119
  buffer = "#{buffer}#{k}:#{v}\n"
118
120
  }
119
121
 
@@ -1,5 +1,5 @@
1
1
  module Jive
2
2
  module SignedRequest
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jive-signed_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Butch Marshall
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-21 00:00:00.000000000 Z
11
+ date: 2015-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler