motion_yak 0.0.3 → 0.0.4

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