dirty_url 0.0.5 → 0.0.6
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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dirty_url.rb +1 -0
- data/lib/dirty_url/default_url_options.rb +14 -0
- data/lib/dirty_url/patches/feature_example_group.rb +15 -0
- data/lib/dirty_url/railtie.rb +8 -11
- data/lib/dirty_url/version.rb +2 -1
- metadata +31 -26
- metadata.gz.sig +5 -2
- data/Rakefile +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4f6015a53bcec392fa9d0c26106b07c80f576ac65f29a6f82d13d503456aceaf
|
4
|
+
data.tar.gz: 50a56ce4a87bd1f31d75bb49455a14e05704b8c6299f2cfd52b5a856e0920a28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24dd89bee266daae15232e7cd9288ec7de3bb024b421da4bf328194a573c45653d24140e05686e9046e675b1bf49f8f1816ddb9e1ed0bdc2e2ca37277740c234
|
7
|
+
data.tar.gz: f2cd5bc596f082895b5989715d3deda8bd0ecb602669b18a31432272d0c735b9582187634f15707adec229b70a63c106c06f2fd0405ba9311607c65b498453b2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dirty_url.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
module DirtyUrl
|
6
|
+
class DefaultUrlOptions
|
7
|
+
def self.fetch
|
8
|
+
return Chamber.env.http.url_components.symbolize_keys if defined?(Chamber)
|
9
|
+
|
10
|
+
settings_file = application.root.join('config', 'dirty_url.yml')
|
11
|
+
YAML.safe_load(File.read(settings_file)).symbolize_keys
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# https://github.com/rspec/rspec-rails/issues/1275
|
2
|
+
|
3
|
+
# frozen_string_literal: true
|
4
|
+
|
5
|
+
require 'dirty_url/default_url_options'
|
6
|
+
|
7
|
+
module RSpec
|
8
|
+
module Rails
|
9
|
+
module FeatureExampleGroup
|
10
|
+
def default_url_options
|
11
|
+
@default_url_options ||= ::DirtyUrl::DefaultUrlOptions.fetch
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/dirty_url/railtie.rb
CHANGED
@@ -1,22 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
|
3
|
+
require 'dirty_url/default_url_options'
|
3
4
|
|
4
5
|
module DirtyUrl
|
5
6
|
class Railtie < Rails::Railtie
|
6
7
|
initializer 'dirty_url.load', after: :load_environment_config do |application|
|
7
|
-
|
8
|
-
Chamber.env.http.url_components.symbolize_keys
|
9
|
-
else
|
10
|
-
settings_file = application.root.join('config', 'dirty_url.yml')
|
11
|
-
YAML.load(File.read(settings_file)).symbolize_keys
|
12
|
-
end
|
8
|
+
default_url_options ||= ::DirtyUrl::DefaultUrlOptions.fetch
|
13
9
|
|
14
|
-
application.config.
|
15
|
-
application.config.
|
16
|
-
application.
|
10
|
+
application.config.action_controller.default_url_options = default_url_options
|
11
|
+
application.config.action_dispatch.default_url_options = default_url_options
|
12
|
+
application.config.action_mailer.default_url_options = default_url_options
|
13
|
+
application.routes.default_url_options = default_url_options
|
17
14
|
|
18
15
|
if ActionMailer::Base.respond_to?(:'default_url_options=')
|
19
|
-
ActionMailer::Base.default_url_options =
|
16
|
+
ActionMailer::Base.default_url_options = default_url_options
|
20
17
|
end
|
21
18
|
end
|
22
19
|
end
|
data/lib/dirty_url/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dirty_url
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
@@ -10,28 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
13
|
+
MIIEdjCCAt6gAwIBAgIBATANBgkqhkiG9w0BAQsFADAyMTAwLgYDVQQDDCdhY2Nv
|
14
|
+
dW50c19ydWJ5Z2Vtcy9EQz10aGVrb21wYW5lZS9EQz1jb20wHhcNMTgwODAzMjEz
|
15
|
+
NjUzWhcNMTkwODAzMjEzNjUzWjAyMTAwLgYDVQQDDCdhY2NvdW50c19ydWJ5Z2Vt
|
16
|
+
cy9EQz10aGVrb21wYW5lZS9EQz1jb20wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAw
|
17
|
+
ggGKAoIBgQDR6ma5Z4B2Qz+ykVUKn2CoWwoJ3vStZLDNc6nIOUTUDFS5rg43XwwB
|
18
|
+
nnHCLhHZ9QeNflBpJObMwIUwDqxfZoxhmEILzUfv/yuoBj90zmnf7K2mmsPuT44a
|
19
|
+
aTyZjYGid+yyTbzIpR4CCBHyvGNVm9ss64C2XXPNXrlLO3eAxgB9zNYkxOeJatZp
|
20
|
+
d1h5FZIkAqgw7rx65W+e4HUSNnUvzUmZKoO0u/yMlnc4NcK05RdgHZ5FcXgSAZG/
|
21
|
+
MRzJ0rIdEk7wT8fBJ6w9oeFca8qW7C9M/ONJ4WiS+HoquCRcR+FiNAS3LQtQbiaR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drnOQbyyDBzJyXmNV
|
33
37
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
38
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
35
39
|
dependencies:
|
36
40
|
- !ruby/object:Gem::Dependency
|
37
41
|
name: rails
|
@@ -71,15 +75,17 @@ description: By 'default', Rails has a difficult time figuring out when it is su
|
|
71
75
|
to show relative URLs in mailers and even when doing comparisons in specs, the URL
|
72
76
|
returned tends to be non-deterministic. Using this gem, Rails will always return
|
73
77
|
the proper URL based on the environment you are executing in.
|
74
|
-
email:
|
78
|
+
email:
|
79
|
+
- accounts+git@thekompanee.com
|
75
80
|
executables: []
|
76
81
|
extensions: []
|
77
82
|
extra_rdoc_files: []
|
78
83
|
files:
|
79
84
|
- LICENSE.txt
|
80
85
|
- README.md
|
81
|
-
- Rakefile
|
82
86
|
- lib/dirty_url.rb
|
87
|
+
- lib/dirty_url/default_url_options.rb
|
88
|
+
- lib/dirty_url/patches/feature_example_group.rb
|
83
89
|
- lib/dirty_url/railtie.rb
|
84
90
|
- lib/dirty_url/version.rb
|
85
91
|
homepage: https://github.com/thekompanee/dirty_url
|
@@ -103,9 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
109
|
version: '0'
|
104
110
|
requirements: []
|
105
111
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.7.7
|
107
113
|
signing_key:
|
108
114
|
specification_version: 4
|
109
115
|
summary: Make URLs work properly in Rails mailers and controllers.
|
110
116
|
test_files: []
|
111
|
-
has_rdoc:
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
�o����L�+�y���I]���n*�Z��t�9�� ���}����_�5Ĉ��bN4����b��F}���
|
2
|
+
ض�H�#1]A^�A5}5
|
3
|
+
����?Ύ���#��-�)]�l�u�E�ؑ��6��
|
4
|
+
�~�n�.�+=J�P~G=�+���(���&_��7ǫz)<lq{6�\�n%�������^�"a��n���9���F=w�i���^N
|
5
|
+
��?��Qv@vŜ��K���ȯ�c�3�-�
|
data/Rakefile
DELETED