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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73416285e1d134c5eb40e70050467eb93db8f911
4
- data.tar.gz: fb3c8d2c9ccee993c26c92f71e9d1cafe4dec80f
3
+ metadata.gz: 698c96ecdc048ebb8e7a58a9f148cefc8e4624ad
4
+ data.tar.gz: 797d432c67c6a4cb59e112b72a61121a5ad65036
5
5
  SHA512:
6
- metadata.gz: 8a860ac575b882282ef6c0c3cbf0cc9d1cfb6843d4df81c2b5618aed69523dae4c5b3dc25c11b736f0491a0f5939dd70b6ae957e418d87360044836343f3cadf
7
- data.tar.gz: cafc84e2ead675fab5de26d4b1a613bc2ca1d62f9c26e93517288091f6c7c05168054c28e2d9a7ad745d8866daef3fc9001a69b411d5fb4ceff526bb4dabe431
6
+ metadata.gz: 430308f6c397f366d43b1d752c12929a51279b23ac4fd9d1ca14d8c3de8e130ba95284710823072dc78d7940a016e235b43673e2277f17b0d9524b4d02efa444
7
+ data.tar.gz: a013c095b00d59e156498f5c0d15014502f2c6e8fa734678e8ea8e0de4b4dd8fd9e66605a76eafd5693e5ea33771a7dfb6928474d104fd6e42249bc8c1074740
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Pericope
2
- VERSION = "0.7.0" unless defined?(::Pericope::Version)
2
+ VERSION = "0.7.1" unless defined?(::Pericope::Version)
3
3
  end
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.0
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-04-30 00:00:00.000000000 Z
11
+ date: 2017-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport