torquespec 0.1.5 → 0.1.6

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.
@@ -10,7 +10,7 @@ module TorqueSpec
10
10
  @path = Pathname.new( name.gsub(/\W/,'_') + "-knob.yml" ).expand_path( TorqueSpec.knob_root )
11
11
  end
12
12
  def path
13
- archive( hash || filename || heredoc )
13
+ hash || filename || heredoc
14
14
  end
15
15
  def hash
16
16
  if @descriptor.is_a? Hash
@@ -32,15 +32,6 @@ module TorqueSpec
32
32
  end
33
33
  @path.to_s
34
34
  end
35
- def archive(path)
36
- if TorqueSpec.as7? && path.end_with?('.yml')
37
- jar = path.sub(/yml$/,'jar')
38
- `jar cf #{jar} -C #{File.dirname(path)} #{File.basename(path)}`
39
- jar
40
- else
41
- path
42
- end
43
- end
44
35
  def stringify_keys(x)
45
36
  x.is_a?(Hash) ? x.inject({}) {|h,(k,v)| h[k.to_s] = stringify_keys(v); h} : x
46
37
  end
@@ -1,3 +1,3 @@
1
1
  module TorqueSpec
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Crossley
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-05-18 00:00:00 -04:00
19
+ date: 2011-05-19 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency