motion_yak 0.0.6 → 0.0.7

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.6)
4
+ motion_yak (0.0.7)
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, &proc)
3
+ def self.get(url)
4
4
  BW::HTTP.get(url) do |response|
5
5
  json = BW::JSON.parse(response.body.to_str)
6
- proc.call(json)
6
+ yield(json)
7
7
  end
8
8
  end
9
- def self.put(url, data, &proc)
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
- proc.call(json)
12
+ yield(json)
13
13
  end
14
14
  end
15
- def self.post(url, data, &proc)
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
- proc.call(json)
18
+ yield(json)
19
19
  end
20
20
  end
21
- def self.delete(url, &proc)
21
+ def self.delete(url)
22
22
  BW::HTTP.delete(url) do |response|
23
23
  json = BW::JSON.parse(response.body.to_str)
24
- proc.call(json)
24
+ yield(json)
25
25
  end
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  module MotionYak
2
- VERSION = '0.0.6' unless defined?(MotionYak::VERSION)
2
+ VERSION = '0.0.7' 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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -45,6 +45,7 @@ extra_rdoc_files:
45
45
  - pkg/motion_yak-0.0.3.gem
46
46
  - pkg/motion_yak-0.0.4.gem
47
47
  - pkg/motion_yak-0.0.5.gem
48
+ - pkg/motion_yak-0.0.6.gem
48
49
  files:
49
50
  - Gemfile
50
51
  - Gemfile.lock
@@ -61,6 +62,7 @@ files:
61
62
  - pkg/motion_yak-0.0.3.gem
62
63
  - pkg/motion_yak-0.0.4.gem
63
64
  - pkg/motion_yak-0.0.5.gem
65
+ - pkg/motion_yak-0.0.6.gem
64
66
  homepage: http://github.com/ballantyne/motion_yak
65
67
  licenses: []
66
68
  post_install_message:
@@ -75,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
77
  version: '0'
76
78
  segments:
77
79
  - 0
78
- hash: 1424806038868285065
80
+ hash: 701142955996510134
79
81
  required_rubygems_version: !ruby/object:Gem::Requirement
80
82
  none: false
81
83
  requirements:
@@ -84,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
86
  version: '0'
85
87
  segments:
86
88
  - 0
87
- hash: 1424806038868285065
89
+ hash: 701142955996510134
88
90
  requirements: []
89
91
  rubyforge_project:
90
92
  rubygems_version: 1.8.21