dev 2.0.141 → 2.0.142
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands.rb +3 -3
- data/lib/tasks/analyze.rb +4 -0
- data/lib/tasks/commit.rb +3 -0
- data/lib/tasks/publish.rb +4 -0
- data/lib/tasks/push.rb +3 -0
- data/lib/tasks/test.rb +2 -0
- data/lib/tasks.rb +31 -27
- metadata +1 -2
- data/lib/tasks/tasks.rb +0 -81
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8941069f3e1bce300d13daba736a8655e4963a97
|
4
|
+
data.tar.gz: 23b2a2b555d551c8802aca588b613e54da0f1d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c9ae0f5ef13ae47a30371ee5bf3e3a35e27981c85a08ade4738567542dffe4baf59785d1db26e5398489e5a1ba5029886aa4d0d050165979546bbb8e8619eb8
|
7
|
+
data.tar.gz: 056e6405beeefaf4f68c3c026034e600b6d02d94ab08ced249e7d8fa804409ab56e8704deb68eb1d555bfaaea1b7da0f88fc2c110a09315c344c4c3be2c24f3b
|
data/lib/commands.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'json'
|
2
2
|
require 'rake/clean'
|
3
3
|
|
4
|
-
Dir.glob("#{File.dirname(__FILE__)}/commands/*.rb").each{|rb|
|
5
|
-
require(rb)
|
6
|
-
}
|
4
|
+
#Dir.glob("#{File.dirname(__FILE__)}/commands/*.rb").each{|rb|
|
5
|
+
# require(rb)
|
6
|
+
#}
|
7
7
|
Dir.glob("#{File.dirname(__FILE__)}/tasks/*.rb").each{|rb|
|
8
8
|
require(rb)
|
9
9
|
}
|
data/lib/tasks/analyze.rb
CHANGED
data/lib/tasks/commit.rb
CHANGED
data/lib/tasks/publish.rb
CHANGED
data/lib/tasks/push.rb
CHANGED
data/lib/tasks/test.rb
CHANGED
data/lib/tasks.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'rake'
|
2
|
-
require 'rake/clean'
|
2
|
+
#require 'rake/clean'
|
3
3
|
|
4
4
|
class Tasks
|
5
5
|
@@quiet=false
|
@@ -33,44 +33,48 @@ class Tasks
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
|
37
|
-
|
36
|
+
['add','analyze','build','clobber','commit','doc','publish','pull','push','setup','test','update'].each{|name| require_relative("tasks/#{name}.rb")}
|
37
|
+
#require 'rake/clean'
|
38
38
|
|
39
|
-
desc 'performs svn update'
|
40
|
-
task :update do Tasks.execute_task :update; end
|
41
39
|
|
42
|
-
desc 'performs
|
43
|
-
task :
|
40
|
+
#desc 'performs a git pull'
|
41
|
+
#task :pull do Tasks.execute_task :pull; end
|
44
42
|
|
45
|
-
desc 'performs
|
46
|
-
task :
|
43
|
+
#desc 'performs svn update'
|
44
|
+
#task :update do Tasks.execute_task :update; end
|
47
45
|
|
48
|
-
desc 'performs
|
49
|
-
task :
|
46
|
+
#desc 'performs setup commands'
|
47
|
+
#task :setup do Tasks.execute_task :setup;end
|
50
48
|
|
51
|
-
desc 'performs
|
52
|
-
task :
|
49
|
+
#desc 'performs build commands'
|
50
|
+
#task :build do Tasks.execute_task :build;end
|
53
51
|
|
54
|
-
desc 'performs
|
55
|
-
task :
|
52
|
+
#desc 'performs test commands'
|
53
|
+
#task :test => [:build] do Tasks.execute_task :test;end
|
56
54
|
|
57
|
-
desc 'performs
|
58
|
-
task :
|
55
|
+
#desc 'performs analyze commands'
|
56
|
+
#task :analyze do Tasks.execute_task :analyze;end
|
59
57
|
|
60
|
-
desc 'performs
|
61
|
-
task :
|
58
|
+
#desc 'performs documentation commands'
|
59
|
+
#task :doc do Tasks.execute_task :doc;end
|
62
60
|
|
63
|
-
desc 'performs
|
64
|
-
task :
|
61
|
+
#desc 'performs clean commands'
|
62
|
+
#task :clean do Tasks.execute_task :clean;end
|
65
63
|
|
66
|
-
desc '
|
67
|
-
task :
|
64
|
+
#desc 'performs publish commands'
|
65
|
+
#task :publish do Tasks.execute_task :publish; end
|
68
66
|
|
69
|
-
desc '
|
70
|
-
task :
|
67
|
+
#desc 'performs clobber commands'
|
68
|
+
#task :clobber => [:clean] do Tasks.execute_task :clobber;end
|
71
69
|
|
72
|
-
desc '
|
73
|
-
task :
|
70
|
+
#desc 'adds source files to git or subversion'
|
71
|
+
#task :add do Tasks.execute_task :add;end
|
72
|
+
|
73
|
+
#desc 'commits source files to git or subversion'
|
74
|
+
#task :commit do Tasks.execute_task :commit;end
|
75
|
+
|
76
|
+
#desc 'performs a git push'
|
77
|
+
#task :push do Tasks.execute_task :push;end
|
74
78
|
|
75
79
|
desc 'displays project info'
|
76
80
|
task :info do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.142
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
@@ -61,7 +61,6 @@ files:
|
|
61
61
|
- lib/tasks/pull.rb
|
62
62
|
- lib/tasks/push.rb
|
63
63
|
- lib/tasks/setup.rb
|
64
|
-
- lib/tasks/tasks.rb
|
65
64
|
- lib/tasks/test.rb
|
66
65
|
- lib/tasks/update.rb
|
67
66
|
- lib/text.rb
|
data/lib/tasks/tasks.rb
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
|
3
|
-
class Tasks
|
4
|
-
#@@commands=nil
|
5
|
-
@@quiet=false
|
6
|
-
|
7
|
-
def self.quiet
|
8
|
-
@@quiet
|
9
|
-
end
|
10
|
-
|
11
|
-
def self.execute value
|
12
|
-
if(value.respond_to?(:execute))
|
13
|
-
value.update if value.respond_to?(:update)
|
14
|
-
value.execute
|
15
|
-
else
|
16
|
-
if(value.is_a?(String))
|
17
|
-
puts `#{value}`
|
18
|
-
else
|
19
|
-
if(value.is_a?(Array))
|
20
|
-
value.each{|e| execute(e)}
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.execute_task task
|
27
|
-
if(defined?(COMMANDS))
|
28
|
-
if(COMMANDS.has_key?(task))
|
29
|
-
puts "[:#{task}]" if(!Tasks.quiet)
|
30
|
-
Tasks.execute(COMMANDS[task])
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
['add','clobber','pull'].each{|name| require_relative("#{name}.rb")}
|
37
|
-
require 'rake/clean'
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
desc 'performs svn update'
|
42
|
-
task :update do Tasks.execute_task :update; end
|
43
|
-
|
44
|
-
desc 'performs setup commands'
|
45
|
-
task :setup do Tasks.execute_task :setup;end
|
46
|
-
|
47
|
-
desc 'performs build commands'
|
48
|
-
task :build do Tasks.execute_task :build;end
|
49
|
-
|
50
|
-
desc 'performs test commands'
|
51
|
-
task :test => [:build] do Tasks.execute_task :test;end
|
52
|
-
|
53
|
-
desc 'performs analyze commands'
|
54
|
-
task :analyze do Tasks.execute_task :analyze;end
|
55
|
-
|
56
|
-
desc 'performs documentation commands'
|
57
|
-
task :doc do Tasks.execute_task :doc;end
|
58
|
-
|
59
|
-
desc 'performs clean commands'
|
60
|
-
task :clean do Tasks.execute_task :clean;end
|
61
|
-
|
62
|
-
desc 'performs publish commands'
|
63
|
-
task :publish do Tasks.execute_task :publish; end
|
64
|
-
|
65
|
-
#desc 'performs clobber commands'
|
66
|
-
#task :clobber => [:clean] do Tasks.execute_task :clobber;end
|
67
|
-
|
68
|
-
|
69
|
-
desc 'commits source files to git or subversion'
|
70
|
-
task :commit do Tasks.execute_task :commit;end
|
71
|
-
|
72
|
-
desc 'performs a git push'
|
73
|
-
task :push do Tasks.execute_task :push;end
|
74
|
-
|
75
|
-
desc 'displays project info'
|
76
|
-
task :info do
|
77
|
-
if(defined?(INFO) && INFO.length > 0)
|
78
|
-
puts "[:info]" if(!Tasks.quiet)
|
79
|
-
INFO.each{|l|puts l}
|
80
|
-
end
|
81
|
-
end
|