patir 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/History.txt +81 -77
- data/Manifest.txt +16 -16
- data/README.txt +37 -37
- data/Rakefile +18 -20
- data/lib/patir/base.rb +1 -1
- data/lib/patir/command.rb +6 -4
- data/lib/patir/configuration.rb +92 -92
- data/test/samples/syntax.cfg +1 -1
- data/test/test_patir_base.rb +24 -24
- data/test/test_patir_command.rb +334 -320
- data/test/test_patir_configuration.rb +27 -27
- metadata +41 -49
@@ -1,28 +1,28 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__),"..","lib")
|
2
|
-
require 'test/unit'
|
3
|
-
|
4
|
-
require 'patir/configuration'
|
5
|
-
module Patir
|
6
|
-
class TestConfigurator<Test::Unit::TestCase
|
7
|
-
def setup
|
8
|
-
@prev_dir=Dir.pwd
|
9
|
-
Dir.chdir(File.dirname(__FILE__))
|
10
|
-
end
|
11
|
-
def teardown
|
12
|
-
Dir.chdir(@prev_dir)
|
13
|
-
end
|
14
|
-
def test_configuration
|
15
|
-
c=Patir::Configurator.new("samples/empty.cfg")
|
16
|
-
assert_equal(c.configuration,c)
|
17
|
-
|
18
|
-
c=Patir::Configurator.new("samples/chain.cfg")
|
19
|
-
assert_equal(c.configuration,c)
|
20
|
-
end
|
21
|
-
def test_raise_configuration
|
22
|
-
assert_raise(Patir::ConfigurationException) { Patir::Configurator.new("samples/failed.cfg")}
|
23
|
-
assert_raise(Patir::ConfigurationException) { Patir::Configurator.new("samples/failed_unknown.cfg")}
|
24
|
-
assert_raise(Patir::ConfigurationException) { Patir::Configurator.new("samples/syntax.cfg")}
|
25
|
-
assert_raise(Patir::ConfigurationException) { Patir::Configurator.new("samples/config_fail.cfg")}
|
26
|
-
end
|
27
|
-
end
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__),"..","lib")
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
require 'patir/configuration'
|
5
|
+
module Patir
|
6
|
+
class TestConfigurator<Test::Unit::TestCase
|
7
|
+
def setup
|
8
|
+
@prev_dir=Dir.pwd
|
9
|
+
Dir.chdir(File.dirname(__FILE__))
|
10
|
+
end
|
11
|
+
def teardown
|
12
|
+
Dir.chdir(@prev_dir)
|
13
|
+
end
|
14
|
+
def test_configuration
|
15
|
+
c=Patir::Configurator.new("samples/empty.cfg")
|
16
|
+
assert_equal(c.configuration,c)
|
17
|
+
|
18
|
+
c=Patir::Configurator.new("samples/chain.cfg")
|
19
|
+
assert_equal(c.configuration,c)
|
20
|
+
end
|
21
|
+
def test_raise_configuration
|
22
|
+
assert_raise(Patir::ConfigurationException) { Patir::Configurator.new("samples/failed.cfg")}
|
23
|
+
assert_raise(Patir::ConfigurationException) { Patir::Configurator.new("samples/failed_unknown.cfg")}
|
24
|
+
assert_raise(Patir::ConfigurationException) { Patir::Configurator.new("samples/syntax.cfg")}
|
25
|
+
assert_raise(Patir::ConfigurationException) { Patir::Configurator.new("samples/config_fail.cfg")}
|
26
|
+
end
|
27
|
+
end
|
28
28
|
end
|
metadata
CHANGED
@@ -1,73 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Vassilis Rizopoulos
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: systemu
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '2.
|
19
|
+
version: '2.6'
|
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
|
-
version: '2.
|
26
|
+
version: '2.6'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rdoc
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
33
|
+
version: '4.0'
|
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
|
-
version: '
|
40
|
+
version: '4.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: hoe
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '3.
|
47
|
+
version: '3.13'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
62
|
-
description:
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
54
|
+
version: '3.13'
|
55
|
+
description: |-
|
56
|
+
[patir](http://patir.rubyforge.org) provides code to enable project automation tasks:
|
57
|
+
|
58
|
+
* A logging format for ruby's built-in Logger
|
59
|
+
* A command abstraction with a platform independent implementation for running shell commands and ruby code
|
60
|
+
* Command sequences using the same command abstraction as single commands.
|
61
|
+
* Configuration format for configuration files written in ruby.
|
62
|
+
|
63
|
+
## Why?
|
64
|
+
We've been using the same things again and again and can't be bothered to code it anew every time.
|
65
|
+
|
66
|
+
The command abstraction has been used the most, the Logger defaults and formatting the least.
|
67
|
+
email:
|
68
|
+
- vassilisrizopoulos@gmail.com
|
71
69
|
executables: []
|
72
70
|
extensions: []
|
73
71
|
extra_rdoc_files:
|
@@ -75,6 +73,7 @@ extra_rdoc_files:
|
|
75
73
|
- Manifest.txt
|
76
74
|
- README.txt
|
77
75
|
files:
|
76
|
+
- ".gemtest"
|
78
77
|
- History.txt
|
79
78
|
- Manifest.txt
|
80
79
|
- README.txt
|
@@ -91,38 +90,31 @@ files:
|
|
91
90
|
- test/test_patir_base.rb
|
92
91
|
- test/test_patir_command.rb
|
93
92
|
- test/test_patir_configuration.rb
|
94
|
-
|
95
|
-
|
96
|
-
|
93
|
+
homepage: http://github.com/damphyr/patir
|
94
|
+
licenses:
|
95
|
+
- MIT
|
96
|
+
metadata: {}
|
97
97
|
post_install_message:
|
98
98
|
rdoc_options:
|
99
|
-
- --main
|
100
|
-
- README.
|
99
|
+
- "--main"
|
100
|
+
- README.md
|
101
101
|
require_paths:
|
102
102
|
- lib
|
103
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
104
|
requirements:
|
106
|
-
- -
|
105
|
+
- - ">="
|
107
106
|
- !ruby/object:Gem::Version
|
108
107
|
version: '0'
|
109
|
-
segments:
|
110
|
-
- 0
|
111
|
-
hash: 1807292447503911810
|
112
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
109
|
requirements:
|
115
|
-
- -
|
110
|
+
- - ">="
|
116
111
|
- !ruby/object:Gem::Version
|
117
112
|
version: '0'
|
118
113
|
requirements: []
|
119
|
-
rubyforge_project:
|
120
|
-
rubygems_version:
|
114
|
+
rubyforge_project:
|
115
|
+
rubygems_version: 2.2.2
|
121
116
|
signing_key:
|
122
|
-
specification_version:
|
117
|
+
specification_version: 4
|
123
118
|
summary: patir (Project Automation Tools in Ruby) provides libraries for use in project
|
124
119
|
automation tools
|
125
|
-
test_files:
|
126
|
-
- test/test_patir_base.rb
|
127
|
-
- test/test_patir_command.rb
|
128
|
-
- test/test_patir_configuration.rb
|
120
|
+
test_files: []
|