folders_renamer 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## Changelogs
2
2
 
3
+ ### 0.2.3
4
+
5
+ * Use `require` instead of `require_relative` when possible
6
+ * Misc cleanup
7
+
3
8
  ### 0.2.2
4
9
 
5
10
  * Support ruby version start from 1.9.3+
data/bin/folders_renamer CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require_relative "../lib/folders_renamer"
3
- include FoldersRenamer
4
3
  if ARGV.empty?
5
4
  FoldersRenamer::CLI.start(%w[usage])
6
5
  else
@@ -25,18 +25,18 @@ Gem::Specification.new do |spec|
25
25
  spec.test_files = Dir.glob("{test}/**/*")
26
26
  spec.require_paths = ["lib"]
27
27
  spec.add_runtime_dependency "thor", "~> 0.19.1"
28
- spec.add_runtime_dependency "agile_utils", "~> 0.2.2"
29
- spec.add_runtime_dependency "filename_cleaner", "~> 0.4.3"
28
+ spec.add_runtime_dependency "agile_utils", "~> 0.2.3"
29
+ spec.add_runtime_dependency "filename_cleaner", "~> 0.4.6"
30
30
  spec.add_development_dependency "awesome_print", "~> 1.2.0"
31
- spec.add_development_dependency "bundler", "~> 1.7.0"
31
+ spec.add_development_dependency "bundler", "~> 1.7.3"
32
32
  spec.add_development_dependency "gem-ctags", "~> 1.0.6"
33
33
  spec.add_development_dependency "guard", "~> 2.6.1"
34
34
  spec.add_development_dependency "guard-minitest", "~> 2.3.1"
35
- spec.add_development_dependency "minitest", "~> 5.4.0"
35
+ spec.add_development_dependency "minitest", "~> 5.4.2"
36
36
  spec.add_development_dependency "minitest-spec-context", "~> 0.0.3"
37
37
  spec.add_development_dependency "minitest-filesystem", "~> 1.2.0"
38
38
  spec.add_development_dependency "pry", "~> 0.10.0"
39
39
  spec.add_development_dependency "rake", "~> 10.3.2"
40
- spec.add_development_dependency "rubocop", "~> 0.24.1"
40
+ spec.add_development_dependency "rubocop", "~> 0.26.1"
41
41
  spec.add_development_dependency "yard", "~> 0.8.7"
42
42
  end
@@ -1,5 +1,3 @@
1
- require "thor"
2
- require "agile_utils"
3
1
  module FoldersRenamer
4
2
  class CLI < Thor
5
3
  desc "rename", "Cleanup and rename folders"
@@ -1,6 +1,3 @@
1
- require "fileutils"
2
- require "pathname"
3
- require "filename_cleaner"
4
1
  module FoldersRenamer
5
2
  CustomError = Class.new(StandardError)
6
3
  class << self
@@ -1,3 +1,3 @@
1
1
  module FoldersRenamer
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,4 +1,9 @@
1
- require_relative "folders_renamer/version"
2
- require_relative "folders_renamer/folders_renamer"
3
- require_relative "folders_renamer/cli"
1
+ require "thor"
2
+ require "agile_utils"
3
+ require "fileutils"
4
+ require "pathname"
5
+ require "filename_cleaner"
6
+ require "folders_renamer/version"
7
+ require "folders_renamer/folders_renamer"
8
+ require "folders_renamer/cli"
4
9
  include FoldersRenamer
@@ -1,6 +1,4 @@
1
1
  require_relative "../../test_helper"
2
- require "minitest/filesystem"
3
- require "tmpdir"
4
2
  describe FoldersRenamer do
5
3
  before :each do
6
4
  @tmp_dir = Dir.mktmpdir(%w[foo bar])
data/test/test_helper.rb CHANGED
@@ -4,5 +4,7 @@ require "minitest/pride"
4
4
  require "minitest-spec-context"
5
5
  require "pry"
6
6
  require "awesome_print"
7
+ require "minitest/filesystem"
8
+ require "tmpdir"
7
9
  require_relative "../lib/folders_renamer"
8
10
  include FoldersRenamer
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: folders_renamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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: 2014-08-14 00:00:00.000000000 Z
12
+ date: 2014-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 0.2.2
37
+ version: 0.2.3
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 0.2.2
45
+ version: 0.2.3
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: filename_cleaner
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 0.4.3
53
+ version: 0.4.6
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.4.3
61
+ version: 0.4.6
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: awesome_print
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ dependencies:
82
82
  requirements:
83
83
  - - ~>
84
84
  - !ruby/object:Gem::Version
85
- version: 1.7.0
85
+ version: 1.7.3
86
86
  type: :development
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  requirements:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: 1.7.0
93
+ version: 1.7.3
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: gem-ctags
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,7 @@ dependencies:
146
146
  requirements:
147
147
  - - ~>
148
148
  - !ruby/object:Gem::Version
149
- version: 5.4.0
149
+ version: 5.4.2
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ dependencies:
154
154
  requirements:
155
155
  - - ~>
156
156
  - !ruby/object:Gem::Version
157
- version: 5.4.0
157
+ version: 5.4.2
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: minitest-spec-context
160
160
  requirement: !ruby/object:Gem::Requirement
@@ -226,7 +226,7 @@ dependencies:
226
226
  requirements:
227
227
  - - ~>
228
228
  - !ruby/object:Gem::Version
229
- version: 0.24.1
229
+ version: 0.26.1
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
@@ -234,7 +234,7 @@ dependencies:
234
234
  requirements:
235
235
  - - ~>
236
236
  - !ruby/object:Gem::Version
237
- version: 0.24.1
237
+ version: 0.26.1
238
238
  - !ruby/object:Gem::Dependency
239
239
  name: yard
240
240
  requirement: !ruby/object:Gem::Requirement