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 +1 -1
- data/lib/motion_yak/request.rb +8 -8
- data/lib/motion_yak/version.rb +1 -1
- data/pkg/motion_yak-0.0.6.gem +0 -0
- metadata +5 -3
data/Gemfile.lock
CHANGED
data/lib/motion_yak/request.rb
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
module MotionYak
|
2
2
|
module Request
|
3
|
-
def self.get(url
|
3
|
+
def self.get(url)
|
4
4
|
BW::HTTP.get(url) do |response|
|
5
5
|
json = BW::JSON.parse(response.body.to_str)
|
6
|
-
|
6
|
+
yield(json)
|
7
7
|
end
|
8
8
|
end
|
9
|
-
def self.put(url, data
|
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
|
-
|
12
|
+
yield(json)
|
13
13
|
end
|
14
14
|
end
|
15
|
-
def self.post(url, data
|
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
|
-
|
18
|
+
yield(json)
|
19
19
|
end
|
20
20
|
end
|
21
|
-
def self.delete(url
|
21
|
+
def self.delete(url)
|
22
22
|
BW::HTTP.delete(url) do |response|
|
23
23
|
json = BW::JSON.parse(response.body.to_str)
|
24
|
-
|
24
|
+
yield(json)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
data/lib/motion_yak/version.rb
CHANGED
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
|
+
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:
|
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:
|
89
|
+
hash: 701142955996510134
|
88
90
|
requirements: []
|
89
91
|
rubyforge_project:
|
90
92
|
rubygems_version: 1.8.21
|