roger 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/roger/release/processors/mockup.rb +5 -0
- data/lib/roger/version.rb +1 -1
- data/test/unit/release/processors/mockup_test.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e748a2603852f67c6114ea94b36c1ef4568aaabc
|
4
|
+
data.tar.gz: 3be578652cca0187767f4635169b573a21a0012d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c3e24c404cd8b0e1197b7f7b3bf9d3b90113e59262b231a58e23b2ec2f9d68dc687df143297c2f2904023bbd34926a4c1da7fb9945abdc3a812d9be8dd27362
|
7
|
+
data.tar.gz: 78eacce507b31d97738f5cace86d2ddbc5e77cf128c9118d10c16ca60d0548edd22e810df25c1218794f27508e0f70394ee70386a9bdb2a2be25d0272f5b14ec
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## Version 1.6.1
|
4
|
+
* No longer process partials in html directory on release.
|
5
|
+
|
3
6
|
## Version 1.6.0
|
4
7
|
* Change the way template resolving works so if you have a file and directory with the same basename it will prefer to use the file instead of looking for name/index.xyz
|
5
8
|
* Add `content_for?(:xyz)` helper so you can check if a `content_for` block exists in templates.
|
@@ -34,6 +34,11 @@ module Roger::Release::Processors
|
|
34
34
|
|
35
35
|
release.get_files(options[:match], options[:skip]).each do |file_path|
|
36
36
|
release.log(self, " Extract: #{file_path}", true)
|
37
|
+
|
38
|
+
# Avoid rendering partials which can also be included
|
39
|
+
# in the roger.base_path
|
40
|
+
next if File.basename(file_path).start_with? "_"
|
41
|
+
|
37
42
|
self.run_on_file!(file_path, options[:env])
|
38
43
|
end
|
39
44
|
end
|
data/lib/roger/version.rb
CHANGED
@@ -31,6 +31,18 @@ module Roger
|
|
31
31
|
assert file.exist?
|
32
32
|
assert_equal "test", File.read(file.to_s)
|
33
33
|
end
|
34
|
+
|
35
|
+
def test_partials_should_be_skipped
|
36
|
+
@release.project.construct.directory "build" do |dir|
|
37
|
+
dir.file "test.html.erb", "<%= 'test' %>"
|
38
|
+
dir.file "_partial.html.erb", "<%= xyz %>"
|
39
|
+
end
|
40
|
+
|
41
|
+
# If it isnt skipped it will raise a NameError due to xyz being undefined
|
42
|
+
assert_nothing_raised NameError do
|
43
|
+
@mockup.call(@release)
|
44
|
+
end
|
45
|
+
end
|
34
46
|
end
|
35
47
|
|
36
48
|
# Test the target_path function of Mockup
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flurin Egger
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-05-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|