fluent_fixtures 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a7e2e3b328e9867c88b743b0ea894d7da533cd607d3f4818ccef00435807c7e
4
- data.tar.gz: 228bfcd1d43e45a4b1b4f6181dab3d9afaee9f4badac8f087c26a1a376c6b0e3
3
+ metadata.gz: cadce4251b00ed5677abb97143eef4fec4620d1d184c574098c285baf27fde2a
4
+ data.tar.gz: 36ef9c202a398a61360aea328a54566ce2bfa5a1bf33941a13d5257765760470
5
5
  SHA512:
6
- metadata.gz: a8f729d6dab5beea7f7aad23644ff0729762d331cc3a6e9e7df68da45f4c01f935060c2160568fddb680d28eff33cc5f62c15ec074cb7c5dacd8c370cd80f22d
7
- data.tar.gz: 40b97ecd4abe2bdacc83cab72fe098555e1f726373740d417896a5d395ad9149097af982f5a2127a5620658a71569b6a2a1a3ddcee35bbde1bd7288242214831
6
+ metadata.gz: b99c96cc9967cd9784c506121263fa70d839392c55d3457344958c544bbbaf967fc05f8725798271d7a7fb0638a3898524465207763416ed830fcf44216ecf80
7
+ data.tar.gz: 25f442ae66c0fc079fb809ec787e7bc9b3efa1cba4a00fabbfd2661a5333b10ee3a31901ce50e8dfbf526bfecd6d87f84a195c285208898f54f17dc95725431e
checksums.yaml.gz.sig CHANGED
Binary file
data/History.md CHANGED
@@ -1,3 +1,39 @@
1
+ # Release History for fluent_fixtures
2
+
3
+ ---
4
+ ## v0.10.0 [2022-04-10] Michael Granger <ged@faeriemud.org>
5
+
6
+ Enhancements:
7
+
8
+ - Fix keyword argument decorators in Ruby 3.0. Thanks to rob.galanakis@gmail.com for the patch.
9
+
10
+
11
+ ## v0.9.0 [2020-11-02] Michael Granger <ged@FaerieMUD.org>
12
+
13
+ Improvements:
14
+
15
+ - De-hoeify
16
+ - Update the Sequel example's bundle
17
+ - Bump Faker version to latest, fix usage
18
+ - Update for Ruby 2.7
19
+ - Update project links (bitbucket -> sr.ht)
20
+
21
+ Bugfixes:
22
+
23
+ - Fix passing keywords as trailing hash
24
+
25
+
26
+ ## v0.8.1 [2018-11-20] Michael Granger <ged@FaerieMUD.org>
27
+
28
+ Bugfixes:
29
+
30
+ - Make dependencies explicit in `additions_for`.
31
+ This fixes the case where the base fixture is not named the same
32
+ thing as the file that it is defined in. You can now explicitly
33
+ depend on another fixture file with the `depends_on` keyword
34
+ argument to `additions_for`.
35
+
36
+
1
37
  ## v0.8.0 [2018-08-28] Michael Granger <ged@FaerieMUD.org>
2
38
 
3
39
  Enhancements:
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016 Michael Granger
1
+ Copyright (c) 2016-2020 Michael Granger
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Manifest.txt CHANGED
@@ -1,7 +1,6 @@
1
1
  .document
2
2
  .rdoc_options
3
3
  .simplecov
4
- ChangeLog
5
4
  History.md
6
5
  LICENSE.txt
7
6
  Manifest.txt
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # fluent_fixtures
2
2
 
3
3
  home
4
- : http://bitbucket.org/ged/fluent_fixtures
4
+ : https://hg.sr.ht/~ged/fluent_fixtures
5
+
6
+ code
7
+ : https://hg.sr.ht/~ged/fluent_fixtures/browse
5
8
 
6
9
  github
7
10
  : https://github.com/ged/fluent_fixtures
