mdata 1.4.1 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +6 -2
- data/bin/mdata +1 -1
- data/lib/mdata/metadata/PermissionSet.rb +1 -1
- data/lib/mdata/metadata/Profile.rb +1 -1
- data/lib/mdata/types/FieldPermissions.rb +22 -0
- data/lib/mdata/types/ObjectPermissions.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e4574abfdff5f8662d3458f25a1b354adafc538
|
4
|
+
data.tar.gz: 67beb6bd3f29040d3d38c56a198a4bccec5ab245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c3f72668a3ec61e547ee7b06c0d9309182a68ebcd684e6edb4c13803fccfea155c4b9c866ad33a6d92d977550a01785b5bc1690da0b0dbaeaf59a5346c99991
|
7
|
+
data.tar.gz: e03d73ce5d12673aa8042c485dda3aa825aeed8382be1eb86e42a72ac3ff2356b1831584f03bbebb1efa0c471ce0929bb18f78d233bf8178283a8dca0df34b30
|
data/README.markdown
CHANGED
@@ -37,6 +37,10 @@ Command you need isn't yet implemented? Add it!
|
|
37
37
|
|
38
38
|
## Making a release
|
39
39
|
|
40
|
+
Release tags starting with `v1.4.1` are signed by Ben Burwell <ben.burwell@trifecta.com> with GPG key `0x711D3727` and can be verified by running:
|
41
|
+
|
42
|
+
$ git tag --verify v0.0.0
|
43
|
+
|
40
44
|
Making a release is not hard, but there are several steps. Perform these steps from the command line in the project directory.
|
41
45
|
|
42
46
|
In this example, we will release version 0.0.0 of `mdata`. The version number should conform to semver standards.
|
@@ -48,8 +52,8 @@ In this example, we will release version 0.0.0 of `mdata`. The version number sh
|
|
48
52
|
0. Run `rake`. **DO NOT PROCEED IF THERE ARE ERRORS/FAILURES.**
|
49
53
|
0. Update the version to 0.0.0 in `bin/mdata`.
|
50
54
|
0. Update the version to 0.0.0 in `mdata.gemspec`.
|
51
|
-
0. `git add bin/mdata mdata.gemspec`
|
55
|
+
0. `git add bin/mdata mdata.gemspec CHANGELOG.markdown`
|
52
56
|
0. `git commit -m "Bump version to 0.0.0"`
|
53
|
-
0. `git tag -
|
57
|
+
0. `git tag -s v0.0.0 -m "Release version 0.0.0 to RubyGems"`
|
54
58
|
0. `gem build mdata.gemspec`
|
55
59
|
0. `gem push mdata-0.0.0.gem`
|
data/bin/mdata
CHANGED
@@ -5,7 +5,7 @@ require 'commander/import'
|
|
5
5
|
require 'mdata/metadata'
|
6
6
|
require 'terminal-table'
|
7
7
|
|
8
|
-
program :version, '1.4.
|
8
|
+
program :version, '1.4.3'
|
9
9
|
program :description, 'Your Salesforce metadata navigator and manipulator'
|
10
10
|
program :help, 'Author', 'Ben Burwell <ben.burwell@trifecta.com>'
|
11
11
|
|
@@ -12,6 +12,28 @@ module Salesforce
|
|
12
12
|
xml_accessor :editable
|
13
13
|
xml_accessor :field
|
14
14
|
xml_accessor :readable
|
15
|
+
|
16
|
+
# A Unix flag style representation of the permissions, suitable for
|
17
|
+
# printing in a table
|
18
|
+
#
|
19
|
+
# @return [String] the granted permissions
|
20
|
+
def to_flag_style
|
21
|
+
permissions = ''
|
22
|
+
|
23
|
+
if @editable == 'true'
|
24
|
+
permissions += 'editable '
|
25
|
+
else
|
26
|
+
permissions += ' '
|
27
|
+
end
|
28
|
+
|
29
|
+
if @readable == 'true'
|
30
|
+
permissions += 'readable'
|
31
|
+
else
|
32
|
+
permissions += ' '
|
33
|
+
end
|
34
|
+
|
35
|
+
permissions
|
36
|
+
end
|
15
37
|
end
|
16
38
|
|
17
39
|
class PermissionSetFieldPermissions < FieldPermissions; end
|
@@ -38,37 +38,37 @@ module Salesforce
|
|
38
38
|
def to_flag_style
|
39
39
|
permissions = ''
|
40
40
|
|
41
|
-
if @allowCreate
|
41
|
+
if @allowCreate == 'true'
|
42
42
|
permissions += 'allowCreate '
|
43
43
|
else
|
44
44
|
permissions += ' '
|
45
45
|
end
|
46
46
|
|
47
|
-
if @allowDelete
|
47
|
+
if @allowDelete == 'true'
|
48
48
|
permissions += 'allowDelete '
|
49
49
|
else
|
50
50
|
permissions += ' '
|
51
51
|
end
|
52
52
|
|
53
|
-
if @allowEdit
|
53
|
+
if @allowEdit == 'true'
|
54
54
|
permissions += 'allowEdit '
|
55
55
|
else
|
56
56
|
permissions += ' '
|
57
57
|
end
|
58
58
|
|
59
|
-
if @allowRead
|
59
|
+
if @allowRead == 'true'
|
60
60
|
permissions += 'allowRead '
|
61
61
|
else
|
62
62
|
permissions += ' '
|
63
63
|
end
|
64
64
|
|
65
|
-
if @modifyAllRecords
|
65
|
+
if @modifyAllRecords == 'true'
|
66
66
|
permissions += 'modifyAllRecords '
|
67
67
|
else
|
68
68
|
permissions += ' '
|
69
69
|
end
|
70
70
|
|
71
|
-
if @viewAllRecords
|
71
|
+
if @viewAllRecords == 'true'
|
72
72
|
permissions += 'viewAllRecords'
|
73
73
|
else
|
74
74
|
permissions += ' '
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Burwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|