bogeyman 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/bogeyman/client.rb +25 -0
- data/lib/bogeyman/response.rb +12 -0
- data/lib/bogeyman/version.rb +3 -0
- data/lib/bogeyman.rb +7 -0
- metadata +90 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2eb68c19d409fa417daab614f90096339619ed9b
|
4
|
+
data.tar.gz: 8aed3ec07f6f3d7d6f48dd99871c97fb9ec34ffb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b6f7db6ecb1ad5d951d057076b3cf9859ce9388e4fbdd371bb86404bcf05d637767cc0fd56d2ef6c7a737f56b08d2caaac3f3949d77e9dc2e072b7275b49c96d
|
7
|
+
data.tar.gz: 2bbfe74ea5558a53b9e63e2e039f37f61ef2901b523baf1b2909496f7a827d297c490f0186dea27b8710b40b4a1802be27f90375d8be30ef8d5d873a379fe3dc
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
|
3
|
+
module Bogeyman
|
4
|
+
class Client
|
5
|
+
def initialize params={}
|
6
|
+
@params = params
|
7
|
+
@server = 'http://localhost:31313'
|
8
|
+
end
|
9
|
+
|
10
|
+
def get url, params={}
|
11
|
+
params = @params.dup.update(params)
|
12
|
+
params.update(method: 'GET', url: url)
|
13
|
+
|
14
|
+
Response.new(
|
15
|
+
JSON.parse(
|
16
|
+
RestClient.post(
|
17
|
+
@server,
|
18
|
+
params.to_json,
|
19
|
+
content_type: :json
|
20
|
+
)
|
21
|
+
)
|
22
|
+
)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/bogeyman.rb
ADDED
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bogeyman
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rene Klacan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rest_client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.0.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.0.0
|
55
|
+
description: ''
|
56
|
+
email: rene@klacan.sk
|
57
|
+
executables: []
|
58
|
+
extensions: []
|
59
|
+
extra_rdoc_files: []
|
60
|
+
files:
|
61
|
+
- lib/bogeyman/response.rb
|
62
|
+
- lib/bogeyman/client.rb
|
63
|
+
- lib/bogeyman/version.rb
|
64
|
+
- lib/bogeyman.rb
|
65
|
+
homepage: https://github.com/reneklacan/bogeyman
|
66
|
+
licenses:
|
67
|
+
- Beerware
|
68
|
+
metadata: {}
|
69
|
+
post_install_message:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.9'
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
requirements: []
|
84
|
+
rubyforge_project:
|
85
|
+
rubygems_version: 2.0.14
|
86
|
+
signing_key:
|
87
|
+
specification_version: 4
|
88
|
+
summary: ''
|
89
|
+
test_files: []
|
90
|
+
has_rdoc:
|