rhoconnect 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +2 -1
- data/Gemfile.lock +1 -1
- data/examples/simple/dump.rdb +0 -0
- data/lib/rhoconnect/console/rhoconnect_api.rb +1 -1
- data/lib/rhoconnect/tasks.rb +2 -2
- data/lib/rhoconnect/version.rb +1 -1
- metadata +150 -88
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
Binary file
|
@@ -212,7 +212,7 @@ module RhoconnectApi
|
|
212
212
|
private
|
213
213
|
|
214
214
|
def do_login(server,login,password)
|
215
|
-
RestClient.post("#{server}/api/admin/
|
215
|
+
RestClient.post("#{server}/api/admin/login",
|
216
216
|
{:login => login, :password => password}.to_json,
|
217
217
|
:content_type => :json).body
|
218
218
|
end
|
data/lib/rhoconnect/tasks.rb
CHANGED
@@ -213,7 +213,7 @@ namespace :rhoconnect do
|
|
213
213
|
puts "\nNew password can't be empty."
|
214
214
|
elsif new_pass == new_pass_confirm
|
215
215
|
puts ""
|
216
|
-
post("/api/update_user", {:app_name => $appname, :api_token => $token,
|
216
|
+
RestClient.post("#{$url}/api/user/update_user", {:app_name => $appname, :api_token => $token,
|
217
217
|
:attributes => {:new_password => new_pass}})
|
218
218
|
else
|
219
219
|
puts "\nNew password and confirmation must match."
|
@@ -224,7 +224,7 @@ namespace :rhoconnect do
|
|
224
224
|
task :reset_refresh => :config do
|
225
225
|
user = ask "user: "
|
226
226
|
source_name = ask "source name: "
|
227
|
-
RestClient.post("#{$url}/api/set_refresh_time", {:api_token => $token,
|
227
|
+
RestClient.post("#{$url}/api/source/set_refresh_time", {:api_token => $token,
|
228
228
|
:user_name => user, :source_name => source_name})
|
229
229
|
end
|
230
230
|
|
data/lib/rhoconnect/version.rb
CHANGED
metadata
CHANGED
@@ -1,135 +1,190 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhoconnect
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
- 4
|
10
|
+
version: 3.0.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Rhomobile
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
+
|
18
|
+
date: 2011-10-13 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
17
22
|
none: false
|
18
|
-
requirements:
|
23
|
+
requirements:
|
19
24
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
hash: 15
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 0
|
30
|
+
version: "1.0"
|
31
|
+
requirement: *id001
|
22
32
|
type: :runtime
|
23
33
|
prerelease: false
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
|
27
|
-
requirement: &2160591620 !ruby/object:Gem::Requirement
|
34
|
+
name: bundler
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
28
37
|
none: false
|
29
|
-
requirements:
|
38
|
+
requirements:
|
30
39
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
hash: 9
|
42
|
+
segments:
|
43
|
+
- 1
|
44
|
+
- 3
|
45
|
+
version: "1.3"
|
46
|
+
requirement: *id002
|
33
47
|
type: :runtime
|
34
48
|
prerelease: false
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
|
38
|
-
requirement: &2160590320 !ruby/object:Gem::Requirement
|
49
|
+
name: sinatra
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
39
52
|
none: false
|
40
|
-
requirements:
|
41
|
-
- - =
|
42
|
-
- !ruby/object:Gem::Version
|
53
|
+
requirements:
|
54
|
+
- - "="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 63
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
- 9
|
60
|
+
- 2
|
43
61
|
version: 0.9.2
|
62
|
+
requirement: *id003
|
44
63
|
type: :runtime
|
45
64
|
prerelease: false
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
|
49
|
-
requirement: &2160588440 !ruby/object:Gem::Requirement
|
65
|
+
name: rake
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
50
68
|
none: false
|
51
|
-
requirements:
|
69
|
+
requirements:
|
52
70
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 1
|
75
|
+
- 5
|
76
|
+
- 0
|
54
77
|
version: 1.5.0
|
78
|
+
requirement: *id004
|
55
79
|
type: :runtime
|
56
80
|
prerelease: false
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
|
60
|
-
requirement: &2160586960 !ruby/object:Gem::Requirement
|
81
|
+
name: json
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
61
84
|
none: false
|
62
|
-
requirements:
|
85
|
+
requirements:
|
63
86
|
- - ~>
|
64
|
-
- !ruby/object:Gem::Version
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
hash: 51
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
- 9
|
92
|
+
- 4
|
65
93
|
version: 0.9.4
|
94
|
+
requirement: *id005
|
66
95
|
type: :runtime
|
67
96
|
prerelease: false
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
|
71
|
-
requirement: &2160585460 !ruby/object:Gem::Requirement
|
97
|
+
name: rubyzip
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
72
100
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
hash: 9
|
105
|
+
segments:
|
106
|
+
- 2
|
107
|
+
- 1
|
108
|
+
- 1
|
76
109
|
version: 2.1.1
|
110
|
+
requirement: *id006
|
77
111
|
type: :runtime
|
78
112
|
prerelease: false
|
79
|
-
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
|
82
|
-
requirement: &2160556320 !ruby/object:Gem::Requirement
|
113
|
+
name: uuidtools
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
83
116
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
hash: 7
|
121
|
+
segments:
|
122
|
+
- 2
|
123
|
+
- 2
|
124
|
+
- 0
|
87
125
|
version: 2.2.0
|
126
|
+
requirement: *id007
|
88
127
|
type: :runtime
|
89
128
|
prerelease: false
|
90
|
-
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
|
93
|
-
requirement: &2160555260 !ruby/object:Gem::Requirement
|
129
|
+
name: redis
|
130
|
+
- !ruby/object:Gem::Dependency
|
131
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
94
132
|
none: false
|
95
|
-
requirements:
|
133
|
+
requirements:
|
96
134
|
- - ~>
|
97
|
-
- !ruby/object:Gem::Version
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
hash: 91
|
137
|
+
segments:
|
138
|
+
- 1
|
139
|
+
- 19
|
140
|
+
- 0
|
98
141
|
version: 1.19.0
|
142
|
+
requirement: *id008
|
99
143
|
type: :runtime
|
100
144
|
prerelease: false
|
101
|
-
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
|
-
|
104
|
-
requirement: &2160553000 !ruby/object:Gem::Requirement
|
145
|
+
name: resque
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
105
148
|
none: false
|
106
|
-
requirements:
|
149
|
+
requirements:
|
107
150
|
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
hash: 13
|
153
|
+
segments:
|
154
|
+
- 1
|
155
|
+
- 6
|
156
|
+
- 1
|
109
157
|
version: 1.6.1
|
158
|
+
requirement: *id009
|
110
159
|
type: :runtime
|
111
160
|
prerelease: false
|
112
|
-
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
|
-
|
115
|
-
requirement: &2160551640 !ruby/object:Gem::Requirement
|
161
|
+
name: rest-client
|
162
|
+
- !ruby/object:Gem::Dependency
|
163
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
116
164
|
none: false
|
117
|
-
requirements:
|
165
|
+
requirements:
|
118
166
|
- - ~>
|
119
|
-
- !ruby/object:Gem::Version
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
hash: 23
|
169
|
+
segments:
|
170
|
+
- 1
|
171
|
+
- 0
|
172
|
+
- 0
|
120
173
|
version: 1.0.0
|
174
|
+
requirement: *id010
|
121
175
|
type: :runtime
|
122
176
|
prerelease: false
|
123
|
-
|
177
|
+
name: templater
|
124
178
|
description: RhoConnect App Integration Server and related command-line utilities
|
125
179
|
email: dev@rhomobile.com
|
126
|
-
executables:
|
180
|
+
executables:
|
127
181
|
- rhoconnect
|
128
182
|
extensions: []
|
129
|
-
|
183
|
+
|
184
|
+
extra_rdoc_files:
|
130
185
|
- LICENSE
|
131
186
|
- README.md
|
132
|
-
files:
|
187
|
+
files:
|
133
188
|
- CHANGELOG.md
|
134
189
|
- CREDITS
|
135
190
|
- Gemfile
|
@@ -238,6 +293,7 @@ files:
|
|
238
293
|
- doc/web-console.txt
|
239
294
|
- examples/simple/application.rb
|
240
295
|
- examples/simple/config.ru
|
296
|
+
- examples/simple/dump.rdb
|
241
297
|
- examples/simple/Rakefile
|
242
298
|
- examples/simple/settings/license.key
|
243
299
|
- examples/simple/settings/settings.yml
|
@@ -506,32 +562,38 @@ files:
|
|
506
562
|
- bin/rhoconnect
|
507
563
|
homepage: http://rhomobile.com/products/rhoconnect
|
508
564
|
licenses: []
|
565
|
+
|
509
566
|
post_install_message:
|
510
567
|
rdoc_options: []
|
511
|
-
|
568
|
+
|
569
|
+
require_paths:
|
512
570
|
- lib
|
513
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
571
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
514
572
|
none: false
|
515
|
-
requirements:
|
516
|
-
- -
|
517
|
-
- !ruby/object:Gem::Version
|
518
|
-
|
519
|
-
segments:
|
573
|
+
requirements:
|
574
|
+
- - ">="
|
575
|
+
- !ruby/object:Gem::Version
|
576
|
+
hash: 3
|
577
|
+
segments:
|
520
578
|
- 0
|
521
|
-
|
522
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
579
|
+
version: "0"
|
580
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
523
581
|
none: false
|
524
|
-
requirements:
|
525
|
-
- -
|
526
|
-
- !ruby/object:Gem::Version
|
527
|
-
|
582
|
+
requirements:
|
583
|
+
- - ">="
|
584
|
+
- !ruby/object:Gem::Version
|
585
|
+
hash: 3
|
586
|
+
segments:
|
587
|
+
- 0
|
588
|
+
version: "0"
|
528
589
|
requirements: []
|
590
|
+
|
529
591
|
rubyforge_project:
|
530
592
|
rubygems_version: 1.8.10
|
531
593
|
signing_key:
|
532
594
|
specification_version: 3
|
533
595
|
summary: RhoConnect App Integration Server
|
534
|
-
test_files:
|
596
|
+
test_files:
|
535
597
|
- spec/api/admin/api_token_spec.rb
|
536
598
|
- spec/api/admin/get_api_token_spec.rb
|
537
599
|
- spec/api/admin/get_license_info_spec.rb
|