rugroupy-server 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/README.rdoc +1 -2
- data/lib/rugroupy/server.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd67c649e7d73eba1ba2ee0c9b978a7f77bf4077
|
|
4
|
+
data.tar.gz: b6213c7456f569f045ac2f1aff0971e3aba874fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d826a9f18b2e42fa152dd5dec393e95786ccdf1bc7e6656ebd0a1b099eb1470be2eef6ac9ee48c54791d894d5f37f467c39be0ea37b7381c3750c772e7fd3d3a
|
|
7
|
+
data.tar.gz: a1e15608da8b483e0c54c17149ef4f7091735840e503f7aaf0884a0c680a2068d7c83bb9602325fbe99ef59cb30ea4790bbf92938a14d6bb69e1759dda6aedcd
|
data/README.rdoc
CHANGED
|
@@ -17,7 +17,7 @@ Extend Groupy::GroupyServer to configure mongo and other settings and then run i
|
|
|
17
17
|
require 'rugroupy/server'
|
|
18
18
|
class MyApp < Groupy::GroupyServer
|
|
19
19
|
register Sinatra::MongoExtension
|
|
20
|
-
set :mongo, '
|
|
20
|
+
set :mongo, 'mongodb://localhost:27017/mongo_database_name'
|
|
21
21
|
# optionally set more things (port, etc.) according to http://www.sinatrarb.com/configuration.html
|
|
22
22
|
end
|
|
23
23
|
MyApp.run!
|
|
@@ -30,7 +30,6 @@ See http://github.com/rwynn/rugroupy-server/tree/master/test for example input/o
|
|
|
30
30
|
|
|
31
31
|
* rubgroupy http://github.com/rwynn/rugroupy
|
|
32
32
|
* sinatra https://github.com/sinatra/sinatra/
|
|
33
|
-
* sinatra-mongo https://github.com/technicalpickles/sinatra-mongo
|
|
34
33
|
* JSON https://github.com/flori/json
|
|
35
34
|
|
|
36
35
|
== Install
|
data/lib/rugroupy/server.rb
CHANGED
|
@@ -7,8 +7,8 @@ require 'json'
|
|
|
7
7
|
# Run the server like this by extending GroupyServer and calling run!
|
|
8
8
|
# require 'rugroupy/server'
|
|
9
9
|
# class MyApp < Groupy::GroupyServer
|
|
10
|
-
# register
|
|
11
|
-
# set :mongo, '
|
|
10
|
+
# register Sinatra::MongoExtension
|
|
11
|
+
# set :mongo, 'mongodb://localhost:27017/test'
|
|
12
12
|
# optionally set more things (port, etc.) according to http://www.sinatrarb.com/configuration.html
|
|
13
13
|
# end
|
|
14
14
|
# MyApp.run!
|