motion_yak 0.0.1 → 0.0.2
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 +1 -1
- data/Rakefile +2 -1
- data/lib/motion_yak/config.rb +11 -0
- data/lib/motion_yak/data/ca-certificate.crt +3524 -0
- data/lib/motion_yak/request.rb +24 -0
- data/lib/motion_yak/version.rb +1 -1
- data/lib/motion_yak.rb +8 -1
- data/pkg/motion_yak-0.0.1.gem +0 -0
- metadata +11 -3
@@ -0,0 +1,24 @@
|
|
1
|
+
module MotionYak
|
2
|
+
module Request
|
3
|
+
def self.get(url)
|
4
|
+
BW::HTTP.get(url) do |response|
|
5
|
+
p response.body.to_str
|
6
|
+
end
|
7
|
+
end
|
8
|
+
def self.put(url, data)
|
9
|
+
BW::HTTP.put(url, {payload: data}) do |response|
|
10
|
+
p response.body.to_str
|
11
|
+
end
|
12
|
+
end
|
13
|
+
def self.post(url, data)
|
14
|
+
BW::HTTP.post(url, {payload: data}) do |response|
|
15
|
+
p response.body.to_str
|
16
|
+
end
|
17
|
+
end
|
18
|
+
def self.delete(url)
|
19
|
+
BW::HTTP.delete(url) do |response|
|
20
|
+
p response.body.to_str
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/motion_yak/version.rb
CHANGED
data/lib/motion_yak.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.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -34,15 +34,23 @@ executables: []
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files:
|
36
36
|
- lib/motion_yak.rb
|
37
|
+
- lib/motion_yak/config.rb
|
38
|
+
- lib/motion_yak/data/ca-certificate.crt
|
39
|
+
- lib/motion_yak/request.rb
|
37
40
|
- lib/motion_yak/version.rb
|
38
41
|
- motion_yak.gemspec
|
42
|
+
- pkg/motion_yak-0.0.1.gem
|
39
43
|
files:
|
40
44
|
- Gemfile
|
41
45
|
- Gemfile.lock
|
42
46
|
- Rakefile
|
43
47
|
- lib/motion_yak.rb
|
48
|
+
- lib/motion_yak/config.rb
|
49
|
+
- lib/motion_yak/data/ca-certificate.crt
|
50
|
+
- lib/motion_yak/request.rb
|
44
51
|
- lib/motion_yak/version.rb
|
45
52
|
- motion_yak.gemspec
|
53
|
+
- pkg/motion_yak-0.0.1.gem
|
46
54
|
homepage: http://github.com/ballantyne/motion_yak
|
47
55
|
licenses: []
|
48
56
|
post_install_message:
|
@@ -57,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
57
65
|
version: '0'
|
58
66
|
segments:
|
59
67
|
- 0
|
60
|
-
hash:
|
68
|
+
hash: -4610938697304850181
|
61
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
70
|
none: false
|
63
71
|
requirements:
|
@@ -66,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
74
|
version: '0'
|
67
75
|
segments:
|
68
76
|
- 0
|
69
|
-
hash:
|
77
|
+
hash: -4610938697304850181
|
70
78
|
requirements: []
|
71
79
|
rubyforge_project:
|
72
80
|
rubygems_version: 1.8.21
|