bible_gateway 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ruby.yml +33 -0
- data/.travis.yml +2 -1
- data/README.md +26 -9
- data/VERSION +1 -1
- data/bible_gateway.gemspec +4 -3
- data/lib/bible_gateway.rb +67 -9
- data/lib/bible_gateway/version.rb +1 -1
- data/spec/bible_gateway_spec.rb +101 -20
- metadata +39 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e6c2cf9ceec0c095ec1a5ec095b0b77f21cadb4715e754a8640248b60c004201
|
4
|
+
data.tar.gz: 9609fe5c68301042cae31812f0c4f8e62f363fe7d83e326d57aa89310c401bd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9d1980166dd51fc83cc34b9e380479e74c7e6756daf9c587565a8657dfab5b6f24a1fe8d6f841813dae0829ac6f30b760dd9203f40ae66643d01b4c428b644a
|
7
|
+
data.tar.gz: 5167444cb5ae0af6df52f6988e3d4ed5e0d59944dac009ea1734abb3b887be5fee66d20956df6a15810a46b1bcf0a6d890d4592c1368d391db53420bcf659681
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ master ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ master ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Set up Ruby
|
24
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
25
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
26
|
+
# uses: ruby/setup-ruby@v1
|
27
|
+
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
|
28
|
+
with:
|
29
|
+
ruby-version: 2.6
|
30
|
+
- name: Install dependencies
|
31
|
+
run: bundle install
|
32
|
+
- name: Run tests
|
33
|
+
run: bundle exec rake
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# BibleGateway
|
2
2
|
|
3
3
|
Travis CI:
|
4
|
-
[![Build Status](https://travis-ci.org/
|
5
|
-
1.9.
|
4
|
+
[![Build Status](https://travis-ci.org/bibleable/bible_gateway.png?branch=master)](https://travis-ci.org/bibleable/bible_gateway)
|
5
|
+
1.9.3, 2.0.0, 2.1.1
|
6
6
|
|
7
|
-
An unofficial 'API' for BibleGateway.com.
|
7
|
+
An unofficial 'API' for BibleGateway.com.
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
@@ -22,15 +22,28 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
```
|
26
|
+
require 'bible_gateway'
|
26
27
|
|
27
|
-
|
28
|
-
b.version = :english_standard_version
|
29
|
-
b.lookup('John 1:1') # => "<h4>John 1</h4>\n<h5>The Word Became Flesh</h5> <sup>1</sup> In the beginning was the Word, and the Word was with God, and the Word was God."
|
28
|
+
BibleGateway.versions # available versions
|
30
29
|
|
31
|
-
|
30
|
+
BibleGateway.versions # available versions
|
32
31
|
|
33
|
-
|
32
|
+
b = BibleGateway.new # defaults to :king_james_version, but can be initialized to different version
|
33
|
+
|
34
|
+
b.version = :english_standard_version
|
35
|
+
b.lookup('John 1:1') # => "<h4>John 1</h4>\n<h5>The Word Became Flesh</h5> <sup>1</sup> In the beginning was the Word, and the Word was with God, and the Word was God."
|
36
|
+
```
|
37
|
+
|
38
|
+
## Scraping the old site through old_lookup
|
39
|
+
|
40
|
+
```
|
41
|
+
require 'bible_gateway'
|
42
|
+
|
43
|
+
b = BibleGateway.new # defaults to :king_james_version, but can be initialized to different version
|
44
|
+
|
45
|
+
b.old_lookup('John 1:1') # scraping the old site
|
46
|
+
```
|
34
47
|
|
35
48
|
## Contributing
|
36
49
|
|
@@ -44,3 +57,7 @@ Or install it yourself as:
|
|
44
57
|
|
45
58
|
See [LICENSE](License.txt) for details.
|
46
59
|
Most Bible translations are copyrighted. Please see [BibleGateway.com](http://biblegateway.com) for more information.
|
60
|
+
|
61
|
+
## Thanks
|
62
|
+
|
63
|
+
Special thanks to Geoffrey Dagley([@gdagley](http://github.com/gdagley)) - the original creator of `bible_gateway` rubygem.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/bible_gateway.gemspec
CHANGED
@@ -7,9 +7,9 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "bible_gateway"
|
8
8
|
spec.version = BibleGateway::VERSION
|
9
9
|
spec.authors = ["Geoffrey Dagley"]
|
10
|
-
spec.email = ["gdagley@gmail.com"]
|
10
|
+
spec.email = ["gdagley@gmail.com", "bibleableproject@gmail.com", "ytbryan@gmail.com"]
|
11
11
|
spec.description = %q{An unofficial 'API' for BibleGateway.com.}
|
12
|
-
spec.summary = %q{An unofficial 'API' for BibleGateway.com
|
12
|
+
spec.summary = %q{An unofficial 'API' for BibleGateway.com and the classic BibleGateway}
|
13
13
|
spec.homepage = "https://github.com/gdagley/bible_gateway"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -21,7 +21,8 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency "nokogiri"
|
22
22
|
spec.add_dependency "typhoeus"
|
23
23
|
|
24
|
-
spec.add_development_dependency "
|
24
|
+
spec.add_development_dependency "net-ping"
|
25
|
+
spec.add_development_dependency "bundler"
|
25
26
|
spec.add_development_dependency "rake"
|
26
27
|
spec.add_development_dependency "rspec"
|
27
28
|
end
|
data/lib/bible_gateway.rb
CHANGED
@@ -6,7 +6,8 @@ require 'uri'
|
|
6
6
|
class BibleGatewayError < StandardError; end
|
7
7
|
|
8
8
|
class BibleGateway
|
9
|
-
GATEWAY_URL = "http://
|
9
|
+
GATEWAY_URL = "http://biblegateway.com"
|
10
|
+
CLASSIC_GATEWAY_URL = "http://classic.biblegateway.com"
|
10
11
|
|
11
12
|
VERSIONS = {
|
12
13
|
:american_standard_version => "ASV",
|
@@ -32,6 +33,16 @@ class BibleGateway
|
|
32
33
|
:worldwide_english_new_testament => "WE",
|
33
34
|
:wycliffe_new_testament => "WYC",
|
34
35
|
:youngs_literal_translation => "YLT",
|
36
|
+
|
37
|
+
# French
|
38
|
+
:bible_du_semeur => "BDS",
|
39
|
+
:louis_segond => "LSG",
|
40
|
+
:nouvelle_edition_de_geneve => "NEG1979",
|
41
|
+
:segond_21 => "SG21",
|
42
|
+
|
43
|
+
#Chinese
|
44
|
+
:chinese_new_version_simplified => "CNVS",
|
45
|
+
:chinese_union_version_simplified => "CUVS",
|
35
46
|
}
|
36
47
|
|
37
48
|
def self.versions
|
@@ -52,15 +63,54 @@ class BibleGateway
|
|
52
63
|
def lookup(passage)
|
53
64
|
response = Typhoeus.get(passage_url(passage), followlocation: true)
|
54
65
|
doc = Nokogiri::HTML(response.body)
|
55
|
-
scrape_passage(doc)
|
66
|
+
scrape_passage(doc, @version)
|
67
|
+
end
|
68
|
+
|
69
|
+
def old_lookup(passage)
|
70
|
+
response = Typhoeus.get(old_passage_url(passage), followlocation: true)
|
71
|
+
doc = Nokogiri::HTML(response.body)
|
72
|
+
old_way_scrape_passage(doc)
|
56
73
|
end
|
57
74
|
|
58
75
|
private
|
59
76
|
def passage_url(passage)
|
60
|
-
|
77
|
+
"#{GATEWAY_URL}/passage/?search=#{URI.encode_www_form_component(passage)}&version=#{URI.encode_www_form_component(VERSIONS[version])}"
|
78
|
+
end
|
79
|
+
|
80
|
+
def old_passage_url(passage)
|
81
|
+
"#{CLASSIC_GATEWAY_URL}/passage/?search=#{URI.encode_www_form_component(passage)}&version=#{URI.encode_www_form_component(VERSIONS[version])}"
|
82
|
+
end
|
83
|
+
|
84
|
+
def scrape_passage(doc, version)
|
85
|
+
container = doc.css('div.passage-text')
|
86
|
+
title = container.css("div.version-#{VERSIONS[version]}.result-text-style-normal.text-html h1 span")[0].content.strip if container.css("div.version-#{VERSIONS[version]}.result-text-style-normal.text-html h1")[0] != nil
|
87
|
+
segment = doc.at('div.passage-text')
|
88
|
+
|
89
|
+
segment.search('sup.crossreference').remove # remove cross reference links
|
90
|
+
segment.search('sup.footnote').remove # remove footnote links
|
91
|
+
segment.search("div.crossrefs").remove # remove cross references
|
92
|
+
segment.search("div.footnotes").remove # remove footnotes
|
93
|
+
|
94
|
+
text = ""
|
95
|
+
segment.search("span.text").each do |span|
|
96
|
+
text += span.inner_text
|
97
|
+
end
|
98
|
+
|
99
|
+
segment.search("span.text").each do |span|
|
100
|
+
html_content = span.inner_html
|
101
|
+
span.swap html_content
|
102
|
+
end
|
103
|
+
|
104
|
+
segment.search('sup.versenum').each do |sup|
|
105
|
+
html_content = sup.content
|
106
|
+
sup.swap "<sup>#{html_content}</sup>"
|
107
|
+
end
|
108
|
+
|
109
|
+
content = segment.inner_html.gsub('<p></p>', '').gsub(/<!--.*?-->/, '').strip
|
110
|
+
{:title => title, :content => content, :text => text }
|
61
111
|
end
|
62
112
|
|
63
|
-
def
|
113
|
+
def old_way_scrape_passage(doc)
|
64
114
|
container = doc.css('div.container')
|
65
115
|
title = container.css('div.passage-details h1')[0].content.strip
|
66
116
|
segment = doc.at('div.passage-wrap')
|
@@ -68,16 +118,24 @@ class BibleGateway
|
|
68
118
|
segment.search('sup.footnote').remove # remove footnote links
|
69
119
|
segment.search("div.crossrefs").remove # remove cross references
|
70
120
|
segment.search("div.footnotes").remove # remove footnotes
|
121
|
+
|
122
|
+
# extract text only from scripture
|
123
|
+
text = ""
|
71
124
|
segment.search("span.text").each do |span|
|
72
|
-
text
|
73
|
-
span.swap text
|
125
|
+
text += span.inner_text
|
74
126
|
end
|
75
127
|
|
128
|
+
segment.search("span.text").each do |span|
|
129
|
+
html_content = span.inner_html
|
130
|
+
span.swap html_content
|
131
|
+
end
|
132
|
+
|
76
133
|
segment.search('sup.versenum').each do |sup|
|
77
|
-
|
78
|
-
sup.swap "<sup>#{
|
134
|
+
html_content = sup.content
|
135
|
+
sup.swap "<sup>#{html_content}</sup>"
|
79
136
|
end
|
137
|
+
|
80
138
|
content = segment.inner_html.gsub('<p></p>', '').gsub(/<!--.*?-->/, '').strip
|
81
|
-
{:title => title, :content => content }
|
139
|
+
{:title => title, :content => content, :text => text }
|
82
140
|
end
|
83
141
|
end
|
data/spec/bible_gateway_spec.rb
CHANGED
@@ -1,81 +1,162 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
require "spec_helper"
|
3
|
+
require 'net/ping'
|
3
4
|
|
4
5
|
describe BibleGateway do
|
5
6
|
it "should have a list of versions" do
|
6
|
-
BibleGateway.versions.
|
7
|
+
expect(BibleGateway.versions).not_to be_empty
|
7
8
|
end
|
8
9
|
|
9
10
|
describe "setting the version" do
|
10
11
|
it "should have a default version" do
|
11
12
|
gateway = BibleGateway.new
|
12
|
-
gateway.version.
|
13
|
+
expect(gateway.version).to eq(:king_james_version)
|
13
14
|
end
|
14
15
|
|
15
16
|
it "should be able to set the version to use" do
|
16
17
|
gateway = BibleGateway.new :english_standard_version
|
17
|
-
gateway.version.
|
18
|
+
expect(gateway.version).to eq(:english_standard_version)
|
18
19
|
end
|
19
20
|
|
20
21
|
it "should raise an exception for unknown version" do
|
21
|
-
|
22
|
+
expect { BibleGateway.new :unknown_version }.to raise_error(BibleGatewayError)
|
22
23
|
end
|
23
24
|
|
24
25
|
it "should be able to change the version to use" do
|
25
26
|
gateway = BibleGateway.new
|
26
27
|
gateway.version = :english_standard_version
|
27
|
-
gateway.version.
|
28
|
+
expect(gateway.version).to eq(:english_standard_version)
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should be able to set the chinese version to use" do
|
32
|
+
gateway = BibleGateway.new :chinese_new_version_simplified
|
33
|
+
expect(gateway.version).to eq(:chinese_new_version_simplified)
|
28
34
|
end
|
29
35
|
|
30
36
|
it "should raise an exception when changing to unknown version" do
|
31
37
|
gateway = BibleGateway.new
|
32
|
-
|
38
|
+
expect { gateway.version = :unknown_version }.to raise_error(BibleGatewayError)
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
describe "reachability" do
|
44
|
+
context "biblegateway.com" do
|
45
|
+
it "should reach biblegateway.com" do
|
46
|
+
check = Net::Ping::External.new(BibleGateway::GATEWAY_URL)
|
47
|
+
check.ping?
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
context "classic biblegateway.com" do
|
52
|
+
it "should reach classic biblegateway.com" do
|
53
|
+
check = Net::Ping::External.new(BibleGateway::CLASSIC_GATEWAY_URL)
|
54
|
+
check.ping?
|
55
|
+
end
|
33
56
|
end
|
34
57
|
end
|
35
58
|
|
36
59
|
describe "lookup" do
|
60
|
+
context "text only" do
|
61
|
+
it "should find the scripture text" do
|
62
|
+
text = BibleGateway.new(:english_standard_version).lookup("John 1:1")[:text]
|
63
|
+
expect(text).to eq("The Word Became Flesh1 In the beginning was the Word, and the Word was with God, and the Word was God.")
|
64
|
+
end
|
65
|
+
|
66
|
+
it "should find the scripture text via old_lookup" do
|
67
|
+
text = BibleGateway.new(:english_standard_version).old_lookup("John 1:1")[:text]
|
68
|
+
expect(text).to eq("The Word Became Flesh1 In the beginning was the Word, and the Word was with God, and the Word was God.")
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
37
72
|
context "verse" do
|
38
73
|
it "should find the passage title" do
|
39
74
|
title = BibleGateway.new(:english_standard_version).lookup("John 1:1")[:title]
|
40
|
-
title.
|
75
|
+
expect(title).to eq("John 1:1")
|
76
|
+
end
|
77
|
+
|
78
|
+
it "should find the passage title in chinese_new_version_simplified" do
|
79
|
+
title = BibleGateway.new(:chinese_new_version_simplified).lookup("John 1:1")[:title]
|
80
|
+
expect(title).to eq("约翰福音 1:1")
|
41
81
|
end
|
42
82
|
|
43
83
|
it "should find and clean the passage content" do
|
44
84
|
content = BibleGateway.new(:english_standard_version).lookup("John 1:1")[:content]
|
45
|
-
content.
|
46
|
-
content.
|
85
|
+
expect(content).to include("<h3>The Word Became Flesh</h3>")
|
86
|
+
expect(content).to include("In the beginning was the Word, and the Word was with God, and the Word was God.")
|
87
|
+
end
|
88
|
+
|
89
|
+
it "should find the passage title via old_lookup" do
|
90
|
+
title = BibleGateway.new(:english_standard_version).old_lookup("John 1:1")[:title]
|
91
|
+
expect(title).to eq("John 1:1")
|
92
|
+
end
|
93
|
+
|
94
|
+
it "should find and clean the passage content via old_lookup" do
|
95
|
+
content = BibleGateway.new(:english_standard_version).old_lookup("John 1:1")[:content]
|
96
|
+
expect(content).to include("<h3>The Word Became Flesh</h3>")
|
97
|
+
expect(content).to include("In the beginning was the Word, and the Word was with God, and the Word was God.")
|
47
98
|
end
|
48
99
|
end
|
49
100
|
|
50
101
|
context "chapter" do
|
51
102
|
it "should find the passage title" do
|
52
103
|
title = BibleGateway.new(:english_standard_version).lookup("John 3")[:title]
|
53
|
-
title.
|
104
|
+
expect(title).to eq("John 3")
|
105
|
+
end
|
106
|
+
|
107
|
+
it "should find the passage title in chinese_new_version_simplified" do
|
108
|
+
title = BibleGateway.new(:chinese_new_version_simplified).lookup("John 3")[:title]
|
109
|
+
expect(title).to eq("约翰福音 3")
|
54
110
|
end
|
55
111
|
|
56
112
|
it "should find and clean the passage content" do
|
57
113
|
content = BibleGateway.new(:english_standard_version).lookup("John 3")[:content]
|
58
|
-
content.
|
59
|
-
content.
|
60
|
-
content.
|
114
|
+
expect(content).to include("<h3>You Must Be Born Again</h3>")
|
115
|
+
expect(content).to include("<h3>For God So Loved the World</h3>")
|
116
|
+
expect(content).to include("For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life.")
|
117
|
+
end
|
118
|
+
|
119
|
+
it "should find the passage title via old_lookup" do
|
120
|
+
title = BibleGateway.new(:english_standard_version).old_lookup("John 3")[:title]
|
121
|
+
expect(title).to eq("John 3")
|
122
|
+
end
|
123
|
+
|
124
|
+
it "should find and clean the passage content via old_lookup" do
|
125
|
+
content = BibleGateway.new(:english_standard_version).old_lookup("John 3")[:content]
|
126
|
+
expect(content).to include("<h3>You Must Be Born Again</h3>")
|
127
|
+
expect(content).to include("<h3>For God So Loved the World</h3>")
|
128
|
+
expect(content).to include("For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life.")
|
61
129
|
end
|
62
130
|
end
|
63
131
|
|
64
132
|
context "multiple chapters" do
|
65
133
|
it "should find the passage title" do
|
66
134
|
title = BibleGateway.new(:english_standard_version).lookup("Psalm 1-5")[:title]
|
67
|
-
title.
|
135
|
+
expect(title).to eq("Psalm 1-5")
|
68
136
|
end
|
69
137
|
|
70
138
|
it "should find and clean the passage content" do
|
71
139
|
content = BibleGateway.new(:english_standard_version).lookup("Psalm 1-5")[:content]
|
72
|
-
content.
|
73
|
-
content.
|
74
|
-
content.
|
75
|
-
content.
|
76
|
-
content.
|
140
|
+
expect(content).to include("<h3>The Way of the Righteous and the Wicked</h3>")
|
141
|
+
expect(content).to include("<span class=\"chapternum\">1 </span>")
|
142
|
+
expect(content).to include("<h3>Save Me, O My God</h3>")
|
143
|
+
expect(content).to include("<span class=\"chapternum\">1 </span>")
|
144
|
+
expect(content).to include("For you are not a God who delights in wickedness;")
|
77
145
|
end
|
146
|
+
|
147
|
+
it "should find the passage title via old_lookup" do
|
148
|
+
title = BibleGateway.new(:english_standard_version).old_lookup("Psalm 1-5")[:title]
|
149
|
+
expect(title).to eq("Psalm 1-5")
|
150
|
+
end
|
151
|
+
|
152
|
+
it "should find and clean the passage content via old_lookup" do
|
153
|
+
content = BibleGateway.new(:english_standard_version).old_lookup("Psalm 1-5")[:content]
|
154
|
+
expect(content).to include("<h3>The Way of the Righteous and the Wicked</h3>")
|
155
|
+
expect(content).to include("<span class=\"chapternum\">1 </span>")
|
156
|
+
expect(content).to include("<h3>Save Me, O My God</h3>")
|
157
|
+
expect(content).to include("<span class=\"chapternum\">1 </span>")
|
158
|
+
expect(content).to include("For you are not a God who delights in wickedness;")
|
159
|
+
end
|
78
160
|
end
|
79
161
|
end
|
80
|
-
|
81
162
|
end
|
metadata
CHANGED
@@ -1,96 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bible_gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoffrey Dagley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: typhoeus
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: net-ping
|
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
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- -
|
59
|
+
- - ">="
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
61
|
+
version: '0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- -
|
66
|
+
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rake
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- -
|
73
|
+
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
75
|
version: '0'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- -
|
80
|
+
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rspec
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- -
|
87
|
+
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
89
|
version: '0'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- -
|
94
|
+
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0'
|
83
97
|
description: An unofficial 'API' for BibleGateway.com.
|
84
98
|
email:
|
85
99
|
- gdagley@gmail.com
|
100
|
+
- bibleableproject@gmail.com
|
101
|
+
- ytbryan@gmail.com
|
86
102
|
executables: []
|
87
103
|
extensions: []
|
88
104
|
extra_rdoc_files: []
|
89
105
|
files:
|
90
|
-
- .document
|
91
|
-
- .
|
92
|
-
- .
|
93
|
-
- .
|
106
|
+
- ".document"
|
107
|
+
- ".github/workflows/ruby.yml"
|
108
|
+
- ".gitignore"
|
109
|
+
- ".rspec"
|
110
|
+
- ".travis.yml"
|
94
111
|
- Gemfile
|
95
112
|
- LICENSE.txt
|
96
113
|
- README.md
|
@@ -111,20 +128,19 @@ require_paths:
|
|
111
128
|
- lib
|
112
129
|
required_ruby_version: !ruby/object:Gem::Requirement
|
113
130
|
requirements:
|
114
|
-
- -
|
131
|
+
- - ">="
|
115
132
|
- !ruby/object:Gem::Version
|
116
133
|
version: '0'
|
117
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
135
|
requirements:
|
119
|
-
- -
|
136
|
+
- - ">="
|
120
137
|
- !ruby/object:Gem::Version
|
121
138
|
version: '0'
|
122
139
|
requirements: []
|
123
|
-
|
124
|
-
rubygems_version: 2.2.2
|
140
|
+
rubygems_version: 3.0.3
|
125
141
|
signing_key:
|
126
142
|
specification_version: 4
|
127
|
-
summary: An unofficial 'API' for BibleGateway.com
|
143
|
+
summary: An unofficial 'API' for BibleGateway.com and the classic BibleGateway
|
128
144
|
test_files:
|
129
145
|
- spec/bible_gateway_spec.rb
|
130
146
|
- spec/spec_helper.rb
|