motion_yak 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/motion_yak/version.rb +1 -1
- data/lib/motion_yak.rb +6 -6
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/motion_yak/version.rb
CHANGED
data/lib/motion_yak.rb
CHANGED
@@ -29,21 +29,21 @@ module MotionYak
|
|
29
29
|
[self.base_url, MotionYak.key, 'json', url].join('/')
|
30
30
|
end
|
31
31
|
|
32
|
-
def self.new_domain(domain, &
|
32
|
+
def self.new_domain(domain, &b)
|
33
33
|
params = {'Domain' => domain, 'CallbackURL' => MotionYak::Config.callback, 'PushEmail' => MotionYak::Config.push_params}
|
34
34
|
MotionYak::Request.post self.api_url('register/domain/'), params do |json|
|
35
|
-
|
35
|
+
b.call(json)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
def self.new_address(address, &
|
39
|
+
def self.new_address(address, &b)
|
40
40
|
params = {'Address' => address, 'CallbackURL' => MotionYak::Config.callback, 'PushEmail' => MotionYak::Config.push_params}
|
41
41
|
MotionYak::Request.post self.api_url('register/address/'), params do |json|
|
42
|
-
|
42
|
+
b.call(json)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
def self.send_email(options, &
|
46
|
+
def self.send_email(options, &b)
|
47
47
|
params = {}
|
48
48
|
params['FromAddress'] = options[:from]
|
49
49
|
params['FromName'] = options[:from_name]
|
@@ -58,7 +58,7 @@ module MotionYak
|
|
58
58
|
params['Headers'] = options[:headers]
|
59
59
|
params['Attachments'] = options[:attachments]
|
60
60
|
MotionYak::Request.post self.api_url('send/email/'), params do |json|
|
61
|
-
|
61
|
+
b.call(json)
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion_yak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
version: '0'
|
67
67
|
segments:
|
68
68
|
- 0
|
69
|
-
hash:
|
69
|
+
hash: 1270031211884567348
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
none: false
|
72
72
|
requirements:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
segments:
|
77
77
|
- 0
|
78
|
-
hash:
|
78
|
+
hash: 1270031211884567348
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
81
|
rubygems_version: 1.8.21
|