cloudhub_wrapper 0.1.2 → 0.1.3
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.
- checksums.yaml +7 -0
- data/README.md +36 -0
- metadata +8 -10
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3b07024bb7904c87edf744316e24f7f323b6ded1
|
4
|
+
data.tar.gz: ba4525fd503cadb365077cdd7c3ce4befc4c2366
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 63d48c32937e70e08cd9ecd3007e15a5563c9bd04dd57dd1c35a506f953693934a185edfc95dda0a64672b6d9f6f016048ca7260c8932d437d4f2007e565ea83
|
7
|
+
data.tar.gz: 7d0b5f744f8b061877d42e9b3e27fe1d09daf28c743b374cfc1e2cfa71a144c2ca74018e8af144d5a3b1c2e06b330b1ff5ec8d4cabc1d1b75c58a4ab1bfc70cd
|
data/README.md
CHANGED
@@ -1,4 +1,40 @@
|
|
1
1
|
# cloudhub_wrapper
|
2
2
|
---------
|
3
3
|
|
4
|
+
Post XML to a Cloudhub API.
|
4
5
|
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add to your Gemfile
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'cloudhub_wrapper'
|
12
|
+
```
|
13
|
+
|
14
|
+
bundle install
|
15
|
+
|
16
|
+
##Usage
|
17
|
+
|
18
|
+
Initialize a new CloudhubWrapper instance and pass in the endpoint, user and password.
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
cloudhub = CloudhubWrapper.new("http://cloudhubendpoint.io/rest/v1/account", "web99", "password_here")
|
22
|
+
```
|
23
|
+
|
24
|
+
Set your xml string...
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
cloudhub.xml = "<foo>bar</foo>"
|
28
|
+
```
|
29
|
+
|
30
|
+
... alternatively you can use the builder. This is very specific to the custom Cloudhub API we're integrating with, but it might give you a starting point to modifiy for your own use.
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
cloudhub.build_xml(subscriber_instance, "channel_name", "origin_name", "http://schema.example.com/cloud/v1")
|
34
|
+
```
|
35
|
+
|
36
|
+
Post your xml to Cloudhub
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
cloudhub.post_xml
|
40
|
+
```
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudhub_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Erik Froese
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-
|
11
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: This wrapper is built to communicate with a custom Cloudhub API.
|
15
14
|
email: froesecom@gmail.com
|
@@ -17,33 +16,32 @@ executables: []
|
|
17
16
|
extensions: []
|
18
17
|
extra_rdoc_files: []
|
19
18
|
files:
|
20
|
-
- lib/cloudhub_wrapper.rb
|
21
19
|
- MIT-LICENSE
|
22
20
|
- README.md
|
23
21
|
- data/default.xml
|
22
|
+
- lib/cloudhub_wrapper.rb
|
24
23
|
homepage: http://rubygems.org/gems/cloudhub_wrapper
|
25
24
|
licenses:
|
26
25
|
- MIT
|
26
|
+
metadata: {}
|
27
27
|
post_install_message:
|
28
28
|
rdoc_options: []
|
29
29
|
require_paths:
|
30
30
|
- lib
|
31
31
|
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
-
none: false
|
33
32
|
requirements:
|
34
|
-
- -
|
33
|
+
- - ">="
|
35
34
|
- !ruby/object:Gem::Version
|
36
35
|
version: '0'
|
37
36
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
37
|
requirements:
|
40
|
-
- -
|
38
|
+
- - ">="
|
41
39
|
- !ruby/object:Gem::Version
|
42
40
|
version: '0'
|
43
41
|
requirements: []
|
44
42
|
rubyforge_project:
|
45
|
-
rubygems_version:
|
43
|
+
rubygems_version: 2.2.2
|
46
44
|
signing_key:
|
47
|
-
specification_version:
|
45
|
+
specification_version: 4
|
48
46
|
summary: A wrapper built to communicate with a CloudHub API
|
49
47
|
test_files: []
|