sunlight_api 1.0.0 → 1.0.1

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: 980f35c52d8800df0b53534383cd5d4e3ec0b19b
4
- data.tar.gz: 90c4255bae2a77fb3e171bdd1ecc2b5e86a27ea8
3
+ metadata.gz: c76fa98bea5dcee3a8a0426170d91bd6d763df6e
4
+ data.tar.gz: 1d3cb7cdec5a162f3edf3b72ecbc8ad273e8d0bc
5
5
  SHA512:
6
- metadata.gz: 39113adcfd2c8120bcf646435e1e9bd170b235eecc7584bf03fe5c47cd46ad9fa3fbf656d4ec06e662de4083fb9ee54bbeafc545f7260097bed47f6368ea6bf7
7
- data.tar.gz: f05227b8d7aaf52938e658aa5eb84bceea53c270984474957e2c2c287604fa4723f08c6a0e97dbe7d937a70e25bdbdea988c1c8e6abd6fdd09216a673f69bdfe
6
+ metadata.gz: 1ecb927f0197a3b60d6dc27c705c8ee0dea46b62b0e4436ea8021bb13e033d6deec02591990dbb28efa9ca2f559c452fafbbf58573393922211e4b36ea3461c1
7
+ data.tar.gz: b00ab525b92f7df408275b29aafdd7d402dfdec0246aa76dc7d0b8383050ffe31d9322b681a22dba883bf40159e52d9bc889df028b74d5a771d432e30de1fa69
data/Guardfile ADDED
@@ -0,0 +1,14 @@
1
+ guard :rspec, cmd: "bundle exec rspec" do
2
+ require "guard/rspec/dsl"
3
+ dsl = Guard::RSpec::Dsl.new(self)
4
+
5
+ # watch /lib/ files
6
+ watch(%r{^lib/(.+).rb$}) do |m|
7
+ "spec/#{m[1]}_spec.rb"
8
+ end
9
+
10
+ # watch /spec/ files
11
+ watch(%r{^spec/(.+).rb$}) do |m|
12
+ "spec/#{m[1]}.rb"
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module SunlightApi
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/sunlight_api.rb CHANGED
@@ -73,7 +73,8 @@ module SunlightApi
73
73
  end
74
74
 
75
75
  def append_signature
76
- @signature = Digest::HMAC.hexdigest(@base_url, @private_key, Digest::SHA256).upcase
76
+ @digest = OpenSSL::Digest::Digest.new('sha256')
77
+ @signature = OpenSSL::HMAC.hexdigest(@digest, @private_key, @base_url).upcase
77
78
  @url = "#{@base_url}&signature=#{@signature}"
78
79
  end
79
80
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunlight_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Tyrel Corporation
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,6 +107,7 @@ files:
107
107
  - ".travis.yml"
108
108
  - CODE_OF_CONDUCT.md
109
109
  - Gemfile
110
+ - Guardfile
110
111
  - LICENSE.txt
111
112
  - README.md
112
113
  - Rakefile
@@ -114,6 +115,7 @@ files:
114
115
  - bin/setup
115
116
  - lib/sunlight_api.rb
116
117
  - lib/sunlight_api/version.rb
118
+ - sunlight_api-1.0.0.gem
117
119
  - sunlight_api.gemspec
118
120
  homepage: https://github.com/thetyrelcorporation/sunlight_api
119
121
  licenses: