elibom 0.6.0 → 0.6.1
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/lib/elibom/client.rb +3 -0
- data/lib/elibom.rb +2 -0
- metadata +13 -11
- checksums.yaml +0 -15
data/lib/elibom/client.rb
CHANGED
@@ -85,6 +85,7 @@ module Elibom
|
|
85
85
|
request = Net::HTTP::Get.new(uri.request_uri)
|
86
86
|
request.basic_auth @user, @api_password
|
87
87
|
request['Accept'] = 'application/json'
|
88
|
+
request['X-API-Source'] = "ruby-#$elibom_version"
|
88
89
|
|
89
90
|
response = http.request(request)
|
90
91
|
parse_json_response(response)
|
@@ -98,6 +99,7 @@ module Elibom
|
|
98
99
|
request.basic_auth @user, @api_password
|
99
100
|
request['Content-Type'] = 'application/json'
|
100
101
|
request['Accept'] = 'application/json'
|
102
|
+
request['X-API-Source'] = "ruby-#$elibom_version"
|
101
103
|
request.body = body.to_json
|
102
104
|
|
103
105
|
response = http.request(request)
|
@@ -109,6 +111,7 @@ module Elibom
|
|
109
111
|
http = get_http(uri)
|
110
112
|
|
111
113
|
request = Net::HTTP::Delete.new(uri.path)
|
114
|
+
request['X-API-Source'] = "ruby-#$elibom_version"
|
112
115
|
request.basic_auth @user, @api_password
|
113
116
|
|
114
117
|
http.request(request)
|
data/lib/elibom.rb
CHANGED
metadata
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elibom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- German Escobar
|
9
|
+
- Carlos Sepulveda
|
8
10
|
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
@@ -12,20 +14,19 @@ date: 2013-08-26 00:00:00.000000000 Z
|
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
16
|
name: json
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirement: &17856140 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
16
19
|
requirements:
|
17
20
|
- - ! '>='
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: '0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
|
-
version_requirements:
|
23
|
-
requirements:
|
24
|
-
- - ! '>='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
25
|
+
version_requirements: *17856140
|
27
26
|
description: A client of the Elibom API
|
28
|
-
email:
|
27
|
+
email:
|
28
|
+
- german.escobar@elibom.com
|
29
|
+
- charlesandrew621@gmail.com
|
29
30
|
executables: []
|
30
31
|
extensions: []
|
31
32
|
extra_rdoc_files: []
|
@@ -34,25 +35,26 @@ files:
|
|
34
35
|
- lib/elibom/client.rb
|
35
36
|
homepage: http://rubygems.org/gems/elibom
|
36
37
|
licenses: []
|
37
|
-
metadata: {}
|
38
38
|
post_install_message:
|
39
39
|
rdoc_options: []
|
40
40
|
require_paths:
|
41
41
|
- lib
|
42
42
|
required_ruby_version: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
43
44
|
requirements:
|
44
45
|
- - ! '>='
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '0'
|
47
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
48
50
|
requirements:
|
49
51
|
- - ! '>='
|
50
52
|
- !ruby/object:Gem::Version
|
51
53
|
version: '0'
|
52
54
|
requirements: []
|
53
55
|
rubyforge_project:
|
54
|
-
rubygems_version:
|
56
|
+
rubygems_version: 1.8.11
|
55
57
|
signing_key:
|
56
|
-
specification_version:
|
58
|
+
specification_version: 3
|
57
59
|
summary: Elibom API client
|
58
60
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
NDYzMDI2YmRhZDNiZDUwOWIyNmQ0MjFhNTdlMmNlNTRiOGRiODEwNA==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YTNkZGJhN2VkNjI2NjI0YjU0ZGVlNWVhZGQ5MzI3YjgwNjZjZjY2Mg==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NGI4ODYxZTgwZjYzMDNlYmI3ZThkYjVjODI3YjM5MjBkYjhmNWNhNThlNDk1
|
10
|
-
N2FmNzZjNWQwNmQ0YmU4NzZjNzFiZmUyZTA5NWQ5YjVjMGRkMTAxYjBkOWRl
|
11
|
-
MjZjY2Q0Mjk1NTc5YTUzOGNiMDM0MTA2MWY4OTcwNGVmN2ZiMDg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
Yzc0N2IyYWFmMTY2YjZiZGFmNzA5YjU4ZTVjOWFhZDZmNGMyYjk5NjUxZGJi
|
14
|
-
NWRlOGNmYmRjMTkxMTRlOThjNmE0NDBkMTk4ZWQzYTAwOTJhOTVmY2JiZTgz
|
15
|
-
NTQ4YTZmMTBmODEyN2I2MDI0YjViNzk1MDIyMDk4OTY4YWE0NDQ=
|