prospecto 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/prospecto/controller.rb +1 -3
- data/lib/prospecto/railtie.rb +2 -0
- data/lib/prospecto/version.rb +1 -1
- metadata +9 -9
data/lib/prospecto/controller.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
require 'rails/railtie'
|
2
|
-
|
3
1
|
module Prospecto
|
4
2
|
module ProspectoController
|
5
|
-
def
|
3
|
+
def enable_prospecto
|
6
4
|
view_path = Rails.root.join("app/views")
|
7
5
|
resolver = ActionView::FileSystemResolver.new(view_path, ":prefix/templates/:action{.:locale,}{.:formats,}{.:handlers,}")
|
8
6
|
prepend_view_path(resolver)
|
data/lib/prospecto/railtie.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
require 'rails/railtie'
|
1
2
|
require 'prospecto/controller'
|
2
3
|
|
3
4
|
module Prospecto
|
4
5
|
class Railtie < Rails::Railtie
|
5
6
|
initializer "prospecto.initialize" do |app|
|
6
7
|
ActionController::Base.extend(ProspectoController)
|
8
|
+
ActionController::Base.class_eval { enable_prospecto }
|
7
9
|
end
|
8
10
|
|
9
11
|
initializer 'prospecto.autoload', :before => :set_autoload_paths do |app|
|
data/lib/prospecto/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prospecto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70285831432440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70285831432440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &70285831431800 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70285831431800
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: turn
|
38
|
-
requirement: &
|
38
|
+
requirement: &70285831431100 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70285831431100
|
47
47
|
description: ''
|
48
48
|
email:
|
49
49
|
- bigjasonwebb@gmail.com
|
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
segments:
|
109
109
|
- 0
|
110
|
-
hash:
|
110
|
+
hash: 3465733031179072830
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
112
|
none: false
|
113
113
|
requirements:
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
segments:
|
118
118
|
- 0
|
119
|
-
hash:
|
119
|
+
hash: 3465733031179072830
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
122
|
rubygems_version: 1.8.10
|