raykit 0.0.245 → 0.0.246

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f873a2d375ce490d06e47a6720e43392b68ecb67633dcb1c411d7454b36c7cc
4
- data.tar.gz: 9e71ec5fb38920593c1d9a03226862d885fcdf9ed1519d157ee656f4460c3aba
3
+ metadata.gz: 61bc9da800c4c3e58ceffd425012b641585cc37d083e1f242545a85de244f16c
4
+ data.tar.gz: e81087a065f0c397b46e0d4c26c67b932051d1dd825bf70050d7a6b2d961bc7c
5
5
  SHA512:
6
- metadata.gz: 70ac08aa8403ac092dbfb31662bf8bf589a8b4b09408427cc4e1e1bd1cf1b6c36396b958b4f807b6cab9050df388925ebd84a09ba71ec618de7ad0d0196a2338
7
- data.tar.gz: 4edc773d0a9989646b7cd4027f4e1f178c316192125e743e54856cbc525617170ac4427cb6e1d8e8ae1d0032144cbab1dfc535d9cc5ce509378afffb903d99d4
6
+ metadata.gz: ffca4d20e996678f6b60605bdff24f184cd7d8d7b9d258c5cdfd27aa687ffe81cf0fea633f23d823b60221bb3f48faec76c803fb2608a19971fc337c8b435d62
7
+ data.tar.gz: 7f2134f08965d2865b7adec7620a373b50bc9277c82a3d97bb09aa99e41148b7ab99084800ccc6717e91ac75145fbaeaa625381a192bb5102b079b015f7693c6
@@ -1,8 +1,9 @@
1
1
 
2
2
  module Raykit
3
3
  class SourceImport < Hash
4
- def initialize(url,glob,target,commit)
4
+ def initialize(url,source,glob,target,commit)
5
5
  self['remote'] = url
6
+ self['source'] = source
6
7
  self['glob'] = glob
7
8
  self['target'] = target
8
9
  self['commit']=commit
@@ -12,6 +13,10 @@ module Raykit
12
13
  self['remote']
13
14
  end
14
15
 
16
+ def source
17
+ self['source']
18
+ end
19
+
15
20
  def target
16
21
  self['target']
17
22
  end
@@ -47,17 +52,19 @@ module Raykit
47
52
  source_names = []
48
53
  work=self['remote'].work_dir
49
54
  Dir.chdir(work) do
50
- if(File.exist?('rakefile.rb'))
51
- cmd = Command.new('rake clean')
55
+ Dir.chdir(source) do
56
+ if(File.exist?('rakefile.rb'))
57
+ cmd = Command.new('rake clean')
58
+ end
59
+ source_names=Dir.glob(self['glob'])
52
60
  end
53
- source_names=Dir.glob(self['glob'])
54
61
  end
55
62
  source_names.each{|source_name|
56
- source=work + "/" + source_name
63
+ source_file =work + "/" + source + "/" + source_name
57
64
  target_name = target + "/" + source_name
58
65
  target_parent = File.dirname(target_name)
59
66
  FileUtils.mkdir_p(target_parent) if(!Dir.exist?(target_parent))
60
- FileUtils.copy(source,target_name)
67
+ FileUtils.copy(source_file,target_name)
61
68
  count += 1
62
69
  }
63
70
  puts ' copied ' + count.to_s + ' files to ' + target
@@ -4,7 +4,7 @@ module Raykit
4
4
 
5
5
  def initialize(urls)
6
6
  urls.each{|url|
7
- self << SourceImport.new(url,'**/*.cs','src','')
7
+ self << SourceImport.new(url,'src','**/*.cs','dep','')
8
8
  }
9
9
  end
10
10
 
@@ -37,7 +37,7 @@ module Raykit
37
37
  sourceImports = SourceImports.new([])
38
38
  array=JSON.parse(IO.read(filename))
39
39
  array.each{|hash|
40
- sourceImport = SourceImport.new(hash['remote'],hash['glob'],hash['target'],hash['commit'])
40
+ sourceImport = SourceImport.new(hash['remote'],hash['source'],hash['glob'],hash['target'],hash['commit'])
41
41
  sourceImports << sourceImport
42
42
  }
43
43
  sourceImports
@@ -6,11 +6,6 @@ end
6
6
 
7
7
  desc "integrate changes into the git repository"
8
8
  task :integrate do
9
- #if(File.exist?('sourceImports.json'))
10
- # if(Rake::Task.task_defined?("update_source"))
11
- # Rake::Task["update_source"].invoke
12
- # end
13
- #end
14
9
  if(PROJECT.outstanding_commit?)
15
10
  if(Rake::Task.task_defined?("test"))
16
11
  Rake::Task["test"].invoke
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.245
4
+ version: 0.0.246
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-03 00:00:00.000000000 Z
11
+ date: 2020-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.0.3
121
+ rubygems_version: 3.1.2
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: ruby gem to support rake ci/cd tasks