roger 1.6.0 → 1.6.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9aa7b1fae76209ccfb5300d71b9bfc1c0a2c4ec7
4
- data.tar.gz: d8ba78beae86ccad4f13c897dcad096c3e909c8e
3
+ metadata.gz: e748a2603852f67c6114ea94b36c1ef4568aaabc
4
+ data.tar.gz: 3be578652cca0187767f4635169b573a21a0012d
5
5
  SHA512:
6
- metadata.gz: 4c153e06e6af491d328830095840778aad088ef65141369d9066c41cfc1e7ec5c9da1092994e0010f770e7db41f50e053476ddd019741c2e00eaba37d6447c4f
7
- data.tar.gz: f6edd854bc25ef440f412eb23cdd4157b9fedf10859f1d68cdcfab8a4b5cf70efdd9e444460dddf9adb9a21d6a5b609d2d16c892363442cb599215a32c6d7d2c
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
@@ -1,4 +1,4 @@
1
1
  # Roger main namespace
2
2
  module Roger
3
- VERSION = "1.6.0"
3
+ VERSION = "1.6.1"
4
4
  end
@@ -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.0
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-04-19 00:00:00.000000000 Z
13
+ date: 2016-05-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor