salesforce-dcgen 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/dcgen/plugins/apexcomponent.rb +21 -0
- data/lib/dcgen/version.rb +1 -1
- data/tpl/destructiveChanges.xml.erb +8 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e8743250fb9cace705b986b6fa4aff38d306d8a
|
4
|
+
data.tar.gz: c55c7f1f4462a5fa91032ce2a0b4c38bb1e144f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95a455bf2e1751ea014ac098ed3202ea50f8716091a295749271f8569dff65adb37106235741c2fc432968dd94a077ecbab69c64a3e16b4c06f06b3fd0e88336
|
7
|
+
data.tar.gz: 806c107741fb409bf288ff4f79d59babcfcb1c207a3fdff55358c39c6d88e5063acfeab01d8359c2f7df2ccbd647eeca6e09a721408cd96cb1137cd28294b366
|
data/README.md
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
module Dcgen
|
2
|
+
|
3
|
+
def self.apexcomponent master , destination, output = true
|
4
|
+
|
5
|
+
master_components = Dir.glob(master + '/components/*component').map {|c| c.match(/^.*\/(.*).component$/)[1] }
|
6
|
+
destination_components = Dir.glob(destination + '/components/*component').map {|c| c.match(/^.*\/(.*).component$/)[1] }
|
7
|
+
|
8
|
+
remove_components = destination_components - master_components
|
9
|
+
|
10
|
+
if output
|
11
|
+
puts "ApexComponents:" if not remove_components.empty?
|
12
|
+
remove_components.each do |apexcomponent|
|
13
|
+
puts " #{apexcomponent}"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
remove_components
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
data/lib/dcgen/version.rb
CHANGED
@@ -8,6 +8,14 @@
|
|
8
8
|
<name>ApexClass</name>
|
9
9
|
</types>
|
10
10
|
<% end %>
|
11
|
+
<% if not @metadata[:apexcomponent].empty? %>
|
12
|
+
<types>
|
13
|
+
<% for @apexcomponent in @metadata[:apexcomponent] %>
|
14
|
+
<members><%= @apexcomponent %></members>
|
15
|
+
<% end %>
|
16
|
+
<name>ApexComponent</name>
|
17
|
+
</types>
|
18
|
+
<% end %>
|
11
19
|
<% if not @metadata[:apextrigger].empty? %>
|
12
20
|
<types>
|
13
21
|
<% for @apextrigger in @metadata[:apextrigger] %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salesforce-dcgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Breinlinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- lib/dcgen.rb
|
70
70
|
- lib/dcgen/app.rb
|
71
71
|
- lib/dcgen/plugins/apexclass.rb
|
72
|
+
- lib/dcgen/plugins/apexcomponent.rb
|
72
73
|
- lib/dcgen/plugins/apexpage.rb
|
73
74
|
- lib/dcgen/plugins/apextrigger.rb
|
74
75
|
- lib/dcgen/plugins/approvalprocess.rb
|
@@ -104,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
105
|
version: '0'
|
105
106
|
requirements: []
|
106
107
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.2.2
|
108
109
|
signing_key:
|
109
110
|
specification_version: 4
|
110
111
|
summary: dcgen will generate a destructiveChanges.xml by comparing two source directories
|