chart-candy 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: 80f1e7a6559fc2736d6411489a3e05c6fdb674e3
4
- data.tar.gz: 48c30b10da75688817e576def67e86fb623bf8af
3
+ metadata.gz: f29141a56dea5836a08d1e0f37c77445fceea9e6
4
+ data.tar.gz: fe556191e78c2bfa8f7057f106642ff0c6f54e49
5
5
  SHA512:
6
- metadata.gz: 485f873e4acfd3ffcfec0ed4e31321e7cf4105ba4f3fff99d4db919705fea85b48d56cb9e76aba7b0b9fabdc3009b216236d90c2c5f1ec22a8dd2defdf3f2da7
7
- data.tar.gz: 5a46d6dd4bd66c653888fe43a48408f87e6db63eeacfb050f9e4d97ec965eccff54ac5bcda6f3cdea68b04518118a8ce02b7aa8a6ea7e009e9dd6a9bde0b1207
6
+ metadata.gz: e7da51222fd4d243c46b0158ba6d063b89e8a2c778ea1d410e7d983a7e5142fdfdf89a91ba42bd0751df9886db4f000979028af475a36ace253d6cdec00f6aa3
7
+ data.tar.gz: 2eaaac65dfc2636a1d8b6821b20b02e8bb16b35e4984012f5f7faad8b273635cd0cf3c04daf32f9a5f6b35a604ea48620b41f42c121a1132c55204caf45f9ad1
@@ -1,3 +1,5 @@
1
+ require 'openssl'
2
+
1
3
  module ChartCandy
2
4
  class Authentication
3
5
  def self.compact_params(original_params)
@@ -13,8 +15,7 @@ module ChartCandy
13
15
  end
14
16
 
15
17
  def self.tokenize(str)
16
- Digest::HMAC.hexdigest(str.chars.sort.join.gsub('/', ''), Rails.configuration.secret_token, Digest::SHA1)
17
- #HMAC::SHA1.hexdigest(Rails.configuration.secret_token, str.chars.sort.join.gsub('/', ''))
18
+ OpenSSL::HMAC.hexdigest(OpenSSL::Digest::SHA1.new, Rails.configuration.secret_token, str.chars.sort.join.gsub('/', ''))
18
19
  end
19
20
 
20
21
  def initialize(request_url, params={})
@@ -1,5 +1,5 @@
1
1
  module ChartCandy
2
- class Engine < Rails::Engine
2
+ class Engine < ::Rails::Engine
3
3
  #auto wire
4
4
  end
5
5
  end
@@ -2,6 +2,7 @@ require "rubygems"
2
2
  require "bundler/setup"
3
3
 
4
4
  require 'rspec'
5
+ require 'rails'
5
6
 
6
7
  require File.expand_path('../../lib/chart-candy', __FILE__)
7
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chart-candy
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
  - Sebastien Rosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spreadsheet
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: railties
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -117,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
131
  version: '0'
118
132
  requirements: []
119
133
  rubyforge_project: chart-candy
120
- rubygems_version: 2.2.2
134
+ rubygems_version: 2.4.5
121
135
  signing_key:
122
136
  specification_version: 4
123
137
  summary: Chart Candy use D3.js library to quickly render AJAX charts in your Rails