strelka 0.0.1.pre.314 → 0.0.1.pre.315

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,8 +1,14 @@
1
+ 2012-09-26 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * Deploying.rdoc, Plugins.rdoc, README.rdoc, Rakefile:
4
+ A few more fixups to documentation.
5
+ [53fcc16af3a6] [tip]
6
+
1
7
  2012-09-26 Michael B. Hix <mhix@laika.com>
2
8
 
3
9
  * Deploying.rdoc:
4
10
  Convert Deploying.rdoc.
5
- [97e69307bb0c] [tip]
11
+ [97e69307bb0c]
6
12
 
7
13
  * Branch merge.
8
14
  [06f595677069]
@@ -84,7 +90,7 @@
84
90
 
85
91
  Got most of the default plugins covered at least minimally. Split
86
92
  out the rest of the manual into RDoc pages.
87
- [41ef7a20e7cb]
93
+ [41ef7a20e7cb] [github/master]
88
94
 
89
95
  2012-08-24 Mahlon E. Smith <mahlon@martini.nu>
90
96
 
@@ -1091,7 +1097,7 @@
1091
1097
 
1092
1098
  * lib/strelka/app/errors.rb, spec/strelka/app/errors_spec.rb:
1093
1099
  Add documentation for the Errors plugin, improve test coverage.
1094
- [ff3ef6e5a7a1]
1100
+ [ff3ef6e5a7a1] [github/master@default]
1095
1101
 
1096
1102
  * Manifest.txt:
1097
1103
  Add session files to the manifest
@@ -131,6 +131,20 @@ class Strelka::Cookie
131
131
  end
132
132
 
133
133
 
134
+ ### Return the cookie's options as a hash.
135
+ def options
136
+ return {
137
+ domain: self.domain,
138
+ path: self.path,
139
+ secure: self.secure?,
140
+ httponly: self.httponly?,
141
+ expires: self.expires,
142
+ max_age: self.max_age,
143
+ version: self.version,
144
+ }
145
+ end
146
+
147
+
134
148
 
135
149
  ######
136
150
  public
@@ -139,6 +139,22 @@ describe Strelka::Cookie do
139
139
  it "uses the hash of its name as its hash value" do
140
140
  @cookie.hash.should == @cookie.name.to_s.hash
141
141
  end
142
+
143
+ it "can return its options as a Hash" do
144
+ @cookie.domain = '.example.com'
145
+ @cookie.secure = true
146
+
147
+ @cookie.options.should == {
148
+ domain: '.example.com',
149
+ path: nil,
150
+ secure: true,
151
+ httponly: false,
152
+ expires: nil,
153
+ max_age: nil,
154
+ version: 0,
155
+ }
156
+ end
157
+
142
158
  end
143
159
 
144
160
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strelka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre.314
4
+ version: 0.0.1.pre.315
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,7 +36,7 @@ cert_chain:
36
36
  YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
37
37
  Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
38
38
  cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
- date: 2012-09-26 00:00:00.000000000 Z
39
+ date: 2012-09-27 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: configurability
metadata.gz.sig CHANGED
Binary file