test_data 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +45 -0
  3. data/CHANGELOG.md +8 -1
  4. data/Gemfile.lock +5 -3
  5. data/README.md +961 -17
  6. data/example/Gemfile +3 -0
  7. data/example/Gemfile.lock +32 -3
  8. data/example/README.md +2 -22
  9. data/example/config/credentials.yml.enc +2 -1
  10. data/example/config/database.yml +2 -0
  11. data/example/spec/rails_helper.rb +64 -0
  12. data/example/spec/requests/boops_spec.rb +21 -0
  13. data/example/spec/spec_helper.rb +94 -0
  14. data/example/test/factories.rb +4 -0
  15. data/example/test/integration/better_mode_switching_demo_test.rb +45 -0
  16. data/example/test/integration/boops_that_boop_boops_test.rb +17 -0
  17. data/example/test/integration/dont_dump_tables_test.rb +7 -0
  18. data/example/test/integration/load_rollback_truncate_test.rb +195 -0
  19. data/example/test/integration/mode_switching_demo_test.rb +48 -0
  20. data/example/test/integration/parallel_boops_with_fixtures_test.rb +14 -0
  21. data/example/test/integration/parallel_boops_without_fixtures_test.rb +13 -0
  22. data/example/test/integration/transaction_committing_boops_test.rb +25 -0
  23. data/example/test/test_helper.rb +3 -26
  24. data/lib/generators/test_data/database_yaml_generator.rb +1 -1
  25. data/lib/generators/test_data/environment_file_generator.rb +0 -14
  26. data/lib/generators/test_data/initializer_generator.rb +38 -0
  27. data/lib/generators/test_data/webpacker_yaml_generator.rb +1 -1
  28. data/lib/test_data.rb +5 -0
  29. data/lib/test_data/config.rb +25 -2
  30. data/lib/test_data/configurators.rb +1 -0
  31. data/lib/test_data/configurators/initializer.rb +25 -0
  32. data/lib/test_data/dumps_database.rb +31 -4
  33. data/lib/test_data/loads_database_dumps.rb +7 -7
  34. data/lib/test_data/log.rb +58 -0
  35. data/lib/test_data/rake.rb +7 -5
  36. data/lib/test_data/save_point.rb +34 -0
  37. data/lib/test_data/statistics.rb +26 -0
  38. data/lib/test_data/transactional_data_loader.rb +145 -32
  39. data/lib/test_data/verifies_dumps_are_loadable.rb +4 -4
  40. data/lib/test_data/version.rb +1 -1
  41. data/script/reset_example_app +17 -0
  42. data/script/test +54 -13
  43. metadata +19 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-19 00:00:00.000000000 Z
11
+ date: 2021-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -31,6 +31,7 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - ".github/workflows/ruby.yml"
34
35
  - ".gitignore"
35
36
  - CHANGELOG.md
36
37
  - Gemfile
@@ -90,16 +91,27 @@ files:
90
91
  - example/public/apple-touch-icon.png
91
92
  - example/public/favicon.ico
92
93
  - example/public/robots.txt
94
+ - example/spec/rails_helper.rb
95
+ - example/spec/requests/boops_spec.rb
96
+ - example/spec/spec_helper.rb
93
97
  - example/test/application_system_test_case.rb
98
+ - example/test/factories.rb
94
99
  - example/test/fixtures/boops.yml
95
100
  - example/test/integration/basic_boops_test.rb
101
+ - example/test/integration/better_mode_switching_demo_test.rb
102
+ - example/test/integration/boops_that_boop_boops_test.rb
103
+ - example/test/integration/dont_dump_tables_test.rb
104
+ - example/test/integration/load_rollback_truncate_test.rb
96
105
  - example/test/integration/migrated_boops_test.rb
106
+ - example/test/integration/mode_switching_demo_test.rb
97
107
  - example/test/integration/parallel_boops_with_fixtures_test.rb
98
108
  - example/test/integration/parallel_boops_without_fixtures_test.rb
109
+ - example/test/integration/transaction_committing_boops_test.rb
99
110
  - example/test/integration/updated_boops_test.rb
100
111
  - example/test/test_helper.rb
101
112
  - lib/generators/test_data/database_yaml_generator.rb
102
113
  - lib/generators/test_data/environment_file_generator.rb
114
+ - lib/generators/test_data/initializer_generator.rb
103
115
  - lib/generators/test_data/webpacker_yaml_generator.rb
104
116
  - lib/test_data.rb
105
117
  - lib/test_data/active_support_ext.rb
@@ -108,18 +120,23 @@ files:
108
120
  - lib/test_data/configurators.rb
109
121
  - lib/test_data/configurators/database_yaml.rb
110
122
  - lib/test_data/configurators/environment_file.rb
123
+ - lib/test_data/configurators/initializer.rb
111
124
  - lib/test_data/configurators/webpacker_yaml.rb
112
125
  - lib/test_data/detects_database_emptiness.rb
113
126
  - lib/test_data/dumps_database.rb
114
127
  - lib/test_data/error.rb
115
128
  - lib/test_data/installs_configuration.rb
116
129
  - lib/test_data/loads_database_dumps.rb
130
+ - lib/test_data/log.rb
117
131
  - lib/test_data/railtie.rb
118
132
  - lib/test_data/rake.rb
133
+ - lib/test_data/save_point.rb
134
+ - lib/test_data/statistics.rb
119
135
  - lib/test_data/transactional_data_loader.rb
120
136
  - lib/test_data/verifies_configuration.rb
121
137
  - lib/test_data/verifies_dumps_are_loadable.rb
122
138
  - lib/test_data/version.rb
139
+ - script/reset_example_app
123
140
  - script/test
124
141
  - test_data.gemspec
125
142
  homepage: https://github.com/testdouble/test_data