rails_helper 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails_helper.rb +15 -5
- data/rails_helper.gemspec +1 -1
- metadata +4 -4
data/lib/rails_helper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class Helper
|
2
|
-
def Helper.version() '1.
|
2
|
+
def Helper.version() '1.1.0' end
|
3
3
|
|
4
4
|
def Helper.dependencies
|
5
5
|
{
|
@@ -8,10 +8,20 @@ class Helper
|
|
8
8
|
end
|
9
9
|
|
10
10
|
|
11
|
-
if defined?(Rails)
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
if defined?(Rails::Engine)
|
12
|
+
|
13
|
+
class Engine < Rails::Engine
|
14
|
+
config.after_initialize do
|
15
|
+
if defined?(ActionView::Helpers)
|
16
|
+
::Helper.send(:include, ActionView::Helpers)
|
17
|
+
end
|
18
|
+
|
19
|
+
if defined?(Rails.application.routes.url_helpers)
|
20
|
+
::Helper.send(:include, Rails.application.routes.url_helpers)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
15
25
|
end
|
16
26
|
|
17
27
|
def controller
|
data/rails_helper.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails_current
|
16
|
-
requirement: &
|
16
|
+
requirement: &70166147788740 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70166147788740
|
25
25
|
description: ! 'description: rails_helper kicks the ass'
|
26
26
|
email: ara.t.howard@gmail.com
|
27
27
|
executables: []
|