html_mockup 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmJiYTQ3MGRhMDdjM2QxZTE2MDU0N2NjYjcxNjdhZTJiNDk2ZGI1YQ==
4
+ NmY0MDYxMDQxOTgwYTdlNTQ0MjJhYTk4YWZhZjIyZTdkOGI0NDUwYQ==
5
5
  data.tar.gz: !binary |-
6
- OTlkMjZkNmM4YmViYmIwOGRjNjBiOTdkZjM2M2YzMGNmMjEyMzkzMg==
7
- SHA512:
6
+ N2I0MDk2MDE2YjhlZmYyMjE2YTI5MDc3OGUzYjQ1ZDY3YzY5ZDAwZg==
7
+ !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTBjZDI1ZDFlOGVhZjU0ZjJjN2JjOWVhYjI0OWVlYjY3NTRhMmU5MDJmY2Zk
10
- NTkxNzg5MzMxNjRiYTdlOWE3OTNiN2QwYmY3MzYxODc4ODExMWIyMGVjNWE0
11
- YjBlZGM2Nzc2YzA1NDI1NzI0MzEzMTM0MTUxZjA5N2NjZGIxYjg=
9
+ YmFjOTZjYTgxMzkwZWMxOGU3NDY0NDkwYzBiNTc1MGQ0NzVjOWJkZTNiM2M2
10
+ N2UzOWRlYTlhNzIzZGI4ZDBhYTcyMGM3YmNjYjY4NjU0YzU5YmI4NDBjNjYw
11
+ YmRiNjBiZmQwNmZlZWZmNDFkZWVlNjc5NjNkZjNjYTFkYzliMjE=
12
12
  data.tar.gz: !binary |-
13
- ZjkxZTExOTdhNTZkM2RmNjljZGMwYmM4YWI1OWM5MDAxN2FhOGUwZjlhNGYw
14
- NmEyNjE0NmFlNzExMmFjMDdmNGZkNDZiM2MzZmZhMWY4MTM3ZTVlZDFhZmQy
15
- ZTA2Zjc3ZjA1OTdkNTBhM2VmMTE0MTc0OGQ5NmZhNzI3NmIzMzU=
13
+ NzlmNzE0Nzc5NzcxYWUxYmEyNDc1YzVkN2Q0NWJiYWE3MDI3YWQyMjcwMDNh
14
+ ZWU4ZWMzNzhiZWRiMjJjMzYwNjBhYWJhMGI2YjcwOWQ2MzZjMzRmNjMxZjA2
15
+ NWMzMmU4NDBjNmMxYmI0MjU5MzAwYWM1Yzk1MTQyZWY4NWQ4ZDE=
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.8.1
4
+ * Don't crash on non-existent partials/layouts path
5
+ * Add more logging in verbose mode when extracting mockup
6
+ * Fix the passing of env options to mockup release processor
7
+
3
8
  ## Version 0.8.0
4
9
  * Set content type header in response when rendering templates
5
10
  * Add option to prompt user before performing rsync finalizer (defaults to true)
data/html_mockup.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "html_mockup"
5
- s.version = "0.8.0"
5
+ s.version = "0.8.1"
6
6
 
7
7
  s.authors = ["Flurin Egger", "Edwin van der Graaf", "Joran Kapteijns"]
8
8
  s.email = ["info@digitpaint.nl", "flurin@digitpaint.nl"]
@@ -52,17 +52,28 @@ module HtmlMockup
52
52
  end
53
53
 
54
54
  def html_path=(p)
55
- @html_path = Pathname.new(p).realpath
55
+ @html_path = self.realpath_or_path(p)
56
56
  end
57
57
 
58
58
  def partial_path=(p)
59
- @partial_path = Pathname.new(p).realpath
59
+ @partial_path = self.realpath_or_path(p)
60
60
  end
61
61
  alias :partials_path :partial_path
62
62
  alias :partials_path= :partial_path=
63
63
 
64
64
  def layouts_path=(p)
65
- @layouts_path = Pathname.new(p).realpath
65
+ @layouts_path = self.realpath_or_path(p)
66
+ end
67
+
68
+ protected
69
+
70
+ def realpath_or_path(path)
71
+ path = Pathname.new(path)
72
+ if path.exist?
73
+ path.realpath
74
+ else
75
+ path
76
+ end
66
77
  end
67
78
 
68
79
  end
@@ -22,8 +22,14 @@ module HtmlMockup::Release::Processors
22
22
 
23
23
  release.log(self, "Processing mockup files")
24
24
 
25
+ release.log(self, " Matching: #{options[:match].inspect}", true)
26
+ release.log(self, " Skiping : #{options[:skip].inspect}", true)
27
+ release.log(self, " Env : #{options[:env].inspect}", true)
28
+ release.log(self, " Files :", true)
29
+
25
30
  release.get_files(options[:match], options[:skip]).each do |file_path|
26
- self.run_on_file!(file_path, @options[:env])
31
+ release.log(self, " Extract: #{file_path}", true)
32
+ self.run_on_file!(file_path, options[:env])
27
33
  end
28
34
  end
29
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_mockup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.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: 2014-02-11 00:00:00.000000000 Z
13
+ date: 2014-02-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.1.5
179
+ rubygems_version: 2.0.6
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: HTML Mockup is a set of tools to create self-containing HTML mockups.