rhoconnect-rb 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +1 -4
- data/CHANGELOG.md +6 -2
- data/Gemfile +1 -0
- data/config/routes.rb +5 -5
- data/lib/rhoconnectrb/version.rb +2 -2
- data/spec/api_spec.rb +2 -2
- metadata +5 -14
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
N2Q5YmZkMWJhZDFlNWE4N2RlNWY4MWM3ODhmYjQyNmIzM2VkM2M3Yg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZjJkYzk3MTIyOTI1ODZkZTMxMjEwMzM4MDk1MTYyNzNkNWUwYTYzNg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDBjYTQwZjdkZjZjOTg0MzY0ZTg4MjYyMGU3NGNmNjE1ZTRhNjE5OWEzODU4
|
10
|
+
NjU5Nzc4ZGU2ZGZmNWNhOWFhNjM4NzliMzlkMzkzOGRjYjc1MjIzODNiNmNm
|
11
|
+
OTU3ZWMxYzM2OGY2NDY5OWY1MDQ3ZWVjYzBlZGE4Y2U0ZGJhZTA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NzdjOWUwZDhkZjQyMThhNTZkNGQ0NzcxYjhhNWNjMTAyZGFhNTA1MGM4OGM3
|
14
|
+
NjRkMDFjMjUxYjNhZjhlODEwODVhNzA0YTZlZDA4OWI3YTcyNjcwOGFhYWRh
|
15
|
+
MmMwY2ViY2Y3MWYxN2M2MGY4ZWM4ZGZiYjQwZDNiNWE0OWM5OGE=
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
-
## 1.0
|
1
|
+
## 1.1.0 (not yet released)
|
2
|
+
* support for rails 4 & ruby 2.0
|
3
|
+
|
4
|
+
## 1.0.3
|
2
5
|
* fix users post call
|
6
|
+
|
3
7
|
## 1.0.2
|
4
8
|
* added underscore to string class if not rails env
|
5
9
|
|
@@ -11,4 +15,4 @@
|
|
11
15
|
* Changed namespace from Rhoconnect to Rhoconnectrb
|
12
16
|
* `rhoconnect_query` now takes an attributes hash
|
13
17
|
* Added default settings for easier setup w/ RhoConnect apps
|
14
|
-
* Travis build support for JRuby
|
18
|
+
* Travis build support for JRuby
|
data/Gemfile
CHANGED
data/config/routes.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
-
match '/rhoconnect/authenticate' => Rhoconnectrb::Authenticate
|
3
|
-
match '/rhoconnect/query' => Rhoconnectrb::Query
|
4
|
-
match '/rhoconnect/create' => Rhoconnectrb::Create
|
5
|
-
match '/rhoconnect/update' => Rhoconnectrb::Update
|
6
|
-
match '/rhoconnect/delete' => Rhoconnectrb::Delete
|
2
|
+
match '/rhoconnect/authenticate' => Rhoconnectrb::Authenticate, via: [:post]
|
3
|
+
match '/rhoconnect/query' => Rhoconnectrb::Query, via: [:post]
|
4
|
+
match '/rhoconnect/create' => Rhoconnectrb::Create, via: [:post]
|
5
|
+
match '/rhoconnect/update' => Rhoconnectrb::Update, via: [:post]
|
6
|
+
match '/rhoconnect/delete' => Rhoconnectrb::Delete, via: [:post]
|
7
7
|
end
|
data/lib/rhoconnectrb/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Rhoconnectrb
|
2
|
-
VERSION = "1.0
|
3
|
-
end
|
2
|
+
VERSION = "1.1.0"
|
3
|
+
end
|
data/spec/api_spec.rb
CHANGED
@@ -17,7 +17,7 @@ describe Rhoconnectrb::API do
|
|
17
17
|
stub_request(:get, "http://mytoken:@testurl.com/rc/v1/users/testuser/clients").to_return(:body=>'clientslist')
|
18
18
|
stub_request(:get, "http://mytoken:@testurl.com/rc/v1/users/testuser/sources/product/docnames").to_return(:body=>'docnames')
|
19
19
|
stub_request(:post, "http://mytoken:@testurl.com/rc/v1/read_state/users/testuser/sources/product").to_return(:body=>'readstate sources')
|
20
|
-
stub_request(:post, "http://mytoken:@testurl.com/rc/v1/users
|
20
|
+
stub_request(:post, "http://mytoken:@testurl.com/rc/v1/users").to_return(:body => "testuser")
|
21
21
|
stub_request(:put, "http://mytoken:@testurl.com/rc/v1/users/testuser").to_return(:body => 'testuser')
|
22
22
|
stub_request(:delete, "http://mytoken:@testurl.com/rc/v1/users/testuser").to_return(:body => 'testuser')
|
23
23
|
stub_request(:post, "http://mytoken:@testurl.com/rc/v1/system/login").to_return(:body=>'login')
|
@@ -48,7 +48,7 @@ describe Rhoconnectrb::API do
|
|
48
48
|
|
49
49
|
it "should format post request" do
|
50
50
|
data = {:id=>'1'}
|
51
|
-
resp = Rhoconnectrb::API::Users.post(
|
51
|
+
resp = Rhoconnectrb::API::Users.post(data)
|
52
52
|
resp.body.should == 'testuser'
|
53
53
|
end
|
54
54
|
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhoconnect-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rhomobile
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rest-client
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: json
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -85,30 +80,26 @@ files:
|
|
85
80
|
- templates/rhoconnect.rb
|
86
81
|
homepage: http://rhomobile.com
|
87
82
|
licenses: []
|
83
|
+
metadata: {}
|
88
84
|
post_install_message:
|
89
85
|
rdoc_options: []
|
90
86
|
require_paths:
|
91
87
|
- lib
|
92
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
89
|
requirements:
|
95
90
|
- - ! '>='
|
96
91
|
- !ruby/object:Gem::Version
|
97
92
|
version: '0'
|
98
|
-
segments:
|
99
|
-
- 0
|
100
|
-
hash: 215792702015605790
|
101
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
94
|
requirements:
|
104
95
|
- - ! '>='
|
105
96
|
- !ruby/object:Gem::Version
|
106
97
|
version: '0'
|
107
98
|
requirements: []
|
108
99
|
rubyforge_project:
|
109
|
-
rubygems_version:
|
100
|
+
rubygems_version: 2.4.8
|
110
101
|
signing_key:
|
111
|
-
specification_version:
|
102
|
+
specification_version: 4
|
112
103
|
summary: Rhoconnect rails plugin
|
113
104
|
test_files:
|
114
105
|
- spec/api_spec.rb
|