oktags 0.1.1 → 0.1.3

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
  SHA256:
3
- metadata.gz: e7c1bf8fa36aa3489c778e0b12a19d353ddfd05df9fc21ef1a86e9b207a094ee
4
- data.tar.gz: c9c873a9d5db3d4703544d95eb8f1bfa3b86903ba85dcd46ad4030766a1ad5da
3
+ metadata.gz: 3d6afa2948322c1f6e7bb548ad2bc4934b0e7882c9efb5d3d05c4b233f4a7889
4
+ data.tar.gz: 2e78e3447c5aad24b44adb7870d3f7cd21274e6a6330994b7c6e22fdc1b35f42
5
5
  SHA512:
6
- metadata.gz: 792329f1c8911835393d37e47b7f6c40f3f8ce8108ac38320178704f830be794a35cf1a6bb639006f6024543e89ed19ab144ad0fb64cbdd469c5986b19b1e9d5
7
- data.tar.gz: 49fc86f66ba0634bc4d3f7344f432a14aa67e270ea15158ccbc0cd716d8c452a4dd68125796db6ba8e4ebc4d11065e48cdb1fcb26d03735fdda136610e91ab05
6
+ metadata.gz: e420a42918e5415376ca79efaca92317670d30387e0ca6573f5b11d465022e17d676b8b95751051947580d87efe395640bfe79afa76211a9389104d0f9a9ec3e
7
+ data.tar.gz: e93c26b04c1d145a3db8584f63483a459a35aa2cb62f46b890901e0b1eaa887321f98ff146bb628ba68f3266982b79d85c183a129d7caddbd7e8b662941d5186
data/README.org CHANGED
@@ -30,9 +30,10 @@
30
30
  * DESCRIPTION
31
31
 
32
32
  =oktags= helps you organize your files by managing tags on them. It
33
- works by adding/removing at the end of the filename into a
34
- =--[tag1,tag2]= construct. The implementation is OS-agnostic, so it
35
- should work on Linux, macOS and Windows.
33
+ works by adding/removing at the end of the filename. Given a file
34
+ =cat.jpg=, when adding the tags =tag1= and =tag2=, the filename will
35
+ become =cat--[tag1,tag2].jpg=. The implementation is OS-agnostic, so
36
+ it should work on Linux, macOS and Windows.
36
37
 
37
38
  * EXAMPLES
38
39
 
data/Rakefile CHANGED
@@ -1,23 +1,23 @@
1
1
  require './lib/oktags'
2
2
  require './lib/ok/version'
3
3
 
4
- GEM_NAME = "oktags"
4
+ GEM_NAME = 'oktags'
5
5
  GEM_VERSION = OK::Tags::VERSION
6
6
 
7
- task :default => :build
7
+ task default: :build
8
8
 
9
9
  task :build do
10
- system "gem build " + GEM_NAME + ".gemspec"
10
+ system 'gem build ' + GEM_NAME + '.gemspec'
11
11
  end
12
12
 
13
- task :install => :build do
14
- system "gem install " + GEM_NAME + "-" + GEM_VERSION + ".gem"
13
+ task install: :build do
14
+ system 'gem install ' + GEM_NAME + '-' + GEM_VERSION + '.gem'
15
15
  end
16
16
 
17
- task :publish => :build do
18
- system 'gem push ' + GEM_NAME + "-" + GEM_VERSION + ".gem"
17
+ task publish: :build do
18
+ system 'gem push ' + GEM_NAME + '-' + GEM_VERSION + '.gem'
19
19
  end
20
20
 
21
21
  task :clean do
22
- system "rm *.gem"
22
+ system 'rm *.gem'
23
23
  end
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "oktags"
3
+ require 'bundler/setup'
4
+ require 'oktags'
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -10,5 +10,5 @@ require "oktags"
10
10
  # require "pry"
11
11
  # Pry.start
12
12
 
13
- require "irb"
13
+ require 'irb'
14
14
  IRB.start(__FILE__)
data/bin/oktags CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'oktags'
4
- OK::Tags::main
4
+ OK::Tags.main
@@ -52,7 +52,6 @@ module OK
52
52
  def filename_with_tags(file, tags)
53
53
  dirname = File.dirname(file)
54
54
  ext = File.extname(file)
55
-
56
55
  basename = File.basename(file, '.*')
57
56
  tag_part = basename.match(/--\[(.*)\]/)&.to_a&.at(0)
58
57
  basename = basename.gsub(tag_part, '') if tag_part
@@ -1,5 +1,5 @@
1
1
  module OK
2
2
  module Tags
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
@@ -1 +1 @@
1
- require File.expand_path(File.join(%w(.. ok tags)), __FILE__)
1
+ require File.expand_path(File.join(%w[.. ok tags]), __FILE__)
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.licenses = "AGPL-3.0-or-later"
9
9
 
10
10
  spec.summary = %q{Manage tags on plain old files.}
11
- spec.description = %q{oktags helps you organize your files by managing tags on them. It works by adding/removing tags at the end of the filename after a -- qualifier. The implementation is OS-agnostic, so it should work on Linux, macOS and Windows.}
11
+ spec.description = %q{oktags helps you organize your files by managing tags on them. It works by adding/removing at the end of the filename. Given a file 'cat.jpg', when adding the tags 'tag1' and 'tag2', the filename will become 'cat--[tag1,tag2].jpg'. The implementation is OS-agnostic, so it should work on Linux, macOS and Windows. }
12
12
  spec.homepage = "https://200ok.ch"
13
13
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oktags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alain M. Lafon
@@ -10,9 +10,10 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2020-10-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: oktags helps you organize your files by managing tags on them. It works
14
- by adding/removing tags at the end of the filename after a -- qualifier. The implementation
15
- is OS-agnostic, so it should work on Linux, macOS and Windows.
13
+ description: 'oktags helps you organize your files by managing tags on them. It works
14
+ by adding/removing at the end of the filename. Given a file ''cat.jpg'', when adding
15
+ the tags ''tag1'' and ''tag2'', the filename will become ''cat--[tag1,tag2].jpg''.
16
+ The implementation is OS-agnostic, so it should work on Linux, macOS and Windows. '
16
17
  email:
17
18
  - info@200ok.ch
18
19
  executables: