dev 2.0.102 → 2.0.103

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/svn.rb +13 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e1ddb30ee4a17ef6ab86e4a2971852775758a90
4
- data.tar.gz: c64c6eed4c11a3cb6f76766f53561c4a401574a5
3
+ metadata.gz: 1f501f40a330f0b34b540df310efe772b0d853aa
4
+ data.tar.gz: e07a18888d0f5f52a57a55721ea443087e613293
5
5
  SHA512:
6
- metadata.gz: 15f083cdf70d21f1f36c2dc6b18bdc796047bd9543a9a0a998d1884442b9f68c99ce2a23746f8bbab4fc7ff8b4dfd4eb5d665fdf74a7b7bc66bcf7224fbfc524
7
- data.tar.gz: 368fd0b3959bc87c2afbd418ebdf61a39e8829656b2a832dc6102f147a03b462634a533a2ab4f6c22cc8afeaa37d08b4822a81c21b81d12465873d16c6a3686a
6
+ metadata.gz: 47ab83d72f2ab74c5d7682f0642718b9679855994fd3459c71d36b36ca6710426ca4f43fea5fb86ce54d792b6a3134841194b0155b4bf2215f3221869733f505
7
+ data.tar.gz: d8391609823d9303628fe5d8d271b08216907303baa75407403eddecc2227b3375ea1c806a83d82864c24a502232412ddfc0cb4683c4f981f5b991aa3e5dee07
data/lib/svn.rb CHANGED
@@ -68,7 +68,7 @@ class Svn
68
68
  # destination is the new subversion path URL
69
69
  # source_glob is a string or array of glob directives to specify files in source_dir to be publish
70
70
  # source_glob defaults to '**/*' to publish all files in the source_dir
71
- def self.publish destination, source_dir, source_glob='**/*'
71
+ def self.publish destination, source_dir, source_filelist=FileList.new('**/*')
72
72
 
73
73
  # Support for legacy argument order
74
74
  if(source_dir.include?('svn:') || source_dir.include?('http:') || source_dir.include?('https:'))
@@ -89,11 +89,20 @@ class Svn
89
89
  raise "failure 'svn mkdir #{destination} --parents --message mkdir_for_publishing'"
90
90
  end
91
91
 
92
- files=nil
93
92
  Dir.chdir(source_dir) do
94
- files=FileList.new(source_glob).to_a
93
+ files = source_filelist.to_a
95
94
  end
96
- output = output + "\nfiles: #{files}.to_s"
95
+ files=source_filelist
96
+ #Dir.chdir(source_dir) do
97
+ # files=FileList.new(source_glob).to_a
98
+ #end
99
+ output = output + "\nfiles: "
100
+ #Dir.chdir(source_dir) do
101
+ files.each{|f|
102
+ output = output + f + " "
103
+ }
104
+ #end
105
+ #output = output + "\nfiles: #{files.to_s}"
97
106
 
98
107
  pwd=Dir.pwd
99
108
  Dir.mktmpdir{|dir|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.102
4
+ version: 2.0.103
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec