media_archiver 0.0.1 → 0.0.2

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: 6e2678c58e445dc29cc0efacce29ab8933db62a4
4
- data.tar.gz: 3f14976c863bbb273f36f8dac3c404f582eabd48
3
+ metadata.gz: 6bf98fe1a230a8739e15d6ce7e0e6ba85c26dc4e
4
+ data.tar.gz: bc59949f9ffd0c88dd9a08825dd2afe3cac40454
5
5
  SHA512:
6
- metadata.gz: c62247e57518b50435f5b7c6a521d36077674f461479c7ad99cf9d9e6e62d2d28e483bd9f04d7943912b5ddb2d6d00f59284c4e8d0ca2ae2673f78e6141a60eb
7
- data.tar.gz: 3320facf61372ed416dcea03522101f02469a9bc7ddeda0f96113cb48c74afd36571f869a38299a34c9998c701fe5b4b8b1d673629c46b05418d1c01f0dde5ff
6
+ metadata.gz: 6ed3b3659ea11f12738acd1c2801976ecc0ac882b92db292467a05adacb2f886de3886fe519a6671e3338e8415df5c6296ae7240accc4eab64384e6b5aa9df13
7
+ data.tar.gz: d70c26ba63bc1f9a1239d604766c1bea4da6637705ae59395a89a28e22b4c4cbe4859736c7e3623900d33e9217ca06678a278563a60ac4f78342ba2f4bcbbaff
data/README.md CHANGED
@@ -1,6 +1,11 @@
1
+ [![Gem Version](https://badge.fury.io/rb/media_archiver.svg)](http://badge.fury.io/rb/media_archiver)
2
+
1
3
  # MediaArchiver
2
4
 
3
- TODO: Write a gem description
5
+ Utility that scans a given location for media files and,
6
+ based on Exif information and a set of rules copies the files over to
7
+ another location.
8
+
4
9
 
5
10
  ## Installation
6
11
 
@@ -20,7 +25,14 @@ Or install it yourself as:
20
25
 
21
26
  ## Usage
22
27
 
23
- TODO: Write usage instructions here
28
+ run `media_archiver` from the command line
29
+
30
+ ```
31
+ Commands:
32
+ media_archiver copy [DIR] [OUTPUT_DIR] # Scans a folder and archives media files
33
+ media_archiver help [COMMAND] # Describe available commands or one specific command
34
+ media_archiver scan [PATH] # Scans a folder for media files and returns info
35
+ ```
24
36
 
25
37
  ## Contributing
26
38
 
@@ -5,21 +5,6 @@ require 'yaml'
5
5
 
6
6
  module MediaArchiver
7
7
  class CLI < Thor
8
- option :output_dir, aliases: :o, default: Dir.pwd
9
- option :recursive, aliases: :r, type: :boolean, default: true
10
- option :output_template, default: ':date_created/:camera_maker/:camera_model'
11
- option :configuration_file, aliases: :c
12
- desc 'scan [PATH]', 'Scans a folder for media files and returns info'
13
- def scan(path = Dir.pwd)
14
- config = configurations(options)
15
-
16
- path = File.expand_path(path)
17
-
18
- MediaFileUtils.new(path).each(config[:recursive]) do |file|
19
- puts output_path(file, config[:output_dir], config[:output_template])
20
- end
21
- end
22
-
23
8
  desc 'copy [DIR] [OUTPUT_DIR]', 'Scans a folder and archives media files'
24
9
  option :output_dir, aliases: :o
25
10
  option :recursive, aliases: :r, type: :boolean, default: true
@@ -1,3 +1,3 @@
1
1
  module MediaArchiver
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: media_archiver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ramalho