rack_session_mongo 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bf3f0da731744079da0eb174abe63071af513a1
4
- data.tar.gz: 47d91d6a1d5eb3f74148a9d7bf0d08ab61a59022
3
+ metadata.gz: bec3f68fdff22c209e579749fade39b1a7f171a6
4
+ data.tar.gz: cc81c3873f7a4f4cb61e863622e5b9632c09bed6
5
5
  SHA512:
6
- metadata.gz: 8a49884c9906e7aab7729a026546a95b9c1286a4bcec0d1c1fe6e53325b7c53a36e39cf8345608a133027bbf16eac4c4077624183a9e32f7ca2e0e6e7d5e545f
7
- data.tar.gz: b8be458c80c3f0bbe528489a21622d2a1721208e4eb5cf2477cca52ffac2c15f8b0bc8bd378e4e4abf1313a1bf8d70b81a06e4673c03aa5e62ec81ef1157c32b
6
+ metadata.gz: 34fd26b9715bd6a902df8854c1f9e2596a81c26df8b44fe65eeb56e4bb39708fd660c7cc78ebd0f3ffdac44fa22f3a726acffa7275a6136ae1fa6bbccfa79c08
7
+ data.tar.gz: 41129dd5bb97327d0b258243d89ddecdf67cca1ba22a0ad71e075ba87ea45c6135075c15a1be1455bd720c6c352eb0bfb18a22bfedf790549b6bdb97eb73aeb6
data/.gitignore CHANGED
@@ -7,4 +7,3 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
- *.gem
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # RackSessionMongo
2
2
 
3
- Rack session store for MongoDB.
4
-
5
- Fixed the problem "uninitialized constant Mongo::DB" in rack-session-mongo.
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rack_session_mongo`. To experiment with that code, run `bin/console` for an interactive prompt.
6
4
 
5
+ TODO: Delete this and the text above, and describe your gem
7
6
 
8
7
  ## Installation
9
8
 
@@ -23,14 +22,7 @@ Or install it yourself as:
23
22
 
24
23
  ## Usage
25
24
 
26
- ```
27
- require 'mongo'
28
- require 'rake_session_mongo'
29
- $db=Mongo::Client.new ["localhost:27017"], :database=>'test'
30
- configure do
31
- use Rack::Session::Mongo,:collection=>$db[:session]
32
- end
33
- ```
25
+ TODO: Write usage instructions here
34
26
 
35
27
  ## Development
36
28
 
@@ -1,3 +1,3 @@
1
1
  module RackSessionMongo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -10,7 +10,14 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["715480954@qq.com"]
11
11
 
12
12
  spec.summary = %q{Store session for rack using MongoDB.}
13
- spec.description = %q{Store session for rack using MongoDB. Fixed the problem that Mongo::DB not exists. }
13
+ spec.description = %q{
14
+ require 'mongo'
15
+ require 'rake_session_mongo'
16
+ $db=Mongo::Client.new ["localhost:27017"], :database=>'test'
17
+ configure do
18
+ use Rack::Session::Mongo,:collection=>$db[:session]
19
+ end
20
+ }
14
21
  spec.homepage = "https://github.com/KaltZK/rack_session_mongo"
15
22
  spec.license = "MIT"
16
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_session_mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - KaltZK
@@ -52,8 +52,14 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: 'Store session for rack using MongoDB. Fixed the problem that Mongo::DB
56
- not exists. '
55
+ description: |2
56
+
57
+ require 'mongo'
58
+ require 'rake_session_mongo'
59
+ $db=Mongo::Client.new ["localhost:27017"], :database=>'test'
60
+ configure do
61
+ use Rack::Session::Mongo,:collection=>$db[:session]
62
+ end
57
63
  email:
58
64
  - 715480954@qq.com
59
65
  executables: []