ficonabses 0.4.3 → 0.4.4

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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NGEyZGJiOGJlOTQ0MWQ4Y2IwN2Q0MjA2NzNlZTUxMzdkODFiNGY4Mw==
5
+ data.tar.gz: !binary |-
6
+ N2JlZTNkNmZmN2M5MWU4MDFjMmE0NzhjZDAyYzBlNjc2YjVlZDA5Nw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZDZkNmY0M2NkZTVjNmRhNGQ5YzI2ZTNkZWRlOWI0NzZmYjhmYjA1Y2E0M2E2
10
+ ZTMwMjkxM2M4MzZlODcwMjBkYzQ2MTkyNzI0OTliZjRlZTBkZGUyZWYxNjA0
11
+ OTdiZmNmY2JkN2E4N2ZiYzRjMjExYzM1MzE5M2RhMTA2ZGMzNGU=
12
+ data.tar.gz: !binary |-
13
+ MWQxMWY3YzAxMzkwMzliZDM4MjEyMmRhZGE1ZmJmY2RlYzdjNmFkZWE0OWQ3
14
+ OWFkZTMyNjc3MWMyMWM2MjliNmUxMTQyMDZiYTE0MGE4OTNlNDFmNTlmNTE3
15
+ YmVhNDIwYzAxN2FmMTc3OTE0MmY1ZGRjZjhlZmRmOGFjMzM1ZGE=
File without changes
File without changes
File without changes
File without changes
@@ -22,12 +22,12 @@ module FiconabSES
22
22
  def self.send_ruby_exception(ficonab_obj,exception,tolist, other, cclist=[],prefix2='[Exception]')
23
23
  begin
24
24
  backtrace=exception.backtrace|| 'No backtrace available'
25
- puts "backtrace is #{backtrace}"
25
+ #puts "backtrace is #{backtrace}"
26
26
  other=other.to_s||'no additional data'
27
27
  prefix = "#{prefix2}"
28
28
  subj = "#{prefix2} (#{exception.class}) #{exception.message.inspect}"
29
29
  backtrace=backtrace.join("\n").to_s if backtrace.class!=String
30
- length=[3800,backtrace.size].min
30
+ length=[2000,backtrace.size].min
31
31
  backtrace=backtrace.to_s[0..length-1]
32
32
  message= "EXCEPTION:\n#{exception.inspect.to_s}\nTIME:\n\n#{Time.now}\nOTHER:\n#{other.to_s}\n\nBACKTRACE:\n\n#{backtrace.to_s}"
33
33
  res =ficonab_obj.send_textemail(tolist,subj.to_s,message)
@@ -28,7 +28,16 @@ class TestFiconabses < Test::Unit::TestCase
28
28
  assert res.include? '200'
29
29
  assert false==(res.include? 'Error')
30
30
  end
31
+ def test_global_blacklist_send
32
+ options={}
33
+ options['hello']='TESTING'
34
+ f=FiconabSES::Base.new
35
+ f.set_credentials(@account,@passwd)
36
+ res =f.send_template_params(@destination,'testblacklist',options) #no text portion
37
+ puts "RES is: #{res}"
38
+ assert res.include? '200'
31
39
 
40
+ end
32
41
  def test_send_html_nil_text
33
42
  puts "SEND HTML with NIL text"
34
43
  res =FiconabSES::Base.send_htmlemail_direct(@account,@passwd,@destination,'This is HTML Subject nil text','<h1>HTML Contents</h1><p>hi from paragraph</p>') #no text portion
@@ -21,7 +21,7 @@ class TestFiconabses < Test::Unit::TestCase
21
21
  end
22
22
  def test_global_blacklist_adding
23
23
 
24
- res =@f.global_blacklist(@destination,'scott') #no text portion
24
+ res =@f.global_blacklist("blacklist@destination.com",'scott') #no text portion
25
25
  puts "GLOBAL BLACK LIST RES is: #{res}"
26
26
  assert res.include? 'successfully'
27
27
  assert false==(res.include? 'Error')
@@ -56,6 +56,14 @@ class TestFiconabses < Test::Unit::TestCase
56
56
  assert false==(res.include? '200')
