fishbone 0.1.5 → 0.1.6
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/.fishbone +1 -0
- data/exe/fishbone +12 -10
- data/lib/fishbone/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed9085afa3cbba6930818dced99a46cedb93ad61
|
|
4
|
+
data.tar.gz: 7419968a1b1138b24ca258bd3e5c468630e5f9c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e851829ea005b604f6fbdcbe407bf55deb8f3f90633016970c9af3f422781e04fd638adebe0331beb10ee4edf97bdd371e84060552336213c1bd06300d22f820
|
|
7
|
+
data.tar.gz: c90c65cda117c0d10bbb76c8f282c5d7b9af5a0db6ba32fa51a873f5219233db3a1e14f51dcf8471e702d57df1de9ac075473fae8ef83339499c2795a238d418
|
data/.fishbone
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
-rcBb
|
data/exe/fishbone
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
2
|
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
|
4
3
|
|
|
5
4
|
require 'fishbone'
|
|
6
5
|
require 'optparse'
|
|
7
6
|
require 'pry'
|
|
8
|
-
|
|
9
7
|
options = {}
|
|
10
8
|
|
|
11
9
|
option_parser = OptionParser.new do |opts|
|
|
12
10
|
executable_name = File.basename($PROGRAM_NAME)
|
|
11
|
+
|
|
12
|
+
if opts.default_argv.empty? && File.exist?('.fishbone')
|
|
13
|
+
opts.default_argv.push File.read('.fishbone')
|
|
14
|
+
end
|
|
15
|
+
|
|
13
16
|
opts.banner = "
|
|
14
17
|
Fishbone makes it easy to get started with test automation
|
|
15
18
|
|
|
@@ -21,6 +24,7 @@ option_parser = OptionParser.new do |opts|
|
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
opts.on('-c', '--capybara', 'Generate an Rspec test suite with capybara aliases') do
|
|
27
|
+
options[:rspec] = true # automatically turn this one if capy is selected.
|
|
24
28
|
options[:capybara] = true
|
|
25
29
|
end
|
|
26
30
|
|
|
@@ -29,21 +33,19 @@ option_parser = OptionParser.new do |opts|
|
|
|
29
33
|
options[:feature] = name
|
|
30
34
|
end
|
|
31
35
|
|
|
32
|
-
opts.on('-s', '--scenarios', 'Add multiple scenarios by name or by quanity') do |name|
|
|
33
|
-
raise "No feature name provided" if name =~ /^-/
|
|
34
|
-
options[:scenarios] = name
|
|
35
|
-
end
|
|
36
|
-
|
|
37
36
|
opts.on('-z', '--object STR', 'Add an object to a repo and generate tests for it') do |obj|
|
|
38
37
|
raise "No object provided" if obj =~ /^-/
|
|
38
|
+
options[:rspec] = false
|
|
39
39
|
options[:object] = obj
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
opts.on('-B', '--before-all', 'Include a before-all template for the given spec') do
|
|
42
|
+
opts.on('-B', '--before-all', 'Include a before-all template for the given spec') do
|
|
43
|
+
options[:rspec] = true
|
|
43
44
|
options[:before_all] = true
|
|
44
45
|
end
|
|
45
46
|
|
|
46
|
-
opts.on('-b', '--before-each', 'Include a before-each template for the given spec') do
|
|
47
|
+
opts.on('-b', '--before-each', 'Include a before-each template for the given spec') do
|
|
48
|
+
options[:rspec] = true
|
|
47
49
|
options[:before_each] = true
|
|
48
50
|
end
|
|
49
51
|
|
|
@@ -69,7 +71,7 @@ begin
|
|
|
69
71
|
end
|
|
70
72
|
|
|
71
73
|
if options.empty?
|
|
72
|
-
puts " error: you must specify options"
|
|
74
|
+
puts " error: you must specify options or create a .fishbone file with options"
|
|
73
75
|
puts option_parser.help
|
|
74
76
|
else
|
|
75
77
|
generator = Fishbone::Generator.new(options)
|
data/lib/fishbone/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fishbone
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason McInerney
|
|
@@ -61,6 +61,7 @@ executables:
|
|
|
61
61
|
extensions: []
|
|
62
62
|
extra_rdoc_files: []
|
|
63
63
|
files:
|
|
64
|
+
- ".fishbone"
|
|
64
65
|
- ".gitignore"
|
|
65
66
|
- ".rspec"
|
|
66
67
|
- ".travis.yml"
|