salesforce-deploy-tool 0.8.1 → 0.8.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: 7e0cca9c71bec8d8287aeb390c828da23e72d7f0
4
- data.tar.gz: 9c7ac77a526b63240d8573288f2c5f366a851ab8
3
+ metadata.gz: 999b8948c7bec86caa12cc3b4094ce127a2c845c
4
+ data.tar.gz: 3aad5f771f486b1b804a30a7c8ef983af3e4df24
5
5
  SHA512:
6
- metadata.gz: c964dda50cf4f5658c81c7a8a6190fe5422adef868b23adbb4b91b87dda0c789a162c21538f965a520ad8eb8602e779e90bbe6436c6d0ac095deee06002dfa0a
7
- data.tar.gz: 64cb7cb3fc195b8f904c3cfdddbf038b3badadfd24805d986dba1295a4dd7191dcb43a1e6456b50b52036e8b41aa58df1fcc95448bdee9eccdb583470fa6cb0f
6
+ metadata.gz: b9c4d24562d7a55054f8b6f6a46e476883e03ba997aeeeeb67edf689d589db8816f0dad61053cfee435f6b6c723b90f90c6dd0651ae3c09faa2b88ac1961ba1f
7
+ data.tar.gz: 02f4229e6a3666e9068dd58143e507a27bd55c7bab4d817a18c9e588cfd3294faa1703b0458761199f3dccb0675978b8441baabdcf448f0ea5c749dceae3c90c
data/bin/sf CHANGED
@@ -123,6 +123,14 @@ command :push do |c|
123
123
  # Initialize
124
124
  sfdt = SalesforceDeployTool::App.new config
125
125
 
126
+ # Push the code without destructiveChanges.xml. This step is allways necessary
127
+ # even when it is a destructive change. This is because if a class is referencing
128
+ # a field to be deleted, then we first need to push the class to remove that
129
+ # reference and only then SF will allow us to remove the field on the second
130
+ # push
131
+ sfdt.build_number = options.build_number if not options.build_number.nil?
132
+ sfdt.push
133
+
126
134
  if ! options.append
127
135
  # Pull changes from sandbox to temporary directory:
128
136
  config_tmp = config.clone
@@ -147,12 +155,10 @@ command :push do |c|
147
155
  $stdout = stringio unless options.debug
148
156
  dc_gen.generate_destructive_changes
149
157
  $stdout = stdout_tmp
158
+
159
+ # Destructive push
160
+ sfdt.push
150
161
  end
151
-
152
- # Finally push:
153
- sfdt.build_number = options.build_number if not options.build_number.nil?
154
- sfdt.push
155
-
156
162
  end
157
163
  end
158
164
 
@@ -1,3 +1,3 @@
1
1
  module SalesforceDeployTool
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce-deploy-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Breinlinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-03 00:00:00.000000000 Z
11
+ date: 2014-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler