mericope 0.1.1 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9626825b91d88875f6a69e7979225ae6e5c1e989
4
- data.tar.gz: ec622bc610ff43ded6c733ea2e3af5d81faa41b7
3
+ metadata.gz: 1fcec15113f2ed1ba0daa352dc5cd59e4b332c50
4
+ data.tar.gz: 0b3b0cd29363ed91903804fca9bb7eb71ce61068
5
5
  SHA512:
6
- metadata.gz: 4ebc2ac328ccedb62b548ca935d8e2b1f3006e0dd5f9c4585df4b5a390a4146f36290f4805742e3a980bd94e86049ed6c0f6a3d7d761a8528f5b8b525a221486
7
- data.tar.gz: 157f7e8d62a36e5e4bc35b0dd5356ab0bfa1759635ae7e57cf03e845ed545bde0bd137eb827b6c9a4553407a3a04189aadbf10aa5afa3e383a6db3fdb4e70c05
6
+ metadata.gz: 078cf1f702314ea7ac5cdd59932f98a504ce5c5715e1fe19357d928014986e641f23464df12ad8e59a9eb0ebbf2fedc86073326fbf00e9558d0e1d02b72a42ba
7
+ data.tar.gz: c33164f95ed88ba99b3ad67d528c3f757c4058fa941744e1ee7d9dcdff5bd6ca57e11fa2492204e0cd0da3cc7854b64dca12243bc4510412b7aa9d84dafc2fbf
data/lib/cli/base.rb CHANGED
@@ -1,30 +1,16 @@
1
1
  module CLI
2
2
  class Base
3
-
4
-
5
-
6
3
  def self.command(name, description, &block)
7
-
8
4
  end
9
-
10
-
11
-
5
+
12
6
  def self.print_commands
13
7
  usage = ""
14
-
15
8
  end
16
-
17
-
18
-
9
+
19
10
  private
20
-
21
-
22
-
11
+
23
12
  def commands
24
13
  @commands || {}
25
14
  end
26
-
27
-
28
-
29
15
  end
30
16
  end
data/lib/cli/command.rb CHANGED
@@ -1,23 +1,13 @@
1
1
  module CLI
2
2
  class Command
3
-
4
-
5
-
3
+ attr_reader :name, :description
4
+
6
5
  def initialize(name, description, &block)
7
6
  @name, @description, @block = name, description, &block
8
7
  end
9
-
10
-
11
-
12
- attr_reader :name, :description
13
-
14
-
15
-
8
+
16
9
  def execute
17
10
  @block.call
18
11
  end
19
-
20
-
21
-
22
12
  end
23
13
  end
data/lib/mericope.rb CHANGED
@@ -44,11 +44,11 @@ class Mericope
44
44
  end
45
45
 
46
46
  def self.book_has_chapters?(book)
47
- book_chapter_counts[book - 1] > 1
47
+ book_chapter_counts[book - 1] >= 1
48
48
  end
49
49
 
50
50
  def book_has_chapters?
51
- book_chapter_count > 1
51
+ book_chapter_count >= 1
52
52
  end
53
53
 
54
54
  # Differs from Mericope.new in that it won't raise an exception
@@ -1,3 +1,3 @@
1
1
  class Mericope
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mericope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Lail
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-15 00:00:00.000000000 Z
12
+ date: 2016-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.2.2
122
+ rubygems_version: 2.5.1
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Mericope is a gem for parsing Book of Mormon references.