active_uxid 1.0.12 → 1.0.13

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: 3d409ea9b9433696e7cb4854418fd0592c7e1c59
4
- data.tar.gz: 38b9f9132f7cb8bc2d7725ad75b1c174ea2b2cc1
3
+ metadata.gz: 4c440807cb8b8e9144f7098e84cdcaad50a45465
4
+ data.tar.gz: 7e65709d03894d6ec4c9ec96a00ba993a14e5100
5
5
  SHA512:
6
- metadata.gz: 1cccf014569967ae286cbe07e83325693c40ddfc97a42d31c3bdcaf6102e48f01c615f2518c456a7949348e0bf734f882f4a0937fd1360fea8910a5052d09838
7
- data.tar.gz: dd1304d11f680895f984014ec891176b3a61941b898997405dd43bd0e4762174c63eb06602614691336731b281672a0faef5ba993c487ff1766f3a1fbb9dc470
6
+ metadata.gz: f23a86994b9883da9ac2aae3d469e915c8d7693a9b54211549f57e6f4cbd6f10b4bd104fc8a79663fc29fdbc08a2fb1d8332436cfe23604246742f593407cf6d
7
+ data.tar.gz: 5081ca9a8b8609bbbb8889c58f1230b8f051403f96dbab1bf4988c5114c1713274873d7b0632e82461457b7bb436758cb2345155f9b5b9eaff82901381a2e92d
@@ -7,7 +7,8 @@ module ActiveUxid
7
7
  @config = ActiveUxid.configuration
8
8
  end
9
9
 
10
- %w[encoding_chars encoding_length encoding_salt].each do |setting|
10
+ ActiveUxid.configuration.instance_variables.each do |setting|
11
+ setting = setting.to_s.tr(':@', '')
11
12
  define_method(setting) { @config.send(setting) }
12
13
  end
13
14
 
@@ -47,7 +47,7 @@ module ActiveUxid
47
47
  max = len - 1
48
48
 
49
49
  while pos < len
50
- pow = encoding_base ** (max - pos)
50
+ pow = encoding_base**(max - pos)
51
51
  num += encoding_chars.index(id[pos]) * pow
52
52
  pos += 1
53
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveRegulation
4
- VERSION ||= '1.0.12'
4
+ VERSION ||= '1.0.13'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_uxid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez