pericope 0.6.1 → 0.6.2

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.
@@ -3,13 +3,13 @@ require 'cli/base'
3
3
 
4
4
  class Pericope
5
5
  class CLI
6
-
7
-
8
-
6
+
7
+
8
+
9
9
  ALLOWED_COMMANDS = %w{help normalize parse substitute reverse-substitute usage}
10
-
11
-
12
-
10
+
11
+
12
+
13
13
  def self.run(command, *args)
14
14
  if ALLOWED_COMMANDS.member?(command)
15
15
  command = command.gsub(/-/, '_').to_sym
@@ -18,22 +18,22 @@ class Pericope
18
18
  CLI.new(*args).usage
19
19
  end
20
20
  end
21
-
22
-
23
-
21
+
22
+
23
+
24
24
  def help
25
25
  print <<-HELP
26
26
 
27
27
  Glossary
28
28
 
29
29
  pericope A Bible reference (e.g. Romans 3:6-11)
30
- verse ID An integer that uniquely identifies a Bible verse
30
+ verse ID An integer that uniquely identifies a Bible verse
31
31
 
32
32
  HELP
33
33
  end
34
-
35
-
36
-
34
+
35
+
36
+
37
37
  def normalize
38
38
  begin
39
39
  pericope = Pericope.new(input)
@@ -42,9 +42,9 @@ Glossary
42
42
  print $!.to_s
43
43
  end
44
44
  end
45
-
46
-
47
-
45
+
46
+
47
+
48
48
  def parse
49
49
  begin
50
50
  pericope = Pericope.new(input)
@@ -53,9 +53,9 @@ Glossary
53
53
  print $!.to_s
54
54
  end
55
55
  end
56
-
57
-
58
-
56
+
57
+
58
+
59
59
  def substitute
60
60
  begin
61
61
  print Pericope.sub(input)
@@ -63,9 +63,9 @@ Glossary
63
63
  print $!.to_s
64
64
  end
65
65
  end
66
-
67
-
68
-
66
+
67
+
68
+
69
69
  def reverse_substitute
70
70
  begin
71
71
  print Pericope.rsub(input)
@@ -73,9 +73,9 @@ Glossary
73
73
  print $!.to_s
74
74
  end
75
75
  end
76
-
77
-
78
-
76
+
77
+
78
+
79
79
  def usage
80
80
  print <<-USAGE
81
81
 
@@ -94,30 +94,30 @@ Commands
94
94
 
95
95
  USAGE
96
96
  end
97
-
98
-
99
-
97
+
98
+
99
+
100
100
  private
101
-
102
-
103
-
101
+
102
+
103
+
104
104
  def initialize(*args)
105
105
  @options = extract_options!(*args)
106
106
  @input = args.first
107
107
  @input = $stdin.read if $stdin.stat.pipe?
108
108
  end
109
-
110
-
111
-
109
+
110
+
111
+
112
112
  attr_reader :options, :input
113
-
114
-
115
-
113
+
114
+
115
+
116
116
  def extract_options!(*args)
117
117
  {} # No options accepted yet
118
118
  end
119
-
120
-
121
-
119
+
120
+
121
+
122
122
  end
123
- end
123
+ end
@@ -1,3 +1,3 @@
1
1
  class Pericope
2
- VERSION = "0.6.1" unless defined?(::Pericope::Version)
2
+ VERSION = "0.6.2" unless defined?(::Pericope::Version)
3
3
  end
metadata CHANGED
@@ -1,62 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pericope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
5
- prerelease:
4
+ version: 0.6.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bob Lail
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-29 00:00:00.000000000 Z
11
+ date: 2015-12-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
28
39
  - !ruby/object:Gem::Version
29
40
  version: '0'
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: turn
32
43
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
44
  requirements:
35
- - - ! '>='
45
+ - - ">="
36
46
  - !ruby/object:Gem::Version
37
47
  version: '0'
38
48
  type: :development
39
49
  prerelease: false
40
50
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
51
  requirements:
43
- - - ! '>='
52
+ - - ">="
44
53
  - !ruby/object:Gem::Version
45
54
  version: '0'
46
55
  - !ruby/object:Gem::Dependency
47
56
  name: pry
48
57
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
58
  requirements:
51
- - - ! '>='
59
+ - - ">="
52
60
  - !ruby/object:Gem::Version
53
61
  version: '0'
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
- - - ! '>='
66
+ - - ">="
60
67
  - !ruby/object:Gem::Version
61
68
  version: '0'
62
69
  description: It recognizes common abbreviations and misspellings for names of the
@@ -70,38 +77,37 @@ executables:
70
77
  extensions: []
71
78
  extra_rdoc_files: []
72
79
  files:
80
+ - README.mdown
73
81
  - bin/pericope
74
82
  - data/book_abbreviations.txt
75
83
  - data/chapter_verse_count.txt
76
84
  - lib/cli/base.rb
77
85
  - lib/cli/command.rb
86
+ - lib/pericope.rb
78
87
  - lib/pericope/cli.rb
79
88
  - lib/pericope/version.rb
80
- - lib/pericope.rb
81
89
  - lib/tasks/pericope_tasks.rake
82
- - README.mdown
83
90
  homepage: http://github.com/boblail/pericope
84
91
  licenses: []
92
+ metadata: {}
85
93
  post_install_message:
86
94
  rdoc_options: []
87
95
  require_paths:
88
96
  - lib
89
97
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
98
  requirements:
92
- - - ! '>='
99
+ - - ">="
93
100
  - !ruby/object:Gem::Version
94
101
  version: '0'
95
102
  required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
103
  requirements:
98
- - - ! '>='
104
+ - - ">="
99
105
  - !ruby/object:Gem::Version
100
- version: 1.3.6
106
+ version: '0'
101
107
  requirements: []
102
108
  rubyforge_project:
103
- rubygems_version: 1.8.23
109
+ rubygems_version: 2.4.8
104
110
  signing_key:
105
- specification_version: 3
111
+ specification_version: 4
106
112
  summary: Pericope is a gem for parsing Bible references.
107
113
  test_files: []