hmac-uri 0.1.2 → 2.0.0

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 +7 -0
  2. data/CHANGELOG +4 -0
  3. data/README.md +1 -1
  4. data/lib/hmac/uri.rb +4 -1
  5. metadata +17 -25
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 897d8f7525913aa6a5f9144c28541f2655b3075c
4
+ data.tar.gz: 4b1d10ceb01dd822758c32c3a26e0089719b9dfc
5
+ SHA512:
6
+ metadata.gz: 771d4385547263bd1c721958fadcbe331200456fd3f7019aa7e57ebdc1957cea1a398e14e290b80adb1c30eed600dcdb1c95d5bbdf0c36ca43338c0f09351714
7
+ data.tar.gz: 4195ac3d64b90ee6cec5de7f64fb7e557fa75e9ba2b0678769010adacfffd5dbcb69c75a1830fa86d865f599d2a58d44bebeadf25fff8e46a8756b9b06493254
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.0.0 (2013-11-13)
2
+
3
+ * v1.0.0
4
+
1
5
  == 0.1.0 (2012-09-06)
2
6
 
3
7
  * Initial version.
data/README.md CHANGED
@@ -33,4 +33,4 @@ mac.signed?(uri, delta: 0) #=> false
33
33
 
34
34
  ## License
35
35
 
36
- BSD
36
+ MIT
data/lib/hmac/uri.rb CHANGED
@@ -6,6 +6,9 @@ require 'addressable/uri'
6
6
 
7
7
  module HMAC
8
8
  class URI
9
+
10
+ VERSION = '2.0.0'
11
+
9
12
  module QSParser
10
13
  def query_values
11
14
  query.to_s.split(/&/).each_with_object({}) do |pair, hash|
@@ -30,7 +33,7 @@ module HMAC
30
33
  def initialize options = {}
31
34
  @secret = options.fetch(:secret)
32
35
  @validator = options.fetch(:validator, method(:default_validator))
33
- @digest = OpenSSL::Digest::Digest.new('sha1')
36
+ @digest = OpenSSL::Digest::SHA256.new
34
37
  end
35
38
 
36
39
  def parse uri
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hmac-uri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 2.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bharanee Rathna
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-13 00:00:00.000000000 Z
11
+ date: 2016-11-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: addressable
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: OpenSSL based HMAC signing for request urls with shared secret
@@ -50,37 +45,34 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - test/helper.rb
54
- - test/test_hmac_uri.rb
48
+ - CHANGELOG
49
+ - README.md
55
50
  - lib/hmac-uri.rb
56
51
  - lib/hmac/uri.rb
57
- - README.md
58
- - CHANGELOG
52
+ - test/helper.rb
53
+ - test/test_hmac_uri.rb
59
54
  homepage: http://github.com/deepfryed/hmac-uri
60
55
  licenses: []
56
+ metadata: {}
61
57
  post_install_message:
62
58
  rdoc_options: []
63
59
  require_paths:
64
60
  - lib
65
61
  required_ruby_version: !ruby/object:Gem::Requirement
66
- none: false
67
62
  requirements:
68
- - - ! '>='
63
+ - - ">="
69
64
  - !ruby/object:Gem::Version
70
- version: '0'
71
- segments:
72
- - 0
73
- hash: 3090478760520236257
65
+ version: '2.1'
74
66
  required_rubygems_version: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
- - - ! '>='
68
+ - - ">="
78
69
  - !ruby/object:Gem::Version
79
70
  version: '0'
80
71
  requirements: []
81
72
  rubyforge_project:
82
- rubygems_version: 1.8.24
73
+ rubygems_version: 2.2.2
83
74
  signing_key:
84
- specification_version: 3
75
+ specification_version: 4
85
76
  summary: HMAC signing for urls
86
77
  test_files: []
78
+ has_rdoc: