motion_yak 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- motion_yak (0.0.7)
4
+ motion_yak (0.0.8)
5
5
  bubble-wrap
6
6
 
7
7
  GEM
@@ -1,27 +1,27 @@
1
1
  module MotionYak
2
2
  module Request
3
- def self.get(url)
3
+ def self.get(url, &block)
4
4
  BW::HTTP.get(url) do |response|
5
5
  json = BW::JSON.parse(response.body.to_str)
6
- yield(json)
6
+ block.call(json)
7
7
  end
8
8
  end
9
9
  def self.put(url, data)
10
10
  BW::HTTP.put(url, {payload: data}) do |response|
11
11
  json = BW::JSON.parse(response.body.to_str)
12
- yield(json)
12
+ block.call(json)
13
13
  end
14
14
  end
15
15
  def self.post(url, data)
16
16
  BW::HTTP.post(url, {payload: data}) do |response|
17
17
  json = BW::JSON.parse(response.body.to_str)
18
- yield(json)
18
+ block.call(json)
19
19
  end
20
20
  end
21
21
  def self.delete(url)
22
22
  BW::HTTP.delete(url) do |response|
23
23
  json = BW::JSON.parse(response.body.to_str)
24
- yield(json)
24
+ block.call(json)
25
25
  end
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  module MotionYak
2
- VERSION = '0.0.7' unless defined?(MotionYak::VERSION)
2
+ VERSION = '0.0.8' unless defined?(MotionYak::VERSION)
3
3
  MIN_MOTION_VERSION = '1.24'
4
4
 
5
5
  module_function
Binary file
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.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -46,6 +46,7 @@ extra_rdoc_files:
46
46
  - pkg/motion_yak-0.0.4.gem
47
47
  - pkg/motion_yak-0.0.5.gem
48
48
  - pkg/motion_yak-0.0.6.gem
49
+ - pkg/motion_yak-0.0.7.gem
49
50
  files:
50
51
  - Gemfile
51
52
  - Gemfile.lock
@@ -63,6 +64,7 @@ files:
63
64
  - pkg/motion_yak-0.0.4.gem
64
65
  - pkg/motion_yak-0.0.5.gem
65
66
  - pkg/motion_yak-0.0.6.gem
67
+ - pkg/motion_yak-0.0.7.gem
66
68
  homepage: http://github.com/ballantyne/motion_yak
67
69
  licenses: []
68
70
  post_install_message:
@@ -77,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
79
  version: '0'
78
80
  segments:
79
81
  - 0
80
- hash: 701142955996510134
82
+ hash: -3778607916468827869
81
83
  required_rubygems_version: !ruby/object:Gem::Requirement
82
84
  none: false
83
85
  requirements:
@@ -86,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
88
  version: '0'
87
89
  segments:
88
90
  - 0
89
- hash: 701142955996510134
91
+ hash: -3778607916468827869
90
92
  requirements: []
91
93
  rubyforge_project:
92
94
  rubygems_version: 1.8.21