census 0.4.4 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/census/user_data.rb +3 -3
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/lib/census/user_data.rb
CHANGED
@@ -17,7 +17,7 @@ module Census
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
20
|
+
def group_name
|
21
21
|
@data_group.name if @data_group
|
22
22
|
end
|
23
23
|
|
@@ -47,7 +47,7 @@ module Census
|
|
47
47
|
|
48
48
|
def keys
|
49
49
|
if @data_groups
|
50
|
-
@data_groups.map(&:
|
50
|
+
@data_groups.map(&:group_name)
|
51
51
|
else
|
52
52
|
@questions.map(&:prompt)
|
53
53
|
end
|
@@ -58,7 +58,7 @@ module Census
|
|
58
58
|
|
59
59
|
|
60
60
|
def find_data_group(name)
|
61
|
-
@data_groups.select {|group| group.
|
61
|
+
@data_groups.select {|group| group.group_name == name}.first
|
62
62
|
end
|
63
63
|
|
64
64
|
def find_question(prompt)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: census
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mark Kendall
|