deface 0.5.2a → 0.5.2
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.
- data/README.markdown +3 -3
- data/deface.gemspec +4 -4
- metadata +15 -17
data/README.markdown
CHANGED
|
@@ -7,13 +7,13 @@ It allows you to easily target html & erb elements as the hooks for customizatio
|
|
|
7
7
|
|
|
8
8
|
Demo & Testing
|
|
9
9
|
---------------
|
|
10
|
-
You can play with Deface and see
|
|
10
|
+
You can play with Deface and see it's parsing in action at [deface.heroku.com](http://deface.heroku.com)
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Deface::Override
|
|
14
14
|
=======
|
|
15
15
|
|
|
16
|
-
A new instance of the Deface::Override class is initialized for each customization you wish to define. When initializing a new override you must supply only one Target, Action & Source parameter and any number of Optional parameters. Note
|
|
16
|
+
A new instance of the Deface::Override class is initialized for each customization you wish to define. When initializing a new override you must supply only one Target, Action & Source parameter and any number of Optional parameters. Note, the source parameter is not required when the "remove" action is specified.
|
|
17
17
|
|
|
18
18
|
Target
|
|
19
19
|
------
|
|
@@ -117,7 +117,7 @@ Deface uses the amazing Nokogiri library (and in turn libxml) for parsing HTML /
|
|
|
117
117
|
|
|
118
118
|
1. Ensure that your layout views include doctype, html, head and body tags in a single file, as Nokogiri will create such elements if it detects any of these tags have been incorrectly nested.
|
|
119
119
|
|
|
120
|
-
2. Parsing will fail and result in invalid output if ERB blocks are responsible for closing
|
|
120
|
+
2. Parsing will fail and result in invalid output if ERB blocks are responsible for closing a HTML tag what was opened normally, i.e. don't do this:
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
<div <%= ">" %>
|
data/deface.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{deface}
|
|
8
|
-
s.version = "0.5.
|
|
8
|
+
s.version = "0.5.2"
|
|
9
9
|
|
|
10
10
|
s.authors = ["Brian Quinn"]
|
|
11
11
|
s.description = %q{Deface is a library that allows you to customize ERB views in a Rails application without editing the underlying view.}
|
|
@@ -25,14 +25,14 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
s.specification_version = 3
|
|
26
26
|
|
|
27
27
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
28
|
-
s.add_runtime_dependency(%q<nokogiri>, ["
|
|
28
|
+
s.add_runtime_dependency(%q<nokogiri>, ["~> 1.4.3"])
|
|
29
29
|
s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
|
|
30
30
|
else
|
|
31
|
-
s.add_dependency(%q<nokogiri>, ["
|
|
31
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.4.3"])
|
|
32
32
|
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
|
33
33
|
end
|
|
34
34
|
else
|
|
35
|
-
s.add_dependency(%q<nokogiri>, ["
|
|
35
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.4.3"])
|
|
36
36
|
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
|
37
37
|
end
|
|
38
38
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: deface
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 15
|
|
5
|
+
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.5.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Brian Quinn
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-06-03 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -24,14 +24,14 @@ dependencies:
|
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
25
|
none: false
|
|
26
26
|
requirements:
|
|
27
|
-
- -
|
|
27
|
+
- - ~>
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
hash:
|
|
29
|
+
hash: 1
|
|
30
30
|
segments:
|
|
31
31
|
- 1
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
version: 1.
|
|
32
|
+
- 4
|
|
33
|
+
- 3
|
|
34
|
+
version: 1.4.3
|
|
35
35
|
type: :runtime
|
|
36
36
|
version_requirements: *id001
|
|
37
37
|
- !ruby/object:Gem::Dependency
|
|
@@ -101,18 +101,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
none: false
|
|
103
103
|
requirements:
|
|
104
|
-
- - "
|
|
104
|
+
- - ">="
|
|
105
105
|
- !ruby/object:Gem::Version
|
|
106
|
-
hash:
|
|
106
|
+
hash: 3
|
|
107
107
|
segments:
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
- 1
|
|
111
|
-
version: 1.3.1
|
|
108
|
+
- 0
|
|
109
|
+
version: "0"
|
|
112
110
|
requirements: []
|
|
113
111
|
|
|
114
112
|
rubyforge_project:
|
|
115
|
-
rubygems_version: 1.
|
|
113
|
+
rubygems_version: 1.5.0
|
|
116
114
|
signing_key:
|
|
117
115
|
specification_version: 3
|
|
118
116
|
summary: Deface is a library that allows you to customize ERB views in Rails
|