ood_appkit 1.0.1 → 1.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e93d18a9dde285e2ea4192e6432c335fb7a8f0f6
4
- data.tar.gz: 064f4bea76929a57b553bcd3b9cba6f9b55407af
3
+ metadata.gz: 2f6c9c0da51eb67d22b9cd39b52885de743f4c36
4
+ data.tar.gz: 6aa172e49f15434e4a63d1aceb6b828ea9266190
5
5
  SHA512:
6
- metadata.gz: db8d0a58f9555aeed9dc4bd5a96fa826f34994fe78c45c913b608fe10ddebdf2ac4bacf8cd9bc7a0729eec344c8764099708a1bef844973f35d40acd0c87259b
7
- data.tar.gz: dd1715a1ee4d7c5403344c4d84cc6a5f668d70a51187980bee0bbb599278e4297d0a6d2603f9991e5e6b674b98872d84cc0eac5e9843df24a3f9523439ce2748
6
+ metadata.gz: a606f8e2295611cedf79b1d4f7ff16a715bbc302eac7abc7ee4cf89314838eea5aa9e757efe90474de06490c21ca7d3ff0736f643f9eb45c761094bda5ccedc5
7
+ data.tar.gz: 06d21e666e67c25e6f4743fda1423b6d4c8ead6ed0c5bfe8195f8af4300d417721db0ca0dccc5c700250425827de7b3f9b130a475c4854b1ab2769846388d768
@@ -63,4 +63,9 @@
63
63
  border: 1px solid #ddd;
64
64
  }
65
65
  }
66
+ pre {
67
+ code {
68
+ white-space: pre;
69
+ }
70
+ }
66
71
  }
@@ -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
@@ -1,4 +1,4 @@
1
1
  module OodAppkit
2
2
  # The current version of OodAppkit
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
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.1
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-04-28 00:00:00.000000000 Z
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