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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c8b6957783a7226bbc11006687edaa3f2423601
4
- data.tar.gz: 305f88831fb3b69e8183d222036c96136d31da7b
3
+ metadata.gz: 8941069f3e1bce300d13daba736a8655e4963a97
4
+ data.tar.gz: 23b2a2b555d551c8802aca588b613e54da0f1d92
5
5
  SHA512:
6
- metadata.gz: 3df84828d69c8d23c4ca0ba9e5b871abe54997960df402a8613c99d861666c0dd0e1671ff03990a4d2a1d57026b97af545985735f4bc9330ae27f997e9eca20e
7
- data.tar.gz: 128a3c37b637e78b999b20d362d872cdc693b3e990b5c262fd63b0ab1f531cc24793165be33e4d572a50d6539288a3f39230d1ad68baf8a8d71b9c91d53cb351
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
@@ -1,3 +1,7 @@
1
+ desc 'performs analyze commands'
2
+ task :analyze do Tasks.execute_task :analyze;end
3
+
4
+
1
5
  class Analyze < Array
2
6
  def update
3
7
  if(`gem list countloc`.include?('countloc ('))
data/lib/tasks/commit.rb CHANGED
@@ -1,3 +1,6 @@
1
+ desc 'commits source files to git or subversion'
2
+ task :commit do Tasks.execute_task :commit;end
3
+
1
4
  class Commit < Array
2
5
  def update
3
6
  message=""
data/lib/tasks/publish.rb CHANGED
@@ -1,3 +1,7 @@
1
+ desc 'performs publish commands'
2
+ task :publish do Tasks.execute_task :publish; end
3
+
4
+
1
5
  class Publish < Array
2
6
  def update
3
7
  if(Internet.available?)
data/lib/tasks/push.rb CHANGED
@@ -1,3 +1,6 @@
1
+ desc 'performs a git push'
2
+ task :push do Tasks.execute_task :push;end
3
+
1
4
  class Push < Array
2
5
  def update
3
6
  if(File.exists?('.git') && `git config --list`.include?('user.name='))
data/lib/tasks/test.rb CHANGED
@@ -5,6 +5,8 @@
5
5
  # for nunit dlls that must be run in x86 mode,
6
6
  # NUNIT_x86=FileList.new('**/*.x86.Test.dll')
7
7
  #
8
+ desc 'performs test commands'
9
+ task :test => [:build] do Tasks.execute_task :test;end
8
10
 
9
11
 
10
12
  class Test < Array
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
- desc 'performs a git pull'
37
- task :pull do Tasks.execute_task :pull; end
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 setup commands'
43
- task :setup do Tasks.execute_task :setup;end
40
+ #desc 'performs a git pull'
41
+ #task :pull do Tasks.execute_task :pull; end
44
42
 
45
- desc 'performs build commands'
46
- task :build do Tasks.execute_task :build;end
43
+ #desc 'performs svn update'
44
+ #task :update do Tasks.execute_task :update; end
47
45
 
48
- desc 'performs test commands'
49
- task :test => [:build] do Tasks.execute_task :test;end
46
+ #desc 'performs setup commands'
47
+ #task :setup do Tasks.execute_task :setup;end
50
48
 
51
- desc 'performs analyze commands'
52
- task :analyze do Tasks.execute_task :analyze;end
49
+ #desc 'performs build commands'
50
+ #task :build do Tasks.execute_task :build;end
53
51
 
54
- desc 'performs documentation commands'
55
- task :doc do Tasks.execute_task :doc;end
52
+ #desc 'performs test commands'
53
+ #task :test => [:build] do Tasks.execute_task :test;end
56
54
 
57
- desc 'performs clean commands'
58
- task :clean do Tasks.execute_task :clean;end
55
+ #desc 'performs analyze commands'
56
+ #task :analyze do Tasks.execute_task :analyze;end
59
57
 
60
- desc 'performs publish commands'
61
- task :publish do Tasks.execute_task :publish; end
58
+ #desc 'performs documentation commands'
59
+ #task :doc do Tasks.execute_task :doc;end
62
60
 
63
- desc 'performs clobber commands'
64
- task :clobber => [:clean] do Tasks.execute_task :clobber;end
61
+ #desc 'performs clean commands'
62
+ #task :clean do Tasks.execute_task :clean;end
65
63
 
66
- desc 'adds source files to git or subversion'
67
- task :add do Tasks.execute_task :add;end
64
+ #desc 'performs publish commands'
65
+ #task :publish do Tasks.execute_task :publish; end
68
66
 
69
- desc 'commits source files to git or subversion'
70
- task :commit do Tasks.execute_task :commit;end
67
+ #desc 'performs clobber commands'
68
+ #task :clobber => [:clean] do Tasks.execute_task :clobber;end
71
69
 
72
- desc 'performs a git push'
73
- task :push do Tasks.execute_task :push;end
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.141
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