view_inspect 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGRmOTVlYTY1Mjk4MjU1MmZkYmQwNDU0NWQ0NTM4ZmRmZGI3NzdhZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTFhNWVkNTBkOWY1OTlmODQ5ZGExZjk0MmZjYmMzZDkyNDI1NjRjOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDY2ZjY5NzA2MThhZGNmMDcwZTBmNDcyYmUwNmMzMjAwODFiYWUzMTAyNTg1
|
10
|
+
NWIwZjQyYmNlNzljNGZlMTVmMTY4YjIwZmFlZTcwZGEwMDliN2ZkYjc1YjI5
|
11
|
+
Y2JkNDhjOTk0MWE2NzMyOTFlN2I0MDY5YzNhZDIyODc2ZTQwNzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGQ1ZDZhODc5NjBkY2RlNTcwOGMzNDAzMGIyNTA4ZTFjYzYzYzllOGE3MGI5
|
14
|
+
MDMzNDcwYTkwMmRkYTI4MmMzZTQ4OTY3NzI3Y2E2NGNiMGU1Mzg4Njk4YzQ1
|
15
|
+
N2Y0YmM0OGNmNmI4ZDc0YTJlYmNjZjczZWZlZjVlM2U0NTVkNTI=
|
data/README.markdown
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'view_inspect/handlers/handlebars'
|
2
2
|
require 'view_inspect/handlers/ejs'
|
3
3
|
require 'view_inspect/handlers/eco'
|
4
|
+
require 'view_inspect/handlers/jst'
|
4
5
|
|
5
6
|
# Were monkey patching subclasses of Tilt::Template to add file:line information to the original source
|
6
7
|
module ViewInspect
|
@@ -27,6 +28,7 @@ module ViewInspect
|
|
27
28
|
hash[::HandlebarsAssets::TiltHandlebars] = Handlers::Handlebars if defined? ::HandlebarsAssets::TiltHandlebars
|
28
29
|
hash[::Sprockets::EjsTemplate] = Handlers::EJS if defined? ::Sprockets::EjsTemplate
|
29
30
|
hash[::Sprockets::EcoTemplate] = Handlers::Eco if defined? ::Sprockets::EcoTemplate
|
31
|
+
hash[::Sprockets::JstProcessor] = Handlers::Jst if defined? ::Sprockets::JstProcessor
|
30
32
|
hash
|
31
33
|
end
|
32
34
|
|
@@ -1,11 +1,8 @@
|
|
1
|
-
require 'view_inspect/handlers/
|
1
|
+
require 'view_inspect/handlers/erb'
|
2
2
|
|
3
3
|
module ViewInspect
|
4
4
|
module Handlers
|
5
|
-
class Eco <
|
6
|
-
def self.expression_regex
|
7
|
-
/(<%(=+|-|\#|%)?(.*?)([-=])?%>([ \t]*)?)/m # same as erb
|
8
|
-
end
|
5
|
+
class Eco < ERB
|
9
6
|
end
|
10
7
|
end
|
11
8
|
end
|
@@ -1,11 +1,8 @@
|
|
1
|
-
require 'view_inspect/handlers/
|
1
|
+
require 'view_inspect/handlers/erb'
|
2
2
|
|
3
3
|
module ViewInspect
|
4
4
|
module Handlers
|
5
|
-
class EJS <
|
6
|
-
def self.expression_regex
|
7
|
-
/(<%(=+|-|\#|%)?(.*?)([-=])?%>([ \t]*)?)/m # same as erb
|
8
|
-
end
|
5
|
+
class EJS < ERB
|
9
6
|
end
|
10
7
|
end
|
11
8
|
end
|
data/lib/view_inspect/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: view_inspect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reginald Tan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -46,6 +46,7 @@ files:
|
|
46
46
|
- lib/view_inspect/handlers/handlebars.rb
|
47
47
|
- lib/view_inspect/handlers/html_template.rb
|
48
48
|
- lib/view_inspect/handlers/javascript_handler.js
|
49
|
+
- lib/view_inspect/handlers/jst.rb
|
49
50
|
- lib/view_inspect/handlers/slim.rb
|
50
51
|
- lib/view_inspect/rails/middleware.rb
|
51
52
|
- lib/view_inspect/rails/railtie.rb
|