utils 0.0.82 → 0.0.83

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85ce1623a7e47439352723aa155771aa01fb6736
4
- data.tar.gz: ec9ce26f04a73b26c0411b78c210f4d7b3ecabc3
3
+ metadata.gz: cac17754edbeea81ad0952a6c2ab16c1324f45cb
4
+ data.tar.gz: 4e5b6cf14c086f6937ed8d1e0e5969403dddda29
5
5
  SHA512:
6
- metadata.gz: 255e2546e728afe76ca1a25be1e0241875855341b388b32d8b6b841574393744994983f3b183ab3d8d4f6ba3640aebbcb90f12c8b4dc882b1c7a9ae992e4e092
7
- data.tar.gz: 28471e78f74c2023c990cd92fee399b80fe0690a80044e384056443d0fc89a8f8f9c89a58f24de92b4095243f08df327a89b8d322e2815cf65ef804928d50b4a
6
+ metadata.gz: 1ff7b756dc3075d9ade327861565815821b08dfede8302626ea52ad9e1a395304b5557ba12871de98c472c66157321ed6bcec35018d3685d0e48ae1a55cc8db5
7
+ data.tar.gz: f07cb7ac70286ce3a34b99b0cc2cb07c60d53b61d0cc70043bbf40125abc452627b610c75cd499d8d75746bb409792fcd6b3f3c3b94ede329e1783e65900d9c6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.82
1
+ 0.0.83
data/bin/probe CHANGED
@@ -133,7 +133,7 @@ when :rspec
133
133
  when :'test-unit'
134
134
  testrb = find_cmd('testrb')
135
135
  if testname = $opt['n']
136
- cmd 'ruby', '-I', $config.probe.include_dirs_argument, '-S', testrb,
136
+ cmd 'ruby', '-I', $config.probe.include_dirs_argument, testrb,
137
137
  '-n', testname, *(args + testrunner_args)
138
138
  else
139
139
  for filename in args
@@ -147,9 +147,25 @@ when :'test-unit'
147
147
  warn "no test found before line #{sl.linenumber}"
148
148
  end
149
149
  else
150
- cmd 'ruby', '-I', $config.probe.include_dirs_argument, '-S', testrb,
150
+ cmd 'ruby', '-I', $config.probe.include_dirs_argument, testrb,
151
151
  sl.filename, *testrunner_args
152
152
  end
153
153
  end
154
154
  end
155
+ when :cucumber
156
+ cucumber = find_cmd('cucumber')
157
+ if linenumber = $opt['n']
158
+ cmd 'ruby', cucumber, '-r', $config.probe.include_dirs_argument, '-l',
159
+ linenumber, *(args + testrunner_args)
160
+ else
161
+ args = args.map do |a|
162
+ if Utils::Editor::FILE_LINENUMBER_REGEXP =~ a
163
+ $~.captures * ':'
164
+ else
165
+ a
166
+ end
167
+ end
168
+ cmd 'ruby', cucumber, '-r', $config.probe.include_dirs_argument,
169
+ *(args + testrunner_args)
170
+ end
155
171
  end
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.0.82'
3
+ VERSION = '0.0.83'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
data/utils.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "utils"
5
- s.version = "0.0.82"
5
+ s.version = "0.0.83"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
9
- s.date = "2013-05-15"
9
+ s.date = "2013-06-19"
10
10
  s.description = "This ruby gem provides some useful command line utilities"
11
11
  s.email = "flori@ping.de"
12
12
  s.executables = ["chroot-exec", "chroot-libs", "classify", "create_tags", "discover", "edit", "edit_wait", "enum", "errf", "git-empty", "irb_connect", "myex", "number_files", "on_change", "path", "probe", "remote_copy", "same_files", "search", "sedit", "ssh-tunnel", "strip_spaces", "unquarantine_apps", "untest", "utils-install-config", "utils-utilsrc", "vacuum_firefox_sqlite", "xmp"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.82
4
+ version: 0.0.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-15 00:00:00.000000000 Z
11
+ date: 2013-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar