params_extractor 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/params/base.rb +8 -0
- data/lib/params/decoder.rb +4 -0
- data/params_extractor.gemspec +2 -2
- data/spec/decoder_ex.rb +4 -0
- data/spec/params_extractor/decoder_spec.rb +5 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/params/base.rb
CHANGED
data/lib/params/decoder.rb
CHANGED
data/params_extractor.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "params_extractor"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kristian Mandrup"]
|
12
|
-
s.date = "2012-05-
|
12
|
+
s.date = "2012-05-08"
|
13
13
|
s.description = "Encode and encrypt prams and leter unencryt and decode them - useful when sending invites with tokens"
|
14
14
|
s.email = "kmandrup@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/spec/decoder_ex.rb
CHANGED
@@ -15,16 +15,16 @@ describe Params::Decoder do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
let(:data) do
|
18
|
-
{:id => '7', :name => 'kris'}
|
18
|
+
{:id => '7', :name => 'kris', :lang => 'na'}
|
19
19
|
end
|
20
20
|
|
21
21
|
let(:decoded_data) do
|
22
|
-
{'id' => '7', 'name' => 'kris'}
|
22
|
+
{'id' => '7', 'name' => 'kris', 'lang' => 'na'}
|
23
23
|
end
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
let(:decoded_clean_data) do
|
26
|
+
{'id' => '7', 'name' => 'kris', 'lang' => nil}
|
27
|
+
end
|
28
28
|
|
29
29
|
describe 'crypter?' do
|
30
30
|
specify { subject.crypter?.should be_true }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: params_extractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gibberish
|
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
segments:
|
153
153
|
- 0
|
154
|
-
hash: -
|
154
|
+
hash: -1069122987872932119
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
none: false
|
157
157
|
requirements:
|