no_notifier_needed 0.1.7 → 0.1.8
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.
- data/VERSION +1 -1
- data/lib/no_notifier_needed/railtie.rb +3 -3
- data/lib/no_notifier_needed/translate.rb +8 -2
- data/no_notifier_needed.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
@@ -7,9 +7,9 @@ module NoNotifierNeeded
|
|
7
7
|
#Pass defaults to allow for this to work
|
8
8
|
#::ActionMailer::Base.send(:include, ActionView::Helpers::)
|
9
9
|
|
10
|
-
NoNotifierNeeded::
|
11
|
-
NoNotifierNeeded::
|
12
|
-
NoNotifierNeeded::
|
10
|
+
NoNotifierNeeded::Send.send(:include, Rails.application.routes.url_helpers) # brings ActionDispatch::Routing::UrlFor
|
11
|
+
NoNotifierNeeded::Send.send(:include, ActionView::Helpers::UrlHelper)
|
12
|
+
NoNotifierNeeded::Send.send(:include, ActionView::Helpers::TextHelper)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
@@ -13,9 +13,15 @@ module NoNotifierNeeded
|
|
13
13
|
if link.match(/http:\/\/[\w*\.]*\//i)
|
14
14
|
root_link = link
|
15
15
|
else
|
16
|
-
|
16
|
+
splitter = NoNotifierNeeded.send(:host).split('/').last
|
17
|
+
|
18
|
+
link_broken = link.split(splitter).last
|
17
19
|
link_broken = link_broken.split('/').reject{|e| e.blank?}.join('/')
|
18
|
-
|
20
|
+
if NoNotifierNeeded.send(:host).last == "/"
|
21
|
+
root_link = NoNotifierNeeded.send(:host) + link_broken
|
22
|
+
else
|
23
|
+
root_link = NoNotifierNeeded.send(:host) + "/" + link_broken
|
24
|
+
end
|
19
25
|
end
|
20
26
|
"<a href='#{root_link}'>#{title}</a>"
|
21
27
|
end
|
data/no_notifier_needed.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "no_notifier_needed"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Robert R. Meyer"]
|
12
|
-
s.date = "2013-01-
|
12
|
+
s.date = "2013-01-17"
|
13
13
|
s.description = "A work in progress"
|
14
14
|
s.email = "Blue.Dog.Archolite@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: no_notifier_needed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml
|
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
166
|
version: '0'
|
167
167
|
segments:
|
168
168
|
- 0
|
169
|
-
hash:
|
169
|
+
hash: -2106490006718562564
|
170
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|