raykit 0.0.234 → 0.0.235
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 +4 -4
- data/lib/raykit/sourceImport.rb +4 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 838958b5618d025cf6759debc4650005767e1d770673f2e4522a0919482eb0b3
|
4
|
+
data.tar.gz: 52d5ad73ed51c567e0e86662bc2cfab9147f22a9896034864c9854b061f9e370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef664f0be0c9a62210a08cfb29d76b1d4ed662c2aba28efb6b953abb03818bad2c2f6ce568d4e6e3ffdb9860e2531e72d4fdaba09b56965052c2280daa04fef3
|
7
|
+
data.tar.gz: acd5a7661dea5be55bee9cd0cb28ccc8b38749792eb779159ef6b0b744197edff77ce4b6691313e3f93745070465c982c827fed978f65dbee3f7426dab8bdb3d
|
data/lib/raykit/sourceImport.rb
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
|
2
2
|
module Raykit
|
3
3
|
class SourceImport < Hash
|
4
|
-
#attr_accessor :remote
|
5
|
-
#attr_accessor :glob
|
6
|
-
#attr_accessor :target
|
7
|
-
#attr_accessor :commit
|
8
|
-
|
9
4
|
def initialize(url)
|
10
5
|
self['remote'] = url
|
11
6
|
self['glob'] = '**/*.cs'
|
@@ -34,6 +29,7 @@ module Raykit
|
|
34
29
|
end
|
35
30
|
|
36
31
|
Dir.chdir(work) do
|
32
|
+
|
37
33
|
text=`git log -n 1`
|
38
34
|
scan=text.scan(/commit ([\w]+)\s/)
|
39
35
|
self['commit'] = scan[0][0].to_s
|
@@ -48,6 +44,9 @@ module Raykit
|
|
48
44
|
source_names = []
|
49
45
|
work=self['remote'].work_dir
|
50
46
|
Dir.chdir(work) do
|
47
|
+
if(File.exist?('rakefile.rb'))
|
48
|
+
PROJECT.run("rake clean")
|
49
|
+
end
|
51
50
|
source_names=Dir.glob(self['glob'])
|
52
51
|
end
|
53
52
|
source_names.each{|source_name|
|