view_inspect 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmNjNDhiZjFlMjJiMjlkMmNiMzBiNTU4MDNhZjE4NjcxYWJkNDhhMg==
5
- data.tar.gz: !binary |-
6
- Y2FmYTU1N2M1N2VkZmM1MDhmMzM2ZDE1MTM3ZmJlMmYwMjBjZWFkOQ==
2
+ SHA1:
3
+ metadata.gz: 6cafc253a00b328fee86d14c6c0069b5d7478f57
4
+ data.tar.gz: f0be8589527c11b0a2b8a9aa8120bdd2b7780e55
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZDY3ZGEyMjE4Zjk3ZmRkMTQxNTY1NWU1YjY3YzNjOGQ3MGM5OWYyMDZmMmNl
10
- ZDFlNDVmMWQwNDY1MGJmMGU3MDM3NTdhNGI0N2RhMjJmM2UzY2Q3OTFhYWUz
11
- NzJkNmE1MzI5MjYyMjBjMGFjNjExNmJkODI1MzY3OTgwYWUyZDY=
12
- data.tar.gz: !binary |-
13
- NWQzZGNkYWNjZDAwMmFmNTBjNmMwNzQ2MWQwOGRhNjcwYTljZTEyYjRjNjlh
14
- NmU1NDlkYzY1M2ExNjkzMzcxNjJmNDkxNjAyYTQ0NWU3ZGQxNTA3NThlNTVj
15
- ZGEzZDU5ODExMWQ2Njk4OTUwMTIzNGEwNjZmYTFkYzhjYmM2ZDk=
6
+ metadata.gz: bd7765500968ae6bf57b6e08d69c1c8edd9c8aa9223bd81ee0186d718ca9145eeea76278efec2aa9d42ef84f7a0e5a62eb8e95180fc0068be87d8020defa3f83
7
+ data.tar.gz: 70f950684302dc5b43e27d35522d43f47f4d70359eef72a62244cd65acc486b0956ec343477234863192f6a340e49a24567927715bffb93d31049869b89001aa
data/README.markdown CHANGED
@@ -1,7 +1,7 @@
1
1
  View Inspect
2
2
  ============
3
3
 
4
- View Inspect tells you which server-side or client-side template is responsible for rendering a DOM element. Instead of using grep to sift through a large codebase to find the source location of a UI, the information can be found right away in its data-attribute when you open up web inspector. Works with Rails 3 and 4. See below for templates supported and their required libraries.
4
+ View Inspect tells you which server-side or client-side template is responsible for rendering a DOM element. Instead of using grep to filter through a large codebase, the source location can be found right away in its data-attribute when you open up web inspector. Works with Rails 3 and 4. See below for templates supported and their required libraries.
5
5
 
6
6
  Source location is added by first stubbing out all template specific expressions (i.e. `<% %>` for erb). Nokogiri parses the resulting valid HTML fragment and adds file:line information to each DOM node. After which stubs are replaced back with original template expressions.
7
7
 
@@ -11,7 +11,7 @@ module ViewInspect
11
11
  def compile(node)
12
12
  if node.type == :tag
13
13
  file_line = [@options[:filename], node.line].join(":")
14
- node.value.attributes.merge!(:data => { :orig_file_line => file_line })
14
+ node.value[:attributes].merge!(:data => { :orig_file_line => file_line })
15
15
  end
16
16
  orig_compile(node)
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module ViewInspect
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_inspect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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-08 00:00:00.000000000 Z
11
+ date: 2014-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: Shows you the source location of a server-side or client-side rendered
@@ -63,20 +63,19 @@ require_paths:
63
63
  - lib
64
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ! '>='
71
+ - - '>='
72
72
  - !ruby/object:Gem::Version
73
73
  version: 1.9.3
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.1.10
76
+ rubygems_version: 2.2.2
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Shows you the source location of a server-side or client-side rendered DOM
80
80
  element
81
81
  test_files: []
82
- has_rdoc: