deface 1.0.0.rc4 → 1.0.0
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 +4 -4
- data/README.markdown +22 -0
- data/deface.gemspec +3 -3
- data/lib/deface/environment.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 487b1542ffc97468f5439e59d060cc202aab5abd
|
4
|
+
data.tar.gz: 75bdffce97e44af4b4aa9ad9508e3dd3ddc511db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01f69f5e73e800cd1bdbc1b3bffb098d0761aaffaaae4562240c92103d042b3c086bfddf2d05bf9504fc8f92a437d8ace506c3ba67d4ecdc224648377c4575e5
|
7
|
+
data.tar.gz: 2cf5fbe8ca29078d6427454ee55f8c71e8a30cb40a1e6586327df4dfcc42508645a633f057fee6af522d10105d0984e74f6bf00c896ed690137d54e3bb5522ec
|
data/README.markdown
CHANGED
@@ -12,6 +12,28 @@ Deface is a library that allows you to customize HTML (ERB, Haml and Slim) views
|
|
12
12
|
It allows you to easily target html & erb elements as the hooks for customization using CSS selectors as supported by Nokogiri.
|
13
13
|
|
14
14
|
|
15
|
+
Upgrading from 0.9 to 1.0
|
16
|
+
-------------------------
|
17
|
+
|
18
|
+
If you are updating from 0.9.x to 1.0.0 or higher, there's a major internal change you should be aware of.
|
19
|
+
|
20
|
+
Previously, erb blocks (i.e. <%= some_method %>) were converted as:
|
21
|
+
|
22
|
+
```html
|
23
|
+
<code erb-loud> some_method </code>
|
24
|
+
```
|
25
|
+
They are now converted to:
|
26
|
+
|
27
|
+
```html
|
28
|
+
<erb loud> some_method </erb>
|
29
|
+
```
|
30
|
+
|
31
|
+
This change will affect any Override that uses a selector that matches on `code` or `code[erb-loud]` or `code[erb-silent]` etc, they should be updated to `erb`, `erb[loud]` or `erb[silent]`, etc.
|
32
|
+
|
33
|
+
Note: HAML & SLIM are preconverted to ERB before Deface parsers them, so the same conversions are happening there.
|
34
|
+
|
35
|
+
See the [Implementation](#implementation) section below for more details.
|
36
|
+
|
15
37
|
Usage
|
16
38
|
-----
|
17
39
|
|
data/deface.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "deface"
|
3
|
-
s.version = "1.0.0
|
3
|
+
s.version = "1.0.0"
|
4
4
|
|
5
5
|
s.authors = ["Brian D Quinn"]
|
6
6
|
s.description = "Deface is a library that allows you to customize ERB, Haml and Slim views in a Rails application without editing the underlying view."
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
|
22
22
|
s.add_development_dependency('rspec', '>= 2.11.0')
|
23
23
|
s.add_development_dependency('haml', '>= 3.1.4')
|
24
|
-
s.add_development_dependency('slim', '
|
24
|
+
s.add_development_dependency('slim', '2.0.0') # 2.0.1 breaks slim loader specs
|
25
25
|
s.add_development_dependency('simplecov', '>= 0.6.4')
|
26
|
-
s.add_development_dependency('generator_spec', '~> 0.8
|
26
|
+
s.add_development_dependency('generator_spec', '~> 0.8')
|
27
27
|
end
|
data/lib/deface/environment.rb
CHANGED
@@ -89,7 +89,7 @@ module Deface
|
|
89
89
|
paths ||= ["app/overrides"]
|
90
90
|
|
91
91
|
paths.each do |path|
|
92
|
-
if Rails.version[0..2]
|
92
|
+
if Rails.version[0..2] >= "3.2"
|
93
93
|
# add path to watchable_dir so Rails will call to_prepare on file changes
|
94
94
|
# allowing overrides to be updated / reloaded in development mode.
|
95
95
|
Rails.application.config.watchable_dirs[root.join(path).to_s] = [:rb, :deface]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian D Quinn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -84,14 +84,14 @@ dependencies:
|
|
84
84
|
name: slim
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - '
|
87
|
+
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 2.0.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - '
|
94
|
+
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.0.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.8
|
117
|
+
version: '0.8'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.8
|
124
|
+
version: '0.8'
|
125
125
|
description: Deface is a library that allows you to customize ERB, Haml and Slim views
|
126
126
|
in a Rails application without editing the underlying view.
|
127
127
|
email: brian@spreecommerce.com
|
@@ -247,12 +247,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
247
247
|
version: '0'
|
248
248
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
249
|
requirements:
|
250
|
-
- - '
|
250
|
+
- - '>='
|
251
251
|
- !ruby/object:Gem::Version
|
252
|
-
version:
|
252
|
+
version: '0'
|
253
253
|
requirements: []
|
254
254
|
rubyforge_project:
|
255
|
-
rubygems_version: 2.0
|
255
|
+
rubygems_version: 2.1.0
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: Deface is a library that allows you to customize ERB, Haml and Slim views
|