gd_bam 0.1.12 → 0.1.13
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.
- data/lib/bam/version.rb +1 -1
- data/lib/generators/downloaders.rb +14 -4
- metadata +2 -2
data/lib/bam/version.rb
CHANGED
@@ -382,7 +382,7 @@ HEREDOC
|
|
382
382
|
fields = client.fields(o)
|
383
383
|
generic_field_history = ["NewValue", "OldValue", "ParentId"].all? {|fl| fields.include?(fl)}
|
384
384
|
specific_field_history = ["NewValue", "OldValue", "#{sf_object}Id"].all? {|fl| fields.include?(fl)}
|
385
|
-
specific_history = ["
|
385
|
+
specific_history = ["CreatedDate", "#{sf_object}Id"].all? {|fl| fields.include?(fl)}
|
386
386
|
|
387
387
|
select, mapping, mandatory = if generic_field_history
|
388
388
|
[
|
@@ -405,12 +405,22 @@ HEREDOC
|
|
405
405
|
["#{sf_object}Id", "NewValue", "CreatedDate"]
|
406
406
|
]
|
407
407
|
elsif specific_history
|
408
|
-
if
|
408
|
+
if f == "CreatedDate"
|
409
409
|
[
|
410
|
-
"SELECT
|
410
|
+
"SELECT CreatedDate, #{sf_object}Id FROM #{o}",
|
411
|
+
"{\"xmlFieldsMapping\":{\"xmlFields\":[
|
412
|
+
{\"xmlFieldMapping\":{\"name\":\"CreatedDate\",\"label\":\"CreatedDate\",\"xmlPath\":\"CreatedDate\",\"metadataField\":\"Value\"}},
|
413
|
+
{\"xmlFieldMapping\":{\"name\":\"CreatedDate\",\"label\":\"CreatedDate\",\"xmlPath\":\"CreatedDate\",\"metadataField\":\"Timestamp\"}},
|
414
|
+
{\"xmlFieldMapping\":{\"name\":\"#{sf_object}Id\",\"label\":\"#{sf_object}Id\",\"xmlPath\":\"#{sf_object}Id\",\"metadataField\":\"Id\"}}
|
415
|
+
]}}",
|
416
|
+
["#{sf_object}Id", "CreatedDate"]
|
417
|
+
]
|
418
|
+
elsif fields.include?(f)
|
419
|
+
[
|
420
|
+
"SELECT #{f}, CreatedDate, #{sf_object}Id FROM #{o}",
|
411
421
|
"{\"xmlFieldsMapping\":{\"xmlFields\":[
|
412
422
|
{\"xmlFieldMapping\":{\"name\":\"#{f}\",\"label\":\"#{f}\",\"xmlPath\":\"#{f}\",\"metadataField\":\"Value\"}},
|
413
|
-
{\"xmlFieldMapping\":{\"name\":\"
|
423
|
+
{\"xmlFieldMapping\":{\"name\":\"CreatedDate\",\"label\":\"CreatedDate\",\"xmlPath\":\"CreatedDate\",\"metadataField\":\"Timestamp\"}},
|
414
424
|
{\"xmlFieldMapping\":{\"name\":\"#{sf_object}Id\",\"label\":\"#{sf_object}Id\",\"xmlPath\":\"#{sf_object}Id\",\"metadataField\":\"Id\"}}
|
415
425
|
]}}",
|
416
426
|
["#{sf_object}Id", f, "CreatedDate"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gd_bam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|