html_mockup 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.8.4
4
+ * Fix requirejs processor to clean up the correct paths
5
+ * Allow typing of Y to rsync instead of full "yes"
6
+
3
7
  ## Version 0.8.3
4
8
  * Make the url relativizer respect :skip parameter
5
9
 
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.3"
5
+ s.version = "0.8.4"
6
6
 
7
7
  s.authors = ["Flurin Egger", "Edwin van der Graaf", "Joran Kapteijns"]
8
8
  s.email = ["info@digitpaint.nl", "flurin@digitpaint.nl"]
@@ -31,7 +31,7 @@ module HtmlMockup::Release::Finalizers
31
31
  # Validate options
32
32
  validate_options!(release, options)
33
33
 
34
- if !options[:ask] || (prompt("Do you wish to upload to #{options[:host]}? Anything other than 'yes' will cancel: ")) == 'yes'
34
+ if !options[:ask] || (prompt("Do you wish to upload to #{options[:host]}? Type y[es]: ")) =~ /\Ay(es)?\Z/
35
35
  begin
36
36
  `#{@options[:rsync]} --version`
37
37
  rescue Errno::ENOENT
@@ -69,12 +69,14 @@ module HtmlMockup::Release::Processors
69
69
  FileUtils.rm_rf(target)
70
70
  end
71
71
 
72
+
72
73
  # Move the tmp_build_dir to target
73
74
  if target_type == :dir
74
75
  FileUtils.mv(tmp_build_dir, target)
75
- end
76
+ else
76
77
  FileUtils.mv("#{tmp_build_dir}/out.js", target)
77
78
  FileUtils.rm_rf(tmp_build_dir)
79
+ end
78
80
  end
79
81
  end
80
82
 
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.3
4
+ version: 0.8.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: