patir 0.8.2 → 0.9.0
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/History.txt +85 -81
- data/Manifest.txt +16 -16
- data/README.txt +37 -37
- data/Rakefile +18 -18
- data/lib/patir/base.rb +2 -2
- 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 -334
- data/test/test_patir_configuration.rb +27 -27
- metadata +5 -6
- data/.gemtest +0 -0
@@ -1,28 +1,28 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__),"..","lib")
|
2
|
-
require
|
3
|
-
|
4
|
-
require 'patir/configuration'
|
5
|
-
module Patir
|
6
|
-
class TestConfigurator<Test
|
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
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
-
end
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__),"..","lib")
|
2
|
+
require "minitest/autorun"
|
3
|
+
|
4
|
+
require 'patir/configuration'
|
5
|
+
module Patir
|
6
|
+
class TestConfigurator<Minitest::Test
|
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_raises(Patir::ConfigurationException) { Patir::Configurator.new("samples/failed.cfg")}
|
23
|
+
assert_raises(Patir::ConfigurationException) { Patir::Configurator.new("samples/failed_unknown.cfg")}
|
24
|
+
assert_raises(Patir::ConfigurationException) { Patir::Configurator.new("samples/syntax.cfg")}
|
25
|
+
assert_raises(Patir::ConfigurationException) { Patir::Configurator.new("samples/config_fail.cfg")}
|
26
|
+
end
|
27
|
+
end
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vassilis Rizopoulos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: systemu
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
47
|
+
version: '3.16'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
54
|
+
version: '3.16'
|
55
55
|
description: |-
|
56
56
|
[patir](http://patir.rubyforge.org) provides code to enable project automation tasks:
|
57
57
|
|
@@ -73,7 +73,6 @@ extra_rdoc_files:
|
|
73
73
|
- Manifest.txt
|
74
74
|
- README.txt
|
75
75
|
files:
|
76
|
-
- ".gemtest"
|
77
76
|
- History.txt
|
78
77
|
- Manifest.txt
|
79
78
|
- README.txt
|
@@ -112,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
111
|
version: '0'
|
113
112
|
requirements: []
|
114
113
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.5.2
|
116
115
|
signing_key:
|
117
116
|
specification_version: 4
|
118
117
|
summary: patir (Project Automation Tools in Ruby) provides libraries for use in project
|
data/.gemtest
DELETED
File without changes
|