reseed 0.0.2 → 0.0.3

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.
@@ -21,19 +21,20 @@ class ReseedTask
21
21
  end
22
22
 
23
23
  def reseed_file args
24
- if args[:source][:latest_dir]
25
- reseed_from_latest_dir args[:source][:latest_dir], args[:file],args[:tfs]
26
- elsif args[:source][:dir]
27
- reseed_from_dir args[:source][:dir], args[:file], args[:tfs]
28
- elsif args[:source][:web]
29
- reseed_from_web args[:source][:web], args[:file],args[:tfs]
24
+ if args[:latest_dir]
25
+ reseed_from_latest_dir args[:latest_dir], args[:file], args[:tfs]
26
+ elsif args[:dir]
27
+ reseed_from_dir args[:dir], args[:file], args[:tfs]
28
+ elsif args[:web]
29
+ reseed_from_web args[:web], args[:file], args[:tfs]
30
30
  end
31
31
  end
32
32
 
33
33
  def reseed_files args
34
- Dir.glob(args[:files]).each do |f|
35
- args = { :file => f, :source => args[:source], :tfs => args[:tfs] }
36
- reseed_file args
34
+ files = args.delete :files
35
+
36
+ Dir.glob(files).each do |f|
37
+ reseed_file({ :file => f }.merge(args))
37
38
  end
38
39
  end
39
40
 
@@ -1,3 +1,3 @@
1
1
  module Reseed
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reseed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -72,7 +72,6 @@ files:
72
72
  - Rakefile
73
73
  - lib/reseed.rb
74
74
  - lib/reseed/reseed_task.rb
75
- - lib/reseed/tfs_step.rb
76
75
  - lib/reseed/version.rb
77
76
  - reseed.gemspec
78
77
  homepage: ''
@@ -1,7 +0,0 @@
1
- require 'reseed/step'
2
-
3
- class TFSStep < Step
4
- TfsPath = 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe'
5
-
6
- attr_accessor :files
7
- end