rtw 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 +1 -0
- data/LICENSE +21 -0
- data/README.md +30 -0
- data/bin/rtw +5 -0
- data/lib/rtw.rb +82 -0
- data/lib/rtw/message.rb +14 -0
- data/lib/rtw/version.rb +3 -0
- data/rtw.gemspec +22 -0
- metadata +71 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7bd3e30deed6b66ad6ec2fa3e29a43ac1f1aea7b427469d6893c5d2041c4ad39
|
4
|
+
data.tar.gz: fbaa6c093cce8ebca0ecc41770375b5a6579dfe0b5f2cf94d6ae76d2c7b2665d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d2b0e3dd6dcebec88f91744015c1db46ebc3dd221b106b8ac9acbe999c80af3511baa29f28690ba9bff10f3a61eb28da7b4d482cefa4a662a59355ff9abe3ab7
|
7
|
+
data.tar.gz: 8a4abcfdb0b4f13c6f0cf7d693e272d701b9eb586996a774cb6ac95cff73ee5f801876b5c53e1bc117c2bc73c5009a3764897881c706ef7bf74476b6a5f5abd3
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2020 Bibleable Project
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# rtw
|
2
|
+
|
3
|
+
Holy Bible on your command-line. RTW refers to Read The Word
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```
|
8
|
+
gem install rtw
|
9
|
+
```
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
```
|
14
|
+
rtw find john 3:16
|
15
|
+
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
|
+
rtw find john 3:16 version=NASB
|
18
|
+
|
19
|
+
rtw translations
|
20
|
+
rtw t
|
21
|
+
```
|
22
|
+
|
23
|
+
## License
|
24
|
+
|
25
|
+
MIT - Bibleable Project @bibleable
|
26
|
+
|
27
|
+
## Copyright
|
28
|
+
|
29
|
+
See LICENSE for details. Most Bible translations are copyrighted. Please see BibleGateway.com for more information.
|
30
|
+
|
data/bin/rtw
ADDED
data/lib/rtw.rb
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "thor"
|
4
|
+
require "rtw/version"
|
5
|
+
require "rtw/message"
|
6
|
+
require "bible_gateway"
|
7
|
+
|
8
|
+
module ReadTheWord
|
9
|
+
class Base < Thor
|
10
|
+
|
11
|
+
TRANSLATIONS = {
|
12
|
+
:american_standard_version => "ASV",
|
13
|
+
:amplified_bible => "AMP",
|
14
|
+
:common_english_bible => "CEB",
|
15
|
+
:contemporary_english_version => "CEV",
|
16
|
+
:darby_translation => "DARBY",
|
17
|
+
:english_standard_version => "ESV",
|
18
|
+
:holman_christian_standard_bible => "HCSB",
|
19
|
+
:king_james_version => "KJV",
|
20
|
+
:king_james_version_21st_century => "KJ21",
|
21
|
+
:new_american_standard_bible => "NASB",
|
22
|
+
:new_century_version => "NCV",
|
23
|
+
:new_international_readers_version => "NIRV",
|
24
|
+
:new_international_version => "NIV",
|
25
|
+
:new_international_version_uk => "NIVUK",
|
26
|
+
:new_king_james_version => "NKJV",
|
27
|
+
:new_living_translation => "NLT",
|
28
|
+
:new_revised_standard_version => "NRSV",
|
29
|
+
:the_message => "MSG",
|
30
|
+
:todays_new_international_version => "TNIV",
|
31
|
+
:world_english_bible => "WEB",
|
32
|
+
:worldwide_english_new_testament => "WE",
|
33
|
+
:wycliffe_new_testament => "WYC",
|
34
|
+
:youngs_literal_translation => "YLT",
|
35
|
+
|
36
|
+
# French
|
37
|
+
:bible_du_semeur => "BDS",
|
38
|
+
:louis_segond => "LSG",
|
39
|
+
:nouvelle_edition_de_geneve => "NEG1979",
|
40
|
+
:segond_21 => "SG21",
|
41
|
+
|
42
|
+
#Chinese
|
43
|
+
:chinese_new_version_simplified => "CNVS",
|
44
|
+
:chinese_union_version_simplified => "CUVS",
|
45
|
+
}
|
46
|
+
|
47
|
+
package_name 'rtw'
|
48
|
+
default_task :find
|
49
|
+
|
50
|
+
desc "version", "print rtw version"
|
51
|
+
def version
|
52
|
+
puts ReadTheWord::VERSION
|
53
|
+
end
|
54
|
+
|
55
|
+
desc "translations", "print translations"
|
56
|
+
def translations
|
57
|
+
puts TRANSLATIONS.keys
|
58
|
+
end
|
59
|
+
|
60
|
+
# TODO Support version=NASB
|
61
|
+
# contents of the Thor class
|
62
|
+
desc "find VERSE", "find bible verse"
|
63
|
+
def find(name, from=nil)
|
64
|
+
b = BibleGateway.new
|
65
|
+
answer = b.lookup(name)
|
66
|
+
puts answer[:text] if answer != nil
|
67
|
+
end
|
68
|
+
|
69
|
+
desc "compare VERSE", "compare bible verse"
|
70
|
+
def compare
|
71
|
+
end
|
72
|
+
|
73
|
+
desc "settings", "show the settings"
|
74
|
+
def settings
|
75
|
+
end
|
76
|
+
|
77
|
+
desc "history", "show the history"
|
78
|
+
def history
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
data/lib/rtw/message.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
module ReadTheWord
|
2
|
+
MESSAGE = "
|
3
|
+
Welome, this is Read The Word - Holy Bible.
|
4
|
+
|
5
|
+
██████╗ ████████╗██╗ ██╗
|
6
|
+
██╔══██╗╚══██╔══╝██║ ██║
|
7
|
+
██████╔╝ ██║ ██║ █╗ ██║
|
8
|
+
██╔══██╗ ██║ ██║███╗██║
|
9
|
+
██║ ██║ ██║ ╚███╔███╔╝
|
10
|
+
╚═╝ ╚═╝ ╚═╝ ╚══╝╚══╝
|
11
|
+
#########################
|
12
|
+
Pull Request -> https://github.com/bibleable/rtw/pulls
|
13
|
+
"
|
14
|
+
end
|
data/lib/rtw/version.rb
ADDED
data/rtw.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rtw/version'
|
5
|
+
require 'rtw/message'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "rtw"
|
9
|
+
spec.version = ReadTheWord::VERSION
|
10
|
+
spec.authors = ["Bryan Lim"]
|
11
|
+
spec.email = ["bibleableproject@gmail.com", "ytbryan@gmail.com"]
|
12
|
+
spec.summary = %q{ Holy Bible on Command-line }
|
13
|
+
spec.description = %q{ Read the word is a Holy Bible that works on command-line }
|
14
|
+
spec.homepage = "https://github.com/bibleable/rtw"
|
15
|
+
spec.license = "MIT"
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.executables = ["rtw"]
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
spec.post_install_message = ReadTheWord::MESSAGE
|
20
|
+
spec.required_ruby_version = ">= 2.0.0"
|
21
|
+
spec.add_dependency 'thor' , '~> 0.19.4'
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rtw
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bryan Lim
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-07-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.19.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.19.4
|
27
|
+
description: " Read the word is a Holy Bible that works on command-line "
|
28
|
+
email:
|
29
|
+
- bibleableproject@gmail.com
|
30
|
+
- ytbryan@gmail.com
|
31
|
+
executables:
|
32
|
+
- rtw
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- ".gitignore"
|
37
|
+
- LICENSE
|
38
|
+
- README.md
|
39
|
+
- bin/rtw
|
40
|
+
- lib/rtw.rb
|
41
|
+
- lib/rtw/message.rb
|
42
|
+
- lib/rtw/version.rb
|
43
|
+
- rtw.gemspec
|
44
|
+
homepage: https://github.com/bibleable/rtw
|
45
|
+
licenses:
|
46
|
+
- MIT
|
47
|
+
metadata: {}
|
48
|
+
post_install_message: "\n Welome, this is Read The Word - Holy Bible.\n \n ██████╗
|
49
|
+
████████╗██╗ ██╗\n ██╔══██╗╚══██╔══╝██║ ██║\n ██████╔╝ ██║ ██║ █╗ ██║\n
|
50
|
+
\ ██╔══██╗ ██║ ██║███╗██║\n ██║ ██║ ██║ ╚███╔███╔╝\n ╚═╝ ╚═╝ ╚═╝ ╚══╝╚══╝
|
51
|
+
\ \n #########################\n Pull Request -> https://github.com/bibleable/rtw/pulls\n
|
52
|
+
\ "
|
53
|
+
rdoc_options: []
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 2.0.0
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
requirements: []
|
67
|
+
rubygems_version: 3.0.3
|
68
|
+
signing_key:
|
69
|
+
specification_version: 4
|
70
|
+
summary: Holy Bible on Command-line
|
71
|
+
test_files: []
|