roast 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/roast/group.rb CHANGED
@@ -61,7 +61,7 @@ module Roast
61
61
  hosts.each do |host|
62
62
  padding = ' ' * (max - host.hostname.size + 4)
63
63
  if host.disabled?
64
- string << " \033[31m \u00D7 "
64
+ string << " \033[31m #{["00D7".to_i(16)].pack("U*")} "
65
65
  else
66
66
  string << ' '
67
67
  end
@@ -55,7 +55,7 @@ module Roast
55
55
  temp_file << static_lines.join.sub(/\n{3,}\z/, "\n\n")
56
56
  temp_file << groups.map { |g| g.to_hosts_file.chomp }.join("\n\n")
57
57
 
58
- File.chmod(0644, temp_file)
58
+ File.chmod(0644, temp_file.path)
59
59
  FileUtils.cp(path, path + '.bak') if output_path.eql?(path)
60
60
  FileUtils.mv(temp_file.path, output_path, :force => true)
61
61
  ensure
data/lib/roast/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Roast
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-12 00:00:00.000000000 Z
12
+ date: 2013-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler