salesforce-deploy-tool 0.9.1 → 0.9.2

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: 748672e4256f284b884e61cd6ba4951661891c79
4
- data.tar.gz: c59c1d47ea70f4c60877da96002b6330948a75a1
3
+ metadata.gz: 722475f52f0baac2b0fb686ad87975f53b96ebe1
4
+ data.tar.gz: dda7109d8b424bfba03bd8ddba2974ec977e8bbe
5
5
  SHA512:
6
- metadata.gz: 9864645efdb9ca34dc55fa202aaa94c605c016dd815cddea93fbbbcad2a8c57883a330021812776e46a546651d995fd01fe30a625e76ed6da2db0c5c24e678e8
7
- data.tar.gz: edb5aa074fdb2ccda5dd9e91ab0394a4ad5e5b92521a35dd6171f3ebb7841c4a10020d0199f0456bace6f9f190345020136f5b6cfa69266ee138756522bae244
6
+ metadata.gz: 02580608dc6beca50b472fbd0217220cc739d18a74a45b3b2527a636651329d2fed511f41b2a8d8d063c8301e8517f5ebde15b5418dbd91d7112055f92203e06
7
+ data.tar.gz: f93fad016ce7ad0f065d068fd76ca1c8353d1c846a09b3228f2e25c8626e40ea53d03583836e38011e8aa4df5637f54ad3f859af3685c14dcb935df2273ed5e9
data/bin/sf CHANGED
@@ -154,7 +154,12 @@ command :push do |c|
154
154
  # reference and only then SF will allow us to remove the field on the second
155
155
  # push
156
156
  sfdt.build_number = options.build_number if not options.build_number.nil?
157
- sfdt.push
157
+ sfdt.set_version
158
+ begin
159
+ sfdt.push
160
+ ensure
161
+ sfdt.clean_version
162
+ end
158
163
 
159
164
  if ! options.append
160
165
  # Pull changes from sandbox to temporary directory:
@@ -182,7 +187,11 @@ command :push do |c|
182
187
  $stdout = stdout_tmp
183
188
 
184
189
  # Destructive push
185
- sfdt.push
190
+ begin
191
+ sfdt.push
192
+ ensure
193
+ sfdt.clean_version
194
+ end
186
195
  end
187
196
  end
188
197
  end
@@ -1,4 +1,5 @@
1
1
  require "rubygems"
2
+ require "pathname"
2
3
  require "commander/import"
3
4
  require "git"
4
5
  require "pp"
@@ -27,7 +27,7 @@ module SalesforceDeployTool
27
27
 
28
28
  end
29
29
 
30
- def commit_hash
30
+ def set_version
31
31
 
32
32
  g = Git.open(@git_dir)
33
33
 
@@ -104,8 +104,6 @@ module SalesforceDeployTool
104
104
 
105
105
  exit_code = myexec full_cmd, exec_options
106
106
 
107
- clean_version
108
-
109
107
  exit exit_code if exit_code != 0
110
108
 
111
109
  end
@@ -115,9 +113,6 @@ module SalesforceDeployTool
115
113
  # Working dir
116
114
  Dir.chdir @git_dir
117
115
 
118
- # Add the commit hash to the version file
119
- commit_hash
120
-
121
116
  # Set env variables to run ant
122
117
  env_vars = ""
123
118
  env_vars += " SF_USERNAME=" + @username
@@ -153,9 +148,6 @@ module SalesforceDeployTool
153
148
  # Push the code
154
149
  exit_code = myexec full_cmd, exec_options
155
150
 
156
- # Clean changes on version file
157
- clean_version
158
-
159
151
  # exit with exit_code
160
152
  exit exit_code if exit_code != 0
161
153
 
@@ -1,3 +1,3 @@
1
1
  module SalesforceDeployTool
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce-deploy-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Breinlinger