faker_maker 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/faker_maker.rb CHANGED
@@ -44,6 +44,18 @@ module FakerMaker
44
44
  def find_factory( name )
45
45
  factories[name]
46
46
  end
47
+
48
+ def shut!( name )
49
+ factory = find_factory( name )
50
+ if factory
51
+ factories[name] = nil
52
+ Object.send( :remove_const, factory.class_name )
53
+ end
54
+ end
55
+
56
+ def shut_all!
57
+ factories.keys.each { |f| shut!( f ) }
58
+ end
47
59
  end
48
60
 
49
61
  FM = FakerMaker
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FakerMaker
4
- VERSION = '1.1.6'
4
+ VERSION = '1.1.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker_maker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Brookes-Thomas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-11 00:00:00.000000000 Z
11
+ date: 2020-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -58,6 +58,62 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '2.1'
61
+ - !ruby/object:Gem::Dependency
62
+ name: guard
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '2.16'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '2.16'
75
+ - !ruby/object:Gem::Dependency
76
+ name: guard-bundler
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '2.2'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '2.2'
89
+ - !ruby/object:Gem::Dependency
90
+ name: guard-rubocop
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.3'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.3'
103
+ - !ruby/object:Gem::Dependency
104
+ name: guard-rspec
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '4.7'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '4.7'
61
117
  - !ruby/object:Gem::Dependency
62
118
  name: pry
63
119
  requirement: !ruby/object:Gem::Requirement
@@ -142,8 +198,8 @@ dependencies:
142
198
  - - "~>"
143
199
  - !ruby/object:Gem::Version
144
200
  version: '0.8'
145
- description: FakerMaker is a simple fixture generator with a concise and straightforward
146
- syntax.
201
+ description: FakerMaker is a simple factory builder so you can throw away your fixtures
202
+ and generate test data instead.
147
203
  email:
148
204
  - nigel@brookes-thomas.co.uk
149
205
  executables: []
@@ -157,23 +213,44 @@ files:
157
213
  - ".rubocop.yml"
158
214
  - ".travis.yml"
159
215
  - Gemfile
216
+ - Guardfile
160
217
  - LICENSE.txt
161
218
  - README.md
162
219
  - Rakefile
220
+ - _config.yml
163
221
  - bin/console
164
222
  - bin/setup
223
+ - docs/.keep
224
+ - docs/_config.yml
225
+ - docs/contributing.md
226
+ - docs/credits.md
227
+ - docs/index.md
228
+ - docs/installation.md
229
+ - docs/logo.png
230
+ - docs/usage/arrays.md
231
+ - docs/usage/building_instances.md
232
+ - docs/usage/dependencies.md
233
+ - docs/usage/destroying_factories.md
234
+ - docs/usage/embedding_factories.md
235
+ - docs/usage/index.md
236
+ - docs/usage/inheritance.md
237
+ - docs/usage/json_field_names.md
238
+ - docs/usage/omitting_fields copy.md
165
239
  - faker_maker.gemspec
240
+ - img/unipug.svg
166
241
  - lib/faker_maker.rb
167
242
  - lib/faker_maker/attribute.rb
168
243
  - lib/faker_maker/base.rb
169
244
  - lib/faker_maker/definition_proxy.rb
170
245
  - lib/faker_maker/factory.rb
171
246
  - lib/faker_maker/version.rb
172
- homepage: https://github.com/BillyRuffian/faker_maker
247
+ homepage: https://billyruffian.github.io/faker_maker/
173
248
  licenses:
174
249
  - MIT
175
250
  metadata:
251
+ homepage_uri: https://billyruffian.github.io/faker_maker/
176
252
  source_code_uri: https://github.com/BillyRuffian/faker_maker
253
+ changelog_uri: https://github.com/BillyRuffian/faker_maker/releases
177
254
  post_install_message:
178
255
  rdoc_options: []
179
256
  require_paths:
@@ -189,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
266
  - !ruby/object:Gem::Version
190
267
  version: '0'
191
268
  requirements: []
192
- rubygems_version: 3.0.3
269
+ rubygems_version: 3.1.2
193
270
  signing_key:
194
271
  specification_version: 4
195
272
  summary: FakerMaker bakes fakes.