@@ -20,6 +23,7 @@ To see a walkthrough of how you might set your own fixtures up, check out the [T
20
23
 
21
24
  If you're already on your way and just want some API docs, [we got those, too](FluentFixtures.html).
22
25
 
26
+
23
27
  ## Prerequisites
24
28
 
25
29
  * Ruby
@@ -33,20 +37,23 @@ If you're already on your way and just want some API docs, [we got those, too](F
33
37
  ## Contributing
34
38
 
35
39
  You can check out the current development source with Mercurial via its
36
- [project page][bitbucket]. Or if you prefer Git, via [its Github
37
- mirror][github].
40
+ [project page][sr.ht]. Or if you prefer Git, via [its Github mirror][github].
38
41
 
39
42
  After checking out the source, run:
40
43
 
41
- $ rake newb
44
+ $ rake setup
45
+
46
+ This task will install dependencies, and do any other necessary setup for development.
47
+
48
+
49
+ ## Author(s)
42
50
 
43
- This task will install any missing dependencies, run the tests/specs,
44
- and generate the API documentation.
51
+ * Michael Granger <ged@faeriemud.org>
45
52
 
46
53
 
47
54
  ## License
48
55
 
49
- Copyright (c) 2016, Michael Granger
56
+ Copyright (c) 2016-2020, Michael Granger
50
57
  All rights reserved.
51
58
 
52
59
  Redistribution and use in source and binary forms, with or without
@@ -75,6 +82,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
75
82
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
76
83
 
77
84
 
78
- [bitbucket]: http://bitbucket.org/ged/fluent_fixtures
85
+ [sr.ht]: https://hg.sr.ht/~ged/fluent_fixtures
79
86
  [github]: https://github.com/ged/fluent_fixtures
80
87
 
data/Rakefile CHANGED
@@ -1,97 +1,9 @@
1
- #!/usr/bin/env rake
1
+ # -*- ruby -*-
2
+ # frozen_string_literal: true
2
3
 
3
- begin
4
- require 'hoe'
5
- rescue LoadError
6
- abort "This Rakefile requires hoe (gem install hoe)"
7
- end
8
-
9
- GEMSPEC = 'fluent_fixtures.gemspec'
10
-
11
-
12
- Hoe.plugin :mercurial
13
- Hoe.plugin :signing
14
- Hoe.plugin :deveiate
15
-
16
- Hoe.plugins.delete :rubyforge
17
-
18
- hoespec = Hoe.spec 'fluent_fixtures' do |spec|
19
- spec.readme_file = 'README.md'
20
- spec.history_file = 'History.md'
21
- spec.extra_rdoc_files = FileList[ '*.rdoc', '*.md' ]
22
- spec.license 'BSD-3-Clause'
23
- spec.urls = {
24
- home: 'http://deveiate.org/projects/fluent_fixtures',
25
- code: 'http://bitbucket.org/ged/fluent_fixtures',
26
- docs: 'http://deveiate.org/code/fluent_fixtures',
27
- github: 'http://github.com/ged/fluent_fixtures',
28
- }
29
-
30
- spec.developer 'Michael Granger', 'ged@FaerieMUD.org'
31
-
32
- spec.dependency 'loggability', '~> 0.11'
33
- spec.dependency 'inflecto', '~> 0.0'
34
-
35
- spec.dependency 'faker', '~> 1.6', :developer
36
- spec.dependency 'hoe-deveiate', '~> 0.3', :developer
37
- spec.dependency 'simplecov', '~> 0.12', :developer
38
- spec.dependency 'rdoc-generator-fivefish', '~> 0.1', :developer
39
-
40
- spec.require_ruby_version( '>=2.2.0' )
41
- spec.hg_sign_tags = true if spec.respond_to?( :hg_sign_tags= )
42
- spec.check_history_on_release = true if spec.respond_to?( :check_history_on_release= )
43
-
44
- self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
45
- end
4
+ require 'rake/deveiate'
46
5
 
47
6
 
48
- ENV['VERSION'] ||= hoespec.spec.version.to_s
49
-
50
- # Run the tests before checking in
51
- task 'hg:precheckin' => [ :check_history, :check_manifest, :gemspec, :spec ]
52
-
53
- task :test => :spec
54
-
55
- # Rebuild the ChangeLog immediately before release
56
- task :prerelease => 'ChangeLog'
57
- CLOBBER.include( 'ChangeLog' )
58
-
59
- desc "Build a coverage report"
60
- task :coverage do
61
- ENV["COVERAGE"] = 'yes'
62
- Rake::Task[:spec].invoke
63
- end
64
- CLOBBER.include( 'coverage' )
65
-
66
-
67
- # Use the fivefish formatter for docs generated from development checkout
68
- if File.directory?( '.hg' )
69
- require 'rdoc/task'
70
-
71
- Rake::Task[ 'docs' ].clear
72
- RDoc::Task.new( 'docs' ) do |rdoc|
73
- rdoc.main = "README.md"
74
- rdoc.markup = 'markdown'
75
- rdoc.rdoc_files.include( "*.md", "ChangeLog", "lib/**/*.rb" )
76
- rdoc.generator = :fivefish
77
- rdoc.title = 'fluent_fixtures'
78
- rdoc.rdoc_dir = 'doc'
79
- end
80
- end
81
-
82
- task :gemspec => GEMSPEC
83
- file GEMSPEC => __FILE__
84
- task GEMSPEC do |task|
85
- spec = $hoespec.spec
86
- spec.files.delete( '.gemtest' )
87
- spec.signing_key = nil
88
- spec.cert_chain = ['certs/ged.pem']
89
- spec.version = "#{spec.version}.pre.#{Time.now.strftime("%Y%m%d%H%M%S")}"
90
- puts "Spec version is set to: %s" % [ spec.version ]
91
- File.open( task.name, 'w' ) do |fh|
92
- fh.write( spec.to_ruby )
93
- end
7
+ Rake::DevEiate.setup( 'fluent_fixtures' ) do |project|
8
+ project.publish_to = 'deveiate:/usr/local/www/public/code'
94
9
  end
95
-
96
- CLOBBER.include( GEMSPEC.to_s )
97
-
@@ -90,13 +90,14 @@ module FluentFixtures::DSL
90
90
  options = hash.reject {|k,_| k == name }.merge( prelude: components )
91
91
  block ||= Proc.new {}
92
92
 
93
- self.decorator( name, options, &block )
93
+ self.decorator( name, **options, &block )
94
94
  end
95
95
 
96
96
 
97
97
  ### Declare decorators for the +other_fixture+ instead of the current one.
98
- def additions_for( other_fixture, &block )
99
- self.depends_on( other_fixture )
98
+ def additions_for( other_fixture, depends_on: nil, &block )
99
+ self.depends_on( depends_on ) if depends_on
100
+
100
101
  mod = self.collection.modules[ other_fixture ] or
101
102
  raise "no such fixture %p" % [ other_fixture ]
102
103
 
@@ -190,7 +190,13 @@ class FluentFixtures::Factory
190
190
  self.apply_prelude( instance, decorator_options[:prelude] ) if decorator_options[:prelude]
191
191
 
192
192
  instance = self.try_to_save( instance ) if decorator_options[:presave]
193
- instance.instance_exec( *args, &decorator_block )
193
+ if args[-1].is_a?(Hash)
194
+ kwargs = args[-1]
195
+ args = args[0..-2]
196
+ else
197
+ kwargs = {}
198
+ end
199
+ instance.instance_exec( *args, **kwargs, &decorator_block )
194
200
 
195
201
  return instance
196
202
  end
@@ -24,19 +24,19 @@ module FluentFixtures
24
24
 
25
25
 
26
26
  # Package version
27
- VERSION = '0.8.0'
27
+ VERSION = '0.10.0'
28
28
 
29
29
  # Version control revision
30
- REVISION = %q$Revision: 3f30d963e0b9 $
30
+ REVISION = %q$Revision$
31
31
 
32
32
 
33
33
  # Loggability API -- set up a named logger
34
34
  log_as :fluent_fixtures
35
35
 
36
36
 
37
- require 'fluent_fixtures/collection'
38
- require 'fluent_fixtures/dsl'
39
- require 'fluent_fixtures/factory'
37
+ autoload :Collection, 'fluent_fixtures/collection'
38
+ autoload :DSL, 'fluent_fixtures/dsl'
39
+ autoload :Factory, 'fluent_fixtures/factory'
40
40
 
41
41
  end # module FluentFixtures
42
42
 
@@ -5,7 +5,7 @@ require_relative '../spec_helper'
5
5
  require 'fluent_fixtures/collection'
6
6
 
7
7
 
8
- describe FluentFixtures::Collection do
8
+ RSpec.describe FluentFixtures::Collection do
9
9
 
10
10
  let( :collection ) do
11
11
  mod = Module.new
@@ -6,7 +6,7 @@ require 'fluent_fixtures/dsl'
6
6
  require 'faker'
7
7
 
8
8
 
9
- describe FluentFixtures::DSL do
9
+ RSpec.describe FluentFixtures::DSL do
10
10
 
11
11
  let( :collection ) { Module.new {extend FluentFixtures::Collection} }
12
12
 
@@ -41,7 +41,7 @@ describe FluentFixtures::DSL do
41
41
  mod.base( :fixture ) do
42
42
  self.name ||= Faker::Name.name
43
43
  self.login ||= Faker::Internet.user_name
44
- self.email ||= Faker::Internet.email( self.login )
44
+ self.email ||= Faker::Internet.email( name: self.login )
45
45
  end
46
46
  mod
47
47
  end
@@ -159,9 +159,27 @@ describe FluentFixtures::DSL do
159
159
 
160
160
 
161
161
  it "can extend an existing fixture with more decorators" do
162
+ collection.modules[ :tyrant ] = fixture_module
163
+
164
+ mod = Module.new do
165
+ def self::name ; "FixtureAdditionTests"; end
166
+ end
167
+
168
+ mod.extend( collection )
169
+ mod.additions_for( :tyrant ) do
170
+ decorator :despotic do
171
+ self.authority = :absolute
172
+ end
173
+ end
174
+
175
+ expect( fixture_module ).to have_decorator( :despotic )
176
+ end
177
+
178
+
179
+ it "can add a dependency via an extension" do
162
180
  expect( collection ).to receive( :load ) do |*args|
163
181
  expect( args ).to eq([ :tyrants ])
164
- collection.modules[ :tyrants ] = fixture_module
182
+ collection.modules[ :tyrant ] = fixture_module
165
183
  end
166
184
 
167
185
  mod = Module.new do
@@ -169,7 +187,7 @@ describe FluentFixtures::DSL do
169
187
  end
170
188
 
171
189
  mod.extend( collection )
172
- mod.additions_for( :tyrants ) do
190
+ mod.additions_for( :tyrant, depends_on: :tyrants ) do
173
191
  decorator :despotic do
174
192
  self.authority = :absolute
175
193
  end
@@ -6,7 +6,7 @@ require 'faker'
6
6
  require 'fluent_fixtures/factory'
7
7
 
8
8
 
9
- describe FluentFixtures::Factory do
9
+ RSpec.describe FluentFixtures::Factory do
10
10
 
11
11
  let( :collection ) { Module.new {extend FluentFixtures::Collection} }
12
12
 
@@ -52,7 +52,7 @@ describe FluentFixtures::Factory do
52
52
  mod.base( :fixture ) do
53
53
  self.name ||= Faker::Name.name
54
54
  self.login ||= Faker::Internet.user_name
55
- self.email ||= Faker::Internet.email( self.login )
55
+ self.email ||= Faker::Internet.email( name: self.login )
56
56
  end
57
57
  mod
58
58
  end
@@ -336,6 +336,38 @@ describe FluentFixtures::Factory do
336
336
  end
337
337
 
338
338
 
339
+ it "handles keyword-only decorators" do
340
+ fixture_module.decorator( :set_fields ) do |name: nil, email: nil|
341
+ self.name = name
342
+ self.email = email
343
+ end
344
+
345
+ object = factory.set_fields( name: 'x', email: 'a@b.c' ).instance
346
+
347
+ expect( object ).to be_a( fixtured_class )
348
+ expect( object.name ).to eq( 'x' )
349
+ expect( object.email ).to eq( 'a@b.c' )
350
+ expect( object ).to_not be_saved
351
+ end
352
+
353
+
354
+ it "handles mixed position and keyword decorators" do
355
+ fixture_module.decorator( :set_fields ) do |arg1, arg2=2, kwarg: nil|
356
+ self.name = arg1
357
+ self.email = arg2
358
+ self.login = kwarg
359
+ end
360
+
361
+ object = factory.set_fields( 'x', 'a@b.c', kwarg: 'mylogin' ).instance
362
+
363
+ expect( object ).to be_a( fixtured_class )
364
+ expect( object.name ).to eq( 'x' )
365
+ expect( object.email ).to eq( 'a@b.c' )
366
+ expect( object.login ).to eq( 'mylogin' )
367
+ expect( object ).to_not be_saved
368
+ end
369
+
370
+
339
371
  describe "enumerator/generator" do
340
372
 
341
373
  it "is Enumerable" do
@@ -5,7 +5,7 @@ require_relative 'spec_helper'
5
5
  require 'fluent_fixtures'
6
6
 
7
7
 
8
- describe FluentFixtures do
8
+ RSpec.describe FluentFixtures do
9
9
 
10
10
  it "has a semver version" do
11
11
  expect( described_class::VERSION ).to match( /\A\d+\.\d+\.\d+(-[\p{Alnum}-]+)?/ )
data/spec/spec_helper.rb CHANGED
@@ -10,13 +10,20 @@ require 'loggability/spechelpers'
10
10
 
11
11
  ### Mock with RSpec
12
12
  RSpec.configure do |config|
13
- config.run_all_when_everything_filtered = true
14
- config.filter_run :focus
15
- config.order = 'random'
16
13
  config.mock_with( :rspec ) do |mock|
17
14
  mock.syntax = :expect
18
15
  end
19
16
 
17
+ config.disable_monkey_patching!
18
+ config.example_status_persistence_file_path = "spec/.status"
19
+ config.filter_run :focus
20
+ config.filter_run_when_matching :focus
21
+ config.order = :random
22
+ config.profile_examples = 5
23
+ config.run_all_when_everything_filtered = true
24
+ config.shared_context_metadata_behavior = :apply_to_host_groups
25
+ config.warnings = true
26
+
20
27
  config.include( Loggability::SpecHelpers )
21
28
  end
22
29
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,56 +1,54 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent_fixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
14
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
15
- HhcNMTcwOTI3MDAzMDQ0WhcNMTg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+ ozilJg4aar2okb/RA6VS87o+d7g6LpDDMMQjH4G9OPnJENLdhu8KnPw/ivSVvQw7
24
+ N2I4L/ZOIe2DIVuYH7aLHfjZDQv/mNgpAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYD
25
+ VR0PBAQDAgSwMB0GA1UdDgQWBBRyjf55EbrHagiRLqt5YAd3yb8k4DANBgkqhkiG
26
+ 9w0BAQsFAAOCAYEASrm1AbEoxACZ9WXJH3R5axV3U0CA4xaETlL2YT+2nOfVBMQ9
27
+ 0ZlkPx6j4ghKJgAIi1TMfDM2JyPJsppQh8tiNccDjWc62UZRY/dq26cMqf/lcI+a
28
+ 6YBuEYvzZfearwVs8tHnXtwYV3WSCoCOQaB+nq2lA1O+nkKNl41WOsVbNama5jx3
29
+ 8cQtVSEEmZy6jIDJ8c5TmBJ7BQUDEUEWA/A3V42Xyctoj7DvUXWE0lP+X6ypAVSr
30
+ lFh3TS64D7NTvxkmg7natUoCvobl6kGl4yMaqE4YRTlfuzhpf91TSOntClqrAOsS
31
+ K1s56WndQj3IoBocdY9mQhDZLtLHofSkymoP8btBlj5SsN24TiF0VMSZlctSCYZg
32
+ GKyHim/MMlIfGOWsgfioq5jzwmql7W4CDubbb8Lkg70v+hN2E/MnNVAcNE3gyaGc
33
+ P5YP5BAbNW+gvd3QHRiWTTuhgHrdDnGdXg93N2M5KHn1ug8BtPLQwlcFwEpKnlLn
34
+ btEP+7EplFuoiMfd
37
35
  -----END CERTIFICATE-----
38
- date: 2018-08-29 00:00:00.000000000 Z
36
+ date: 2022-04-10 00:00:00.000000000 Z
39
37
  dependencies:
40
38
  - !ruby/object:Gem::Dependency
41
- name: loggability
39
+ name: faker
42
40
  requirement: !ruby/object:Gem::Requirement
43
41
  requirements:
44
42
  - - "~>"
45
43
  - !ruby/object:Gem::Version
46
- version: '0.11'
44
+ version: '2.14'
47
45
  type: :runtime
48
46
  prerelease: false
49
47
  version_requirements: !ruby/object:Gem::Requirement
50
48
  requirements:
51
49
  - - "~>"
52
50
  - !ruby/object:Gem::Version
53
- version: '0.11'
51
+ version: '2.14'
54
52
  - !ruby/object:Gem::Dependency
55
53
  name: inflecto
56
54
  requirement: !ruby/object:Gem::Requirement
@@ -66,140 +64,72 @@ dependencies:
66
64
  - !ruby/object:Gem::Version
67
65
  version: '0.0'
68
66
  - !ruby/object:Gem::Dependency
69
- name: hoe-mercurial
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '1.4'
75
- type: :development
76
- prerelease: false
77
- version_requirements: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.4'
82
- - !ruby/object:Gem::Dependency
83
- name: hoe-deveiate
84
- requirement: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '0.9'
89
- type: :development
90
- prerelease: false
91
- version_requirements: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '0.9'
96
- - !ruby/object:Gem::Dependency
97
- name: hoe-highline
98
- requirement: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '0.2'
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '0.2'
110
- - !ruby/object:Gem::Dependency
111
- name: faker
67
+ name: loggability
112
68
  requirement: !ruby/object:Gem::Requirement
113
69
  requirements:
114
70
  - - "~>"
115
71
  - !ruby/object:Gem::Version
116
- version: '1.6'
117
- type: :development
72
+ version: '0.17'
73
+ type: :runtime
118
74
  prerelease: false
119
75
  version_requirements: !ruby/object:Gem::Requirement
120
76
  requirements:
121
77
  - - "~>"
122
78
  - !ruby/object:Gem::Version
123
- version: '1.6'
79
+ version: '0.17'
124
80
  - !ruby/object:Gem::Dependency
125
- name: simplecov
81
+ name: rake-deveiate
126
82
  requirement: !ruby/object:Gem::Requirement
127
83
  requirements:
128
84
  - - "~>"
129
85
  - !ruby/object:Gem::Version
130
- version: '0.12'
86
+ version: '0.15'
131
87
  type: :development
132
88
  prerelease: false
133
89
  version_requirements: !ruby/object:Gem::Requirement
134
90
  requirements:
135
91
  - - "~>"
136
92
  - !ruby/object:Gem::Version
137
- version: '0.12'
93
+ version: '0.15'
138
94
  - !ruby/object:Gem::Dependency
139
95
  name: rdoc-generator-fivefish
140
96
  requirement: !ruby/object:Gem::Requirement
141
97
  requirements:
142
98
  - - "~>"
143
99
  - !ruby/object:Gem::Version
144
- version: '0.1'
100
+ version: '0.4'
145
101
  type: :development
146
102
  prerelease: false
147
103
  version_requirements: !ruby/object:Gem::Requirement
148
104
  requirements:
149
105
  - - "~>"
150
106
  - !ruby/object:Gem::Version
151
- version: '0.1'
107
+ version: '0.4'
152
108
  - !ruby/object:Gem::Dependency
153
- name: rdoc
109
+ name: i18n
154
110
  requirement: !ruby/object:Gem::Requirement
155
111
  requirements:
156
- - - "~>"
112
+ - - ">="
157
113
  - !ruby/object:Gem::Version
158
- version: '4.0'
114
+ version: 1.8.11
159
115
  type: :development
160
116
  prerelease: false
161
117
  version_requirements: !ruby/object:Gem::Requirement
162
118
  requirements:
163
- - - "~>"
119
+ - - ">="
164
120
  - !ruby/object:Gem::Version
165
- version: '4.0'
166
- - !ruby/object:Gem::Dependency
167
- name: hoe
168
- requirement: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - "~>"
171
- - !ruby/object:Gem::Version
172
- version: '3.16'
173
- type: :development
174
- prerelease: false
175
- version_requirements: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '3.16'
180
- description: |-
181
- FluentFixtures is a toolkit for building testing objects with a fluent interface.
182
-
183
- It allows testers to describe test data via composition rather than setting up fragile monolithic datasets.
184
-
185
- To see a walkthrough of how you might set your own fixtures up, check out the [The Setup](TheSetup_md.html).
186
-
187
- If you're already on your way and just want some API docs, [we got those, too](FluentFixtures.html).
121
+ version: 1.8.11
122
+ description: FluentFixtures is a toolkit for building testing objects with a fluent
123
+ interface.
188
124
  email:
189
- - ged@FaerieMUD.org
125
+ - ged@faeriemud.org
190
126
  executables: []
191
127
  extensions: []
192
- extra_rdoc_files:
193
- - History.md
194
- - LICENSE.txt
195
- - Manifest.txt
196
- - README.md
197
- - TheSetup.md
128
+ extra_rdoc_files: []
198
129
  files:
199
130
  - ".document"
200
131
  - ".rdoc_options"
201
132
  - ".simplecov"
202
- - ChangeLog
203
133
  - History.md
204
134
  - LICENSE.txt
205
135
  - Manifest.txt
@@ -215,30 +145,32 @@ files:
215
145
  - spec/fluent_fixtures/factory_spec.rb
216
146
  - spec/fluent_fixtures_spec.rb
217
147
  - spec/spec_helper.rb
218
- homepage: http://deveiate.org/projects/fluent_fixtures
148
+ homepage: https://hg.sr.ht/~ged/fluent_fixtures
219
149
  licenses:
220
150
  - BSD-3-Clause
221
- metadata: {}
222
- post_install_message:
223
- rdoc_options:
224
- - "--main"
225
- - README.md
151
+ metadata:
152
+ homepage_uri: https://hg.sr.ht/~ged/fluent_fixtures
153
+ documentation_uri: http://deveiate.org/code/fluent_fixtures
154
+ changelog_uri: http://deveiate.org/code/fluent_fixtures/History_md.html
155
+ source_uri: https://hg.sr.ht/~ged/fluent_fixtures/browse
156
+ bug_tracker_uri: https://todo.sr.ht/~ged/fluent_fixtures/browse
157
+ post_install_message:
158
+ rdoc_options: []
226
159
  require_paths:
227
160
  - lib
228
161
  required_ruby_version: !ruby/object:Gem::Requirement
229
162
  requirements:
230
163
  - - ">="
231
164
  - !ruby/object:Gem::Version
232
- version: 2.2.0
165
+ version: '0'
233
166
  required_rubygems_version: !ruby/object:Gem::Requirement
234
167
  requirements:
235
168
  - - ">="
236
169
  - !ruby/object:Gem::Version
237
170
  version: '0'
238
171
  requirements: []
239
- rubyforge_project:
240
- rubygems_version: 2.7.6
241
- signing_key:
172
+ rubygems_version: 3.3.7
173
+ signing_key:
242
174
  specification_version: 4
243
- summary: FluentFixtures is a toolkit for building testing objects with a fluent interface
175
+ summary: FluentFixtures is a toolkit for building testing objects with a fluent interface.
244
176
  test_files: []
metadata.gz.sig CHANGED
Binary file
data/ChangeLog DELETED
@@ -1,271 +0,0 @@
1
- 2018-06-12 Michael Granger <ged@FaerieMUD.org>
2
-
3
- * .ruby-version, examples/nodb/lib/acme/fixtures/users.rb,
4
- lib/fluent_fixtures/dsl.rb, lib/fluent_fixtures/factory.rb,
5
- spec/fluent_fixtures/dsl_spec.rb,
6
- spec/fluent_fixtures/factory_spec.rb:
7
- Add composed decorators
8
- [5a9635f0e734] [github/master, tip]
9
-
10
- 2017-10-30 Michael Granger <ged@FaerieMUD.org>
11
-
12
- * README.md:
13
- Remove the (now retired) project link
14
- [145d33914658]
15
-
16
- * .ruby-version:
17
- Bump ruby version to 2.4
18
- [7aba5ecd78b7]
19
-
20
- * .hgtags:
21
- Added tag v0.6.1 for changeset 26a51ed462e4
22
- [91ab791a3775]
23
-
24
- * .hgsigs:
25
- Added signature for changeset a7a6e88dd27a
26
- [26a51ed462e4] [v0.6.1]
27
-
28
- * History.md, lib/fluent_fixtures.rb:
29
- Bump the patch version, update history.
30
- [a7a6e88dd27a]
31
-
32
- * lib/fluent_fixtures/dsl.rb, spec/fluent_fixtures/dsl_spec.rb:
33
- Fix a bug with decorator aliasing
34
- [660937258342]
35
-
36
- * lib/fluent_fixtures/dsl.rb:
37
- Style consistency fixes
38
- [834df1ab36a0]
39
-
40
- * certs/ged.pem:
41
- Update my gem-signing cert
42
- [49ee3a922275]
43
-
44
- 2017-06-26 Michael Granger <ged@FaerieMUD.org>
45
-
46
- * .hgtags:
47
- Added tag v0.6.0 for changeset 3a609403c94a
48
- [3d4cf477828e] [github/@]
49
-
50
- * .hgsigs:
51
- Added signature for changeset 3d6408efbde6
52
- [3a609403c94a] [v0.6.0]
53
-
54
- * History.md, lib/fluent_fixtures.rb:
55
- Bump the minor version, update history.
56
- [3d6408efbde6]
57
-
58
- * lib/fluent_fixtures/factory.rb,
59
- spec/fluent_fixtures/factory_spec.rb:
60
- Add support for mutator blocks to factory generators.
61
- [068568028a13]
62
-
63
- * README.md, lib/fluent_fixtures.rb,
64
- lib/fluent_fixtures/collection.rb:
65
- Start work on better docs
66
- [9f00baf84bb2]
67
-
68
- 2017-05-15 Michael Granger <ged@FaerieMUD.org>
69
-
70
- * .hgtags:
71
- Added tag v0.5.0 for changeset a6a7c1070f6d
72
- [b8576e389b5e]
73
-
74
- * .hgsigs:
75
- Added signature for changeset ed67198925b5
76
- [a6a7c1070f6d] [v0.5.0]
77
-
78
- * History.md, lib/fluent_fixtures.rb:
79
- Bump the minor version, update history.
80
- [ed67198925b5]
81
-
82
- 2017-05-12 Michael Granger <ged@FaerieMUD.org>
83
-
84
- * lib/fluent_fixtures/collection.rb, lib/fluent_fixtures/dsl.rb,
85
- lib/fluent_fixtures/factory.rb,
86
- spec/fluent_fixtures/collection_spec.rb,
87
- spec/fluent_fixtures/dsl_spec.rb,
88
- spec/fluent_fixtures/factory_spec.rb:
89
- Add a `presave` option for decorators that need a saved instance.
90
- [d4160c6c04e0]
91
-
92
- 2016-12-13 Michael Granger <ged@FaerieMUD.org>
93
-
94
- * .hgtags:
95
- Added tag v0.4.0 for changeset c40d3bf82a13
96
- [f2a8c07ad5c0]
97
-
98
- * .hgsigs:
99
- Added signature for changeset 08f17f26d0cb
100
- [c40d3bf82a13] [v0.4.0]
101
-
102
- * History.md, lib/fluent_fixtures.rb:
103
- Bumping the minor version, update history.
104
- [08f17f26d0cb]
105
-
106
- * fluent_fixtures.gemspec, lib/fluent_fixtures/dsl.rb,
107
- spec/fluent_fixtures/dsl_spec.rb:
108
- Added syntactic sugar for loading dependent fixtures.
109
- [76eda4f07dab]
110
-
111
- * .gems, Rakefile:
112
- Update simplecov dependency
113
- [323862c0cf01]
114
-
115
- 2016-11-26 Michael Granger <ged@FaerieMUD.org>
116
-
117
- * .hgtags:
118
- Added tag v0.3.0 for changeset e544333544cd
119
- [85277035e13e]
120
-
121
- * .hgsigs:
122
- Added signature for changeset 5b362f519048
123
- [e544333544cd] [v0.3.0]
124
-
125
- * History.md, lib/fluent_fixtures.rb:
126
- Bump the minor version, update history.
127
- [5b362f519048]
128
-
129
- * lib/fluent_fixtures/factory.rb,
130
- spec/fluent_fixtures/factory_spec.rb:
131
- Make the factory Enumerable and add a #generator method.
132
- [4726dd9edf86]
133
-
134
- 2016-10-28 Michael Granger <ged@FaerieMUD.org>
135
-
136
- * .hgtags:
137
- Added tag v0.2.0 for changeset f79d1cd08ad6
138
- [5b146c864a81]
139
-
140
- * .hgsigs:
141
- Added signature for changeset bde330b02946
142
- [f79d1cd08ad6] [v0.2.0]
143
-
144
- * History.md, lib/fluent_fixtures.rb:
145
- Bump the minor version, update history.
146
- [bde330b02946]
147
-
148
- * lib/fluent_fixtures/factory.rb,
149
- spec/fluent_fixtures/factory_spec.rb:
150
- Fix the way #create and #instance handle their arguments.
151
- [94fff76f0a8e]
152
-
153
- * .hgignore:
154
- Ignore the pkg/ directory
155
- [f4e96804d322]
156
-
157
- * examples/sequel_model/acme_fixtures.rb:
158
- Make some examples read a bit more clearly
159
- [78c923459cc5]
160
-
161
- * .hgtags:
162
- Added tag v0.1.0 for changeset 0b4ecbd00a8f
163
- [9cfa00bbea21]
164
-
165
- * .hgsigs:
166
- Added signature for changeset c6eb79628953
167
- [0b4ecbd00a8f] [v0.1.0]
168
-
169
- * History.md, lib/fluent_fixtures.rb:
170
- Bump the minor version, update history.
171
- [c6eb79628953]
172
-
173
- * .gems, Manifest.txt, lib/fluent_fixtures/dsl.rb,
174
- lib/fluent_fixtures/factory.rb,
175
- spec/fluent_fixtures/collection_spec.rb,
176
- spec/fluent_fixtures/dsl_spec.rb,
177
- spec/fluent_fixtures/factory_spec.rb:
178
- Add an after-save hook and a declaration for it.
179
- [45426c7cbfd8]
180
-
181
- * certs/ged.pem:
182
- Update gem cert to the latest one
183
- [f3b80f1dca30]
184
-
185
- * GettingStarted.md, README.md, TheSetup.md:
186
- Add some more documentation work
187
- [9428d297d024]
188
-
189
- 2016-10-20 Michael Granger <ged@FaerieMUD.org>
190
-
191
- * examples/acme_fixtures.rb, examples/lib/acme.rb,
192
- examples/lib/acme/base.rb, examples/lib/acme/fixtures.rb,
193
- examples/lib/acme/fixtures/groups.rb,
194
- examples/lib/acme/fixtures/users.rb, examples/lib/acme/group.rb,
195
- examples/lib/acme/user.rb, examples/nodb/acme_fixtures.rb,
196
- examples/nodb/lib/acme.rb, examples/nodb/lib/acme/base.rb,
197
- examples/nodb/lib/acme/fixtures.rb,
198
- examples/nodb/lib/acme/fixtures/groups.rb,
199
- examples/nodb/lib/acme/fixtures/users.rb,
200
- examples/nodb/lib/acme/group.rb, examples/nodb/lib/acme/user.rb,
201
- examples/sequel_model/.pryrc, examples/sequel_model/Gemfile,
202
- examples/sequel_model/Gemfile.lock,
203
- examples/sequel_model/acme_fixtures.rb,
204
- examples/sequel_model/lib/acme.rb,
205
- examples/sequel_model/lib/acme/customer.rb,
206
- examples/sequel_model/lib/acme/fixtures.rb,
207
- examples/sequel_model/lib/acme/fixtures/customers.rb,
208
- examples/sequel_model/lib/acme/fixtures/order_items.rb,
209
- examples/sequel_model/lib/acme/fixtures/orders.rb,
210
- examples/sequel_model/lib/acme/order.rb,
211
- examples/sequel_model/lib/acme/order_item.rb,
212
- examples/sequel_model/migrations/1_schema.rb:
213
- Split examples into per-backend directories
214
- [49d76036d758]
215
-
216
- 2016-06-01 Michael Granger <ged@FaerieMUD.org>
217
-
218
- * .hgtags:
219
- Added tag v0.0.2 for changeset f13e6d1aa624
220
- [9c56821be4a9]
221
-
222
- * .hgsigs:
223
- Added signature for changeset e500071dd9c0
224
- [f13e6d1aa624] [v0.0.2]
225
-
226
- * History.md, lib/fluent_fixtures.rb:
227
- Bump the patch version, update history.
228
- [e500071dd9c0]
229
-
230
- * Rakefile, fluent_fixtures.gemspec:
231
- Remove the release failsafe from the Rakefile
232
- [61698db3838e]
233
-
234
- * .hgtags:
235
- Added tag v0.0.1 for changeset cd547b1e30a8
236
- [e26dbd686588]
237
-
238
- * .hgsigs:
239
- Added signature for changeset 588b8ccc042c
240
- [cd547b1e30a8] [v0.0.1]
241
-
242
- * History.md:
243
- Update history
244
- [588b8ccc042c]
245
-
246
- * .hgignore, .hoerc, ChangeLog, Manifest.txt, fluent_fixtures.gemspec,
247
- lib/fluent_fixtures/dsl.rb, lib/fluent_fixtures/factory.rb:
248
- Clean up the manifest a bit.
249
- [41b90ff8e6d0]
250
-
251
- * .editorconfig, .hgignore, ChangeLog, GettingStarted.md, README.md,
252
- Rakefile, examples/acme_fixtures.rb, examples/lib/acme.rb,
253
- examples/lib/acme/base.rb, examples/lib/acme/fixtures.rb,
254
- examples/lib/acme/fixtures/groups.rb,
255
- examples/lib/acme/fixtures/users.rb, examples/lib/acme/group.rb,
256
- examples/lib/acme/user.rb:
257
- Add the start of examples and a "Getting Started" guide
258
- [2230db2a4a5a]
259
-
260
- * .document, .editorconfig, .gems, .gitignore, .hgignore, .pryrc,
261
- .rdoc_options, .ruby-gemset, .ruby-version, .simplecov, Gemfile,
262
- History.md, LICENSE.txt, Manifest.txt, README.md, Rakefile,
263
- certs/ged.pem, fluent_fixtures.gemspec, lib/fluent_fixtures.rb,
264
- lib/fluent_fixtures/collection.rb, lib/fluent_fixtures/dsl.rb,
265
- lib/fluent_fixtures/factory.rb,
266
- spec/fluent_fixtures/collection_spec.rb,
267
- spec/fluent_fixtures/dsl_spec.rb,
268
- spec/fluent_fixtures/factory_spec.rb, spec/fluent_fixtures_spec.rb,
269
- spec/spec_helper.rb:
270
- Initial import
271
- [76c036a3676b]