pericope 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pericope.rb +13 -10
- data/lib/pericope/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 698c96ecdc048ebb8e7a58a9f148cefc8e4624ad
|
4
|
+
data.tar.gz: 797d432c67c6a4cb59e112b72a61121a5ad65036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 430308f6c397f366d43b1d752c12929a51279b23ac4fd9d1ca14d8c3de8e130ba95284710823072dc78d7940a016e235b43673e2277f17b0d9524b4d02efa444
|
7
|
+
data.tar.gz: a013c095b00d59e156498f5c0d15014502f2c6e8fa734678e8ea8e0de4b4dd8fd9e66605a76eafd5693e5ea33771a7dfb6928474d104fd6e42249bc8c1074740
|
data/lib/pericope.rb
CHANGED
@@ -1,17 +1,8 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
1
|
require "pericope/version"
|
4
2
|
require "pericope/data"
|
5
3
|
|
6
4
|
class Pericope
|
7
|
-
attr_reader :book,
|
8
|
-
:book_chapter_count,
|
9
|
-
:book_name,
|
10
|
-
:original_string,
|
11
|
-
:ranges
|
12
|
-
|
13
|
-
|
14
|
-
|
5
|
+
attr_reader :book, :book_chapter_count, :book_name, :original_string, :ranges
|
15
6
|
|
16
7
|
def initialize(arg)
|
17
8
|
case arg
|
@@ -135,6 +126,18 @@ class Pericope
|
|
135
126
|
"#{book_name} #{well_formatted_reference(options)}"
|
136
127
|
end
|
137
128
|
|
129
|
+
def inspect
|
130
|
+
"Pericope(#{to_s})"
|
131
|
+
end
|
132
|
+
|
133
|
+
def ==(other)
|
134
|
+
other.is_a?(self.class) && [book, ranges] == [other.book, other.ranges]
|
135
|
+
end
|
136
|
+
|
137
|
+
def hash
|
138
|
+
[book, ranges].hash
|
139
|
+
end
|
140
|
+
|
138
141
|
|
139
142
|
|
140
143
|
def to_a
|
data/lib/pericope/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pericope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|