dev_tasks 1.0.41 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/tasks.rb +82 -74
- data/spec/gem-example/rakefile.rb +9 -9
- metadata +10 -32
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d02723d22b2cd61d4687ecec25d78ae7639b8de1
|
4
|
+
data.tar.gz: 5444f9559e800dccd6a75e63d11860bf94b433ec
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8835d082925d55dbc39f1e116720ee68109989d86390afe2997b8e8284e42a2a1793ca455ed580bacee6f7c675227485cdc25e883949b4bd002e66e3dcae0ed0
|
7
|
+
data.tar.gz: f35aeffb0cfb042899575ea1aceba4f36666b3fb3169d75fd1f340585c930fe2def4c114f43fbae66964305c8f087b130243be460a2248e0d425a705868e9c99
|
data/lib/tasks.rb
CHANGED
@@ -1,74 +1,82 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/clean'
|
3
|
-
|
4
|
-
class Tasks
|
5
|
-
#@@commands=nil
|
6
|
-
@@quiet=false
|
7
|
-
|
8
|
-
def self.quiet
|
9
|
-
@@quiet
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.execute value
|
13
|
-
if(value.respond_to?(:execute))
|
14
|
-
value.update if value.respond_to?(:update)
|
15
|
-
value.execute
|
16
|
-
else
|
17
|
-
if(value.is_a?(String))
|
18
|
-
puts `#{value}`
|
19
|
-
else
|
20
|
-
if(value.is_a?(Array))
|
21
|
-
value.each{|e| execute(e)}
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.execute_task task
|
28
|
-
if(defined?(COMMANDS))
|
29
|
-
if(COMMANDS.has_key?(task))
|
30
|
-
puts "[:#{task}]" if(!Tasks.quiet)
|
31
|
-
Tasks.execute(COMMANDS[task])
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
desc 'performs a git pull'
|
38
|
-
task :pull do Tasks.execute_task :pull; end
|
39
|
-
|
40
|
-
desc 'performs svn update'
|
41
|
-
task :update do Tasks.execute_task :update; end
|
42
|
-
|
43
|
-
desc 'performs setup commands'
|
44
|
-
task :setup do Tasks.execute_task :setup;end
|
45
|
-
|
46
|
-
desc 'performs build commands'
|
47
|
-
task :build do Tasks.execute_task :build;end
|
48
|
-
|
49
|
-
desc 'performs test commands'
|
50
|
-
task :test => [:build] do Tasks.execute_task :test;end
|
51
|
-
|
52
|
-
desc 'performs analyze commands'
|
53
|
-
task :analyze do Tasks.execute_task :analyze;end
|
54
|
-
|
55
|
-
desc 'performs documentation commands'
|
56
|
-
task :doc do Tasks.execute_task :doc;end
|
57
|
-
|
58
|
-
desc 'performs clean commands'
|
59
|
-
task :clean do Tasks.execute_task :clean;end
|
60
|
-
|
61
|
-
desc 'performs publish commands'
|
62
|
-
task :publish do Tasks.execute_task :publish; end
|
63
|
-
|
64
|
-
desc 'performs clobber commands'
|
65
|
-
task :clobber => [:clean] do Tasks.execute_task :clobber;end
|
66
|
-
|
67
|
-
desc 'adds source files to git or subversion'
|
68
|
-
task :add do Tasks.execute_task :add;end
|
69
|
-
|
70
|
-
desc 'commits source files to git or subversion'
|
71
|
-
task :commit do Tasks.execute_task :commit;end
|
72
|
-
|
73
|
-
desc 'performs a git push'
|
74
|
-
task :push do Tasks.execute_task :push;end
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/clean'
|
3
|
+
|
4
|
+
class Tasks
|
5
|
+
#@@commands=nil
|
6
|
+
@@quiet=false
|
7
|
+
|
8
|
+
def self.quiet
|
9
|
+
@@quiet
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.execute value
|
13
|
+
if(value.respond_to?(:execute))
|
14
|
+
value.update if value.respond_to?(:update)
|
15
|
+
value.execute
|
16
|
+
else
|
17
|
+
if(value.is_a?(String))
|
18
|
+
puts `#{value}`
|
19
|
+
else
|
20
|
+
if(value.is_a?(Array))
|
21
|
+
value.each{|e| execute(e)}
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.execute_task task
|
28
|
+
if(defined?(COMMANDS))
|
29
|
+
if(COMMANDS.has_key?(task))
|
30
|
+
puts "[:#{task}]" if(!Tasks.quiet)
|
31
|
+
Tasks.execute(COMMANDS[task])
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
desc 'performs a git pull'
|
38
|
+
task :pull do Tasks.execute_task :pull; end
|
39
|
+
|
40
|
+
desc 'performs svn update'
|
41
|
+
task :update do Tasks.execute_task :update; end
|
42
|
+
|
43
|
+
desc 'performs setup commands'
|
44
|
+
task :setup do Tasks.execute_task :setup;end
|
45
|
+
|
46
|
+
desc 'performs build commands'
|
47
|
+
task :build do Tasks.execute_task :build;end
|
48
|
+
|
49
|
+
desc 'performs test commands'
|
50
|
+
task :test => [:build] do Tasks.execute_task :test;end
|
51
|
+
|
52
|
+
desc 'performs analyze commands'
|
53
|
+
task :analyze do Tasks.execute_task :analyze;end
|
54
|
+
|
55
|
+
desc 'performs documentation commands'
|
56
|
+
task :doc do Tasks.execute_task :doc;end
|
57
|
+
|
58
|
+
desc 'performs clean commands'
|
59
|
+
task :clean do Tasks.execute_task :clean;end
|
60
|
+
|
61
|
+
desc 'performs publish commands'
|
62
|
+
task :publish do Tasks.execute_task :publish; end
|
63
|
+
|
64
|
+
desc 'performs clobber commands'
|
65
|
+
task :clobber => [:clean] do Tasks.execute_task :clobber;end
|
66
|
+
|
67
|
+
desc 'adds source files to git or subversion'
|
68
|
+
task :add do Tasks.execute_task :add;end
|
69
|
+
|
70
|
+
desc 'commits source files to git or subversion'
|
71
|
+
task :commit do Tasks.execute_task :commit;end
|
72
|
+
|
73
|
+
desc 'performs a git push'
|
74
|
+
task :push do Tasks.execute_task :push;end
|
75
|
+
|
76
|
+
desc 'displays project info'
|
77
|
+
task :info do
|
78
|
+
if(defined?(INFO))
|
79
|
+
puts "[:#{task}]" if(!Tasks.quiet)
|
80
|
+
INFO.each{|l|puts l}
|
81
|
+
end
|
82
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require_relative('../../lib/dev_tasks.rb')
|
2
|
-
|
3
|
-
CLOBBER.include('*.gem')
|
4
|
-
COMMANDS=
|
5
|
-
{
|
6
|
-
:build => ['gem build gem-example.gemspec'],
|
7
|
-
:test => ['rspec'],
|
8
|
-
}
|
9
|
-
|
1
|
+
require_relative('../../lib/dev_tasks.rb')
|
2
|
+
|
3
|
+
CLOBBER.include('*.gem')
|
4
|
+
COMMANDS=
|
5
|
+
{
|
6
|
+
:build => ['gem build gem-example.gemspec'],
|
7
|
+
:test => ['rspec'],
|
8
|
+
}
|
9
|
+
|
10
10
|
task :default => [:build,:test,:clobber]
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.42
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Lou Parslow
|
@@ -14,51 +13,31 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.0.13
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.0.13
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 0.0.13
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 0.0.13
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: dev_commands
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.0.26
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.0.26
|
62
41
|
description: defines rake tasks for ruby and C# projects
|
63
42
|
email: lou.parslow@gmail.com
|
64
43
|
executables: []
|
@@ -73,27 +52,26 @@ files:
|
|
73
52
|
homepage: http://rubygems.org/gems/dev_tasks
|
74
53
|
licenses:
|
75
54
|
- Apache 2.0
|
55
|
+
metadata: {}
|
76
56
|
post_install_message:
|
77
57
|
rdoc_options: []
|
78
58
|
require_paths:
|
79
59
|
- lib
|
80
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
61
|
requirements:
|
83
|
-
- -
|
62
|
+
- - '>='
|
84
63
|
- !ruby/object:Gem::Version
|
85
64
|
version: 1.9.3
|
86
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
66
|
requirements:
|
89
|
-
- -
|
67
|
+
- - '>='
|
90
68
|
- !ruby/object:Gem::Version
|
91
69
|
version: '0'
|
92
70
|
requirements: []
|
93
71
|
rubyforge_project:
|
94
|
-
rubygems_version:
|
72
|
+
rubygems_version: 2.0.3
|
95
73
|
signing_key:
|
96
|
-
specification_version:
|
74
|
+
specification_version: 4
|
97
75
|
summary: development rake tasks
|
98
76
|
test_files: []
|
99
77
|
has_rdoc:
|