torquespec 0.4.4 → 0.4.5

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.
@@ -39,9 +39,8 @@ module TorqueSpec
39
39
  end
40
40
 
41
41
  def verify( path )
42
- original = YAML.load_file( path )
43
- if original.is_a? Hash
44
- yaml = original.dup
42
+ yaml = YAML.load_file( path )
43
+ if yaml.is_a? Hash
45
44
  if @daemonify
46
45
  yaml['application'] ||= {}
47
46
  yaml['application']['root'] ||= TorqueSpec.app_root
@@ -53,11 +52,8 @@ module TorqueSpec
53
52
  end
54
53
  yaml['ruby'] ||= {}
55
54
  yaml['ruby']['version'] ||= RUBY_VERSION[0,3]
56
- # yaml['ruby']['compile_mode'] ||= 'off'
57
- if original != yaml
58
- File.open( path, 'w' ) do |file|
59
- YAML.dump( yaml, file )
60
- end
55
+ File.open( path, 'w' ) do |file|
56
+ YAML.dump( yaml, file )
61
57
  end
62
58
  end
63
59
  path
@@ -1,3 +1,3 @@
1
1
  module TorqueSpec
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torquespec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 4
10
- version: 0.4.4
9
+ - 5
10
+ version: 0.4.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Crossley