mp4_renamer 0.1.3 → 0.1.4

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: 4b2d83a264e78e6bfdc8271335e258b4b51a4dd2
4
- data.tar.gz: 09d48379ff14f82422283c1754d8aa201747325b
3
+ metadata.gz: 8b618a7de93d7d936dd5d645db543a1701a11ad1
4
+ data.tar.gz: ba6c42c9c2fcde6218f5170430d40bc436db5298
5
5
  SHA512:
6
- metadata.gz: b1673264497ba7318dc2d5c076e72121666f4cfa7006d81751add821718ebfaf5f972c6e90f4e297848dc64f0f157cdce61020a4210b8cacd50725ab803343d5
7
- data.tar.gz: 38e9c35e52f0ab7ae5697a1a0a2e8869fd2bdf7ec27998ad8a8921e808d4d95ffd42d441b4b99dfe99af2b1d7de2e9e21773c26327909251c6812f9ec5fa3673
6
+ metadata.gz: 97a7f73927d2e6e3d5ee8cae77ad9f3e87bdae3f2ed8f6c860be20f87903b7ce03683cf734cab7846ff5eea71d993d99aba7e7469ac7c579c6d8155029aa8b62
7
+ data.tar.gz: b9aeb7f9916ca86d6764a55872e2ccea716ac92d02c19f949759d6073e0f28aa516ad826359c8d462189c4594566eb1f4f984a1fda72876a8df68e2ecfb52b9f
data/CHANGELOGS.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ### Changelogs
2
2
 
3
+ #### 0.1.4
4
+
5
+ - Use `require` instead of `require_relative`
6
+ - Update gem's dependencies
7
+
3
8
  #### 0.1.3
4
9
 
5
10
  - Prevent the files from being rename more than once
data/Guardfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # More info at https://github.com/guard/guard#readme
2
2
  guard 'minitest' do
3
3
  watch(%r|^test/(.*)\/?test_(.*)\.rb|)
4
- watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
5
- watch(%r|^test/test_helper\.rb|) { "test" }
4
+ watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
5
+ watch(%r|^test/test_helper\.rb|) { "test" }
6
6
  end
data/bin/mp4_renamer CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require_relative '../lib/mp4_renamer'
3
- include Mp4Renamer
4
3
  if ARGV.empty?
5
4
  Mp4Renamer::CLI.start(%w[usage])
6
5
  else
data/lib/mp4_renamer.rb CHANGED
@@ -5,8 +5,7 @@ require 'thor'
5
5
  require 'fileutils'
6
6
  require 'mp4info'
7
7
  require 'code_lister'
8
-
9
- require_relative 'mp4_renamer/version'
10
- require_relative 'mp4_renamer/cli'
11
- require_relative 'mp4_renamer/renamer'
8
+ require 'mp4_renamer/version'
9
+ require 'mp4_renamer/cli'
10
+ require 'mp4_renamer/renamer'
12
11
  include Mp4Renamer
@@ -1,3 +1,3 @@
1
1
  module Mp4Renamer
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
data/mp4_renamer.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ['agilecreativity@gmail.com']
10
10
  spec.summary = %q{Simple gem to rename mp4 and m4a files by adding running time to the filename using embeded metadata}
11
11
  spec.description = %q{Rename the mp4 and m4a files by adding the running time to the end of the filename
12
- TL;DR; rename 'some_media_file.mp4' to 'media_file_12_34.mp4' if the running time is '12:34' minutes}
12
+ TL;DR rename 'media_file.mp4' to 'media_file_12_34.mp4' if the running time is '12:34' minutes}
13
13
  spec.homepage = 'https://github.com/agilecreativity/mp4_renamer'
14
14
  spec.required_ruby_version = ">= 1.9.3"
15
15
  spec.license = 'MIT'
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency 'activesupport-core-ext', '~> 4.0.0.2'
22
22
  spec.add_runtime_dependency 'thor', '~> 0.19.1'
23
23
  spec.add_runtime_dependency 'mp4info', '~> 1.7.3'
24
- spec.add_runtime_dependency 'code_lister', '~> 0.2.2'
24
+ spec.add_runtime_dependency 'code_lister', '~> 0.2.4'
25
25
 
26
26
  spec.add_development_dependency 'awesome_print', '~> 1.2.0'
27
27
  spec.add_development_dependency 'bundler', '~> 1.7.3'
@@ -30,9 +30,9 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'guard-minitest', '~> 2.3.1'
31
31
  spec.add_development_dependency 'minitest', '~> 5.4.0'
32
32
  spec.add_development_dependency 'minitest-spec-context', '~> 0.0.3'
33
- spec.add_development_dependency 'pry', '~> 0.10.0'
33
+ spec.add_development_dependency 'pry', '~> 0.10.1'
34
34
  spec.add_development_dependency 'pry-byebug', '~> 1.3.3' if RUBY_VERSION >= '2.0.0'
35
35
  spec.add_development_dependency 'rake', '~> 10.3.2'
36
- spec.add_development_dependency 'rubocop', '~> 0.24.0'
36
+ spec.add_development_dependency 'rubocop', '~> 0.26.0'
37
37
  spec.add_development_dependency 'yard', '~> 0.8.7'
38
38
  end
@@ -1,4 +1,3 @@
1
- require 'fileutils'
2
1
  module Mp4Renamer
3
2
  class FixtureHelper
4
3
  attr_reader :fixture_files,
data/test/test_helper.rb CHANGED
@@ -4,6 +4,7 @@ require 'minitest/pride'
4
4
  require 'minitest-spec-context'
5
5
  require 'pry'
6
6
  require 'awesome_print'
7
+ require 'fileutils'
7
8
  require_relative '../lib/mp4_renamer'
8
9
  require_relative './lib/mp4_renamer/fixture_helper'
9
10
  include Mp4Renamer
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mp4_renamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
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-09-24 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport-core-ext
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.2
61
+ version: 0.2.4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.2
68
+ version: 0.2.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: awesome_print
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.10.0
173
+ version: 0.10.1
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.10.0
180
+ version: 0.10.1
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: pry-byebug
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 0.24.0
215
+ version: 0.26.0
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 0.24.0
222
+ version: 0.26.0
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: yard
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -236,7 +236,7 @@ dependencies:
236
236
  version: 0.8.7
237
237
  description: |-
238
238
  Rename the mp4 and m4a files by adding the running time to the end of the filename
239
- TL;DR; rename 'some_media_file.mp4' to 'media_file_12_34.mp4' if the running time is '12:34' minutes
239
+ TL;DR rename 'media_file.mp4' to 'media_file_12_34.mp4' if the running time is '12:34' minutes
240
240
  email:
241
241
  - agilecreativity@gmail.com
242
242
  executables: