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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 686ce608e7d06544dda1e2547578f930ef572215
4
- data.tar.gz: df46fd772d024595c3ae6d5c0c95b1804ac20017
3
+ metadata.gz: 2e8743250fb9cace705b986b6fa4aff38d306d8a
4
+ data.tar.gz: c55c7f1f4462a5fa91032ce2a0b4c38bb1e144f2
5
5
  SHA512:
6
- metadata.gz: 3490e33b42da93499da6b6f97974a886abd09f7d127fbb04fb2d1b6f9785c64daec937300412ed067789d0758d7d250518f9ceb5109e33de452b95e5b8592af3
7
- data.tar.gz: 773cf02f3fcc331ba4e131ebee6900e084d8d6f89671d1e4f704e07f0eab7ecad9cca7a9e4b877fd59f7bcdad747c924093678489c59cf2f59524da8d44a08e9
6
+ metadata.gz: 95a455bf2e1751ea014ac098ed3202ea50f8716091a295749271f8569dff65adb37106235741c2fc432968dd94a077ecbab69c64a3e16b4c06f06b3fd0e88336
7
+ data.tar.gz: 806c107741fb409bf288ff4f79d59babcfcb1c207a3fdff55358c39c6d88e5063acfeab01d8359c2f7df2ccbd647eeca6e09a721408cd96cb1137cd28294b366
data/README.md CHANGED
@@ -28,6 +28,7 @@ At the moment the following metadata is supported:
28
28
  ApexClass
29
29
  ApexPage
30
30
  ApexTrigger
31
+ ApexComponent
31
32
  ApprovalProcess
32
33
  CustomField
33
34
  Group
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Dcgen
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -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.6.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-01-08 00:00:00.000000000 Z
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.4.3
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