object-daddy 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
data/lib/object_daddy.rb CHANGED
@@ -123,7 +123,7 @@ module ObjectDaddy
123
123
 
124
124
  # we define an underscore helper ourselves since the ActiveSupport isn't available if we're not using Rails
125
125
  def underscore(string)
126
- string.gsub(/([a-z])([A-Z])/, '\1_\2').downcase
126
+ string.gsub(/([a-z])([A-Z])/, '\1_\2').gsub(/::/,'_').downcase
127
127
  end
128
128
 
129
129
  def record_generator_for(handle, generator)
data/object-daddy.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "object-daddy"
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rick Bradley", "Yossef Mendelssohn", "Jeremy Holland"]
12
- s.date = "2012-04-08"
12
+ s.date = "2012-05-11"
13
13
  s.description = "Object Daddy is a library (as well as a Ruby on Rails plugin) designed to assist in automating testing of large collections of objects, especially webs of ActiveRecord models. It is a descendent of the \"Object Mother\" pattern for creating objects for testing, and is related to the concept of an \"object exemplar\" or stereotype."
14
14
  s.email = ["blogicx@rickbradley.com", "ymendel@pobox.com", "jeremy@jeremypholland.com"]
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: object-daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-04-08 00:00:00.000000000 Z
14
+ date: 2012-05-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec
18
- requirement: &8018520 !ruby/object:Gem::Requirement
18
+ requirement: &9311700 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 2.8.0
24
24
  type: :development
25
25
  prerelease: false
26
- version_requirements: *8018520
26
+ version_requirements: *9311700
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
- requirement: &8017440 !ruby/object:Gem::Requirement
29
+ requirement: &9308560 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '3.12'
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *8017440
37
+ version_requirements: *9308560
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: bundler
40
- requirement: &8016180 !ruby/object:Gem::Requirement
40
+ requirement: &9307460 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 1.0.0
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *8016180
48
+ version_requirements: *9307460
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: jeweler
51
- requirement: &8015000 !ruby/object:Gem::Requirement
51
+ requirement: &9305600 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ~>
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 1.8.3
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *8015000
59
+ version_requirements: *9305600
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rails
62
- requirement: &8013880 !ruby/object:Gem::Requirement
62
+ requirement: &9318600 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 3.0.0
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *8013880
70
+ version_requirements: *9318600
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: generator_spec
73
- requirement: &7968120 !ruby/object:Gem::Requirement
73
+ requirement: &9317120 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *7968120
81
+ version_requirements: *9317120
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: sqlite3
84
- requirement: &7965560 !ruby/object:Gem::Requirement
84
+ requirement: &9315060 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *7965560
92
+ version_requirements: *9315060
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rspec-rails
95
- requirement: &7951280 !ruby/object:Gem::Requirement
95
+ requirement: &9313360 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: '0'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *7951280
103
+ version_requirements: *9313360
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: pry
106
- requirement: &7948900 !ruby/object:Gem::Requirement
106
+ requirement: &9328200 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: '0'
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *7948900
114
+ version_requirements: *9328200
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: mocha
117
- requirement: &7947260 !ruby/object:Gem::Requirement
117
+ requirement: &9326560 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,7 +122,7 @@ dependencies:
122
122
  version: '0'
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *7947260
125
+ version_requirements: *9326560
126
126
  description: Object Daddy is a library (as well as a Ruby on Rails plugin) designed
127
127
  to assist in automating testing of large collections of objects, especially webs
128
128
  of ActiveRecord models. It is a descendent of the "Object Mother" pattern for creating
@@ -169,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  segments:
171
171
  - 0
172
- hash: -2833934392762525252
172
+ hash: -2776455863744275124
173
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  none: false
175
175
  requirements: