global_session 1.0.14 → 1.0.15

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.
@@ -7,7 +7,7 @@ spec = Gem::Specification.new do |s|
7
7
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
8
8
 
9
9
  s.name = 'global_session'
10
- s.version = '1.0.14'
10
+ s.version = '1.0.15'
11
11
  s.date = '2012-10-02'
12
12
 
13
13
  s.authors = ['Tony Spataro']
@@ -80,6 +80,11 @@ module GlobalSession
80
80
  end
81
81
  end
82
82
 
83
+ # @return [true,false] true if this session was created in-process, false if it was initialized from a cookie
84
+ def new_record?
85
+ @cookie.nil?
86
+ end
87
+
83
88
  # @return a Hash representation of the session with three subkeys: :metadata, :signed and :insecure
84
89
  # @raise nothing -- does not raise; returns empty hash if there is a failure
85
90
  def to_hash
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_session
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 14
10
- version: 1.0.14
9
+ - 15
10
+ version: 1.0.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tony Spataro
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-02 00:00:00 +00:00
18
+ date: 2012-10-02 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency