eldoorado 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
data/lib/eldoorado/badge_scan.rb
CHANGED
@@ -28,7 +28,10 @@ module Eldoorado
|
|
28
28
|
def self.assign_params_from_json(data)
|
29
29
|
badge_scan = Hashie::Mash.new
|
30
30
|
|
31
|
-
badge_scan.
|
31
|
+
badge_scan.last_name = data['last_name']
|
32
|
+
badge_scan.first_name = data['first_name']
|
33
|
+
badge_scan.guest = data['guest']
|
34
|
+
badge_scan.company = data['company']
|
32
35
|
badge_scan.scan_time = data['scan_time']
|
33
36
|
badge_scan.door = data['door']
|
34
37
|
|
data/lib/eldoorado/version.rb
CHANGED
@@ -7,7 +7,7 @@ describe Eldoorado::BadgeScan do
|
|
7
7
|
results = described_class.all
|
8
8
|
(results.count).should be > 1
|
9
9
|
expect(results.first.door).to eq "Atrium Door (In)"
|
10
|
-
expect(results.first.
|
10
|
+
expect(results.first.first_name).to eq "Paul"
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -22,7 +22,7 @@ describe Eldoorado::BadgeScan do
|
|
22
22
|
}
|
23
23
|
result = described_class.create(params)
|
24
24
|
expect(result.door).to eq "Atrium Door (In)"
|
25
|
-
expect(result.
|
25
|
+
expect(result.first_name).to eq "Paul"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -61,7 +61,7 @@ describe Eldoorado::Entrant do
|
|
61
61
|
result = described_class.find(1)
|
62
62
|
expect(result.id).to eq 1
|
63
63
|
(result.badge_scans.count).should be >= 1
|
64
|
-
expect(result.badge_scans.first.
|
64
|
+
expect(result.badge_scans.first.first_name).to eq result.first_name
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eldoorado
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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: 2013-06-
|
12
|
+
date: 2013-06-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Ruby wrapper gem for Eldoorado API
|
15
15
|
email:
|