lucid 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +12 -0
- data/lib/lucid/cli/options.rb +20 -1
- data/lib/lucid/generators/project/driver-symbiont.rb +10 -2
- data/lib/lucid/platform.rb +1 -1
- data/lib/lucid/spec_file.rb +6 -6
- data/lucid.gemspec +9 -0
- metadata +22 -4
data/HISTORY.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Change Log and History
|
2
2
|
======================
|
3
3
|
|
4
|
+
|
5
|
+
Version 0.0.6 / 2013-05-09
|
6
|
+
--------------------------
|
7
|
+
|
8
|
+
This version attempts to fix a few issues to improve general operation.
|
9
|
+
|
10
|
+
* Lucid now lists an explicit dependency on json. (This was due to [an issue with multi_json](https://github.com/intridea/multi_json/issues/114).)
|
11
|
+
* Invalid command line options are now handled better. ([Invalid Command Line Options Needs Better Handling](https://github.com/jnyman/lucid/issues/1).)
|
12
|
+
* Lucid now handles missing directories without raising exceptions. ([Extraneous "No File or Directory" Messages](https://github.com/jnyman/lucid/issues/3).)
|
13
|
+
* The default generator project recognizes a missing Symbiont gem. ([Stack Trace When Symbiont Not Installed](https://github.com/jnyman/lucid/issues/5).)
|
14
|
+
|
15
|
+
|
4
16
|
Version 0.0.5 / 2013-05-04
|
5
17
|
--------------------------
|
6
18
|
|
data/lib/lucid/cli/options.rb
CHANGED
@@ -307,7 +307,26 @@ module Lucid
|
|
307
307
|
@out_stream.puts opts.help
|
308
308
|
Kernel.exit(0)
|
309
309
|
end
|
310
|
-
end
|
310
|
+
end
|
311
|
+
#end.parse!
|
312
|
+
|
313
|
+
begin
|
314
|
+
@args.parse!
|
315
|
+
rescue OptionParser::InvalidOption
|
316
|
+
if $!.to_s =~ /invalid option\:\s+((?:-)?-\S+)/
|
317
|
+
puts "You specified an invalid option: #{$1}"
|
318
|
+
puts "Please run lucid --help to see the list of available options."
|
319
|
+
end
|
320
|
+
|
321
|
+
rescue OptionParser::MissingArgument
|
322
|
+
if $!.to_s =~ /missing argument\:\s+((?:-)?-\S+)/
|
323
|
+
puts "You specified an valid option (#{$1}), but with an invalid argument."
|
324
|
+
puts "Make sure you are providing the expected argument for the option."
|
325
|
+
puts "Run lucid --help to see the list of available options."
|
326
|
+
end
|
327
|
+
|
328
|
+
Kernel.exit(1)
|
329
|
+
end
|
311
330
|
|
312
331
|
if @quiet
|
313
332
|
@options[:matchers] = @options[:source] = false
|
@@ -1,4 +1,12 @@
|
|
1
|
-
|
2
|
-
require 'symbiont
|
1
|
+
begin
|
2
|
+
require 'symbiont'
|
3
|
+
require 'symbiont/factory'
|
4
|
+
rescue LoadError
|
5
|
+
STDOUT.puts ["The Symbiont test execution library is not installed.",
|
6
|
+
"The driver file is currently set to use the Symbiont library but",
|
7
|
+
"that gem was not found. Run the following command:", "",
|
8
|
+
" gem install symbiont"].join("\n")
|
9
|
+
Kernel.exit(1)
|
10
|
+
end
|
3
11
|
|
4
12
|
Domain(Symbiont::Factory)
|
data/lib/lucid/platform.rb
CHANGED
@@ -2,7 +2,7 @@ require 'rbconfig'
|
|
2
2
|
|
3
3
|
module Lucid
|
4
4
|
unless defined?(Lucid::VERSION)
|
5
|
-
VERSION = '0.0.
|
5
|
+
VERSION = '0.0.6'
|
6
6
|
BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/lucid')
|
7
7
|
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
|
8
8
|
JRUBY = defined?(JRUBY_VERSION)
|
data/lib/lucid/spec_file.rb
CHANGED
@@ -71,14 +71,14 @@ module Lucid
|
|
71
71
|
raise e
|
72
72
|
rescue Errno::ENOENT => e
|
73
73
|
if @path == "specs"
|
74
|
-
|
75
|
-
|
76
|
-
|
74
|
+
STDOUT.puts ["\nYou don't have a 'specs' directory. This is the default specification",
|
75
|
+
"directory that Lucid will use if one is not specified. So either create",
|
76
|
+
"that directory or specify where your test repository is located."].join("\n")
|
77
77
|
else
|
78
|
-
|
79
|
-
|
78
|
+
STDOUT.puts ["\nThere is no '#{@path}' directory. Since that is what you specified as",
|
79
|
+
"your spec repository, this directory must be present."].join("\n")
|
80
80
|
end
|
81
|
-
|
81
|
+
Kernel.exit(1)
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
data/lucid.gemspec
CHANGED
@@ -24,6 +24,15 @@ Gem::Specification.new do |gem|
|
|
24
24
|
gem.add_runtime_dependency 'diff-lcs', '>= 1.1.3'
|
25
25
|
gem.add_runtime_dependency 'gherkin', '~> 2.12.0'
|
26
26
|
gem.add_runtime_dependency 'multi_json', '~> 1.3'
|
27
|
+
gem.add_runtime_dependency 'json', '~> 1.7.7'
|
28
|
+
|
29
|
+
gem.post_install_message = %{
|
30
|
+
(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
|
31
|
+
|
32
|
+
Thanks for installing Lucid #{Lucid::VERSION}.
|
33
|
+
|
34
|
+
(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
|
35
|
+
}
|
27
36
|
|
28
37
|
gem.files = `git ls-files`.split($/)
|
29
38
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -107,6 +107,22 @@ dependencies:
|
|
107
107
|
- - ~>
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '1.3'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: json
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.7.7
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 1.7.7
|
110
126
|
description: Test Description Language Execution Engine
|
111
127
|
email:
|
112
128
|
- jeffnyman@gmail.com
|
@@ -242,7 +258,9 @@ files:
|
|
242
258
|
homepage: https://github.com/jnyman/lucid
|
243
259
|
licenses:
|
244
260
|
- MIT
|
245
|
-
post_install_message:
|
261
|
+
post_install_message: ! "\n(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
|
262
|
+
(::)\n\n Thanks for installing Lucid 0.0.6.\n\n(::) (::) (::) (::) (::) (::) (::)
|
263
|
+
(::) (::) (::) (::) (::)\n "
|
246
264
|
rdoc_options:
|
247
265
|
- --charset=UTF-8
|
248
266
|
require_paths:
|
@@ -264,6 +282,6 @@ rubyforge_project:
|
|
264
282
|
rubygems_version: 1.8.24
|
265
283
|
signing_key:
|
266
284
|
specification_version: 3
|
267
|
-
summary: lucid-0.0.
|
285
|
+
summary: lucid-0.0.6
|
268
286
|
test_files: []
|
269
287
|
has_rdoc:
|