maestro-plugin-rake-tasks 1.0.6 → 1.0.7
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 675fe1181d7c7bdb92f93c5ff68d958e65764e53
|
4
|
+
data.tar.gz: 998683c44dec399ab3fb46847a098af7c7c67312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcfd1d2f1daa463d4584e27a2467a95772252ad553f682c8674f4579f7afd50f631f90817a9d9fcd84f89c967f1c4baa829baf713ab09fae4c2454157d45273c
|
7
|
+
data.tar.gz: c5b87e4c6f8a64a9b508c8b5614455d5cd58c7469035b59de3daaafe0088af79d3ae423ac10c8b063e40bdaf71f93b8aa0494cb2c6fbe7a548faf95f1de48c95
|
@@ -114,6 +114,7 @@ module Maestro
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def git_version
|
117
|
+
return @version unless Dir.exists?(".git")
|
117
118
|
git = Git.open('.')
|
118
119
|
# check if there are modified files
|
119
120
|
if git.status.select { |s| s.type == 'M' }.empty?
|
@@ -127,8 +128,6 @@ module Maestro
|
|
127
128
|
|
128
129
|
# update the version number in the manifest file.
|
129
130
|
def update_manifest(manifest_version)
|
130
|
-
return @version unless File.exists?('.git')
|
131
|
-
|
132
131
|
manifest = JSON.parse(IO.read(@manifest_template_path))
|
133
132
|
if manifest.instance_of? Array
|
134
133
|
manifest.each { |m| m['version'] = manifest_version }
|
@@ -150,8 +149,12 @@ module Maestro
|
|
150
149
|
|
151
150
|
# add a file to the zip file
|
152
151
|
def add_file( zippyfile, f )
|
153
|
-
|
154
|
-
|
152
|
+
if File.exists?(f)
|
153
|
+
puts "Writing #{f} at #{@dest_dir}" if verbose
|
154
|
+
zippyfile["#{@dest_dir}/#{f}"] = File.open(f)
|
155
|
+
else
|
156
|
+
puts "Ignoring missing file #{f} at #{@dest_dir}"
|
157
|
+
end
|
155
158
|
end
|
156
159
|
|
157
160
|
# add a directory to the zip file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maestro-plugin-rake-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Etienne Pelletier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|