rhoconnect-rb 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,6 +2,7 @@ source "http://rubygems.org"
2
2
 
3
3
  gemspec
4
4
  gem 'rake'
5
+ gem 'rails', '>= 3.0'
5
6
 
6
7
  group :test do
7
8
  gem 'rspec', '~>2.5.0', :require => 'spec'
data/lib/rhoconnect-rb.rb CHANGED
@@ -5,3 +5,4 @@ require 'rhoconnect/configuration'
5
5
  require 'rhoconnect/client'
6
6
  require 'rhoconnect/resource'
7
7
  require 'rhoconnect/endpoints'
8
+ require 'rhoconnect/railtie'
@@ -0,0 +1,8 @@
1
+ module Rhoconnect
2
+ class Railtie < Rails::Railtie
3
+
4
+ rake_tasks do
5
+ load File.join(File.dirname(__FILE__),'../../','tasks','setup.rake')
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Rhoconnect
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -23,6 +23,9 @@ module Sinatra
23
23
  end
24
24
  end
25
25
 
26
+ # stub so railties will not try and load during tests
27
+ NO_RAILITIES = true
28
+
26
29
  require 'rhoconnect-rb'
27
30
 
28
31
 
data/tasks/setup.rake ADDED
@@ -0,0 +1,7 @@
1
+ namespace :rhoconnect do
2
+ desc "setup initializer"
3
+ task :setup do
4
+ puts 'what is this ----------------'
5
+ sh "cp #{File.join(File.dirname(__FILE__),'../','templates','rhoconnect.rb')} #{::Rails.root.to_s}/config/initializers/"
6
+ end
7
+ end
@@ -0,0 +1,19 @@
1
+ Rhoconnect.configure do |config|
2
+ # Rhconnect.configure is used to set the url and token to your rhoconnect instance.
3
+ # If you are connecting to a rhconnect instance provisioned from Heroku the uri and token are already defined. Just leave commented out.
4
+
5
+ #config.uri = "http://myrhoconnect-server.com"
6
+ #config.token = "secrettoken"
7
+
8
+ # app_endpoint is the url of this rails app. It is used to tell the rhoconnect instance where this rails app is located. A rest call is sent on the startup of this rails app
9
+ # which will set the rhoconnect instance to point to this rails app.
10
+ # If you do not define app_endpoint, you will have to set this variable manually using the rhoconnect console.
11
+
12
+ #config.app_endpoint = "http://myapp.heroku.com"
13
+
14
+ # authenticate allows you to define your own custom authentication. credentials is a hash = {:login => login, :password => password}. Leave commented out or return true if you do not wish to authenticate yourself.
15
+
16
+ #config.authenticate = lambda { |credentials|
17
+ # return true
18
+ #}
19
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhoconnect-rb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 7
10
+ version: 0.2.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rhomobile
@@ -15,11 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-09 00:00:00 Z
18
+ date: 2011-09-02 00:00:00 -07:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- name: rest-client
22
22
  prerelease: false
23
+ type: :runtime
23
24
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
25
  none: false
25
26
  requirements:
@@ -31,11 +32,11 @@ dependencies:
31
32
  - 6
32
33
  - 1
33
34
  version: 1.6.1
34
- type: :runtime
35
35
  requirement: *id001
36
+ name: rest-client
36
37
  - !ruby/object:Gem::Dependency
37
- name: json
38
38
  prerelease: false
39
+ type: :runtime
39
40
  version_requirements: &id002 !ruby/object:Gem::Requirement
40
41
  none: false
41
42
  requirements:
@@ -47,8 +48,8 @@ dependencies:
47
48
  - 4
48
49
  - 6
49
50
  version: 1.4.6
50
- type: :runtime
51
51
  requirement: *id002
52
+ name: json
52
53
  description: Rhoconnect rails plugin
53
54
  email:
54
55
  - support@rhomobile.com
@@ -71,6 +72,7 @@ files:
71
72
  - lib/rhoconnect/client.rb
72
73
  - lib/rhoconnect/configuration.rb
73
74
  - lib/rhoconnect/endpoints.rb
75
+ - lib/rhoconnect/railtie.rb
74
76
  - lib/rhoconnect/resource.rb
75
77
  - lib/rhoconnect/version.rb
76
78
  - rhoconnect-rb.gemspec
@@ -78,6 +80,9 @@ files:
78
80
  - spec/endpoints_spec.rb
79
81
  - spec/resource_spec.rb
80
82
  - spec/spec_helper.rb
83
+ - tasks/setup.rake
84
+ - templates/rhoconnect.rb
85
+ has_rdoc: true
81
86
  homepage: http://rhomobile.com
82
87
  licenses: []
83
88
 
@@ -107,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
112
  requirements: []
108
113
 
109
114
  rubyforge_project:
110
- rubygems_version: 1.8.6
115
+ rubygems_version: 1.5.3
111
116
  signing_key:
112
117
  specification_version: 3
113
118
  summary: Rhoconnect rails plugin