agile_utils 0.0.9 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf388b8e883700bf5974b7ddbd6778b4f055ec1e
4
- data.tar.gz: 2ab8b168134d360684bfacb8c38a715a5ef26bbb
3
+ metadata.gz: e87d35331d8d47cc81cd1ccefe40a3a1f85c86e8
4
+ data.tar.gz: fefebe76847ae28a14519104628dc4c31ea13a1c
5
5
  SHA512:
6
- metadata.gz: 4c28c494ec95aa339592ef7ba630149dd2d96ff83c91e3ad4b190f0cc5836ad8bd7c91b20cfe48836d7945c8e6ecbd73e80b2d467d801b53b6f827348230755b
7
- data.tar.gz: fd4bbfbbc93a73a57c9a2a2e3be53f93a104282feafc80248f7f90f4ff89b45e9c92fa0df3270a99d1ed4c54bab67d0d78013c41df1113564d8e9dad8c35b6a6
6
+ metadata.gz: 25b035349ca9fc754232257d86bf760005ece819531f4a9c5aa3bc225ca1910e7e66da28a33a8ae9f947f02757ce667f12884ba8542d079ec27d0926f22bbba6
7
+ data.tar.gz: 82a46e6dc6b53ed2505bc994055f8dd2e3aa5f699a050ed760391d16ca4d3f6840026a38d3c3ad74268e9384d2e3792ed5e896531cbdce5dcd2ef5096faccee8
data/.gitignore CHANGED
@@ -17,5 +17,5 @@ test/version_tmp
17
17
  tmp
18
18
 
19
19
  # Custom ignore files
