motion_yak 0.0.4 → 0.0.5

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.4)
4
+ motion_yak (0.0.5)
5
5
  bubble-wrap
6
6
 
7
7
  GEM
@@ -2,33 +2,27 @@ module MotionYak
2
2
  module Request
3
3
  def self.get(url)
4
4
  BW::HTTP.get(url) do |response|
5
- json = parse(response.body.to_str)
5
+ json = BW::JSON.parse(response.body.to_str)
6
6
  return 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
- json = parse(response.body.to_str)
11
+ json = BW::JSON.parse(response.body.to_str)
12
12
  return 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
- json = parse(response.body.to_str)
17
+ json = BW::JSON.parse(response.body.to_str)
18
18
  return json
19
19
  end
20
20
  end
21
21
  def self.delete(url)
22
22
  BW::HTTP.delete(url) do |response|
23
- json = parse(response.body.to_str)
23
+ json = BW::JSON.parse(response.body.to_str)
24
24
  return json
25
25
  end
26
26
  end
27
-
28
- def self.parse(string)
29
- json = MotionYak::JSON.parse(string)
30
- p json.inspect
31
- json
32
- end
33
27
  end
34
28
  end
@@ -1,5 +1,5 @@
1
1
  module MotionYak
2
- VERSION = '0.0.4' unless defined?(MotionYak::VERSION)
2
+ VERSION = '0.0.5' 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.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,6 +43,7 @@ extra_rdoc_files:
43
43
  - pkg/motion_yak-0.0.1.gem
44
44
  - pkg/motion_yak-0.0.2.gem
45
45
  - pkg/motion_yak-0.0.3.gem
46
+ - pkg/motion_yak-0.0.4.gem
46
47
  files:
47
48
  - Gemfile
48
49
  - Gemfile.lock
@@ -57,6 +58,7 @@ files:
57
58
  - pkg/motion_yak-0.0.1.gem
58
59
  - pkg/motion_yak-0.0.2.gem
59
60
  - pkg/motion_yak-0.0.3.gem
61
+ - pkg/motion_yak-0.0.4.gem
60
62
  homepage: http://github.com/ballantyne/motion_yak
61
63
  licenses: []
62
64
  post_install_message:
@@ -71,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
73
  version: '0'
72
74
  segments:
73
75
  - 0
74
- hash: -3203131729077746546
76
+ hash: 3594700469852565473
75
77
  required_rubygems_version: !ruby/object:Gem::Requirement
76
78
  none: false
77
79
  requirements:
@@ -80,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
82
  version: '0'
81
83
  segments:
82
84
  - 0
83
- hash: -3203131729077746546
85
+ hash: 3594700469852565473
84
86
  requirements: []
85
87
  rubyforge_project:
86
88
  rubygems_version: 1.8.21