fixtures_dump 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +18 -6
- data/lib/fixtures_dump/version.rb +1 -1
- data/lib/tasks/fixtures_dump.rake +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35c8233282c86adc1caec5f616b5fd195f9b3d997891bea70a15ee7b70d2efc8
|
4
|
+
data.tar.gz: 27b66b17ceca46cb019ed1586c11e24798a488d8cec45a61e37353bc556b334e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 843dba5ed32b5f109c35fc40a5d15793ecd34facbfe34ccefe72e081d3277937324af28669a78d528c72023158fa7c1f3775684a47a58f20f62fb667e2aa4b01
|
7
|
+
data.tar.gz: 510e2d769d14474fd26454703ae05a95b6047c99e80bff53c1bac46fd10aa28e9288ff7977142ab098d77b41e1847abd32cdc69df5ba615244648be307e8df77
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# FixturesDump
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
A rake task to allow exporting the current database as fixture files (in the Yaml format).
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,7 +20,21 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
### General usage:
|
24
|
+
|
25
|
+
bundle exec rake db:fixtures:dump
|
26
|
+
|
27
|
+
It defaults to using _'test/fixtures'_ as the fixture folder. This can be customized with the environmental variable _FIXTURES_PATH_
|
28
|
+
|
29
|
+
FIXTURES_PATH=spec/fixtures bundle exec rake db:fixtures:dump
|
30
|
+
|
31
|
+
You can either dump all models (with no configuration), or you can whitelist the desired models with the _REQUIRED_ environmental variable.
|
32
|
+
|
33
|
+
REQUIRED=RequiredModel bundle exec rake db:fixtures:dump
|
34
|
+
|
35
|
+
You can also download all the models that descend from _ActiveRecord::Base.descendants_ except for some:
|
36
|
+
|
37
|
+
EXCLUDED=ExcludeThis bundle exec rake db:fixtures:dump
|
26
38
|
|
27
39
|
## Development
|
28
40
|
|
@@ -32,7 +44,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
44
|
|
33
45
|
## Contributing
|
34
46
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
47
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/cionescu/fixtures_dump. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
48
|
|
37
49
|
## License
|
38
50
|
|
@@ -40,4 +52,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
40
52
|
|
41
53
|
## Code of Conduct
|
42
54
|
|
43
|
-
Everyone interacting in the FixturesDump project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
55
|
+
Everyone interacting in the FixturesDump project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/cionescu/fixtures_dump/blob/master/CODE_OF_CONDUCT.md).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixtures_dump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Catalin Ionescu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.7.
|
98
|
+
rubygems_version: 2.7.6
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Fixture Generator
|