57
57
 
58
58
  end
59
+ def test_global_blacklist_send
60
+ options={}
61
+ options['hello']='TESTING'
62
+ res =@f.send_template_params(@destination,'testblacklist',options) #no text portion
63
+ puts "RES is: #{res}"
64
+ assert res.include? '200'
65
+
66
+ end
59
67
  def test_local_send_text
60
68
  res= @f.send_textemail(@destination,"'LOCALHOST': #{@f.host}",'contents of the email')
61
69
  puts "RES is: #{res}"
@@ -21,28 +21,37 @@ class TestFiconabses < Test::Unit::TestCase
21
21
  assert false==(res.include? 'Error')
22
22
 
23
23
  end
24
+ def foo(options)
25
+ options
26
+ end
24
27
  def test_local_campaign_flow2dest
25
28
  options={}
26
29
  options['hello']='TESTING'
27
30
  options['bcinfo']='+6590683565'
28
31
  options['destination']=@destination
29
32
  options['tsipid']=@tsipid
30
- options.delete('destination')
31
- res =@f.send_campaign_flow(@destination,'testthreeminutes',options) #no text portion
33
+
34
+ res =@f.send_campaign_flow(@destination,'testthreeminutes',foo(options)) #no text portion
32
35
  puts "RES is: #{res}"
33
36
  assert res.include? '200'
34
37
  assert false==(res.include? 'Error')
35
38
 
36
39
  end
40
+ def foo_delete(options)
41
+ options.delete('destination')
42
+ options
43
+ end
37
44
  def test_hash_manip
38
45
 
39
46
  options={}
40
47
  options['hello']='TESTING'
41
48
  options['bcinfo']='+6590683565'
42
- # options['destination']=@destination
49
+ options['destination']=@destination
43
50
  options['tsipid']=@tsipid
44
- options.delete('destination')
51
+ options=foo_delete(options)
52
+ # options.delete('destination')
45
53
  assert options['destination']==nil, 'destination wrong'
54
+ puts "opitons are: #{options.inspect}"
46
55
  end
47
56
  def test_local_sendtime_tempate
48
57
  options={'sendtime' => "18:00"}
metadata CHANGED
@@ -1,35 +1,25 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ficonabses
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 4
8
- - 3
9
- version: 0.4.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.4
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Scott Sproule
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2012-07-19 00:00:00 +08:00
18
- default_executable:
11
+ date: 2014-01-17 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
13
  description: Simple way to send emails from your application.
22
14
  email: scott.sproule@estormtech.com
23
- executables:
15
+ executables:
24
16
  - ficonabses_template_test.rb
25
17
  - ficonabses_csv.rb
26
18
  - ficonabses_blacklist.rb
27
19
  - ficonabses_campaign_flow_test.rb
28
20
  extensions: []
29
-
30
21
  extra_rdoc_files: []
31
-
32
- files:
22
+ files:
33
23
  - lib/ficonabses/addons.rb
34
24
  - lib/ficonabses/base.rb
35
25
  - lib/ficonabses/support.rb
@@ -57,37 +47,27 @@ files:
57
47
  - PostInstall.txt
58
48
  - Rakefile
59
49
  - README.rdoc
60
- has_rdoc: true
61
50
  homepage: http://github.com/semdinsp/ficonabses
62
51
  licenses: []
63
-
52
+ metadata: {}
64
53
  post_install_message:
65
54
  rdoc_options: []
66
-
67
- require_paths:
55
+ require_paths:
68
56
  - lib
69
- required_ruby_version: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 0
75
- version: "0"
76
- required_rubygems_version: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- segments:
81
- - 1
82
- - 3
83
- - 4
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
84
66
  version: 1.3.4
85
67
  requirements: []
86
-
87
68
  rubyforge_project: ficonabses
88
- rubygems_version: 1.3.6
69
+ rubygems_version: 2.0.6
89
70
  signing_key:
90
- specification_version: 3
71
+ specification_version: 4
91
72
  summary: Ficonab SES tools to send emails via estormtech.com service
92
73
  test_files: []
93
-