motion_yak 0.0.12 → 0.0.13

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- motion_yak (0.0.12)
4
+ motion_yak (0.0.13)
5
5
  bubble-wrap
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  module MotionYak
2
- VERSION = '0.0.12' unless defined?(MotionYak::VERSION)
2
+ VERSION = '0.0.13' unless defined?(MotionYak::VERSION)
3
3
  MIN_MOTION_VERSION = '1.24'
4
4
 
5
5
  module_function
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, &block)
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
- block.call(json)
35
+ b.call(json)
36
36
  end
37
37
  end
38
38
 
39
- def self.new_address(address, &block)
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
- block.call(json)
42
+ b.call(json)
43
43
  end
44
44
  end
45
45
 
46
- def self.send_email(options, &block)
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
- block.call(json)
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.12
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: -1047949687472341811
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: -1047949687472341811
78
+ hash: 1270031211884567348
79
79
  requirements: []
80
80
  rubyforge_project:
81
81
  rubygems_version: 1.8.21