raykit 0.0.266 → 0.0.267

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: fe3dabed3aa28e59c5518034fa2fd4fd5a171690204e60e44b15d5d60a6e7fde
4
- data.tar.gz: 93a2371ec1d1200445ab5f672136591700a3f2da465fcad85b08aee53a5fe531
3
+ metadata.gz: db4937f498b6f4ff1534aca2621301423a370ee8722a045b5e03228864300bcb
4
+ data.tar.gz: 1ea3d0605b9460ed91fdf6666edd6ccec38a2e0624119df614617e2faad9a159
5
5
  SHA512:
6
- metadata.gz: 2af68e0737046c0005e6948379502fd3d28c5fbdc9c191825b4abc1c2f59b367ac29e457a4d1ef6b29dd2d9639b17687ea01768d63cf25beb711a1836693da54
7
- data.tar.gz: 66aa1a94d1949484bc1d645bf27c86d9e299fac79403b6a501ac4b57e248f3f96de7c01acc477fa4d00d1dea60a8ca9b231987b62ef050c9688248c135e4fa4b
6
+ metadata.gz: 102692978d305c7b86164a0ab409a28fd1d129648011b74adef82008674a4d58b6f5ab7cfbef504223974805c444c9914e9ad07e4d80500df1b535611781cb67
7
+ data.tar.gz: 20b2acc869a1d1ebc9594da6424b626e588fe43fff96cb78b7341c805c648cd70c92909270314592eafb3cb4d5c99f555d92c694fbd2eb482a17bfbf5049536e
@@ -9,7 +9,14 @@ module Raykit
9
9
  @commit_id = commit_id
10
10
  end
11
11
 
12
+ def clean
13
+ if Dir.exists?(commit_path())
14
+ FileUtils.rm_rf(commit_path())
15
+ end
16
+ end
17
+
12
18
  def get(name)
19
+ puts "commit_path(): " + commit_path()
13
20
  if !Dir.exists?(commit_path())
14
21
  puts 'cloning commit path...'
15
22
  clone = Raykit::Command.new('git clone ' + @url + ' ' + commit_path())
@@ -7,25 +7,29 @@ end
7
7
  desc "integrate changes into the git repository"
8
8
  task :integrate do
9
9
  puts Rainbow(':integrate').blue.bright
10
- if(PROJECT.outstanding_commit?)
11
- if(Rake::Task.task_defined?("test"))
12
- Rake::Task["test"].invoke
13
- end
14
- else
15
- puts "no outstanding commits detected"
16
- end
17
10
 
18
-
19
- if(!File.exist?('.gitignore'))
20
- puts "warning: .gitignore does not exist."
21
- else
22
- PROJECT.run('git add --all')
11
+ git_dir=Raykit::Git::Directory.new(Rake.application.original_dir)
12
+ if(!git_dir.detached?)
23
13
  if(PROJECT.outstanding_commit?)
24
- commit_message='integrate'
25
- PROJECT.run("git commit -m\"#{commit_message}\"") if(PROJECT.outstanding_commit?)
26
- PROJECT.run("git pull")
27
- PROJECT.run("git push")
28
- PROJECT.run("git push --tags")
14
+ if(Rake::Task.task_defined?("test"))
15
+ Rake::Task["test"].invoke
16
+ end
17
+ else
18
+ puts "no outstanding commits detected"
19
+ end
20
+
21
+
22
+ if(!File.exist?('.gitignore'))
23
+ puts "warning: .gitignore does not exist."
24
+ else
25
+ PROJECT.run('git add --all')
26
+ if(PROJECT.outstanding_commit?)
27
+ commit_message='integrate'
28
+ PROJECT.run("git commit -m\"#{commit_message}\"") if(PROJECT.outstanding_commit?)
29
+ PROJECT.run("git pull")
30
+ PROJECT.run("git push")
31
+ PROJECT.run("git push --tags")
32
+ end
29
33
  end
30
34
  end
31
35
  end
@@ -0,0 +1,46 @@
1
+
2
+ module Raykit
3
+ class Zip
4
+ @filename
5
+ @source_dir
6
+ @include_globs
7
+ @exclude_globs
8
+
9
+ def initialize(filename)
10
+ @filename = filename
11
+ @source_dir = Dir.pwd
12
+ @include_globs=Array::new
13
+ @exclude_globs=Array::new
14
+ self
15
+ end
16
+
17
+ def source_dir(dir)
18
+ @source_dir=dir
19
+ self
20
+ end
21
+
22
+ def include_glob(glob)
23
+ @include_globs << glob
24
+ self
25
+ end
26
+
27
+ def exclude_glob(glob)
28
+ @exclude_globs << glob
29
+ self
30
+ end
31
+
32
+ def zip
33
+ path = File.dirname(@filename)
34
+ if !Dir.exists?(path)
35
+ FileUtils.mkdir_p(path)
36
+ end
37
+
38
+ Dir.chdir(@source_dir) do
39
+ include_files=Array::new
40
+ @include_globs.each{|include_glob|
41
+
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
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.266
4
+ version: 0.0.267
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-02 00:00:00.000000000 Z
11
+ date: 2021-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,11 +101,12 @@ files:
101
101
  - lib/raykit/tasks.rb
102
102
  - lib/raykit/timer.rb
103
103
  - lib/raykit/version.rb
104
+ - lib/raykit/zip.rb
104
105
  homepage: http://rubygems.org/gems/raykit
105
106
  licenses:
106
107
  - MIT
107
108
  metadata: {}
108
- post_install_message:
109
+ post_install_message:
109
110
  rdoc_options: []
110
111
  require_paths:
111
112
  - lib
@@ -120,8 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
121
  - !ruby/object:Gem::Version
121
122
  version: '0'
122
123
  requirements: []
123
- rubygems_version: 3.1.2
124
- signing_key:
124
+ rubygems_version: 3.1.4
125
+ signing_key:
125
126
  specification_version: 4
126
127
  summary: ruby gem to support rake ci/cd tasks
127
128
  test_files: []