where_to_cli 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -0
- data/README.rdoc +6 -0
- data/Rakefile +44 -0
- data/bin/where_to_cli +43 -0
- data/features/step_definitions/where_to_cli_steps.rb +6 -0
- data/features/support/env.rb +15 -0
- data/features/where_to_cli.feature +8 -0
- data/lib/where_to_cli.rb +5 -0
- data/lib/where_to_cli/version.rb +3 -0
- data/test/default_test.rb +14 -0
- data/test/test_helper.rb +9 -0
- data/where_to_cli.gemspec +27 -0
- data/where_to_cli.rdoc +5 -0
- metadata +160 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 87ffd316829bbe8b379388adceba3a1f46d1dd6e
|
4
|
+
data.tar.gz: 14efed0b446d1d562664a806d786ca14dea236a5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e5aa1b6135e8b1b86da973a4b70d74e961e07b3600505a5baa211e9eda251e426c8cd588c09ffcbc94c550ca20184e35f36dbad1488bb25f7e6346b16cc62c7f
|
7
|
+
data.tar.gz: 56500b8d3264c149c2c81f76be827c9fceb9b70135407073d5ab5bfca486915c166507979b05770227a09d90c167adb232033659387e0d085b90197a9cf2b717
|
data/Gemfile
ADDED
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'rake/clean'
|
2
|
+
require 'rubygems'
|
3
|
+
require 'rubygems/package_task'
|
4
|
+
require 'rdoc/task'
|
5
|
+
require 'cucumber'
|
6
|
+
require 'cucumber/rake/task'
|
7
|
+
Rake::RDocTask.new do |rd|
|
8
|
+
rd.main = "README.rdoc"
|
9
|
+
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
|
10
|
+
rd.title = 'Your application title'
|
11
|
+
end
|
12
|
+
|
13
|
+
spec = eval(File.read('where_to_cli.gemspec'))
|
14
|
+
|
15
|
+
Gem::PackageTask.new(spec) do |pkg|
|
16
|
+
end
|
17
|
+
CUKE_RESULTS = 'results.html'
|
18
|
+
CLEAN << CUKE_RESULTS
|
19
|
+
desc 'Run features'
|
20
|
+
Cucumber::Rake::Task.new(:features) do |t|
|
21
|
+
opts = "features --format html -o #{CUKE_RESULTS} --format progress -x"
|
22
|
+
opts += " --tags #{ENV['TAGS']}" if ENV['TAGS']
|
23
|
+
t.cucumber_opts = opts
|
24
|
+
t.fork = false
|
25
|
+
end
|
26
|
+
|
27
|
+
desc 'Run features tagged as work-in-progress (@wip)'
|
28
|
+
Cucumber::Rake::Task.new('features:wip') do |t|
|
29
|
+
tag_opts = ' --tags ~@pending'
|
30
|
+
tag_opts = ' --tags @wip'
|
31
|
+
t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}"
|
32
|
+
t.fork = false
|
33
|
+
end
|
34
|
+
|
35
|
+
task :cucumber => :features
|
36
|
+
task 'cucumber:wip' => 'features:wip'
|
37
|
+
task :wip => 'features:wip'
|
38
|
+
require 'rake/testtask'
|
39
|
+
Rake::TestTask.new do |t|
|
40
|
+
t.libs << "test"
|
41
|
+
t.test_files = FileList['test/*_test.rb']
|
42
|
+
end
|
43
|
+
|
44
|
+
task :default => [:test,:features]
|
data/bin/where_to_cli
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'gli'
|
3
|
+
require 'where_to_cli'
|
4
|
+
|
5
|
+
include GLI::App
|
6
|
+
|
7
|
+
program_desc 'Describe your application here'
|
8
|
+
|
9
|
+
version WhereToCli::VERSION
|
10
|
+
|
11
|
+
subcommand_option_handling :normal
|
12
|
+
arguments :strict
|
13
|
+
|
14
|
+
desc 'Describe some switch here'
|
15
|
+
switch [:s,:switch]
|
16
|
+
|
17
|
+
desc 'Describe some flag here'
|
18
|
+
default_value 'the default'
|
19
|
+
arg_name 'The name of the argument'
|
20
|
+
flag [:f,:flagname]
|
21
|
+
|
22
|
+
pre do |global,command,options,args|
|
23
|
+
# Pre logic here
|
24
|
+
# Return true to proceed; false to abort and not call the
|
25
|
+
# chosen command
|
26
|
+
# Use skips_pre before a command to skip this block
|
27
|
+
# on that command only
|
28
|
+
true
|
29
|
+
end
|
30
|
+
|
31
|
+
post do |global,command,options,args|
|
32
|
+
# Post logic here
|
33
|
+
# Use skips_post before a command to skip this
|
34
|
+
# block on that command only
|
35
|
+
end
|
36
|
+
|
37
|
+
on_error do |exception|
|
38
|
+
# Error logic here
|
39
|
+
# return false to skip default error handling
|
40
|
+
true
|
41
|
+
end
|
42
|
+
|
43
|
+
exit run(ARGV)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'aruba/cucumber'
|
2
|
+
|
3
|
+
ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
|
4
|
+
LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','lib')
|
5
|
+
|
6
|
+
Before do
|
7
|
+
# Using "announce" causes massive warnings on 1.9.2
|
8
|
+
@puts = true
|
9
|
+
@original_rubylib = ENV['RUBYLIB']
|
10
|
+
ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
|
11
|
+
end
|
12
|
+
|
13
|
+
After do
|
14
|
+
ENV['RUBYLIB'] = @original_rubylib
|
15
|
+
end
|
data/lib/where_to_cli.rb
ADDED
data/test/test_helper.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Ensure we require the local version and not one we might have installed already
|
2
|
+
require File.join([File.dirname(__FILE__),'lib','where_to_cli','version.rb'])
|
3
|
+
spec = Gem::Specification.new do |s|
|
4
|
+
s.name = 'where_to_cli'
|
5
|
+
s.version = WhereToCli::VERSION
|
6
|
+
s.author = 'Justin Toniazzo'
|
7
|
+
s.email = 'jutonz42@gmail.com'
|
8
|
+
s.homepage = 'http://your.website.com'
|
9
|
+
s.license = 'MIT'
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.summary = 'Helps you organize your media library by enforcing a consistent directory structure.'
|
12
|
+
s.files = `git ls-files`.split("
|
13
|
+
")
|
14
|
+
s.require_paths << 'lib'
|
15
|
+
s.has_rdoc = true
|
16
|
+
s.extra_rdoc_files = ['README.rdoc','where_to_cli.rdoc']
|
17
|
+
s.rdoc_options << '--title' << 'where_to_cli' << '--main' << 'README.rdoc' << '-ri'
|
18
|
+
s.bindir = 'bin'
|
19
|
+
s.executables << 'where_to_cli'
|
20
|
+
|
21
|
+
s.add_development_dependency 'rake', '~> 10.4.2', '>= 10.4'
|
22
|
+
s.add_development_dependency 'rdoc', '~> 4.2.0', '>= 4.2'
|
23
|
+
s.add_development_dependency 'aruba', '~> 0.6.2', '>= 0.6'
|
24
|
+
|
25
|
+
s.add_runtime_dependency 'where_to', '~> 0.8.0', '>= 0.8'
|
26
|
+
s.add_runtime_dependency 'gli', '2.13.1'
|
27
|
+
end
|
data/where_to_cli.rdoc
ADDED
metadata
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: where_to_cli
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin Toniazzo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 10.4.2
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '10.4'
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 10.4.2
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '10.4'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rdoc
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 4.2.0
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '4.2'
|
43
|
+
type: :development
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 4.2.0
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '4.2'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: aruba
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.6.2
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.6'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.6.2
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0.6'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: where_to
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 0.8.0
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.8'
|
83
|
+
type: :runtime
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.8.0
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0.8'
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: gli
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - '='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 2.13.1
|
100
|
+
type: :runtime
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - '='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 2.13.1
|
107
|
+
description:
|
108
|
+
email: jutonz42@gmail.com
|
109
|
+
executables:
|
110
|
+
- where_to_cli
|
111
|
+
extensions: []
|
112
|
+
extra_rdoc_files:
|
113
|
+
- README.rdoc
|
114
|
+
- where_to_cli.rdoc
|
115
|
+
files:
|
116
|
+
- Gemfile
|
117
|
+
- README.rdoc
|
118
|
+
- Rakefile
|
119
|
+
- bin/where_to_cli
|
120
|
+
- features/step_definitions/where_to_cli_steps.rb
|
121
|
+
- features/support/env.rb
|
122
|
+
- features/where_to_cli.feature
|
123
|
+
- lib/where_to_cli.rb
|
124
|
+
- lib/where_to_cli/version.rb
|
125
|
+
- test/default_test.rb
|
126
|
+
- test/test_helper.rb
|
127
|
+
- where_to_cli.gemspec
|
128
|
+
- where_to_cli.rdoc
|
129
|
+
homepage: http://your.website.com
|
130
|
+
licenses:
|
131
|
+
- MIT
|
132
|
+
metadata: {}
|
133
|
+
post_install_message:
|
134
|
+
rdoc_options:
|
135
|
+
- "--title"
|
136
|
+
- where_to_cli
|
137
|
+
- "--main"
|
138
|
+
- README.rdoc
|
139
|
+
- "-ri"
|
140
|
+
require_paths:
|
141
|
+
- lib
|
142
|
+
- lib
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
requirements: []
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 2.4.6
|
156
|
+
signing_key:
|
157
|
+
specification_version: 4
|
158
|
+
summary: Helps you organize your media library by enforcing a consistent directory
|
159
|
+
structure.
|
160
|
+
test_files: []
|