sf_migrate 1.2.4 → 1.2.5
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 +8 -8
- data/lib/import.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NDZkOTg4YzI5MTJmMTIwNjkxYTAxMjE1N2QyOTc5NmY5YzQyMGE4NQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YzZkNmE1ZjUyZWJiNDE1MTc1ZmM0NmI3YTNkNDZiYmEzZmM1MmViMg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
M2Q2NzZmMTU4ODBhZDA0MDJmMDMwZjY2NTRkZTA1NDhiN2Y2ZWY2YzEwY2Y0
|
|
10
|
+
MTQwOGEzY2ViMzgzYmVlMWY4MjZmZmM3ZTg4YTFiZjMzZjE4MWQzMGRmYTNk
|
|
11
|
+
YzhlMzVhMTZlN2IyZmNlY2YwZTAxMmMxNmRiODI5MGRmM2ViMWI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OWIyYzMwNWZlYjY5OTk4Nzc5N2VlYWJjNmY2ZjE5OGU2ZmUyMWE3NzQ5OWNh
|
|
14
|
+
OTc3NTU2YmJlNDZlODlkMmE2MmNkOGMwNmY2ZDFhYmM1YTRkNTU2ODJmZmFk
|
|
15
|
+
Yzc0YWE0NWY0NGM4NTQ4OTg4YWMzZjY3MWI3MDAzY2M3OWI3OTM=
|
data/lib/import.rb
CHANGED
|
@@ -666,8 +666,14 @@ module SalesforceMigration
|
|
|
666
666
|
user.salesforce_id = obj.sf_id
|
|
667
667
|
user.system_generated_password = false
|
|
668
668
|
user.save!
|
|
669
|
+
|
|
670
|
+
# Associate user with the object
|
|
669
671
|
obj.assigned_user_id = user.id
|
|
670
672
|
obj.save!
|
|
673
|
+
|
|
674
|
+
# Associate user with the corresponding ACL role
|
|
675
|
+
role = SugarCRM::ACLRole.find_by_name("#{type}s")
|
|
676
|
+
role.associate! user
|
|
671
677
|
|
|
672
678
|
populate_user_pool(user, type)
|
|
673
679
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sf_migrate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Emil Petkov
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-02-
|
|
12
|
+
date: 2014-02-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sugarcrm_emp
|