bbl 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.
- data/.gemspec +16 -0
- data/.gitignore +2 -0
- data/Gemfile +2 -0
- data/Guardfile +2 -0
- data/LICENSE.txt +1 -0
- data/README.rdoc +9 -0
- data/Rakefile +1 -0
- data/akjv.txt +31245 -0
- data/bin/bbl +3 -0
- data/lib/bbl.rb +24 -0
- data/lib/bbl/version.rb +3 -0
- data/test/test_helper.rb +2 -0
- metadata +66 -0
data/bin/bbl
ADDED
data/lib/bbl.rb
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Bbl
|
|
2
|
+
class CLI
|
|
3
|
+
def initialize argv
|
|
4
|
+
validate argv
|
|
5
|
+
levels_above = '../../..'
|
|
6
|
+
path = File.expand_path __FILE__ + levels_above + '/akjv.txt'
|
|
7
|
+
cmd = ['grep'] + argv + [path]
|
|
8
|
+
system *cmd
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def validate argv
|
|
12
|
+
show_help if argv.empty? or %w(--help -h).include? argv.first
|
|
13
|
+
end
|
|
14
|
+
def show_help
|
|
15
|
+
puts <<EOT
|
|
16
|
+
\e[35;1mThis is just a wrapper around grep ____ akjv.txt\e[0m
|
|
17
|
+
(so, for now, the help is: man grep ).
|
|
18
|
+
If you want to see the whole text, you can do:
|
|
19
|
+
\e[35mbbl . | less\e[0m
|
|
20
|
+
EOT
|
|
21
|
+
exit 1
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
data/lib/bbl/version.rb
ADDED
data/test/test_helper.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: bbl
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- ☈king
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2013-05-31 00:00:00.000000000 Z
|
|
13
|
+
dependencies: []
|
|
14
|
+
description: ! 'Access the [digitally] written word via CLI. +bbl --help+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
== Bbl
|
|
18
|
+
|
|
19
|
+
Access the [digitally] written word via CLI. +bbl --help+
|
|
20
|
+
|
|
21
|
+
'
|
|
22
|
+
email: bbl@sharpsaw.org
|
|
23
|
+
executables:
|
|
24
|
+
- bbl
|
|
25
|
+
extensions: []
|
|
26
|
+
extra_rdoc_files: []
|
|
27
|
+
files:
|
|
28
|
+
- .gemspec
|
|
29
|
+
- .gitignore
|
|
30
|
+
- Gemfile
|
|
31
|
+
- Guardfile
|
|
32
|
+
- LICENSE.txt
|
|
33
|
+
- README.rdoc
|
|
34
|
+
- Rakefile
|
|
35
|
+
- akjv.txt
|
|
36
|
+
- bin/bbl
|
|
37
|
+
- lib/bbl.rb
|
|
38
|
+
- lib/bbl/version.rb
|
|
39
|
+
- test/test_helper.rb
|
|
40
|
+
homepage: https://github.com/rking/bbl
|
|
41
|
+
licenses: []
|
|
42
|
+
post_install_message:
|
|
43
|
+
rdoc_options: []
|
|
44
|
+
require_paths:
|
|
45
|
+
- lib
|
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
- - ! '>='
|
|
49
|
+
- !ruby/object:Gem::Version
|
|
50
|
+
version: '0'
|
|
51
|
+
none: false
|
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
|
+
requirements:
|
|
54
|
+
- - ! '>='
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: '0'
|
|
57
|
+
none: false
|
|
58
|
+
requirements: []
|
|
59
|
+
rubyforge_project:
|
|
60
|
+
rubygems_version: 1.8.23
|
|
61
|
+
signing_key:
|
|
62
|
+
specification_version: 3
|
|
63
|
+
summary: Access the [digitally] written word via CLI. +bbl --help+
|
|
64
|
+
test_files:
|
|
65
|
+
- test/test_helper.rb
|
|
66
|
+
has_rdoc:
|