ood_appkit 1.0.1 → 1.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f6c9c0da51eb67d22b9cd39b52885de743f4c36
|
4
|
+
data.tar.gz: 6aa172e49f15434e4a63d1aceb6b828ea9266190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a606f8e2295611cedf79b1d4f7ff16a715bbc302eac7abc7ee4cf89314838eea5aa9e757efe90474de06490c21ca7d3ff0736f643f9eb45c761094bda5ccedc5
|
7
|
+
data.tar.gz: 06d21e666e67c25e6f4743fda1423b6d4c8ead6ed0c5bfe8195f8af4300d417721db0ca0dccc5c700250425827de7b3f9b130a475c4854b1ab2769846388d768
|
data/lib/ood_appkit.rb
CHANGED
@@ -4,6 +4,7 @@ require 'ood_appkit/url'
|
|
4
4
|
require 'ood_appkit/files_rack_app'
|
5
5
|
require 'ood_appkit/markdown_template_handler'
|
6
6
|
require 'ood_appkit/log_formatter'
|
7
|
+
require 'ood_appkit/default_cookie_options'
|
7
8
|
|
8
9
|
# The main namespace for OodAppkit. Provides a global configuration.
|
9
10
|
module OodAppkit
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module OodAppkit
|
2
|
+
module DefaultCookieOptions
|
3
|
+
def handle_options(options)
|
4
|
+
if base_uri = ENV["RAILS_RELATIVE_URL_ROOT"]
|
5
|
+
options[:path] = base_uri unless /^#{Regexp.quote base_uri}/ =~ options[:path]
|
6
|
+
end
|
7
|
+
super(options)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
ActionDispatch::Cookies::CookieJar.prepend OodAppkit::DefaultCookieOptions
|
data/lib/ood_appkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ood_appkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Franz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- config/routes.rb
|
126
126
|
- lib/ood_appkit.rb
|
127
127
|
- lib/ood_appkit/configuration.rb
|
128
|
+
- lib/ood_appkit/default_cookie_options.rb
|
128
129
|
- lib/ood_appkit/engine.rb
|
129
130
|
- lib/ood_appkit/files_rack_app.rb
|
130
131
|
- lib/ood_appkit/log_formatter.rb
|