census 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/census/user_data.rb +3 -3
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.4
1
+ 0.5.0
@@ -17,7 +17,7 @@ module Census
17
17
  end
18
18
  end
19
19
 
20
- def name
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(&:name)
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.name == name}.first
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: 7
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 4
9
- - 4
10
- version: 0.4.4
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mark Kendall