qed 2.8.6 → 2.8.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ config :qed do
4
4
  # default configuration
5
5
  end
6
6
 
7
- config :qed, :profile=>:simplecov do
7
+ config :qed, :simplecov do
8
8
  require 'simplecov'
9
9
  SimpleCov.start do
10
10
  coverage_dir 'log/coverage'
@@ -12,7 +12,7 @@ config :qed, :profile=>:simplecov do
12
12
  end
13
13
  end
14
14
 
15
- config :qed, :profile=>:example do
15
+ config :qed, :example do
16
16
  puts ("*" * 78)
17
17
  puts
18
18
 
data/.ruby CHANGED
@@ -41,7 +41,7 @@ revision: 0
41
41
  created: '2009-06-16'
42
42
  summary: Quod Erat Demonstrandum
43
43
  title: QED
44
- version: 2.8.6
44
+ version: 2.8.7
45
45
  name: qed
46
46
  webcvs: http://github.com/rubyworks/qed/blob/master/
47
47
  description: ! 'QED (Quality Ensured Demonstrations) is a TDD/BDD framework
@@ -1,5 +1,18 @@
1
1
  = RELEASE HISTORY
2
2
 
3
+ == 2.8.7 | 2012-03-16
4
+
5
+ Release fixes a bug that prevented default demo locations from being
6
+ used when none are specified on the command line. Also change way
7
+ to deactivate use of Confection for configuration, use environment
8
+ variable `config='legacy'`.
9
+
10
+ Changes:
11
+
12
+ * Fix bug that prevented deafault demo locations from being used.
13
+ * Change environment variable to config='legacy' to deactivate Confection.
14
+
15
+
3
16
  == 2.8.6 | 2012-03-15
4
17
 
5
18
  This release simply make the configuration more versitile by supporting
@@ -41,7 +41,7 @@ revision: 0
41
41
  created: '2009-06-16'
42
42
  summary: Quod Erat Demonstrandum
43
43
  title: QED
44
- version: 2.8.6
44
+ version: 2.8.7
45
45
  name: qed
46
46
  webcvs: http://github.com/rubyworks/qed/blob/master/
47
47
  description: ! 'QED (Quality Ensured Demonstrations) is a TDD/BDD framework
@@ -30,6 +30,8 @@ module QED
30
30
  # exit -1
31
31
  #end
32
32
 
33
+ settings.files = files unless files.empty?
34
+
33
35
  session = Session.new(settings)
34
36
  success = session.run
35
37
 
@@ -79,14 +79,14 @@ module QED
79
79
  # task-style configuration files in the form of `task/<profile>.qed`,
80
80
  # or a traditional master `.qed` file.
81
81
  #
82
- # Note, that setting `ENV['confectionless']` will force Confection
82
+ # Note, that setting `ENV['config']='legacy'` will force Confection
83
83
  # not to be used. This is used by the Confection library so it can
84
84
  # run QED demos too.
85
85
  #
86
86
  def initialize_configuration
87
87
  @profiles = {}
88
88
 
89
- if confection_file && !ENV['confectionless']
89
+ if confection_file && !ENV['config']=='legacy'
90
90
  require 'confection'
91
91
  Confection.profiles(:qed).each do |name|
92
92
  @profiles[name.to_s] = lambda{ load_profile_from_confection(name) }
@@ -117,7 +117,13 @@ module QED
117
117
 
118
118
  #
119
119
  def files=(files)
120
- @files = Array(files).flatten.compact
120
+ @files = (
121
+ if files.nil? or files.empty?
122
+ nil
123
+ else
124
+ Array(files).flatten.compact
125
+ end
126
+ )
121
127
  end
122
128
 
123
129
  # File patterns to omit.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qed
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.6
4
+ version: 2.8.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-15 00:00:00.000000000 Z
12
+ date: 2012-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ansi
16
- requirement: &17814740 !ruby/object:Gem::Requirement
16
+ requirement: &17320540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17814740
24
+ version_requirements: *17320540
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: facets
27
- requirement: &17813900 !ruby/object:Gem::Requirement
27
+ requirement: &17317040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2.8'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *17813900
35
+ version_requirements: *17317040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: brass
38
- requirement: &17813280 !ruby/object:Gem::Requirement
38
+ requirement: &17314320 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *17813280
46
+ version_requirements: *17314320
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: confection
49
- requirement: &17812300 !ruby/object:Gem::Requirement
49
+ requirement: &17311080 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *17812300
57
+ version_requirements: *17311080
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: detroit
60
- requirement: &17811720 !ruby/object:Gem::Requirement
60
+ requirement: &17306960 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *17811720
68
+ version_requirements: *17306960
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ae
71
- requirement: &17811060 !ruby/object:Gem::Requirement
71
+ requirement: &17303640 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *17811060
79
+ version_requirements: *17303640
80
80
  description: ! 'QED (Quality Ensured Demonstrations) is a TDD/BDD framework
81
81
 
82
82
  utilizing Literate Programming techniques.'