the_gardener 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -9
- data/lib/the_gardener/version.rb +1 -1
- data/the_gardener.gemspec +5 -3
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad6e5120b48de97b0a84f1004b4ddfa8f552ea93
|
4
|
+
data.tar.gz: 9ecb6ece2e900ad7941038053d89059d63e3794d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d03cc2cf21a32c09c86b915f7110c13d91045c010425af51bb7d968b373720efa7a778f561793aeb1fceeeab6d49127647c44f09fa43c40f3d3dd60a6d6d85b1
|
7
|
+
data.tar.gz: 8db4ce8512ab39afc81b82fa64ba843d57b14aefeac0ee1d980b9c0ff16a91aaaa7348ddc277148a2e2bda16d6d79f211783db56584efaf6a69c4c5c302fd541
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# TheGardener
|
2
2
|
|
3
|
-
TheGardener helps you to versionize your seed files. If you need to separate
|
3
|
+
TheGardener helps you to versionize your seed files. If you need to separate
|
4
4
|
seedings from migrations, this gem could be helpfull for you.
|
5
5
|
|
6
|
-
TheGardener generates simple seed files filed under `db/seeds` and stores which
|
6
|
+
TheGardener generates simple seed files filed under `db/seeds` and stores which
|
7
7
|
seed allready be executed. it's the same procedure like migrations.
|
8
8
|
|
9
9
|
|
@@ -19,10 +19,6 @@ And then execute:
|
|
19
19
|
```
|
20
20
|
$ bundle
|
21
21
|
```
|
22
|
-
Or install it yourself as:
|
23
|
-
```
|
24
|
-
$ gem install the_gardener
|
25
|
-
```
|
26
22
|
|
27
23
|
Now you just have to install the_gardener in your project:
|
28
24
|
```
|
@@ -43,8 +39,8 @@ Ok, to create a seed file just run:
|
|
43
39
|
$ rails g seed create_new_entries
|
44
40
|
```
|
45
41
|
|
46
|
-
This will create a seedfile like
|
47
|
-
Just put some `Model.create`
|
42
|
+
This will create a seedfile like `20160728211737_create_new_entries` (filed under db/seeds).
|
43
|
+
Just put some `Model.create` or other data manipulation stuff there.
|
48
44
|
|
49
45
|
to run all your seed files just
|
50
46
|
|
@@ -52,7 +48,7 @@ to run all your seed files just
|
|
52
48
|
$ rake tg:seed
|
53
49
|
```
|
54
50
|
|
55
|
-
If there is some seed which throws an error, the task stopped and all seeds in
|
51
|
+
If there is some seed which throws an error, the task stopped and all seeds in
|
56
52
|
this seedfile will be canceled. So fix your seed and run it again.
|
57
53
|
|
58
54
|
## The MIT License (MIT)
|
data/lib/the_gardener/version.rb
CHANGED
data/the_gardener.gemspec
CHANGED
@@ -12,8 +12,8 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.summary = "Gardener, take's care about your seeds!"
|
14
14
|
spec.description = "A Gem for versioned seed files. Create seed files and use
|
15
|
-
it like the active record migrations. it has an generator
|
16
|
-
for seeds, and a task to load all seeds. look at the
|
15
|
+
it like the active record migrations. it has an generator
|
16
|
+
for seeds, and a task to load all seeds. look at the
|
17
17
|
github page for more information."
|
18
18
|
|
19
19
|
|
@@ -27,6 +27,8 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.8"
|
29
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
30
|
-
|
30
|
+
|
31
31
|
spec.required_ruby_version = '>= 2.0.0'
|
32
|
+
|
33
|
+
spec.add_runtime_dependency("rails", "~> 4.0")
|
32
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_gardener
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Starke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,20 +42,21 @@ dependencies:
|
|
42
42
|
name: rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.0
|
48
|
-
type: :
|
47
|
+
version: '4.0'
|
48
|
+
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.0
|
55
|
-
description:
|
56
|
-
|
57
|
-
|
58
|
-
|
54
|
+
version: '4.0'
|
55
|
+
description: |-
|
56
|
+
A Gem for versioned seed files. Create seed files and use
|
57
|
+
it like the active record migrations. it has an generator
|
58
|
+
for seeds, and a task to load all seeds. look at the
|
59
|
+
github page for more information.
|
59
60
|
email:
|
60
61
|
- robertst81@gmail.com
|
61
62
|
executables: []
|