tinycert 0.1.2 → 0.1.3

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: 8bc9d92003d4152db3ac3ee36a440d438860b444
4
- data.tar.gz: 22b3a3ca3565ada64b4378f087cf7b9bd93556c5
3
+ metadata.gz: 69c0bb347db168ce7091c9cbdb6774f2b9c521dc
4
+ data.tar.gz: 47a6253aa174fb8cb030d06e62e9676e46b0aafd
5
5
  SHA512:
6
- metadata.gz: '036581151f41737a613cf3d32c0e87f66509d0f3b480ba86987198664721898df25c13ec53a0c7fa41de12da2c3d7931c903ebfb4b88f07f78feaf0daf1f4a31'
7
- data.tar.gz: 9b387ed17cab66df814aa50a94ab9380e2ce79fbe0648474020f6dc8a269dce702a9e4d79e95add4fc117dc90aeb7a75e7939999d57d0db05dc34db9bf59b10e
6
+ metadata.gz: 565080a0835817068cc69cec2922c43ccb16453681193babf4c7e54300982f07f7ab224ffd0284271ae39297a703149fb462b746a3667133c5a5b357936f2006
7
+ data.tar.gz: 26bf62cf7926f9c677267117f2f7d3bc3d20771f8f66770de570ed84bf2237f009aaefc0a29b45ed0180355a599792514778302fa15aaa33332752f0bad78146
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tinycert (0.1.1)
4
+ tinycert (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -48,7 +48,6 @@ module Tinycert
48
48
  }
49
49
 
50
50
  request = @tinycert.session_request 'https://www.tinycert.org/api/v1/cert/new', {
51
- token: @tinycert.token,
52
51
  CN: name,
53
52
  C: c,
54
53
  O: o,
@@ -20,9 +20,11 @@ module Tinycert
20
20
 
21
21
  # Sort the params consistently
22
22
  def prepare_params params
23
+ results = {}
24
+ # Build a new hash with string keys
25
+ params.each { |k, v| results[k.to_s] = v }
23
26
  # Sort nested structures
24
- # params.sort_by { |k,v| k.to_s }.to_h.each { |k, v| params[k] = v.sort.to_h if v.respond_to?(:sort) }
25
- params.sort.to_h
27
+ results.sort.to_h
26
28
  end
27
29
 
28
30
  def digest
@@ -1,3 +1,3 @@
1
1
  module Tinycert
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinycert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Lawrence