rhoconnect 3.3.1.beta2 → 3.3.1.beta3
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.
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +5 -5
- data/doc/push-backend-setup.txt +8 -9
- data/doc/rest-api.txt +340 -317
- data/examples/simple/Gemfile.lock +101 -0
- data/examples/simple/dump.rdb +0 -0
- data/lib/rhoconnect/api/system/save_adapter.rb +1 -1
- data/lib/rhoconnect/version.rb +1 -1
- data/lib/rhoconnect/web-console/controllers/admins.js +1 -2
- data/lib/rhoconnect/web-console/models/client.js +3 -0
- data/lib/rhoconnect/web-console/models/doc.js +4 -2
- data/lib/rhoconnect/web-console/models/user.js +4 -0
- data/lib/rhoconnect/web-console/templates/index.erb +1 -4
- data/lib/rhoconnect/web-console/views/api_token.js +16 -16
- data/lib/rhoconnect/web-console/views/doc.js +5 -5
- data/lib/rhoconnect/web-console/views/edit_user.js +46 -46
- data/lib/rhoconnect/web-console/views/home.js +2 -17
- data/lib/rhoconnect/web-console/views/new_ping.js +12 -7
- data/lib/rhoconnect/web-console/views/new_user.js +1 -1
- data/lib/rhoconnect/web-console/views/server_doc.js +6 -4
- data/lib/rhoconnect/web-console/views/settings.js +53 -53
- data/lib/rhoconnect/web-console/views/show_device.js +1 -1
- data/lib/rhoconnect/web-console/views/show_user.js +2 -2
- data/lib/rhoconnect/web-console/views/source_docs.js +6 -5
- data/rhoconnect.gemspec +1 -1
- data/spec/javascripts/admins_routes_spec.js +0 -7
- data/spec/javascripts/doc_view_spec.js +0 -7
- data/spec/javascripts/edit_user_view_spec.js +44 -44
- data/spec/javascripts/home_view_spec.js +0 -7
- metadata +625 -636
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
## 3.3.1.
|
1
|
+
## 3.3.1.beta3 (2012-07-17)
|
2
|
+
* #32933277 - use explicit ~> 0.9.2.2 rake dependency
|
3
|
+
* integrate help content into pages of web console
|
4
|
+
|
5
|
+
## 3.3.1.beta2 (2012-07-09)
|
2
6
|
* #29806209 - Store re-design - implement persistent hashing
|
3
7
|
* #32389009 - Store re-design - optimize sync by computing diffs only for the requested number of objects (as specified by page_size)
|
4
8
|
* #26876157 - push: auth route added `/ans/login`
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rhoconnect (3.3.1.
|
4
|
+
rhoconnect (3.3.1.beta3)
|
5
5
|
bundler (~> 1.0)
|
6
6
|
json (~> 1.6.0)
|
7
|
-
rake (~> 0.9.2)
|
7
|
+
rake (~> 0.9.2.2)
|
8
8
|
redis (>= 2.2.0)
|
9
9
|
resque (~> 1.20.0)
|
10
10
|
rest-client (~> 1.6.1)
|
@@ -80,7 +80,7 @@ GEM
|
|
80
80
|
rainbow
|
81
81
|
sprockets (~> 2)
|
82
82
|
json (1.6.6)
|
83
|
-
libwebsocket (0.1.
|
83
|
+
libwebsocket (0.1.4)
|
84
84
|
addressable
|
85
85
|
mime-types (1.19)
|
86
86
|
multi_json (1.3.6)
|
@@ -130,7 +130,7 @@ GEM
|
|
130
130
|
rack (~> 1.3, >= 1.3.6)
|
131
131
|
rack-protection (~> 1.2)
|
132
132
|
tilt (~> 1.3, >= 1.3.3)
|
133
|
-
sprockets (2.4.
|
133
|
+
sprockets (2.4.5)
|
134
134
|
hike (~> 1.2)
|
135
135
|
multi_json (~> 1.0)
|
136
136
|
rack (~> 1.0)
|
@@ -146,7 +146,7 @@ GEM
|
|
146
146
|
rack (>= 1.0.0)
|
147
147
|
thor (0.15.4)
|
148
148
|
tilt (1.3.3)
|
149
|
-
uuidtools (2.1.
|
149
|
+
uuidtools (2.1.3)
|
150
150
|
vegas (0.1.11)
|
151
151
|
rack (>= 1.0.0)
|
152
152
|
webmock (1.8.7)
|
data/doc/push-backend-setup.txt
CHANGED
@@ -29,9 +29,10 @@ As an example, here is how to send a PUSH message to all the devices of the spec
|
|
29
29
|
}
|
30
30
|
|
31
31
|
RestClient.post(
|
32
|
-
"#{server}/
|
33
|
-
:content_type => :json
|
34
|
-
|
32
|
+
"#{server}/rc/v1/users/ping", ping_params.to_json,
|
33
|
+
{ :content_type => :json,
|
34
|
+
'X-RhoConnect-API-TOKEN' => @api_token }
|
35
|
+
)
|
35
36
|
|
36
37
|
### Example of Ping for .NET Backend Application
|
37
38
|
|
@@ -40,8 +41,7 @@ As an example, here is how to send a PUSH message to all the devices of the spec
|
|
40
41
|
private static bool perform_ping(String method, String source_name, String the_message, String vibrate_time, String sound_file, Hashtable reqHash)
|
41
42
|
{
|
42
43
|
// add meta information
|
43
|
-
reqHash.Add("
|
44
|
-
reqHash.Add("user_id", [array of users]); // not sure how I do this
|
44
|
+
reqHash.Add("user_id", [array of users]);
|
45
45
|
reqHash.Add("source_id", source_name);
|
46
46
|
reqHash.Add("message", the_message);
|
47
47
|
reqHash.Add("vibrate", vibrate_time);
|
@@ -50,12 +50,11 @@ As an example, here is how to send a PUSH message to all the devices of the spec
|
|
50
50
|
JavaScriptSerializer js = new JavaScriptSerializer();
|
51
51
|
string requestBody = js.Serialize(reqHash);
|
52
52
|
|
53
|
-
|
54
|
-
// Uri address = new Uri(_endpoint_url + "/api/source/" + method);
|
55
|
-
Uri address = new Uri(_endpoint_url + "/api/client/ping");
|
53
|
+
Uri address = new Uri(_endpoint_url + "/rc/v1/users /ping");
|
56
54
|
HttpWebRequest request = WebRequest.Create(address) as HttpWebRequest;
|
57
55
|
request.ContentType = "application/json";
|
58
56
|
request.Method = "POST";
|
57
|
+
request.Headers.Add("X-RhoConnect-API-TOKEN", _api_token);
|
59
58
|
|
60
59
|
byte[] byteData = UTF8Encoding.UTF8.GetBytes(requestBody);
|
61
60
|
request.ContentLength = byteData.Length;
|
@@ -90,7 +89,7 @@ As an example, here is how to send a PUSH message to all the devices of the spec
|
|
90
89
|
HttpEntity<Map> entity = new HttpEntity<Map>(hash, headers);
|
91
90
|
|
92
91
|
ResponseEntity<String> response = restTemplate.exchange(
|
93
|
-
endpointUrl + "/
|
92
|
+
endpointUrl + "/rc/v1/users/ping",
|
94
93
|
HttpMethod.POST,
|
95
94
|
entity,
|
96
95
|
String.class);
|