20
- TODOs.md
21
- output.tar.gz
20
+ .ruby-version
21
+
data/CHANGELOGS.md ADDED
@@ -0,0 +1,41 @@
1
+ ### Changelogs
2
+
3
+ #### 0.1.0
4
+
5
+ - Use [Semantic Versioning][] from this point.
6
+ - Improve README.md
7
+ - Add link to 'code_climate' and 'gemnasium'
8
+ - Fix style with rubocop
9
+ - Update gemspec file
10
+
11
+ #### 0.0.8
12
+
13
+ - Move '--theme' option out as it is not a shared option
14
+
15
+ #### 0.0.7
16
+
17
+ - Remove the `default_options` from `base_option.rb`
18
+
19
+ - Update the description for `base_option.rb`
20
+
21
+ #### 0.0.6
22
+
23
+ - Fix the `-f` options description
24
+
25
+ #### 0.0.5
26
+
27
+ - Correct the short option for '--exc-words'
28
+
29
+ - Show list of apis for default usage
30
+
31
+ #### 0.0.3 - 0.0.4
32
+
33
+ - Add more functions
34
+
35
+ - Code refactoring and cleanup
36
+
37
+ #### 0.0.2
38
+
39
+ - First initial release
40
+
41
+ [Semantec Versioning]: http://semver.org
File without changes
data/README.md CHANGED
@@ -1,11 +1,16 @@
1
1
  ## agile_utils
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/agile_utils.svg)](http://badge.fury.io/rb/agile_utils)
4
- [![Dependency Status](https://gemnasium.com/agilecreativity/agile_utils.png)](https://gemnasium.com/agilecreativity/agile_utils)
5
- [![Code Climate](https://codeclimate.com/github/agilecreativity/agile_utils.png)](https://codeclimate.com/github/agilecreativity/agile_utils)
3
+ [![Gem Version](https://badge.fury.io/rb/agile_utils.svg)][gem]
4
+ [![Dependency Status](https://gemnasium.com/agilecreativity/agile_utils.png)][gemnasium]
5
+ [![Code Climate](https://codeclimate.com/github/agilecreativity/agile_utils.png)][codeclimate]
6
6
 
7
- My collection of ruby library that I have used in more than one project.
8
- To promote the code re-use I move them all to this gem.
7
+ [gem]: http://badge.fury.io/rb/agile_utils
8
+ [gemnasium]: https://gemnasium.com/agilecreativity/agile_utils
9
+ [codeclimate]: https://codeclimate.com/github/agilecreativity/agile_utils
10
+
11
+ My collection of ruby libraries that I have used in more than one projects.
12
+ To promote the code re-use I move them all to this gem. Most of them are from a
13
+ well known gems, but some are written from scratch.
9
14
  I hope you will find some of them useful for your interesting project.
10
15
 
11
16
  ### Installation
@@ -37,49 +42,12 @@ AgileUtils::Helper.make_list
37
42
  AgileUtils::Helper.shell
38
43
  AgileUtils::Helper.time
39
44
  AgileUtils::Helper.uname
40
-
41
- AgileUtils::FileUtil.find()
42
- AgileUtils::FileUtils.delete()
43
- AgileUtils::FileUtils.gunzip()
44
- AgileUtils::FileUtils.tar_gzip_files()
45
+ AgileUtils::FileUtil.find
46
+ AgileUtils::FileUtils.delete
47
+ AgileUtils::FileUtils.gunzip
48
+ AgileUtils::FileUtils.tar_gzip_files
45
49
  ```
46
50
 
47
- ### Changelogs
48
-
49
- #### 0.0.9
50
-
51
- - Update minitest to latest version
52
-
53
- #### 0.0.8
54
-
55
- - Move '--theme' option out as it is not a shared option
56
-
57
- #### 0.0.7
58
-
59
- - Remove the `default_options` from `base_option.rb`
60
-
61
- - Update the description for `base_option.rb`
62
-
63
- #### 0.0.6
64
-
65
- - Fix the `-f` options description
66
-
67
- #### 0.0.5
68
-
69
- - Correct the short option for '--exc-words'
70
-
71
- - Show list of apis for default usage
72
-
73
- #### 0.0.3 - 0.0.4
74
-
75
- - Add more functions
76
-
77
- - Code refactoring and cleanup
78
-
79
- #### 0.0.2
80
-
81
- - First initial release
82
-
83
51
  ### Contributing
84
52
 
85
53
  1. Fork it ( http://github.com/agilecreativity/agile_utils/fork )
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
3
 
4
4
  project_name = 'agile_utils'
5
5
 
@@ -9,7 +9,7 @@ Rake::TestTask.new do |t|
9
9
  t.verbose = true
10
10
  end
11
11
 
12
- task :default => :test
12
+ task default: :test
13
13
 
14
14
  task :pry do
15
15
  require 'pry'
data/agile_utils.gemspec CHANGED
@@ -2,25 +2,29 @@
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'agile_utils/version'
5
-
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = 'agile_utils'
8
7
  spec.version = AgileUtils::VERSION
9
8
  spec.authors = ['Burin Choomnuan']
10
9
  spec.email = ['agilecreativity@gmail.com']
11
- spec.summary = %q{Collection of my library that can be re-used across project}
12
- spec.description = %q{My collection of library that I have used that can be shared across multiple project.}
10
+ spec.summary = %q(Collection of my ruby library that can be re-used across projects)
11
+ spec.description = %q(My collection of library that I have used that can be shared across multiple projects)
13
12
  spec.homepage = 'https://github.com/agilecreativity/agile_utils'
14
13
  spec.license = 'MIT'
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
14
+ spec.files = Dir.glob('{bin,lib}/**/*') + %w(Gemfile
15
+ Rakefile
16
+ agile_utils.gemspec
17
+ README.md
18
+ CHANGELOGS.md
19
+ LICENSE
20
+ .rubocop.yml
21
+ .gitignore
22
+ rubocop-todo.yml)
17
23
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
24
+ spec.test_files = Dir.glob('{test}/**/*')
19
25
  spec.require_paths = ['lib']
20
-
21
- spec.add_runtime_dependency 'thor', '~> 0.18'
26
+ spec.add_runtime_dependency 'thor', '~> 0.19.1'
22
27
  spec.add_runtime_dependency 'minitar', '~> 0.5.4'
23
-
24
28
  spec.add_development_dependency 'bundler', '~> 1.5'
25
29
  spec.add_development_dependency 'rake', '~> 10.1'
26
30
  spec.add_development_dependency 'awesome_print', '~> 1.2'
@@ -32,5 +36,4 @@ Gem::Specification.new do |spec|
32
36
  spec.add_development_dependency 'gem-ctags', '~> 1.0'
33
37
  spec.add_development_dependency 'yard', '~> 0.8'
34
38
  spec.add_development_dependency 'rubocop', '~> 0.20'
35
-
36
39
  end
@@ -1,8 +1,6 @@
1
- # General library that can be re-use by multiple projects.
2
1
  module AgileUtils
3
2
  # Store the options that will be shared by many CLI classes
4
3
  module Options
5
-
6
4
  BASE_DIR = [
7
5
  :base_dir,
8
6
  { type: :string,
@@ -66,6 +64,5 @@ module AgileUtils
66
64
  desc: 'Display version information',
67
65
  default: false }
68
66
  ]
69
-
70
67
  end
71
68
  end
@@ -12,7 +12,7 @@ module AgileUtils
12
12
  execute(opts)
13
13
  end
14
14
 
15
- desc "usage", "Display help screen"
15
+ desc 'usage', 'Display help screen'
16
16
  def usage
17
17
  puts <<-EOS
18
18
  # List of available APIs
@@ -43,6 +43,5 @@ AgileUtils::FileUtils.tar_gzip_files()
43
43
  def execute(options = {})
44
44
  puts "FYI: execute with options: #{options}"
45
45
  end
46
-
47
46
  end
48
47
  end
@@ -1,5 +1,4 @@
1
1
  class Hash
2
-
3
2
  # File activesupport/lib/active_support/core_ext/hash/keys.rb
4
3
  #
5
4
  # hash = { name: 'Rob', age: '28' }
@@ -25,12 +24,12 @@ class Hash
25
24
  # hash.symbolize_keys
26
25
  # => { name: "Rob", age: "28" }
27
26
  def symbolize_keys
28
- transform_keys{ |key| key.to_sym rescue key }
27
+ transform_keys { |key| key.to_sym rescue key }
29
28
  end
30
29
 
31
30
  # File activesupport/lib/active_support/core_ext/hash/keys.rb, line 135
32
31
  def symbolize_keys!
33
- transform_keys!{ |key| key.to_sym rescue key }
32
+ transform_keys! { |key| key.to_sym rescue key }
34
33
  end
35
34
 
36
35
  # Merges the caller into +other_hash+. For example,
@@ -50,7 +49,6 @@ class Hash
50
49
  # Destructive +reverse_merge+.
51
50
  def reverse_merge!(other_hash)
52
51
  # right wins if there is no left
53
- merge!(other_hash) { |key,left,right| left }
52
+ merge!(other_hash) { |key, left, right| left }
54
53
  end
55
-
56
54
  end
@@ -9,7 +9,6 @@ module AgileUtils
9
9
  include Archive::Tar::Minitar
10
10
 
11
11
  module FileUtil
12
-
13
12
  class << self
14
13
  # @todo use me when you have to!
15
14
  CustomError = Class.new(StandardError)
@@ -1,10 +1,8 @@
1
1
  require 'open3'
2
2
  require 'stringio'
3
-
4
3
  module AgileUtils
5
4
  module Helper
6
5
  class << self
7
-
8
6
  # Wrapper function to call the 'popen3' and return the result
9
7
  #
10
8
  # @param [Array<String>] commands list of command
@@ -41,7 +39,7 @@ module AgileUtils
41
39
  def string_to_hash(input)
42
40
  hash = {}
43
41
  input.split('\n').each do |i|
44
- #TODO: code smell?
42
+ # TODO: code smell?
45
43
  item = i.split(':') if is_linux?
46
44
  item = i.split('=') if is_osx?
47
45
  next if item.empty? || item.size != 2
@@ -89,8 +87,8 @@ module AgileUtils
89
87
  # @return [Array<String>] the list of options for use with Thor
90
88
  def make_list(options)
91
89
  list = []
92
- to_switches(options).split(" ").each do |a|
93
- list << a.gsub('"', "")
90
+ to_switches(options).split(' ').each do |a|
91
+ list << a.gsub('"', '')
94
92
  end
95
93
  list
96
94
  end
@@ -112,7 +110,7 @@ module AgileUtils
112
110
  return exe if File.executable? exe
113
111
  end
114
112
  end
115
- return nil
113
+ nil
116
114
  end
117
115
 
118
116
  private
@@ -130,11 +128,11 @@ module AgileUtils
130
128
  when Hash
131
129
  "--#{key} #{value.map { |k, v| "#{k}:#{v}" }.join(' ')}" unless value.empty?
132
130
  when nil, false
133
- ""
131
+ ''
134
132
  else
135
133
  "--#{key} #{value.inspect}"
136
134
  end
137
- end.join(" ")
135
+ end.join(' ')
138
136
  end
139
137
  end
140
138
  end
@@ -1,3 +1,3 @@
1
1
  module AgileUtils
2
- VERSION = "0.0.9"
2
+ VERSION = '0.1.0'
3
3
  end
data/rubocop-todo.yml CHANGED
@@ -1,10 +1,14 @@
1
1
  # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2014-04-23 16:41:01 +1000 using RuboCop version 0.19.1.
2
+ # on 2014-05-12 17:20:22 +1000 using RuboCop version 0.21.0.
3
3
  # The point is for the user to remove these configuration records
4
4
  # one by one as the offenses are removed from the code base.
5
5
  # Note that changes in the inspected code, or installation of new
6
6
  # versions of RuboCop, may require this file to be generated again.
7
7
 
8
+ # Offense count: 1
9
+ CyclomaticComplexity:
10
+ Max: 7
11
+
8
12
  # Offense count: 2
9
13
  # Cop supports --auto-correct.
10
14
  DeprecatedClassMethods:
@@ -14,38 +18,40 @@ DeprecatedClassMethods:
14
18
  Documentation:
15
19
  Enabled: false
16
20
 
17
- # Offense count: 6
21
+ # Offense count: 7
18
22
  # Cop supports --auto-correct.
19
23
  EmptyLinesAroundBody:
20
- Enabled: false
24
+ Enabled: true
21
25
 
22
- # Offense count: 1
26
+ # Offense count: 4
23
27
  Eval:
24
28
  Enabled: false
25
29
 
26
- # Offense count: 2
27
- # Configuration parameters: Exclude.
28
- FileName:
29
- Enabled: false
30
-
31
30
  # Offense count: 1
32
31
  # Cop supports --auto-correct.
33
- IndentationConsistency:
32
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
33
+ HashSyntax:
34
34
  Enabled: true
35
35
 
36
36
  # Offense count: 2
37
37
  # Cop supports --auto-correct.
38
38
  LeadingCommentSpace:
39
- Enabled: false
39
+ Enabled: true
40
40
 
41
- # Offense count: 5
41
+ # Offense count: 10
42
42
  LineLength:
43
- Max: 89
43
+ Max: 112
44
44
 
45
- # Offense count: 1
45
+ # Offense count: 3
46
46
  # Configuration parameters: CountComments.
47
47
  MethodLength:
48
- Max: 12
48
+ Max: 15
49
+
50
+ # Offense count: 2
51
+ # Cop supports --auto-correct.
52
+ # Configuration parameters: PreferredDelimiters.
53
+ PercentLiteralDelimiters:
54
+ Enabled: true
49
55
 
50
56
  # Offense count: 2
51
57
  # Configuration parameters: NamePrefixBlacklist.
@@ -53,10 +59,17 @@ PredicateName:
53
59
  Enabled: false
54
60
 
55
61
  # Offense count: 1
56
- RedundantBegin:
62
+ # Cop supports --auto-correct.
63
+ # Configuration parameters: AllowMultipleReturnValues.
64
+ RedundantReturn:
57
65
  Enabled: true
58
66
 
67
+ # Offense count: 2
68
+ RegexpLiteral:
69
+ MaxSlashes: 0
70
+
59
71
  # Offense count: 1
72
+ # Cop supports --auto-correct.
60
73
  RescueException:
61
74
  Enabled: false
62
75
 
@@ -67,26 +80,20 @@ RescueModifier:
67
80
  # Offense count: 2
68
81
  # Cop supports --auto-correct.
69
82
  SpaceAfterComma:
70
- Enabled: false
83
+ Enabled: true
71
84
 
72
85
  # Offense count: 2
73
86
  # Cop supports --auto-correct.
74
87
  # Configuration parameters: EnforcedStyle, SupportedStyles.
75
88
  SpaceBeforeBlockBraces:
76
- Enabled: false
77
-
78
- # Offense count: 1
79
- # Cop supports --auto-correct.
80
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
81
- SpaceInsideBlockBraces:
82
89
  Enabled: true
83
90
 
84
- # Offense count: 16
91
+ # Offense count: 17
85
92
  # Cop supports --auto-correct.
86
93
  # Configuration parameters: EnforcedStyle, SupportedStyles.
87
94
  StringLiterals:
88
- Enabled: false
95
+ Enabled: true
89
96
 
90
97
  # Offense count: 2
91
- UselessAssignment:
92
- Enabled: true
98
+ UnusedBlockArgument:
99
+ Enabled: false
@@ -5,18 +5,18 @@ describe AgileUtils do
5
5
 
6
6
  context '#tar_gzip_files' do
7
7
  before do
8
- FileUtils.rm_rf("test/fixtures/output.tar.gz")
9
- @files = AgileUtils::FileUtil.find("test/fixtures/outputs", 'xhtml')
8
+ FileUtils.rm_rf('test/fixtures/output.tar.gz')
9
+ @files = AgileUtils::FileUtil.find('test/fixtures/outputs', 'xhtml')
10
10
  end
11
11
 
12
12
  after do
13
- FileUtils.rm_rf("test/fixtures/output.tar.gz")
13
+ FileUtils.rm_rf('test/fixtures/output.tar.gz')
14
14
  end
15
15
 
16
16
  it 'compresses list of files' do
17
- refute File.exists?("test/fixtures/output.tar.gz"), "Output file must not exist"
18
- AgileUtils::FileUtil.tar_gzip_files(@files, "test/fixtures/output.tar.gz")
19
- assert File.exists?("test/fixtures/output.tar.gz"), "Output file must be generated"
17
+ refute File.exists?('test/fixtures/output.tar.gz'), 'Output file must not exist'
18
+ AgileUtils::FileUtil.tar_gzip_files(@files, 'test/fixtures/output.tar.gz')
19
+ assert File.exists?('test/fixtures/output.tar.gz'), 'Output file must be generated'
20
20
  end
21
21
  end
22
22
  end
@@ -2,25 +2,14 @@ require_relative '../../test_helper'
2
2
  describe AgileUtils::Helper do
3
3
  context '#shell' do
4
4
  it 'returns result for valid command' do
5
+ # TODO: very system specific, please mock/stub this out!
6
+ # or use something like FakeFS?
5
7
  result = AgileUtils::Helper.shell(%w(ls))
6
8
  result.wont_be_nil
7
9
  end
10
+
8
11
  it 'raises error on invalid command' do
9
12
  assert_raises(RuntimeError) { AgileUtils::Helper.shell(%w(bad-command)) }
10
13
  end
11
14
  end
12
-
13
- context '#which' do
14
- it 'works with valid executable' do
15
- # TODO: mock or stub the call
16
- AgileUtils::Helper.which('ruby').wont_be_nil
17
- end
18
- it 'works with invalid executable' do
19
- AgileUtils::Helper.which('bad-or-invalid-executable!').must_be_nil
20
- end
21
- it 'works with the binary name only' do
22
- # TODO: mock or stub the call
23
- AgileUtils::Helper.which('/bin/bash').must_be_nil
24
- end
25
- end
26
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agile_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-29 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.18'
19
+ version: 0.19.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.18'
26
+ version: 0.19.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitar
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -193,7 +193,7 @@ dependencies:
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0.20'
195
195
  description: My collection of library that I have used that can be shared across multiple
196
- project.
196
+ projects
197
197
  email:
198
198
  - agilecreativity@gmail.com
199
199
  executables:
@@ -203,11 +203,9 @@ extra_rdoc_files: []
203
203
  files:
204
204
  - ".gitignore"
205
205
  - ".rubocop.yml"
206
- - ".travis.yml"
207
- - ".yardopts"
206
+ - CHANGELOGS.md
208
207
  - Gemfile
209
- - Guardfile
210
- - LICENSE.txt
208
+ - LICENSE
211
209
  - README.md
212
210
  - Rakefile
213
211
  - agile_utils.gemspec
@@ -253,13 +251,13 @@ rubyforge_project:
253
251
  rubygems_version: 2.2.2
254
252
  signing_key:
255
253
  specification_version: 4
256
- summary: Collection of my library that can be re-used across project
254
+ summary: Collection of my ruby library that can be re-used across projects
257
255
  test_files:
258
- - test/fixtures/inputs/demo1.xxx.rb
259
- - test/fixtures/inputs/demo2.xxx.rb
260
- - test/fixtures/outputs/demo1.xhtml
261
- - test/fixtures/outputs/demo2.xhtml
262
- - test/lib/agile_utils/test_file_util.rb
263
256
  - test/lib/agile_utils/test_helper.rb
257
+ - test/lib/agile_utils/test_file_util.rb
264
258
  - test/test_helper.rb
259
+ - test/fixtures/outputs/demo1.xhtml
260
+ - test/fixtures/outputs/demo2.xhtml
261
+ - test/fixtures/inputs/demo2.xxx.rb
262
+ - test/fixtures/inputs/demo1.xxx.rb
265
263
  has_rdoc:
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.1
data/.yardopts DELETED
@@ -1,2 +0,0 @@
1
- # see: http://rubydoc.info/gems/yard/file/README.md
2
- --no-private --protected lib/**/*.rb - README.md LICENSE.txt
data/Guardfile DELETED
@@ -1,15 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
- guard 'minitest' do
4
-
5
- # with Minitest::Unit
6
- watch(%r|^test/(.*)\/?test_(.*)\.rb|)
7
- watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
8
- watch(%r|^test/test_helper\.rb|) { "test" }
9
-
10
- # with Minitest::Spec
11
- # watch(%r|^spec/(.*)_spec\.rb|)
12
- # watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
13
- # watch(%r|^spec/spec_helper\.rb|) { "spec" }
14
-
15
- end