mongo-store 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongo-store (0.1.1)
4
+ mongo-store (0.2.4)
5
5
  mongo (>= 1.0.1)
6
- rack (~> 1.1.0)
6
+ rack (>= 1.1.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- bson (1.0.9)
12
- mongo (1.0.9)
13
- bson (>= 1.0.5)
14
- rack (1.1.0)
11
+ bson (1.3.1)
12
+ mongo (1.3.1)
13
+ bson (>= 1.3.1)
14
+ rack (1.3.2)
15
15
  rspec (1.3.0)
16
16
  yard (0.6.1)
17
17
 
@@ -19,8 +19,6 @@ PLATFORMS
19
19
  ruby
20
20
 
21
21
  DEPENDENCIES
22
- mongo (>= 1.0.1)
23
22
  mongo-store!
24
- rack (~> 1.1.0)
25
23
  rspec (>= 1.2.9)
26
24
  yard
data/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- 0.2.3
1
+ 0.2.4
2
2
 
@@ -153,12 +153,12 @@ module Rack
153
153
  warn 'Bad old or new sessions provided.'
154
154
  return current
155
155
  end
156
-
157
- delete = old.keys - new.keys
156
+ # delete keys that are not in common
157
+ delete = current.keys - (new.keys & current.keys)
158
158
  warn "//@#{sid}: dropping #{delete*','}" if $DEBUG and not delete.empty?
159
159
  delete.each{|k| current.delete k }
160
160
 
161
- update = new.keys.select{|k| new[k] != old[k] || new[k].kind_of?(Hash) || new[k].kind_of?(Array) }
161
+ update = new.keys.select{|k| !current.has_key?(k) || new[k] != current[k] || new[k].kind_of?(Hash) || new[k].kind_of?(Array) }
162
162
  warn "//@#{sid}: updating #{update*','}" if $DEBUG and not update.empty?
163
163
  update.each{|k| current[k] = new[k] }
164
164
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mongo-store}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jonathan Rudenberg"]
12
- s.date = %q{2011-06-13}
12
+ s.date = %q{2011-08-16}
13
13
  s.email = %q{jonathan@titanous.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  s.homepage = %q{http://github.com/titanous/mongo-store}
35
35
  s.rdoc_options = ["--charset=UTF-8"]
36
36
  s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.3.7}
37
+ s.rubygems_version = %q{1.6.2}
38
38
  s.summary = %q{Rack session store for MongoDB}
39
39
  s.test_files = [
40
40
  "spec/rack-mongo-store_spec.rb",
@@ -42,7 +42,6 @@ Gem::Specification.new do |s|
42
42
  ]
43
43
 
44
44
  if s.respond_to? :specification_version then
45
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
45
  s.specification_version = 3
47
46
 
48
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,95 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mongo-store
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 2
9
- - 3
10
- version: 0.2.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.4
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jonathan Rudenberg
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-06-13 00:00:00 -05:00
12
+ date: 2011-08-16 00:00:00.000000000 -05:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: mongo
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &21374740 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 21
30
- segments:
31
- - 1
32
- - 0
33
- - 1
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
34
22
  version: 1.0.1
35
23
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rack
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *21374740
26
+ - !ruby/object:Gem::Dependency
27
+ name: rack
28
+ requirement: &21374140 !ruby/object:Gem::Requirement
41
29
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 19
46
- segments:
47
- - 1
48
- - 1
49
- - 0
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
50
33
  version: 1.1.0
51
34
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: rspec
55
35
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *21374140
37
+ - !ruby/object:Gem::Dependency
38
+ name: rspec
39
+ requirement: &21373600 !ruby/object:Gem::Requirement
57
40
  none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 13
62
- segments:
63
- - 1
64
- - 2
65
- - 9
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
66
44
  version: 1.2.9
67
45
  type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: yard
71
46
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *21373600
48
+ - !ruby/object:Gem::Dependency
49
+ name: yard
50
+ requirement: &21373080 !ruby/object:Gem::Requirement
73
51
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
81
56
  type: :development
82
- version_requirements: *id004
57
+ prerelease: false
58
+ version_requirements: *21373080
83
59
  description:
84
60
  email: jonathan@titanous.com
85
61
  executables: []
86
-
87
62
  extensions: []
88
-
89
- extra_rdoc_files:
63
+ extra_rdoc_files:
90
64
  - LICENSE
91
65
  - README.rdoc
92
- files:
66
+ files:
93
67
  - .document
94
68
  - .gitignore
95
69
  - Gemfile
@@ -107,37 +81,29 @@ files:
107
81
  has_rdoc: true
108
82
  homepage: http://github.com/titanous/mongo-store
109
83
  licenses: []
110
-
111
84
  post_install_message:
112
- rdoc_options:
85
+ rdoc_options:
113
86
  - --charset=UTF-8
114
- require_paths:
87
+ require_paths:
115
88
  - lib
116
- required_ruby_version: !ruby/object:Gem::Requirement
89
+ required_ruby_version: !ruby/object:Gem::Requirement
117
90
  none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- hash: 3
122
- segments:
123
- - 0
124
- version: "0"
125
- required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
96
  none: false
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- hash: 3
131
- segments:
132
- - 0
133
- version: "0"
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
134
101
  requirements: []
135
-
136
102
  rubyforge_project:
137
- rubygems_version: 1.3.7
103
+ rubygems_version: 1.6.2
138
104
  signing_key:
139
105
  specification_version: 3
140
106
  summary: Rack session store for MongoDB
141
- test_files:
107
+ test_files:
142
108
  - spec/rack-mongo-store_spec.rb
143
109
  - spec/spec_helper.rb