rtw 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +2 -2
- data/lib/rtw.rb +7 -4
- data/lib/rtw/message.rb +1 -1
- data/lib/rtw/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 579e7be0c6bad6855042e00985065f1e2397afdf2e921ebe72ca41e30a5590ce
|
4
|
+
data.tar.gz: 9e1b996d6614295fc545d179def2927592780649d2854b2bf86f39108c2af0a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45aee8f76a54a3437f669687dc101dd790b185ae03686dc0dcbf3bc8507fdff43cbecd9722632b302a79409e5631ccd350e8aa96a1253b442ad9139131d3f539
|
7
|
+
data.tar.gz: 7d098775efb5bbf2cb3c4d0997ba941b86c073e9fe8b311d49ca9c727b37044cfa6029e985aa2480929be2de3e73cc179990e508fc477288dd6e31ffe905bc8d
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# rtw
|
2
2
|
|
3
|
+
A command-line Bible for programmers
|
4
|
+
|
3
5
|
Holy Bible on your command-line. RTW refers to Read The Word
|
4
6
|
|
5
7
|
## Installation
|
@@ -11,7 +13,6 @@ gem install rtw
|
|
11
13
|
## Usage
|
12
14
|
|
13
15
|
```
|
14
|
-
rtw find john 3:16
|
15
16
|
rtw f john 3:16 # 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
|
16
17
|
|
17
18
|
rtw find john 3:16 version=NASB
|
@@ -27,4 +28,3 @@ MIT - Bibleable Project @bibleable
|
|
27
28
|
## Copyright
|
28
29
|
|
29
30
|
See LICENSE for details. Most Bible translations are copyrighted. Please see BibleGateway.com for more information.
|
30
|
-
|
data/lib/rtw.rb
CHANGED
@@ -45,24 +45,27 @@ module ReadTheWord
|
|
45
45
|
}
|
46
46
|
|
47
47
|
package_name 'rtw'
|
48
|
-
default_task :
|
48
|
+
default_task :version
|
49
49
|
|
50
50
|
desc "version", "print rtw version"
|
51
51
|
def version
|
52
52
|
puts ReadTheWord::VERSION
|
53
53
|
end
|
54
54
|
|
55
|
+
desc "context VERSE", "get the context of this verse"
|
56
|
+
def context
|
57
|
+
end
|
58
|
+
|
55
59
|
desc "translations", "print translations"
|
56
60
|
def translations
|
57
61
|
puts TRANSLATIONS.keys
|
58
62
|
end
|
59
63
|
|
60
64
|
# TODO Support version=NASB
|
61
|
-
# contents of the Thor class
|
62
65
|
desc "find VERSE", "find bible verse"
|
63
|
-
def find(
|
66
|
+
def find(*names)
|
64
67
|
b = BibleGateway.new
|
65
|
-
answer = b.lookup(
|
68
|
+
answer = b.lookup(names.join(' '))
|
66
69
|
puts answer[:text] if answer != nil
|
67
70
|
end
|
68
71
|
|
data/lib/rtw/message.rb
CHANGED
data/lib/rtw/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Lim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -45,10 +45,10 @@ homepage: https://github.com/bibleable/rtw
|
|
45
45
|
licenses:
|
46
46
|
- MIT
|
47
47
|
metadata: {}
|
48
|
-
post_install_message: "\n Welome, this is Read The Word
|
49
|
-
████████╗██╗ ██╗\n ██╔══██╗╚══██╔══╝██║ ██║\n ██████╔╝ ██║ ██║
|
50
|
-
|
51
|
-
\ \n #########################\n Pull Request -> https://github.com/bibleable/rtw/pulls\n
|
48
|
+
post_install_message: "\n Welome, this is command-line Read The Word Bible.\n \n
|
49
|
+
\ ██████╗ ████████╗██╗ ██╗\n ██╔══██╗╚══██╔══╝██║ ██║\n ██████╔╝ ██║ ██║
|
50
|
+
█╗ ██║\n ██╔══██╗ ██║ ██║███╗██║\n ██║ ██║ ██║ ╚███╔███╔╝\n ╚═╝ ╚═╝
|
51
|
+
\ ╚═╝ ╚══╝╚══╝ \n #########################\n Pull Request -> https://github.com/bibleable/rtw/pulls\n
|
52
52
|
\ "
|
53
53
|
rdoc_options: []
|
54
54
|
require_paths:
|