mediasort 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +44 -40
- data/README.md +15 -8
- data/lib/mediasort.rb +0 -6
- data/mediasort.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0a741967a53351801fa9cb51387e9dc53d61433c1384705f3977ea50f606498b
|
4
|
+
data.tar.gz: 452d8a9efa6d9b139ef71413e5786fc851e3a5478cf5fa40b0799aa077839d33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8b058e21e3b10a550bc74b265bcd83d9beac16444cd66cb9ea5ceda8142f5e976f00edb07c6373d770f0b89150b7c78971d38b24b88d15fb1cbbe4f907a4b1f
|
7
|
+
data.tar.gz: c4c15a3017eb65b7a901ad5ccf3790d090c44a3db2bb379309218c8accf5380083b39b1d653a6e899c578772a8427df9f190fc77f5c29da09030363722ce4e18
|
data/Gemfile.lock
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (
|
5
|
-
|
6
|
-
|
4
|
+
activesupport (5.2.0)
|
5
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
6
|
+
i18n (>= 0.7, < 2)
|
7
7
|
minitest (~> 5.1)
|
8
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
9
8
|
tzinfo (~> 1.1)
|
10
|
-
addressable (2.
|
11
|
-
|
9
|
+
addressable (2.5.2)
|
10
|
+
public_suffix (>= 2.0.2, < 4.0)
|
11
|
+
builder (3.2.3)
|
12
|
+
concurrent-ruby (1.0.5)
|
12
13
|
descendants_tracker (0.0.4)
|
13
14
|
thread_safe (~> 0.3, >= 0.3.1)
|
14
|
-
docile (1.
|
15
|
-
faraday (0.
|
15
|
+
docile (1.3.0)
|
16
|
+
faraday (0.12.2)
|
16
17
|
multipart-post (>= 1.2, < 3)
|
17
|
-
git (1.
|
18
|
-
github_api (0.
|
19
|
-
addressable (~> 2.
|
18
|
+
git (1.3.0)
|
19
|
+
github_api (0.18.2)
|
20
|
+
addressable (~> 2.4)
|
20
21
|
descendants_tracker (~> 0.0.4)
|
21
|
-
faraday (~> 0.8
|
22
|
-
hashie (>= 3.
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
i18n (0.7.0)
|
22
|
+
faraday (~> 0.8)
|
23
|
+
hashie (~> 3.5, >= 3.5.2)
|
24
|
+
oauth2 (~> 1.0)
|
25
|
+
hashie (3.5.7)
|
26
|
+
highline (1.7.10)
|
27
|
+
i18n (1.0.0)
|
28
|
+
concurrent-ruby (~> 1.0)
|
29
29
|
jeweler (2.0.1)
|
30
30
|
builder
|
31
31
|
bundler (>= 1.0)
|
@@ -35,38 +35,39 @@ GEM
|
|
35
35
|
nokogiri (>= 1.5.10)
|
36
36
|
rake
|
37
37
|
rdoc
|
38
|
-
json (1.8.
|
39
|
-
jwt (1.
|
40
|
-
|
41
|
-
minitest (5.
|
42
|
-
multi_json (1.
|
43
|
-
multi_xml (0.
|
38
|
+
json (1.8.6)
|
39
|
+
jwt (1.5.6)
|
40
|
+
mini_portile2 (2.3.0)
|
41
|
+
minitest (5.11.3)
|
42
|
+
multi_json (1.13.1)
|
43
|
+
multi_xml (0.6.0)
|
44
44
|
multipart-post (2.0.0)
|
45
|
-
nokogiri (1.
|
46
|
-
|
47
|
-
oauth2 (1.
|
48
|
-
faraday (>= 0.8, < 0.
|
45
|
+
nokogiri (1.8.2)
|
46
|
+
mini_portile2 (~> 2.3.0)
|
47
|
+
oauth2 (1.4.0)
|
48
|
+
faraday (>= 0.8, < 0.13)
|
49
49
|
jwt (~> 1.0)
|
50
50
|
multi_json (~> 1.3)
|
51
51
|
multi_xml (~> 0.5)
|
52
|
-
rack (
|
53
|
-
|
54
|
-
|
52
|
+
rack (>= 1.2, < 3)
|
53
|
+
public_suffix (3.0.2)
|
54
|
+
rack (2.0.4)
|
55
|
+
rake (12.3.1)
|
55
56
|
rdoc (3.12.2)
|
56
57
|
json (~> 1.4)
|
57
58
|
shoulda (3.5.0)
|
58
59
|
shoulda-context (~> 1.0, >= 1.0.1)
|
59
60
|
shoulda-matchers (>= 1.4.1, < 3.0)
|
60
|
-
shoulda-context (1.2.
|
61
|
+
shoulda-context (1.2.2)
|
61
62
|
shoulda-matchers (2.8.0)
|
62
63
|
activesupport (>= 3.0.0)
|
63
|
-
simplecov (0.
|
64
|
-
docile (~> 1.1
|
65
|
-
|
66
|
-
simplecov-html (~> 0.
|
67
|
-
simplecov-html (0.
|
68
|
-
thread_safe (0.3.
|
69
|
-
tzinfo (1.2.
|
64
|
+
simplecov (0.16.1)
|
65
|
+
docile (~> 1.1)
|
66
|
+
json (>= 1.8, < 3)
|
67
|
+
simplecov-html (~> 0.10.0)
|
68
|
+
simplecov-html (0.10.2)
|
69
|
+
thread_safe (0.3.6)
|
70
|
+
tzinfo (1.2.5)
|
70
71
|
thread_safe (~> 0.1)
|
71
72
|
|
72
73
|
PLATFORMS
|
@@ -78,3 +79,6 @@ DEPENDENCIES
|
|
78
79
|
rdoc (~> 3.12)
|
79
80
|
shoulda
|
80
81
|
simplecov
|
82
|
+
|
83
|
+
BUNDLED WITH
|
84
|
+
1.16.1
|
data/README.md
CHANGED
@@ -11,7 +11,20 @@ DSC0001.JPG was taken on March 14th, 2015, the script would sort it into a direc
|
|
11
11
|
`2015/03/2015-03-14/DSC0001.JPG`
|
12
12
|
*`<YEAR>/<MONTH>/<FULL-DATE>/<FILENAME>`*
|
13
13
|
|
14
|
-
###
|
14
|
+
### Installation:
|
15
|
+
|
16
|
+
*This script requires exiftool but has no other dependencies besides standard libraries.*
|
17
|
+
|
18
|
+
Use brew to install exiftool:
|
19
|
+
|
20
|
+
brew install exiftool
|
21
|
+
|
22
|
+
Install the gem:
|
23
|
+
|
24
|
+
gem install mediasort
|
25
|
+
|
26
|
+
|
27
|
+
### Usage:
|
15
28
|
|
16
29
|
#### *Required Arguments*
|
17
30
|
|
@@ -28,13 +41,7 @@ DSC0001.JPG was taken on March 14th, 2015, the script would sort it into a direc
|
|
28
41
|
|
29
42
|
## Contributing to mediasort
|
30
43
|
|
31
|
-
*
|
32
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
33
|
-
* Fork the project.
|
34
|
-
* Start a feature/bugfix branch.
|
35
|
-
* Commit and push until you are happy with your contribution.
|
36
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
37
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
44
|
+
* Send me a pull request.
|
38
45
|
|
39
46
|
### Copyright
|
40
47
|
|
data/lib/mediasort.rb
CHANGED
@@ -2,7 +2,6 @@ require 'json'
|
|
2
2
|
require 'time'
|
3
3
|
|
4
4
|
class Mediasort
|
5
|
-
|
6
5
|
attr_accessor :options
|
7
6
|
|
8
7
|
def initialize(options)
|
@@ -19,7 +18,6 @@ class Mediasort
|
|
19
18
|
end
|
20
19
|
|
21
20
|
def check_options
|
22
|
-
|
23
21
|
# Optional Arguments
|
24
22
|
options[:verbose] = false if options[:verbose].nil?
|
25
23
|
options[:progress] = true if options[:progress].nil?
|
@@ -36,7 +34,6 @@ class Mediasort
|
|
36
34
|
if !options[:output]
|
37
35
|
puts "Missing output argument!"
|
38
36
|
end
|
39
|
-
|
40
37
|
end
|
41
38
|
|
42
39
|
def parse_json(d)
|
@@ -44,7 +41,6 @@ class Mediasort
|
|
44
41
|
end
|
45
42
|
|
46
43
|
def work
|
47
|
-
|
48
44
|
check_options
|
49
45
|
clean_paths
|
50
46
|
|
@@ -87,7 +83,5 @@ class Mediasort
|
|
87
83
|
end
|
88
84
|
|
89
85
|
end
|
90
|
-
|
91
86
|
end
|
92
|
-
|
93
87
|
end
|
data/mediasort.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediasort
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Petty
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.7.6
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Tidy up directory of media files
|