sf_migrate 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mailer.rb +15 -14
  2. metadata +19 -10
  3. checksums.yaml +0 -7
data/lib/mailer.rb CHANGED
@@ -6,26 +6,26 @@ module SalesforceMigration
6
6
 
7
7
  def initialize(options)
8
8
  @@config = YAML.load_file(options[:config_file])
9
- @logger = SalesforceMigration::Runner::create_logger
9
+ #@logger = SalesforceMigration::Runner::create_logger
10
10
 
11
11
  # Ugly way to fix the bug with user_hash update
12
12
  # We set up a connection and update it manually.update_attributes does not work.
13
13
  # The issue is forwarded to sugarcrm gem crew
14
- ActiveRecord::Base.establish_connection(
15
- :adapter => @@config['db_type'],
16
- :host => "localhost",
17
- :username => @@config['db_user'],
18
- :password => @@config['db_password'],
19
- :database => @@config['db_database']
20
- )
14
+ #ActiveRecord::Base.establish_connection(
15
+ # :adapter => @@config['db_type'],
16
+ # :host => "localhost",
17
+ # :username => @@config['db_user'],
18
+ # :password => @@config['db_password'],
19
+ # :database => @@config['db_database']
20
+ #)
21
21
 
22
- @logger.info("Starting the mailer")
23
- start
24
- @logger.info("Mailer finished")
22
+ #@logger.info("Starting the mailer")
23
+ #start
24
+ #@logger.info("Mailer finished")
25
25
  end
26
26
 
27
- private
28
-
27
+ public
28
+
29
29
  #Search the agent portal database for all users, who are inactive
30
30
  #This is the script, that activates them
31
31
  def start
@@ -58,6 +58,7 @@ module SalesforceMigration
58
58
  to email
59
59
  subject 'Welcome to Emerchantpay Agent Portal'
60
60
  html_part do
61
+ content_type 'text/html; charset=UTF-8'
61
62
  body Mailer::create_template(username, password)
62
63
  end
63
64
  end
@@ -114,4 +115,4 @@ module SalesforceMigration
114
115
  email_template
115
116
  end
116
117
  end
117
- end
118
+ end
metadata CHANGED
@@ -1,20 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sf_migrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ prerelease:
5
+ version: 1.0.3
5
6
  platform: ruby
6
7
  authors:
7
- - Dimitar KostovStefan Slaveykov
8
+ - Dimitar Kostov
9
+ - Stefan Slaveykov
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
13
 
12
- date: 2013-05-30 00:00:00 Z
14
+ date: 2013-05-31 00:00:00 Z
13
15
  dependencies:
14
16
  - !ruby/object:Gem::Dependency
15
17
  name: sugarcrm_emp
16
18
  prerelease: false
17
19
  requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
18
21
  requirements:
19
22
  - - ~>
20
23
  - !ruby/object:Gem::Version
@@ -25,6 +28,7 @@ dependencies:
25
28
  name: databasedotcom_emp
26
29
  prerelease: false
27
30
  requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
28
32
  requirements:
29
33
  - - ~>
30
34
  - !ruby/object:Gem::Version
@@ -35,6 +39,7 @@ dependencies:
35
39
  name: activesupport
36
40
  prerelease: false
37
41
  requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
44
  - - ~>
40
45
  - !ruby/object:Gem::Version
@@ -45,6 +50,7 @@ dependencies:
45
50
  name: activerecord
46
51
  prerelease: false
47
52
  requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
48
54
  requirements:
49
55
  - - ~>
50
56
  - !ruby/object:Gem::Version
@@ -55,6 +61,7 @@ dependencies:
55
61
  name: mail
56
62
  prerelease: false
57
63
  requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
58
65
  requirements:
59
66
  - - ~>
60
67
  - !ruby/object:Gem::Version
@@ -65,6 +72,7 @@ dependencies:
65
72
  name: roo
66
73
  prerelease: false
67
74
  requirement: &id006 !ruby/object:Gem::Requirement
75
+ none: false
68
76
  requirements:
69
77
  - - ~>
70
78
  - !ruby/object:Gem::Version
@@ -93,28 +101,29 @@ files:
93
101
  homepage:
94
102
  licenses: []
95
103
 
96
- metadata: {}
97
-
98
104
  post_install_message:
99
105
  rdoc_options: []
100
106
 
101
107
  require_paths:
102
108
  - lib
103
109
  required_ruby_version: !ruby/object:Gem::Requirement
110
+ none: false
104
111
  requirements:
105
- - &id007
106
- - ">="
112
+ - - ">="
107
113
  - !ruby/object:Gem::Version
108
114
  version: "0"
109
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
+ none: false
110
117
  requirements:
111
- - *id007
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: "0"
112
121
  requirements: []
113
122
 
114
123
  rubyforge_project:
115
- rubygems_version: 2.0.3
124
+ rubygems_version: 1.8.10
116
125
  signing_key:
117
- specification_version: 4
126
+ specification_version: 3
118
127
  summary: Makes a bridge between Salesforce and SugarCRM
119
128
  test_files: []
120
129
 
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e862896e87413a3c8447dcb85efa73fea0f1c761
4
- data.tar.gz: 4ee2a6e915659d3e257cb9f0dc13222835839439
5
- SHA512:
6
- metadata.gz: 6bc6c9a71e565aad931468ab34c143d700a3113b084d57128dc0f608db0567a0f3915c35ab57e27db14cf25a2587486b630de28a5d500d9e2ce084119f77c187
7
- data.tar.gz: 90b2079df5066ae955500f2ab3b2ce04effc6a84362decf2e96d60d021e847800a5c9a8db82a84145fdf46ee970144a11a604e60fd004a1995e87e467e390b0d