geordi 0.2.7 → 0.3.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.
- data/README.md +27 -5
- data/bin/cu +11 -0
- data/bin/rs +18 -0
- data/bin/tests +7 -0
- data/lib/geordi/version.rb +1 -1
- metadata +12 -10
- data/bin/rspec-and-cucumber +0 -17
data/README.md
CHANGED
@@ -30,6 +30,18 @@ Runs the given command under `bundle exec` if a `Gemfile` is present in your wor
|
|
30
30
|
More information at http://makandra.com/notes/684-automatically-run-bundle-exec-if-required
|
31
31
|
|
32
32
|
|
33
|
+
|
34
|
+
cu
|
35
|
+
-----
|
36
|
+
|
37
|
+
Runs Cucumber with the arguments you want, bundle exec, cucumber_spinner detection, etc.:
|
38
|
+
|
39
|
+
cu features/users.feature
|
40
|
+
|
41
|
+
More information at http://makandra.com/notes/1277-a-nicer-way-to-run-rspec-and-or-cucumber
|
42
|
+
|
43
|
+
|
44
|
+
|
33
45
|
cleanup-directory
|
34
46
|
-----------------
|
35
47
|
|
@@ -111,14 +123,14 @@ Recursively removes executable flags from files in the working directory that pr
|
|
111
123
|
More information at http://makandra.com/notes/659-recursively-remove-unnecessary-execute-flags
|
112
124
|
|
113
125
|
|
114
|
-
|
115
|
-
|
126
|
+
rs
|
127
|
+
-----
|
116
128
|
|
117
|
-
Runs
|
129
|
+
Runs RSpec with the arguments you want, RSpec 1/2 detection, bundle exec, rspec_spinner detection, etc.:
|
118
130
|
|
119
|
-
|
131
|
+
rs spec/models/user_spec.rb
|
120
132
|
|
121
|
-
More information at http://makandra.com/notes/
|
133
|
+
More information at http://makandra.com/notes/1277-a-nicer-way-to-run-rspec-and-or-cucumber
|
122
134
|
|
123
135
|
|
124
136
|
shell-for
|
@@ -129,3 +141,13 @@ Opens an SSH shell on the given [Capistrano multistage](https://github.com/capis
|
|
129
141
|
shell-for production
|
130
142
|
|
131
143
|
More information at http://makandra.com/notes/1209-script-to-open-an-ssh-shell-to-a-capistrano-deployment-target
|
144
|
+
|
145
|
+
|
146
|
+
tests
|
147
|
+
--------------
|
148
|
+
|
149
|
+
Runs both `rs` and `cu`. Call from any project directory:
|
150
|
+
|
151
|
+
tests
|
152
|
+
|
153
|
+
More information at http://makandra.com/notes/1277-a-nicer-way-to-run-rspec-and-or-cucumber
|
data/bin/cu
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# Print some whitespace
|
4
|
+
4.times { puts }
|
5
|
+
|
6
|
+
# Check if cucumber_spinner is available
|
7
|
+
spinner_available = File.open('Gemfile').read.scan(/cucumber_spinner/).any?
|
8
|
+
format_args = spinner_available ? ['--format', 'CucumberSpinner::CuriousProgressBarFormatter'] : ['--format', 'progress']
|
9
|
+
|
10
|
+
# Run cucumber behind bundler
|
11
|
+
exec *["b", "cucumber", format_args, ARGV].flatten
|
data/bin/rs
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# Print some whitespace
|
4
|
+
4.times { puts }
|
5
|
+
|
6
|
+
# Check if we're looking at a Rails 2 / rspec 1 project
|
7
|
+
rspec1 = File.exists?('script/spec')
|
8
|
+
rspec_args = rspec1 ? ["spec", "-c"] : ["rspec"]
|
9
|
+
|
10
|
+
# Check if rspec_spinner is available
|
11
|
+
spinner_available = File.open('Gemfile').read.scan(/rspec_spinner/).any?
|
12
|
+
spinner_args = spinner_available ? ['-r', 'rspec_spinner', '-f', 'RspecSpinner::Bar'] : []
|
13
|
+
|
14
|
+
# Run examples in 'spec' unless an argument is given
|
15
|
+
ARGV[0] ||= 'spec'
|
16
|
+
|
17
|
+
# Run rspec behind bundler
|
18
|
+
exec *["b", rspec_args, spinner_args, ARGV].flatten
|
data/bin/tests
ADDED
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Henning Koch
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-06-10 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: Collection of command line tools we use in our daily work with Ruby, Rails and Linux at makandra.
|
@@ -26,6 +25,7 @@ executables:
|
|
26
25
|
- apache-site
|
27
26
|
- b
|
28
27
|
- cleanup-directory
|
28
|
+
- cu
|
29
29
|
- dump-for
|
30
30
|
- dumple
|
31
31
|
- install-gems-remotely
|
@@ -34,8 +34,9 @@ executables:
|
|
34
34
|
- power-rake
|
35
35
|
- remotify-local-branch
|
36
36
|
- remove-executable-flags
|
37
|
-
-
|
37
|
+
- rs
|
38
38
|
- shell-for
|
39
|
+
- tests
|
39
40
|
extensions: []
|
40
41
|
|
41
42
|
extra_rdoc_files: []
|
@@ -48,6 +49,7 @@ files:
|
|
48
49
|
- bin/apache-site
|
49
50
|
- bin/b
|
50
51
|
- bin/cleanup-directory
|
52
|
+
- bin/cu
|
51
53
|
- bin/dump-for
|
52
54
|
- bin/dumple
|
53
55
|
- bin/install-gems-remotely
|
@@ -56,11 +58,11 @@ files:
|
|
56
58
|
- bin/power-rake
|
57
59
|
- bin/remotify-local-branch
|
58
60
|
- bin/remove-executable-flags
|
59
|
-
- bin/
|
61
|
+
- bin/rs
|
60
62
|
- bin/shell-for
|
63
|
+
- bin/tests
|
61
64
|
- geordi.gemspec
|
62
65
|
- lib/geordi/version.rb
|
63
|
-
has_rdoc: true
|
64
66
|
homepage: http://makandra.com
|
65
67
|
licenses: []
|
66
68
|
|
@@ -90,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
92
|
requirements: []
|
91
93
|
|
92
94
|
rubyforge_project: geordi
|
93
|
-
rubygems_version: 1.
|
95
|
+
rubygems_version: 1.7.2
|
94
96
|
signing_key:
|
95
97
|
specification_version: 3
|
96
98
|
summary: Collection of command line tools we use in our daily work with Ruby, Rails and Linux at makandra.
|
data/bin/rspec-and-cucumber
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
File.delete 'rerun.txt' if FileTest.exists? 'rerun.txt'
|
3
|
-
|
4
|
-
if File.open('Gemfile').read.scan(/rspec_spinner/).any?
|
5
|
-
spec = "script/spec -r rspec_spinner -f RspecSpinner::Bar -c spec"
|
6
|
-
else
|
7
|
-
spec = "script/spec spec"
|
8
|
-
end
|
9
|
-
|
10
|
-
if File.open('Gemfile').read.scan(/cucumber_spinner/).any?
|
11
|
-
cucumber = "script/cucumber --format CucumberSpinner::CuriousProgressBarFormatter features"
|
12
|
-
else
|
13
|
-
cucumber = "script/cucumber --format progress features"
|
14
|
-
end
|
15
|
-
|
16
|
-
exec "bundle exec #{spec} && bundle exec #{cucumber}"
|
17
|
-
|