rhoconnect-rb 1.0.3 → 1.1.0

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.
@@ -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=
@@ -1,10 +1,7 @@
1
1
  script: "bundle exec rake spec"
2
2
  rvm:
3
- - 1.8.7
4
- - 1.9.2
5
3
  - 1.9.3
6
- - ree
7
- - jruby-18mode
4
+ - 2.0.0
8
5
  - jruby-19mode
9
6
  notifications:
10
7
  email:
@@ -1,5 +1,9 @@
1
- ## 1.0.2
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
@@ -3,6 +3,7 @@ source "http://rubygems.org"
3
3
  gemspec
4
4
  gem 'rake'
5
5
  gem 'rails', '>= 3.0'
6
+ gem 'activeresource', '>= 3.0'
6
7
 
7
8
  group :test do
8
9
  gem 'rspec', '~>2.5.0', :require => 'spec'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Rhoconnectrb
2
- VERSION = "1.0.3"
3
- end
2
+ VERSION = "1.1.0"
3
+ end
@@ -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/testuser").to_return(:body => "testuser")
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('testuser',data)
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.3
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: 2013-03-06 00:00:00.000000000 Z
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: 1.8.25
100
+ rubygems_version: 2.4.8
110
101
  signing_key:
111
- specification_version: 3
102
+ specification_version: 4
112
103
  summary: Rhoconnect rails plugin
113
104
  test_files:
114
105
  - spec/api_spec.rb