view_inspect 0.3.4 → 0.3.5

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2Q3MjU0ZjEzNWIzYzkwYmJjZTk1NWMzYTA1NGExYzJhMzcxOGU0Ng==
4
+ MGRmOTVlYTY1Mjk4MjU1MmZkYmQwNDU0NWQ0NTM4ZmRmZGI3NzdhZA==
5
5
  data.tar.gz: !binary |-
6
- MWQxODEyZDc3ZjNiNWJiNWFkNWJiYmVkMzVhM2E2MGY1NDQyOTE5Yg==
6
+ OTFhNWVkNTBkOWY1OTlmODQ5ZGExZjk0MmZjYmMzZDkyNDI1NjRjOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTc4ZTE5OTcwNmU4ZTliMjdiOTA5ZTQ0ZjcwMzM5NzllMDc1ZGI2YjllMDk0
10
- YzhlMGFjMjI3MjkwMWY0ODgzNmI4N2EyY2YyZDk4YTM2NmUwNzc2YWIxMmYy
11
- MjllODE3NzNmODdkNmI3ZDIwN2Y1ZTBiNTNjOTVlYjEzN2I2OTg=
9
+ MDY2ZjY5NzA2MThhZGNmMDcwZTBmNDcyYmUwNmMzMjAwODFiYWUzMTAyNTg1
10
+ NWIwZjQyYmNlNzljNGZlMTVmMTY4YjIwZmFlZTcwZGEwMDliN2ZkYjc1YjI5
11
+ Y2JkNDhjOTk0MWE2NzMyOTFlN2I0MDY5YzNhZDIyODc2ZTQwNzc=
12
12
  data.tar.gz: !binary |-
13
- MTBkNjNjOTg4OGQ3ZTdlMDMwZTY4ZjlmY2QxY2IwZDE4YjgyYjExODYwYWMx
14
- YzkxOWY3YjJkMDdlMjU2MWVhMTk2NWFhMWJkMzUyZWU1NDY0NTZlNDYzZWQw
15
- OTZmY2ZjZjIwMWM4NmFlYzViYjNiMWE5NmUzODFmNDMxZWIwOTA=
13
+ NGQ1ZDZhODc5NjBkY2RlNTcwOGMzNDAzMGIyNTA4ZTFjYzYzYzllOGE3MGI5
14
+ MDMzNDcwYTkwMmRkYTI4MmMzZTQ4OTY3NzI3Y2E2NGNiMGU1Mzg4Njk4YzQ1
15
+ N2Y0YmM0OGNmNmI4ZDc0YTJlYmNjZjczZWZlZjVlM2U0NTVkNTI=
data/README.markdown CHANGED
@@ -17,8 +17,9 @@ Support
17
17
  | Haml | haml |
18
18
  | Slim | slim |
19
19
  | ERB | any erb implementation |
20
- | Handlebars | ember-rails |
20
+ | Handlebars | ember-rails, handlebars_assets |
21
21
  | EJS | sprockets |
22
+ | JST | sprockets |
22
23
  | Eco | sprockets |
23
24
 
24
25
 
@@ -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/html_template'
1
+ require 'view_inspect/handlers/erb'
2
2
 
3
3
  module ViewInspect
4
4
  module Handlers
5
- class Eco < HTMLTemplate
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/html_template'
1
+ require 'view_inspect/handlers/erb'
2
2
 
3
3
  module ViewInspect
4
4
  module Handlers
5
- class EJS < HTMLTemplate
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
@@ -0,0 +1,8 @@
1
+ require 'view_inspect/handlers/erb'
2
+
3
+ module ViewInspect
4
+ module Handlers
5
+ class Jst < ERB
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module ViewInspect
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
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
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-10 00:00:00.000000000 Z
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