deface 1.0.0.rc1 → 1.0.0.rc2
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/.travis.yml +9 -1
- data/Gemfile +2 -1
- data/README.markdown +11 -9
- data/deface.gemspec +3 -2
- data/gemfiles/haml4_0.gemfile +5 -0
- data/gemfiles/rails3_1.gemfile +2 -2
- data/gemfiles/rails3_2.gemfile +2 -2
- data/lib/deface.rb +1 -0
- data/lib/deface/applicator.rb +3 -3
- data/lib/deface/dsl/loader.rb +2 -1
- data/lib/deface/generators +0 -0
- data/lib/deface/parser.rb +5 -4
- data/lib/deface/precompiler.rb +33 -0
- data/lib/deface/template_helper.rb +1 -1
- data/lib/generators/deface/USAGE +8 -0
- data/lib/generators/deface/override_generator.rb +16 -0
- data/lib/generators/deface/templates/override.html.erb.deface +2 -0
- data/lib/generators/deface/templates/override.html.haml.deface +3 -0
- data/spec/assets/dummy_app/overrides/posts/precompileme/precompileme.html.erb.deface +2 -0
- data/spec/assets/posts/precompileme.html.erb +2 -0
- data/spec/deface/actions/set_attributes_spec.rb +4 -1
- data/spec/deface/dsl/loader_spec.rb +22 -2
- data/spec/deface/override_spec.rb +48 -11
- data/spec/deface/parser_spec.rb +73 -17
- data/spec/deface/precompiler_spec.rb +42 -0
- data/spec/deface/template_helper_spec.rb +2 -2
- data/spec/generators/deface/override_generator_spec.rb +26 -0
- data/spec/spec_helper.rb +16 -1
- data/tasks/precompile.rake +1 -26
- metadata +239 -210
- data/gemfiles/haml3_2.gemfile +0 -5
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Deface
|
4
|
+
|
5
|
+
describe Precompiler do
|
6
|
+
include_context "mock Rails.application"
|
7
|
+
|
8
|
+
before do
|
9
|
+
# start with a clean file system
|
10
|
+
FileUtils.rm_rf('spec/dummy/app/compiled_views')
|
11
|
+
environment = Deface::Environment.new
|
12
|
+
overrides = Deface::Environment::Overrides.new
|
13
|
+
overrides.stub(:all => {}) # need to do this before creating an override
|
14
|
+
overrides.stub(:all => {"posts/precompileme".to_sym => {"precompileme".parameterize => Deface::Override.new(:virtual_path => "posts/precompileme", :name => "precompileme", :insert_bottom => 'li', :text => "Added to li!")}})
|
15
|
+
environment.stub(:overrides => overrides)
|
16
|
+
|
17
|
+
Rails.application.config.stub :deface => environment
|
18
|
+
|
19
|
+
#stub view paths to be local spec/assets directory
|
20
|
+
ActionController::Base.stub(:view_paths).and_return([File.join(File.dirname(__FILE__), '..', "assets")])
|
21
|
+
|
22
|
+
Precompiler.precompile()
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# cleanup the file system
|
27
|
+
FileUtils.rm_rf('spec/dummy/app/compiled_views')
|
28
|
+
end
|
29
|
+
|
30
|
+
it "writes precompiles the overrides" do
|
31
|
+
|
32
|
+
filename = 'spec/dummy/app/compiled_views/posts/precompileme.html.erb'
|
33
|
+
|
34
|
+
File.exists?(filename).should be_true
|
35
|
+
|
36
|
+
file = File.open(filename, "rb")
|
37
|
+
contents = file.read
|
38
|
+
|
39
|
+
contents.should =~ /precompile/
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -79,8 +79,8 @@ module Deface
|
|
79
79
|
|
80
80
|
describe "element_source" do
|
81
81
|
it "should return array of matches elements" do
|
82
|
-
element_source('<div><p class="pirate">Arrgh!</p><img src="/some/image.jpg"></div>', 'p.pirate').should == ["<p class=\"pirate\">Arrgh!</p
|
83
|
-
element_source('<div><p class="pirate">Arrgh!</p><p>No pirates here...</p></div>', 'p').should == ["<p class=\"pirate\">Arrgh!</p
|
82
|
+
element_source('<div><p class="pirate">Arrgh!</p><img src="/some/image.jpg"></div>', 'p.pirate').map(&:strip).should == ["<p class=\"pirate\">Arrgh!</p>"]
|
83
|
+
element_source('<div><p class="pirate">Arrgh!</p><p>No pirates here...</p></div>', 'p').map(&:strip).should == ["<p class=\"pirate\">Arrgh!</p>", "<p>No pirates here...</p>"]
|
84
84
|
end
|
85
85
|
|
86
86
|
it "should return empty array for no matches" do
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'generator_spec/test_case'
|
3
|
+
|
4
|
+
describe Deface::Generators::OverrideGenerator do
|
5
|
+
include GeneratorSpec::TestCase
|
6
|
+
destination Dir.tmpdir
|
7
|
+
|
8
|
+
before(:all) do
|
9
|
+
prepare_destination
|
10
|
+
end
|
11
|
+
|
12
|
+
context 'using erb' do
|
13
|
+
it "should generate a deface override with the correct path" do
|
14
|
+
run_generator %w(posts/_post add_headline)
|
15
|
+
assert_file 'app/overrides/posts/_post/add_headline.html.erb.deface', "<!-- insert_after 'h1' -->\n<h2>These robots are awesome.</h2>\n"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'using haml' do
|
20
|
+
it "should generate a deface override with the correct path" do
|
21
|
+
run_generator %w(posts/_post add_headline -e haml)
|
22
|
+
assert_file 'app/overrides/posts/_post/add_headline.html.haml.deface', "/\n insert_after 'h1'\n%h2 These robots are awesome.\n"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,10 +4,22 @@ require 'rspec'
|
|
4
4
|
require 'action_view'
|
5
5
|
require 'action_controller'
|
6
6
|
require 'deface'
|
7
|
-
|
7
|
+
require 'rails/generators'
|
8
|
+
#have to manually require following for testing purposes
|
8
9
|
require 'deface/action_view_extensions'
|
10
|
+
|
11
|
+
#adding fake class as it's needed by haml 4.0, don't
|
12
|
+
#want to have to require the entire rails stack in specs.
|
13
|
+
module Rails
|
14
|
+
class Railtie
|
15
|
+
def self.initializer(*args)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
9
20
|
require 'haml'
|
10
21
|
require 'deface/haml_converter'
|
22
|
+
require 'generators/deface/override_generator'
|
11
23
|
require 'time'
|
12
24
|
|
13
25
|
if defined?(Haml::Options)
|
@@ -44,10 +56,13 @@ shared_context "mock Rails" do
|
|
44
56
|
Rails.application.config.stub :watchable_dirs => {}
|
45
57
|
end
|
46
58
|
|
59
|
+
Rails.stub :root => Pathname.new('spec/dummy')
|
60
|
+
|
47
61
|
Rails.stub :logger => mock('logger')
|
48
62
|
Rails.logger.stub(:error)
|
49
63
|
Rails.logger.stub(:warning)
|
50
64
|
Rails.logger.stub(:info)
|
65
|
+
Rails.logger.stub(:debug)
|
51
66
|
|
52
67
|
Time.stub :zone => mock('zone')
|
53
68
|
Time.zone.stub(:now).and_return Time.parse('1979-05-25')
|
data/tasks/precompile.rake
CHANGED
@@ -1,35 +1,10 @@
|
|
1
1
|
require 'deface'
|
2
2
|
|
3
3
|
namespace :deface do
|
4
|
-
include Deface::TemplateHelper
|
5
4
|
|
6
5
|
desc "Precompiles overrides into template files"
|
7
6
|
task :precompile => [:environment, :clean] do |t, args|
|
8
|
-
|
9
|
-
|
10
|
-
# temporarily configures deface env and loads
|
11
|
-
# all overrides so we can precompile
|
12
|
-
unless Rails.application.config.deface.enabled
|
13
|
-
Rails.application.config.deface = Deface::Environment.new
|
14
|
-
Rails.application.config.deface.overrides.early_check
|
15
|
-
Rails.application.config.deface.overrides.load_all Rails.application
|
16
|
-
end
|
17
|
-
|
18
|
-
Rails.application.config.deface.overrides.all.each do |virtual_path,overrides|
|
19
|
-
template_path = base_path.join( "#{virtual_path}.html.erb")
|
20
|
-
|
21
|
-
FileUtils.mkdir_p template_path.dirname
|
22
|
-
begin
|
23
|
-
source = load_template_source(virtual_path.to_s, false, true)
|
24
|
-
if source.blank?
|
25
|
-
raise "Compiled source was blank for '#{virtual_path}'"
|
26
|
-
end
|
27
|
-
File.open(template_path, 'w') {|f| f.write source }
|
28
|
-
rescue Exception => e
|
29
|
-
puts "Unable to precompile '#{virtual_path}' due to: "
|
30
|
-
puts e.message
|
31
|
-
end
|
32
|
-
end
|
7
|
+
Deface::Precompiler.precompile()
|
33
8
|
end
|
34
9
|
|
35
10
|
desc "Removes all precompiled override templates"
|
metadata
CHANGED
@@ -1,229 +1,258 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: deface
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.rc1
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease: 6
|
5
|
+
version: 1.0.0.rc2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
- Brian D Quinn
|
7
|
+
authors:
|
8
|
+
- Brian D Quinn
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
12
|
+
|
13
|
+
date: 2013-03-23 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: nokogiri
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.5.9
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rails
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "3.1"
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: colorize
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.5.8
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rspec
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.11.0
|
57
|
+
type: :development
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: haml
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 3.1.4
|
68
|
+
type: :development
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: simplecov
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.6.4
|
79
|
+
type: :development
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: generator_spec
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.8.5
|
90
|
+
type: :development
|
91
|
+
version_requirements: *id007
|
92
|
+
description: Deface is a library that allows you to customize ERB & HAML views in a Rails application without editing the underlying view.
|
82
93
|
email: brian@spreecommerce.com
|
83
94
|
executables: []
|
95
|
+
|
84
96
|
extensions: []
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
- .
|
90
|
-
- .
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
- gemfiles/
|
98
|
-
- gemfiles/
|
99
|
-
-
|
100
|
-
-
|
101
|
-
- lib/deface
|
102
|
-
- lib/deface/
|
103
|
-
- lib/deface/actions/
|
104
|
-
- lib/deface/actions/
|
105
|
-
- lib/deface/actions/
|
106
|
-
- lib/deface/actions/
|
107
|
-
- lib/deface/actions/
|
108
|
-
- lib/deface/actions/
|
109
|
-
- lib/deface/actions/
|
110
|
-
- lib/deface/actions/
|
111
|
-
- lib/deface/actions/
|
112
|
-
- lib/deface/actions/
|
113
|
-
- lib/deface/actions/
|
114
|
-
- lib/deface/actions/
|
115
|
-
- lib/deface/actions/
|
116
|
-
- lib/deface/actions/
|
117
|
-
- lib/deface/actions/
|
118
|
-
- lib/deface/
|
119
|
-
- lib/deface/
|
120
|
-
- lib/deface/dsl/
|
121
|
-
- lib/deface/
|
122
|
-
- lib/deface/
|
123
|
-
- lib/deface/
|
124
|
-
- lib/deface/
|
125
|
-
- lib/deface/
|
126
|
-
- lib/deface/
|
127
|
-
- lib/deface/
|
128
|
-
- lib/deface/
|
129
|
-
- lib/deface/
|
130
|
-
- lib/deface/
|
131
|
-
- lib/deface/
|
132
|
-
- lib/deface/
|
133
|
-
- lib/deface/sources/
|
134
|
-
- lib/deface/sources/
|
135
|
-
- lib/deface/sources/
|
136
|
-
- lib/deface/sources/
|
137
|
-
- lib/deface/sources/
|
138
|
-
- lib/deface/
|
139
|
-
- lib/deface/
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
- spec/
|
148
|
-
- spec/
|
149
|
-
- spec/
|
150
|
-
- spec/
|
151
|
-
- spec/
|
152
|
-
- spec/
|
153
|
-
- spec/
|
154
|
-
- spec/
|
155
|
-
- spec/
|
156
|
-
- spec/deface/
|
157
|
-
- spec/deface/actions/
|
158
|
-
- spec/deface/actions/
|
159
|
-
- spec/deface/actions/
|
160
|
-
- spec/deface/
|
161
|
-
- spec/deface/
|
162
|
-
- spec/deface/
|
163
|
-
- spec/deface/
|
164
|
-
- spec/deface/
|
165
|
-
- spec/deface/
|
166
|
-
- spec/deface/
|
167
|
-
- spec/deface/
|
168
|
-
- spec/deface/
|
169
|
-
- spec/deface/
|
170
|
-
- spec/
|
171
|
-
-
|
172
|
-
-
|
97
|
+
|
98
|
+
extra_rdoc_files:
|
99
|
+
- README.markdown
|
100
|
+
files:
|
101
|
+
- .gitignore
|
102
|
+
- .rspec
|
103
|
+
- .travis.yml
|
104
|
+
- Gemfile
|
105
|
+
- MIT-LICENSE
|
106
|
+
- README.markdown
|
107
|
+
- Rakefile
|
108
|
+
- deface.gemspec
|
109
|
+
- gemfiles/haml4_0.gemfile
|
110
|
+
- gemfiles/rails3_1.gemfile
|
111
|
+
- gemfiles/rails3_2.gemfile
|
112
|
+
- init.rb
|
113
|
+
- lib/deface.rb
|
114
|
+
- lib/deface/action_view_extensions.rb
|
115
|
+
- lib/deface/actions/action.rb
|
116
|
+
- lib/deface/actions/add_to_attributes.rb
|
117
|
+
- lib/deface/actions/attribute_action.rb
|
118
|
+
- lib/deface/actions/element_action.rb
|
119
|
+
- lib/deface/actions/insert_after.rb
|
120
|
+
- lib/deface/actions/insert_before.rb
|
121
|
+
- lib/deface/actions/insert_bottom.rb
|
122
|
+
- lib/deface/actions/insert_top.rb
|
123
|
+
- lib/deface/actions/remove.rb
|
124
|
+
- lib/deface/actions/remove_from_attributes.rb
|
125
|
+
- lib/deface/actions/replace.rb
|
126
|
+
- lib/deface/actions/replace_contents.rb
|
127
|
+
- lib/deface/actions/set_attributes.rb
|
128
|
+
- lib/deface/actions/surround.rb
|
129
|
+
- lib/deface/actions/surround_action.rb
|
130
|
+
- lib/deface/actions/surround_contents.rb
|
131
|
+
- lib/deface/applicator.rb
|
132
|
+
- lib/deface/dsl/context.rb
|
133
|
+
- lib/deface/dsl/loader.rb
|
134
|
+
- lib/deface/environment.rb
|
135
|
+
- lib/deface/generators
|
136
|
+
- lib/deface/haml_converter.rb
|
137
|
+
- lib/deface/matchers/element.rb
|
138
|
+
- lib/deface/matchers/range.rb
|
139
|
+
- lib/deface/original_validator.rb
|
140
|
+
- lib/deface/override.rb
|
141
|
+
- lib/deface/parser.rb
|
142
|
+
- lib/deface/precompiler.rb
|
143
|
+
- lib/deface/railtie.rb
|
144
|
+
- lib/deface/search.rb
|
145
|
+
- lib/deface/sources/copy.rb
|
146
|
+
- lib/deface/sources/cut.rb
|
147
|
+
- lib/deface/sources/erb.rb
|
148
|
+
- lib/deface/sources/haml.rb
|
149
|
+
- lib/deface/sources/partial.rb
|
150
|
+
- lib/deface/sources/source.rb
|
151
|
+
- lib/deface/sources/template.rb
|
152
|
+
- lib/deface/sources/text.rb
|
153
|
+
- lib/deface/template_helper.rb
|
154
|
+
- lib/deface/utils/failure_finder.rb
|
155
|
+
- lib/generators/deface/USAGE
|
156
|
+
- lib/generators/deface/override_generator.rb
|
157
|
+
- lib/generators/deface/templates/override.html.erb.deface
|
158
|
+
- lib/generators/deface/templates/override.html.haml.deface
|
159
|
+
- spec/assets/admin/posts/index.html.erb
|
160
|
+
- spec/assets/dummy_app/overrides/posts/index/app_override.html.erb.deface
|
161
|
+
- spec/assets/dummy_app/overrides/posts/precompileme/precompileme.html.erb.deface
|
162
|
+
- spec/assets/dummy_engine/overrides/users/index/engine_override.html.erb.deface
|
163
|
+
- spec/assets/posts/precompileme.html.erb
|
164
|
+
- spec/assets/shared/_hello.html.haml
|
165
|
+
- spec/assets/shared/_post.html.erb
|
166
|
+
- spec/assets/shared/person.html.erb
|
167
|
+
- spec/assets/shared/pirate.html.haml
|
168
|
+
- spec/deface/action_view_template_spec.rb
|
169
|
+
- spec/deface/actions/add_to_attributes_spec.rb
|
170
|
+
- spec/deface/actions/insert_after_spec.rb
|
171
|
+
- spec/deface/actions/insert_before_spec.rb
|
172
|
+
- spec/deface/actions/insert_bottom_spec.rb
|
173
|
+
- spec/deface/actions/insert_top_spec.rb
|
174
|
+
- spec/deface/actions/remove_from_attributes_spec.rb
|
175
|
+
- spec/deface/actions/remove_spec.rb
|
176
|
+
- spec/deface/actions/replace_contents_spec.rb
|
177
|
+
- spec/deface/actions/replace_spec.rb
|
178
|
+
- spec/deface/actions/set_attributes_spec.rb
|
179
|
+
- spec/deface/actions/surround_contents_spec.rb
|
180
|
+
- spec/deface/actions/surround_spec.rb
|
181
|
+
- spec/deface/applicator_spec.rb
|
182
|
+
- spec/deface/dsl/context_spec.rb
|
183
|
+
- spec/deface/dsl/loader_spec.rb
|
184
|
+
- spec/deface/environment_spec.rb
|
185
|
+
- spec/deface/haml_converter_spec.rb
|
186
|
+
- spec/deface/override_spec.rb
|
187
|
+
- spec/deface/parser_spec.rb
|
188
|
+
- spec/deface/precompiler_spec.rb
|
189
|
+
- spec/deface/search_spec.rb
|
190
|
+
- spec/deface/template_helper_spec.rb
|
191
|
+
- spec/deface/utils/failure_finder_spec.rb
|
192
|
+
- spec/generators/deface/override_generator_spec.rb
|
193
|
+
- spec/spec_helper.rb
|
194
|
+
- tasks/precompile.rake
|
195
|
+
- tasks/utils.rake
|
173
196
|
homepage: http://github.com/railsdog/deface
|
174
197
|
licenses: []
|
198
|
+
|
175
199
|
post_install_message:
|
176
|
-
rdoc_options:
|
177
|
-
- --charset=UTF-8
|
178
|
-
require_paths:
|
179
|
-
- lib
|
180
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
200
|
+
rdoc_options:
|
201
|
+
- --charset=UTF-8
|
202
|
+
require_paths:
|
203
|
+
- lib
|
204
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
181
205
|
none: false
|
182
|
-
requirements:
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - ">="
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: "0"
|
210
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
211
|
none: false
|
188
|
-
requirements:
|
189
|
-
|
190
|
-
|
191
|
-
|
212
|
+
requirements:
|
213
|
+
- - ">"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 1.3.1
|
192
216
|
requirements: []
|
217
|
+
|
193
218
|
rubyforge_project:
|
194
|
-
rubygems_version: 1.8.
|
219
|
+
rubygems_version: 1.8.24
|
195
220
|
signing_key:
|
196
221
|
specification_version: 3
|
197
222
|
summary: Deface is a library that allows you to customize ERB & HAML views in Rails
|
198
|
-
test_files:
|
199
|
-
- spec/assets/admin/posts/index.html.erb
|
200
|
-
- spec/assets/dummy_app/overrides/posts/index/app_override.html.erb.deface
|
201
|
-
- spec/assets/
|
202
|
-
- spec/assets/
|
203
|
-
- spec/assets/
|
204
|
-
- spec/assets/shared/
|
205
|
-
- spec/assets/shared/
|
206
|
-
- spec/
|
207
|
-
- spec/
|
208
|
-
- spec/deface/
|
209
|
-
- spec/deface/actions/
|
210
|
-
- spec/deface/actions/
|
211
|
-
- spec/deface/actions/
|
212
|
-
- spec/deface/actions/
|
213
|
-
- spec/deface/actions/
|
214
|
-
- spec/deface/actions/
|
215
|
-
- spec/deface/actions/
|
216
|
-
- spec/deface/actions/
|
217
|
-
- spec/deface/actions/
|
218
|
-
- spec/deface/actions/
|
219
|
-
- spec/deface/
|
220
|
-
- spec/deface/
|
221
|
-
- spec/deface/
|
222
|
-
- spec/deface/
|
223
|
-
- spec/deface/
|
224
|
-
- spec/deface/
|
225
|
-
- spec/deface/
|
226
|
-
- spec/deface/
|
227
|
-
- spec/deface/
|
228
|
-
- spec/deface/
|
229
|
-
- spec/
|
223
|
+
test_files:
|
224
|
+
- spec/assets/admin/posts/index.html.erb
|
225
|
+
- spec/assets/dummy_app/overrides/posts/index/app_override.html.erb.deface
|
226
|
+
- spec/assets/dummy_app/overrides/posts/precompileme/precompileme.html.erb.deface
|
227
|
+
- spec/assets/dummy_engine/overrides/users/index/engine_override.html.erb.deface
|
228
|
+
- spec/assets/posts/precompileme.html.erb
|
229
|
+
- spec/assets/shared/_hello.html.haml
|
230
|
+
- spec/assets/shared/_post.html.erb
|
231
|
+
- spec/assets/shared/person.html.erb
|
232
|
+
- spec/assets/shared/pirate.html.haml
|
233
|
+
- spec/deface/action_view_template_spec.rb
|
234
|
+
- spec/deface/actions/add_to_attributes_spec.rb
|
235
|
+
- spec/deface/actions/insert_after_spec.rb
|
236
|
+
- spec/deface/actions/insert_before_spec.rb
|
237
|
+
- spec/deface/actions/insert_bottom_spec.rb
|
238
|
+
- spec/deface/actions/insert_top_spec.rb
|
239
|
+
- spec/deface/actions/remove_from_attributes_spec.rb
|
240
|
+
- spec/deface/actions/remove_spec.rb
|
241
|
+
- spec/deface/actions/replace_contents_spec.rb
|
242
|
+
- spec/deface/actions/replace_spec.rb
|
243
|
+
- spec/deface/actions/set_attributes_spec.rb
|
244
|
+
- spec/deface/actions/surround_contents_spec.rb
|
245
|
+
- spec/deface/actions/surround_spec.rb
|
246
|
+
- spec/deface/applicator_spec.rb
|
247
|
+
- spec/deface/dsl/context_spec.rb
|
248
|
+
- spec/deface/dsl/loader_spec.rb
|
249
|
+
- spec/deface/environment_spec.rb
|
250
|
+
- spec/deface/haml_converter_spec.rb
|
251
|
+
- spec/deface/override_spec.rb
|
252
|
+
- spec/deface/parser_spec.rb
|
253
|
+
- spec/deface/precompiler_spec.rb
|
254
|
+
- spec/deface/search_spec.rb
|
255
|
+
- spec/deface/template_helper_spec.rb
|
256
|
+
- spec/deface/utils/failure_finder_spec.rb
|
257
|
+
- spec/generators/deface/override_generator_spec.rb
|
258
|
+
- spec/spec_helper.rb
|