git-deploy 0.4.0 → 0.4.1
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/lib/hooks/post-reset.rb +5 -5
- metadata +12 -5
data/lib/hooks/post-reset.rb
CHANGED
@@ -66,6 +66,11 @@ unless asset_dirs.empty?
|
|
66
66
|
cached_assets_cleared = true
|
67
67
|
end
|
68
68
|
|
69
|
+
if changed_files.include?('Gemfile') || changed_files.include?('Gemfile.lock')
|
70
|
+
# update bundled gems if manifest file has changed
|
71
|
+
system %(umask 002 && bundle install --deployment)
|
72
|
+
end
|
73
|
+
|
69
74
|
# run migrations when new ones added
|
70
75
|
if new_migrations = added_files.any_in_dir?('db/migrate')
|
71
76
|
system %(umask 002 && rake db:migrate RAILS_ENV=#{RAILS_ENV})
|
@@ -98,11 +103,6 @@ end
|
|
98
103
|
# update existing submodules
|
99
104
|
system %(umask 002 && git submodule update)
|
100
105
|
|
101
|
-
if changed_files.include?('Gemfile')
|
102
|
-
# update bundled gems if manifest file has changed
|
103
|
-
system %(umask 002 && bundle install)
|
104
|
-
end
|
105
|
-
|
106
106
|
# clean unversioned files from vendor (e.g. old submodules)
|
107
107
|
system %(git clean -d -f vendor)
|
108
108
|
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 13
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- "Mislav Marohni\xC4\x87"
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-10-08 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: capistrano
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ~>
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 9
|
27
30
|
segments:
|
28
31
|
- 2
|
29
32
|
- 5
|
@@ -45,7 +48,7 @@ files:
|
|
45
48
|
- lib/hooks/post-reset.rb
|
46
49
|
- README.markdown
|
47
50
|
- LICENSE
|
48
|
-
has_rdoc:
|
51
|
+
has_rdoc: false
|
49
52
|
homepage: http://github.com/mislav/git-deploy
|
50
53
|
licenses: []
|
51
54
|
|
@@ -55,23 +58,27 @@ rdoc_options: []
|
|
55
58
|
require_paths:
|
56
59
|
- lib
|
57
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
58
62
|
requirements:
|
59
63
|
- - ">="
|
60
64
|
- !ruby/object:Gem::Version
|
65
|
+
hash: 3
|
61
66
|
segments:
|
62
67
|
- 0
|
63
68
|
version: "0"
|
64
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
65
71
|
requirements:
|
66
72
|
- - ">="
|
67
73
|
- !ruby/object:Gem::Version
|
74
|
+
hash: 3
|
68
75
|
segments:
|
69
76
|
- 0
|
70
77
|
version: "0"
|
71
78
|
requirements: []
|
72
79
|
|
73
80
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.3.
|
81
|
+
rubygems_version: 1.3.7
|
75
82
|
signing_key:
|
76
83
|
specification_version: 3
|
77
84
|
summary: Simple git push-based application deployment
|