s2s-auth 0.0.2 → 0.0.3

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: 7b9b1930b5f9b10ffc9d2da950f17377af07ae55
4
- data.tar.gz: 96f2f62700b100e4c71af02c56ed05dff444176a
3
+ metadata.gz: 608e06b903301795500495c0635b881a78795e88
4
+ data.tar.gz: 48fe14ca4acc6e539dddea0035e04447274ef891
5
5
  SHA512:
6
- metadata.gz: 0ac514f8ba325ff7840004eae1e056b91558e4dbb66ff88ea049bc68c4318a6f9e4f545c88d18caf0c803ddc206e6f1f5b40fc3fec4439480569c058fd90b4b5
7
- data.tar.gz: 99f076f5337b708702e5e83a5103dd5068be64d80a12ee750c3572bfdded48bc34ea053b2819a7707386af0e8dd10966594790ff5de5eae6348768807286e513
6
+ metadata.gz: 11cf5a18bceacf56ae905c5cad6d3f11b4342d684918bae17f2b59f02037bed47feb4574e92bb85a92d208f3986c2473977bd09c2416b25a0ec635ade16530ac
7
+ data.tar.gz: d4283b594c33d61898753407afc40cae98ff99af340da90811c45943690a1a3d8b6a839e46d0b656da6951cd0f2e15121a10e4fd4122ece9613ee3cc205a6077
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- s2s-auth (0.0.2)
4
+ s2s-auth (0.0.3)
5
5
  activesupport (>= 3.0)
6
6
 
7
7
  GEM
@@ -1,5 +1,6 @@
1
1
  # Changelog
2
2
 
3
+ * 0.0.3 Bug fix: stupid typo
3
4
  * 0.0.2 Bug fix: switched the default serializer to properly serialize
4
5
  as per AS' expectations.
5
6
  * 0.0.1 initial release
@@ -31,9 +31,9 @@ module S2S
31
31
  if [@secret, @app_name, @salt, @sign_salt].any?{|v| v.nil? || v.empty?}
32
32
  raise ArgumentError.new("This module needs to be setup following keys: secret, app, salt, sign_salt")
33
33
  end
34
- @iterations = opts[:iterations] || opts["iterations"] || 1000
35
34
  @serializer = opts[:serializer] || opts["serializer"] || S2S::Auth::JsonSerializer
36
- keygen = ActiveSupport::CachingKeyGenerator.new(ActiveSupport::KeyGenerator.new(@secret, iterations: @iteration))
35
+ @iterations = opts[:iterations] || opts["iterations"] || 1000
36
+ keygen = ActiveSupport::CachingKeyGenerator.new(ActiveSupport::KeyGenerator.new(@secret, iterations: @iterations))
37
37
  secret = keygen.generate_key(@salt)
38
38
  sign_secret = keygen.generate_key(@sign_salt)
39
39
  @encryptor = ActiveSupport::MessageEncryptor.new(secret, sign_secret, { serializer: @serializer } )
@@ -1,5 +1,5 @@
1
1
  module S2S
2
2
  module Auth
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s2s-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Aimonetti