rails_default_url_options 3.0.0 → 5.0.0
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 +6 -14
- data/Rakefile +2 -2
- data/lib/rails_default_url_options.rb +4 -2
- data/rails_default_url_options.gemspec +3 -2
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
metadata.gz: !binary |-
|
|
9
|
-
YjUwZWVkMGIxNDE3N2M5NWY3OWZjMzdmODYyYWE4OTE1OGViMDA4MzJiNTZk
|
|
10
|
-
ZDJlZjU3N2FhMjMxZGZlZWU2M2RkNjc4YTYxYzRkZjA2ZjhkNjJjNmYxYjEx
|
|
11
|
-
MThlNjUxZjE0YzIxOTE3MzI3YjBhNDVhNmM2NzRmMGU3ZTc2YjQ=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
MWI1N2E5OWNmYmE3NjkzZTQ1YWYzY2U0ODYxODg4NTY4NTBkOWNiNjIyNTc1
|
|
14
|
-
MDk5ZjNiZDFhODFkOTBlZWMyNzNiNThjYTYxYTllOTQ0NjQ0OTBkYWFiM2Nl
|
|
15
|
-
NDVhNjgzMDlkZTM0YTFmMDMyZmNlMWI4MjQ1NGJhZTM2ZDZmODc=
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 3528ba9babc8f72d7dfc4157003784eb641171b551ab986cf7a786c0bcddc587
|
|
4
|
+
data.tar.gz: 470ec9f879a7e68faf00a6cf05c71e85007d3f946031d774072f5f5488c57b63
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 66c83875a9548eb4379c5df3ca63c27b807e87b8cd6720e32aaa3078d76c926149dc7ca1631445901ba8500a0062c10ec7918463aa957ebb10f540fc2c5a3fac
|
|
7
|
+
data.tar.gz: f81ecdad6a24488fef3dd4d72d7e9ea22b1f781c3ca7fbaf5c035f1f2e3071f08f3a35bcbd3b87c20b6f205b06172afb3028626dfd49c0e132c6c6729287893d
|
data/Rakefile
CHANGED
|
@@ -90,7 +90,7 @@ task :gemspec do
|
|
|
90
90
|
test_files = test(?e, "test/#{ lib }.rb") ? "test/#{ lib }.rb" : nil
|
|
91
91
|
summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
|
|
92
92
|
description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
|
|
93
|
-
license = object.respond_to?(:license) ? object.license : "
|
|
93
|
+
license = object.respond_to?(:license) ? object.license : "Ruby"
|
|
94
94
|
|
|
95
95
|
if This.extensions.nil?
|
|
96
96
|
This.extensions = []
|
|
@@ -295,7 +295,7 @@ BEGIN {
|
|
|
295
295
|
|
|
296
296
|
# discover full path to this ruby executable
|
|
297
297
|
#
|
|
298
|
-
c =
|
|
298
|
+
c = RbConfig::CONFIG
|
|
299
299
|
bindir = c["bindir"] || c['BINDIR']
|
|
300
300
|
ruby_install_name = c['ruby_install_name'] || c['RUBY_INSTALL_NAME'] || 'ruby'
|
|
301
301
|
ruby_ext = c['EXEEXT'] || ''
|
|
@@ -31,7 +31,7 @@ unless defined?(DefaultUrlOptions)
|
|
|
31
31
|
DefaultUrlOptions = Hash.new
|
|
32
32
|
|
|
33
33
|
def DefaultUrlOptions.version
|
|
34
|
-
'
|
|
34
|
+
'5.0.0'
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def DefaultUrlOptions.dependencies
|
|
@@ -150,7 +150,9 @@ if defined?(Rails)
|
|
|
150
150
|
|
|
151
151
|
if defined?(::ActionController::Base)
|
|
152
152
|
::ActionController::Base.module_eval do
|
|
153
|
-
prepend_before_filter
|
|
153
|
+
install_method = respond_to?(:prepend_before_filter) ? :prepend_before_filter : :prepend_before_action
|
|
154
|
+
|
|
155
|
+
send(install_method) do |controller|
|
|
154
156
|
unless controller.respond_to?(:configure_default_url_options!)
|
|
155
157
|
unless DefaultUrlOptions.configured?
|
|
156
158
|
request = controller.send(:request)
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification::new do |spec|
|
|
5
5
|
spec.name = "rails_default_url_options"
|
|
6
|
-
spec.version = "
|
|
6
|
+
spec.version = "5.0.0"
|
|
7
7
|
spec.platform = Gem::Platform::RUBY
|
|
8
8
|
spec.summary = "rails_default_url_options"
|
|
9
9
|
spec.description = "description: rails_default_url_options kicks the ass"
|
|
10
|
-
spec.license = "
|
|
10
|
+
spec.license = "Ruby"
|
|
11
11
|
|
|
12
12
|
spec.files =
|
|
13
13
|
["README.md",
|
|
14
14
|
"Rakefile",
|
|
15
15
|
"lib",
|
|
16
|
+
"lib/rails_default_url_options",
|
|
16
17
|
"lib/rails_default_url_options.rb",
|
|
17
18
|
"rails_default_url_options.gemspec"]
|
|
18
19
|
|
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_default_url_options
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 5.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ara T. Howard
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
13
|
+
description: 'description: rails_default_url_options kicks the ass'
|
|
14
14
|
email: ara.t.howard@gmail.com
|
|
15
15
|
executables: []
|
|
16
16
|
extensions: []
|
|
@@ -22,7 +22,7 @@ files:
|
|
|
22
22
|
- rails_default_url_options.gemspec
|
|
23
23
|
homepage: https://github.com/ahoward/rails_default_url_options
|
|
24
24
|
licenses:
|
|
25
|
-
-
|
|
25
|
+
- Ruby
|
|
26
26
|
metadata: {}
|
|
27
27
|
post_install_message:
|
|
28
28
|
rdoc_options: []
|
|
@@ -30,17 +30,17 @@ require_paths:
|
|
|
30
30
|
- lib
|
|
31
31
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
32
|
requirements:
|
|
33
|
-
- -
|
|
33
|
+
- - ">="
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
35
|
version: '0'
|
|
36
36
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
requirements: []
|
|
42
42
|
rubyforge_project: codeforpeople
|
|
43
|
-
rubygems_version: 2.
|
|
43
|
+
rubygems_version: 2.7.6
|
|
44
44
|
signing_key:
|
|
45
45
|
specification_version: 4
|
|
46
46
|
summary: rails_default_url_options
|