guard-seeds 0.0.4 → 0.0.5
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.
- data/guard-seeds.gemspec +2 -2
- data/lib/guard/seeds.rb +4 -4
- data/lib/guard/seeds/version.rb +1 -1
- metadata +6 -6
data/guard-seeds.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ["Dmitry Afanasyev"]
|
9
9
|
s.email = ["dimarzio1986@gmail.com"]
|
10
10
|
s.homepage = "https://github.com/icrowley/guard-seeds"
|
11
|
-
s.summary = %q{Guard-Seeds: is a guard extension handling the rake db:
|
12
|
-
s.description = %q{Guard-Seeds: is a guard extension handling the rake db:
|
11
|
+
s.summary = %q{Guard-Seeds: is a guard extension handling the rake db:seed when seeds.rb changes}
|
12
|
+
s.description = %q{Guard-Seeds: is a guard extension handling the rake db:seed when seeds.rb changes}
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/guard/seeds.rb
CHANGED
@@ -41,11 +41,11 @@ module Guard
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def run_db_seeds
|
44
|
-
UI.info "Guard::Seeds is running rake db:
|
44
|
+
UI.info "Guard::Seeds is running rake db:seed"
|
45
45
|
started_at = Time.now
|
46
|
-
@result = system("bundle exec rake db:
|
47
|
-
UI.info "rake db:
|
48
|
-
::Guard::Notifier.notify(@result, :title => 'db:
|
46
|
+
@result = system("bundle exec rake db:seed") || "Seed data loaded successfully"
|
47
|
+
UI.info "rake db:seed ended #{Time.now - started_at} seconds"
|
48
|
+
::Guard::Notifier.notify(@result, :title => 'rake db:seed result', :image => :success) if notify?
|
49
49
|
@result
|
50
50
|
end
|
51
51
|
|
data/lib/guard/seeds/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-seeds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-12-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
16
|
-
requirement: &
|
16
|
+
requirement: &70185622293800 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,9 +21,9 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
description: ! 'Guard-Seeds: is a guard extension handling the rake db:
|
26
|
-
|
24
|
+
version_requirements: *70185622293800
|
25
|
+
description: ! 'Guard-Seeds: is a guard extension handling the rake db:seed when seeds.rb
|
26
|
+
changes'
|
27
27
|
email:
|
28
28
|
- dimarzio1986@gmail.com
|
29
29
|
executables: []
|
@@ -62,7 +62,7 @@ rubyforge_project:
|
|
62
62
|
rubygems_version: 1.8.13
|
63
63
|
signing_key:
|
64
64
|
specification_version: 3
|
65
|
-
summary: ! 'Guard-Seeds: is a guard extension handling the rake db:
|
65
|
+
summary: ! 'Guard-Seeds: is a guard extension handling the rake db:seed when seeds.rb
|
66
66
|
changes'
|
67
67
|
test_files: []
|
68
68
|
has_rdoc:
|