kmkr 0.0.1
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 +7 -0
- data/.gitignore +6 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +71 -0
- data/LICENSE.txt +8 -0
- data/README.md +46 -0
- data/README.rdoc +46 -0
- data/Rakefile +66 -0
- data/bin/kmkr +53 -0
- data/features/kmkr.feature +40 -0
- data/features/step_definitions/kmkr_steps.rb +27 -0
- data/features/support/env.rb +19 -0
- data/kmkr.gemspec +27 -0
- data/lib/kmkr/file_manager.rb +29 -0
- data/lib/kmkr/prefix_date.rb +11 -0
- data/lib/kmkr/version.rb +3 -0
- data/lib/kmkr.rb +7 -0
- data/spec/something_spec.rb +5 -0
- metadata +164 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 609885dbf900a83f2ce045a0022194cf160eb5aa
|
4
|
+
data.tar.gz: c075330efc8c9fe5d7762a105f769848f1502332
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ae94eef6cccf321d4c0a068310465b9e68c4a9a46ef97b65103807926354968a74428f8df2fda951b52ace1409918c35c56387c93db2bfcf0540722ccc2e6d49
|
7
|
+
data.tar.gz: 9f6853bc187b1df4929d37323fa06a0e9f1169e323b9d5883aac3bcd2dc7d8ab61358884a77d550675e8181938c60fc0b1694dddd353528e490f4a887302b606
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
kmkr (0.0.1)
|
5
|
+
methadone (~> 1.9.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
aruba (0.8.1)
|
11
|
+
childprocess (~> 0.5.6)
|
12
|
+
contracts (~> 0.9)
|
13
|
+
cucumber (>= 1.3.19)
|
14
|
+
rspec-expectations (>= 2.99)
|
15
|
+
builder (3.2.2)
|
16
|
+
childprocess (0.5.6)
|
17
|
+
ffi (~> 1.0, >= 1.0.11)
|
18
|
+
coderay (1.1.0)
|
19
|
+
contracts (0.10.1)
|
20
|
+
cucumber (2.0.2)
|
21
|
+
builder (>= 2.1.2)
|
22
|
+
cucumber-core (~> 1.2.0)
|
23
|
+
diff-lcs (>= 1.1.3)
|
24
|
+
gherkin (~> 2.12)
|
25
|
+
multi_json (>= 1.7.5, < 2.0)
|
26
|
+
multi_test (>= 0.1.2)
|
27
|
+
cucumber-core (1.2.0)
|
28
|
+
gherkin (~> 2.12.0)
|
29
|
+
diff-lcs (1.2.5)
|
30
|
+
ffi (1.9.10)
|
31
|
+
gherkin (2.12.2)
|
32
|
+
multi_json (~> 1.3)
|
33
|
+
json (1.8.3)
|
34
|
+
methadone (1.9.1)
|
35
|
+
bundler
|
36
|
+
method_source (0.8.2)
|
37
|
+
multi_json (1.11.2)
|
38
|
+
multi_test (0.1.2)
|
39
|
+
pry (0.10.1)
|
40
|
+
coderay (~> 1.1.0)
|
41
|
+
method_source (~> 0.8.1)
|
42
|
+
slop (~> 3.4)
|
43
|
+
rake (10.4.2)
|
44
|
+
rdoc (4.2.0)
|
45
|
+
json (~> 1.4)
|
46
|
+
rspec (3.2.0)
|
47
|
+
rspec-core (~> 3.2.0)
|
48
|
+
rspec-expectations (~> 3.2.0)
|
49
|
+
rspec-mocks (~> 3.2.0)
|
50
|
+
rspec-core (3.2.0)
|
51
|
+
rspec-support (~> 3.2.0)
|
52
|
+
rspec-expectations (3.2.0)
|
53
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
+
rspec-support (~> 3.2.0)
|
55
|
+
rspec-mocks (3.2.0)
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
+
rspec-support (~> 3.2.0)
|
58
|
+
rspec-support (3.2.1)
|
59
|
+
slop (3.6.0)
|
60
|
+
|
61
|
+
PLATFORMS
|
62
|
+
ruby
|
63
|
+
|
64
|
+
DEPENDENCIES
|
65
|
+
aruba
|
66
|
+
bundler (~> 1.6)
|
67
|
+
kmkr!
|
68
|
+
pry
|
69
|
+
rake
|
70
|
+
rdoc
|
71
|
+
rspec (~> 3)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
Name: kmkr
|
2
|
+
Copyright (c) 2015 Mário Nzualo
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
5
|
+
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# kmkr
|
2
|
+
kmkr is a CLI to create files prefixed by date (e.g. `20151031.md`). It supports creating files with any file extension,
|
3
|
+
date format and a suffix.
|
4
|
+
|
5
|
+
## Why
|
6
|
+
Because I create notes files everyday with a date prefix and I got tired of manually typing the date myself.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
$ gem install kmkr
|
11
|
+
|
12
|
+
## Usage
|
13
|
+
Specify the extension of the file as an argument.
|
14
|
+
|
15
|
+
```bash
|
16
|
+
$ kmkr <extension>
|
17
|
+
```
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
```bash
|
21
|
+
# Create an .md file with today's date (e.g. 31-10-2015.md)
|
22
|
+
$ kmkr md
|
23
|
+
|
24
|
+
# Create a .rb file with a different date format (e.g. 20151031.rb)
|
25
|
+
$ kmkr rb -f %Y%m%d
|
26
|
+
|
27
|
+
# Create a .rb file with a suffix (e.g. 31-10-2015_that_thing.rb)
|
28
|
+
$ kmkr rb -s _that_thing
|
29
|
+
```
|
30
|
+
### Options
|
31
|
+
`-f`, `--date-format`
|
32
|
+
|
33
|
+
Use a different date format for the filename prefixes. The format directives used are the ones for [Ruby's strftime method](http://ruby-doc.org/core-2.2.2/Time.html#method-i-strftime).
|
34
|
+
|
35
|
+
`-d`, `--directory`
|
36
|
+
|
37
|
+
Set the location where the file should be saved.
|
38
|
+
|
39
|
+
`-s`, `--suffix`
|
40
|
+
|
41
|
+
Add a suffix to the filename
|
42
|
+
|
43
|
+
You can always get more details using `kmkr -h`.
|
44
|
+
|
45
|
+
## License
|
46
|
+
MIT (c) Mário Nzualo
|
data/README.rdoc
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
= kmkr - CLI to create files prefixed by date
|
2
|
+
|
3
|
+
Author:: Mário Nzualo (mailto:mario.nzualo at g mail dot com)
|
4
|
+
Copyright:: Copyright (c) 2015 Mário Nzualo
|
5
|
+
|
6
|
+
License:: mit, see LICENSE.txt
|
7
|
+
|
8
|
+
kmkr is a CLI to create files prefixed by date (e.g. `20151031.md`). It supports creating files with any file extension,
|
9
|
+
date format and a suffix.
|
10
|
+
|
11
|
+
== Why
|
12
|
+
Because I create notes files everyday with a date prefix and I got tired of manually typing the date myself.
|
13
|
+
|
14
|
+
== Links
|
15
|
+
|
16
|
+
* {Source on Github}[https://github.com/marionzualo/kmkr]
|
17
|
+
* RDoc[LINK TO RDOC.INFO]
|
18
|
+
|
19
|
+
== Install
|
20
|
+
$ gem install kmkr
|
21
|
+
|
22
|
+
== Examples
|
23
|
+
|
24
|
+
# Create an .md file with today's date (e.g. 31-10-2015.md)
|
25
|
+
$ kmkr md
|
26
|
+
|
27
|
+
# Create a .rb file with a different date format (e.g. 20151031.rb)
|
28
|
+
$ kmkr rb -f %Y%m%d
|
29
|
+
|
30
|
+
# Create a .rb file with a suffix (e.g. 31-10-2015_that_thing.rb)
|
31
|
+
$ kmkr rb -s _that_thing
|
32
|
+
|
33
|
+
== Options
|
34
|
+
`-f`, `--date-format`
|
35
|
+
|
36
|
+
Use a different date format for the filename prefixes. The format directives used are the ones for [Ruby's strftime method](http://ruby-doc.org/core-2.2.2/Time.html#method-i-strftime).
|
37
|
+
|
38
|
+
`-d`, `--directory`
|
39
|
+
|
40
|
+
Set the location where the file should be saved.
|
41
|
+
|
42
|
+
`-s`, `--suffix`
|
43
|
+
|
44
|
+
Add a suffix to the filename
|
45
|
+
|
46
|
+
You can always get more details using `kmkr -h`.
|
data/Rakefile
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
def dump_load_path
|
2
|
+
puts $LOAD_PATH.join("\n")
|
3
|
+
found = nil
|
4
|
+
$LOAD_PATH.each do |path|
|
5
|
+
if File.exists?(File.join(path,"rspec"))
|
6
|
+
puts "Found rspec in #{path}"
|
7
|
+
if File.exists?(File.join(path,"rspec","core"))
|
8
|
+
puts "Found core"
|
9
|
+
if File.exists?(File.join(path,"rspec","core","rake_task"))
|
10
|
+
puts "Found rake_task"
|
11
|
+
found = path
|
12
|
+
else
|
13
|
+
puts "!! no rake_task"
|
14
|
+
end
|
15
|
+
else
|
16
|
+
puts "!!! no core"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
if found.nil?
|
21
|
+
puts "Didn't find rspec/core/rake_task anywhere"
|
22
|
+
else
|
23
|
+
puts "Found in #{path}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
require 'bundler'
|
27
|
+
require 'rake/clean'
|
28
|
+
|
29
|
+
begin
|
30
|
+
require 'rspec/core/rake_task'
|
31
|
+
rescue LoadError
|
32
|
+
dump_load_path
|
33
|
+
raise
|
34
|
+
end
|
35
|
+
|
36
|
+
require 'cucumber'
|
37
|
+
require 'cucumber/rake/task'
|
38
|
+
gem 'rdoc' # we need the installed RDoc gem, not the system one
|
39
|
+
require 'rdoc/task'
|
40
|
+
|
41
|
+
include Rake::DSL
|
42
|
+
|
43
|
+
Bundler::GemHelper.install_tasks
|
44
|
+
|
45
|
+
|
46
|
+
RSpec::Core::RakeTask.new do |t|
|
47
|
+
# Put spec opts in a file named .rspec in root
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
CUKE_RESULTS = 'results.html'
|
52
|
+
CLEAN << CUKE_RESULTS
|
53
|
+
Cucumber::Rake::Task.new(:features) do |t|
|
54
|
+
t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
|
55
|
+
t.fork = false
|
56
|
+
end
|
57
|
+
|
58
|
+
Rake::RDocTask.new do |rd|
|
59
|
+
|
60
|
+
rd.main = "README.rdoc"
|
61
|
+
|
62
|
+
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
|
63
|
+
end
|
64
|
+
|
65
|
+
task :default => [:spec,:features]
|
66
|
+
|
data/bin/kmkr
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'optparse'
|
4
|
+
require 'methadone'
|
5
|
+
require 'kmkr.rb'
|
6
|
+
require 'pry'
|
7
|
+
|
8
|
+
class App
|
9
|
+
include Methadone::Main
|
10
|
+
include Methadone::CLILogging
|
11
|
+
|
12
|
+
main do |extension|
|
13
|
+
prefix = Kmkr::PrefixDate.new(options[:f]).to_s
|
14
|
+
Kmkr::FileManager.new(prefix, extension, options[:directory], options[:suffix]).create_file
|
15
|
+
|
16
|
+
debug("directory: #{options[:directory]}")
|
17
|
+
debug("date format: #{options[:f]}")
|
18
|
+
debug("prefix: #{prefix}")
|
19
|
+
debug("suffix: #{options[:suffix]}")
|
20
|
+
end
|
21
|
+
|
22
|
+
# supplemental methods here
|
23
|
+
|
24
|
+
# Declare command-line interface here
|
25
|
+
|
26
|
+
description 'Creates files with names prefixed by date'
|
27
|
+
|
28
|
+
# Accept flags via:
|
29
|
+
# on("--flag VAL","Some flag")
|
30
|
+
# options[flag] will contain VAL
|
31
|
+
#
|
32
|
+
# Specify switches via:
|
33
|
+
# on("--[no-]switch","Some switch")
|
34
|
+
#
|
35
|
+
# Or, just call OptionParser methods on opts
|
36
|
+
#
|
37
|
+
options[:directory] = Dir.pwd
|
38
|
+
options[:f] = '%d-%m-%Y'
|
39
|
+
options[:suffix] = ""
|
40
|
+
on('-d DIR', '--directory', 'Set the location where the file should be saved')
|
41
|
+
on('-f DATEFORMAT', '--date-format', 'Use a different date format for the filename prefixes')
|
42
|
+
on('-s SUFFIX', '--suffix', 'Add a suffix to the filename')
|
43
|
+
arg :extension, 'Extension of the file to create'
|
44
|
+
|
45
|
+
# # Make an argument optional
|
46
|
+
# arg :optional_arg, :optional
|
47
|
+
|
48
|
+
version Kmkr::VERSION
|
49
|
+
|
50
|
+
use_log_level_option :toggle_debug_on_signal => 'USR1'
|
51
|
+
|
52
|
+
go!
|
53
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
Feature: Create files with a date prefix
|
2
|
+
In order to document things done on a certain day
|
3
|
+
I want a one command way of creating date prefixed files
|
4
|
+
So I don't have to do it myself
|
5
|
+
|
6
|
+
Scenario: Basic UI
|
7
|
+
When I get help for "kmkr"
|
8
|
+
Then the exit status should be 0
|
9
|
+
And the banner should be present
|
10
|
+
And there should be a one line summary of what the app does
|
11
|
+
And the banner should document that this app takes options
|
12
|
+
And the following options should be documented:
|
13
|
+
|--version |
|
14
|
+
|--directory |
|
15
|
+
|--date-format|
|
16
|
+
|--suffix |
|
17
|
+
And the banner should document that this app's arguments are:
|
18
|
+
|extension|which is required|
|
19
|
+
|
20
|
+
Scenario: Create an .md file with today's date
|
21
|
+
When I successfully run `kmkr md`
|
22
|
+
Then a file with a "md" extension and today's date should exist
|
23
|
+
|
24
|
+
Scenario: Do not overwrite file if it already exists
|
25
|
+
Given a file with a "md" extension and today's date exists with content "ola"
|
26
|
+
When I successfully run `kmkr md`
|
27
|
+
Then a file with a "md" extension and today's date should exist
|
28
|
+
And the file with a "md" extension and today's date sould have content "ola"
|
29
|
+
|
30
|
+
Scenario: Create file in specified directry
|
31
|
+
When I successfully run `kmkr md -d that_dir`
|
32
|
+
Then a file with a "md" extension and today's date should exist within "that_dir"
|
33
|
+
|
34
|
+
Scenario: Create a file with today's date and a specified date format
|
35
|
+
When I successfully run `kmkr md -f %Y%m%d`
|
36
|
+
Then a file with a "md" extension and today's date with format "%Y%m%d" should exist
|
37
|
+
|
38
|
+
Scenario: Create a file with a suffix
|
39
|
+
When I successfully run `kmkr md -s _that_thing`
|
40
|
+
Then a file with a "md" extension and today's date with suffix "_that_thing" should exist
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Then(/^a file with a "([^"]*)" extension and today's date(?: with format "([^"]*)")?(?: with suffix "([^"]*)")? should exist(?: within "([^"]*)")?/) do |extension, date_format, suffix, directory|
|
2
|
+
step "the file named \"#{filename(extension, date_format || "%d-%m-%Y", suffix || "", directory)}\" should exist"
|
3
|
+
end
|
4
|
+
|
5
|
+
Given(/^a file with a "([^"]*)" extension and today's date exists with content "([^"]*)"$/) do |extension, content|
|
6
|
+
steps %Q{
|
7
|
+
Given a file named "#{filename(extension)}" with:
|
8
|
+
"""
|
9
|
+
#{content}
|
10
|
+
"""
|
11
|
+
}
|
12
|
+
end
|
13
|
+
|
14
|
+
Then(/^the file with a "([^"]*)" extension and today's date sould have content "([^"]*)"$/) do |extension, content|
|
15
|
+
step "the file \"#{filename(extension)}\" should contain \"#{content}\""
|
16
|
+
end
|
17
|
+
|
18
|
+
def filename(extension, date_format = '%d-%m-%Y', suffix = '', directory = nil)
|
19
|
+
today = Date.today.strftime(date_format)
|
20
|
+
filename = "#{today}#{suffix}.#{extension}"
|
21
|
+
|
22
|
+
if directory
|
23
|
+
filename.prepend("#{directory}/")
|
24
|
+
else
|
25
|
+
filename
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'aruba/cucumber'
|
2
|
+
require 'methadone/cucumber'
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
|
6
|
+
LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','lib')
|
7
|
+
|
8
|
+
Before do
|
9
|
+
# Using "announce" causes massive warnings on 1.9.2
|
10
|
+
@puts = true
|
11
|
+
@original_rubylib = ENV['RUBYLIB']
|
12
|
+
ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
|
13
|
+
|
14
|
+
FileUtils.rm_rf(Dir.glob('tmp/aruba/*'))
|
15
|
+
end
|
16
|
+
|
17
|
+
After do
|
18
|
+
ENV['RUBYLIB'] = @original_rubylib
|
19
|
+
end
|
data/kmkr.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'kmkr/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "kmkr"
|
8
|
+
spec.version = Kmkr::VERSION
|
9
|
+
spec.authors = ["Mário Nzualo"]
|
10
|
+
spec.email = ["mario.nzualo@gmail.com"]
|
11
|
+
spec.summary = %q{CLI to create files prefixed by date}
|
12
|
+
spec.homepage = "https://github.com/marionzualo/kmkr"
|
13
|
+
spec.license = "mit"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
spec.add_development_dependency('rdoc')
|
23
|
+
spec.add_development_dependency('aruba')
|
24
|
+
spec.add_development_dependency('pry')
|
25
|
+
spec.add_dependency('methadone', '~> 1.9.1')
|
26
|
+
spec.add_development_dependency('rspec', '~> 3')
|
27
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Kmkr
|
2
|
+
class FileManager
|
3
|
+
attr_reader :current_dir
|
4
|
+
|
5
|
+
def initialize(prefix, extension, current_dir = Dir.pwd, suffix = "")
|
6
|
+
@current_dir = current_dir
|
7
|
+
@prefix = prefix
|
8
|
+
@extension = extension
|
9
|
+
@suffix = suffix
|
10
|
+
end
|
11
|
+
|
12
|
+
def create_file
|
13
|
+
create_directory unless File.exist?(current_dir)
|
14
|
+
File.new(filename, 'w').close unless File.exist?(filename)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
attr_reader :prefix, :extension, :suffix
|
20
|
+
|
21
|
+
def filename
|
22
|
+
filename = "#{current_dir}/#{prefix}#{suffix}.#{extension}"
|
23
|
+
end
|
24
|
+
|
25
|
+
def create_directory
|
26
|
+
FileUtils.mkdir_p(current_dir)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/lib/kmkr/version.rb
ADDED
data/lib/kmkr.rb
ADDED
metadata
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kmkr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mário Nzualo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rdoc
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: aruba
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: methadone
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.9.1
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.9.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3'
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- mario.nzualo@gmail.com
|
114
|
+
executables:
|
115
|
+
- kmkr
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- Gemfile
|
121
|
+
- Gemfile.lock
|
122
|
+
- LICENSE.txt
|
123
|
+
- README.md
|
124
|
+
- README.rdoc
|
125
|
+
- Rakefile
|
126
|
+
- bin/kmkr
|
127
|
+
- features/kmkr.feature
|
128
|
+
- features/step_definitions/kmkr_steps.rb
|
129
|
+
- features/support/env.rb
|
130
|
+
- kmkr.gemspec
|
131
|
+
- lib/kmkr.rb
|
132
|
+
- lib/kmkr/file_manager.rb
|
133
|
+
- lib/kmkr/prefix_date.rb
|
134
|
+
- lib/kmkr/version.rb
|
135
|
+
- spec/something_spec.rb
|
136
|
+
homepage: https://github.com/marionzualo/kmkr
|
137
|
+
licenses:
|
138
|
+
- mit
|
139
|
+
metadata: {}
|
140
|
+
post_install_message:
|
141
|
+
rdoc_options: []
|
142
|
+
require_paths:
|
143
|
+
- lib
|
144
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
requirements: []
|
155
|
+
rubyforge_project:
|
156
|
+
rubygems_version: 2.4.5
|
157
|
+
signing_key:
|
158
|
+
specification_version: 4
|
159
|
+
summary: CLI to create files prefixed by date
|
160
|
+
test_files:
|
161
|
+
- features/kmkr.feature
|
162
|
+
- features/step_definitions/kmkr_steps.rb
|
163
|
+
- features/support/env.rb
|
164
|
+
- spec/something_spec.rb
|