scriptures 0.0.4 → 0.0.5
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.
- data/README.md +2 -1
- data/lib/scriptures/version.rb +1 -1
- data/scriptures.gemspec +3 -1
- data/spec/database_spec.rb +8 -4
- metadata +7 -5
data/README.md
CHANGED
data/lib/scriptures/version.rb
CHANGED
data/scriptures.gemspec
CHANGED
@@ -6,7 +6,9 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["lukemh@gmail.com"]
|
7
7
|
gem.description = %q{The Standard Works of The Church of Jesus Christ of Latter-day Saints}
|
8
8
|
gem.summary = %q{The Scriptures}
|
9
|
-
gem.homepage = "http://
|
9
|
+
gem.homepage = "http://github.com/lukeholder/scriptures"
|
10
|
+
gem.licenses = ['MIT']
|
11
|
+
gem.requirements << 'sqlite'
|
10
12
|
|
11
13
|
gem.files = `git ls-files`.split($\)
|
12
14
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/spec/database_spec.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
+
# I made the decision to use the live sqlite db for tests as they are apart
|
4
|
+
# of the actual gem and testing their values seemed to make sense. Why
|
5
|
+
# mock the actual data? Suggestions: lukemh@gmail.com
|
6
|
+
|
3
7
|
describe Scriptures::Volume do
|
4
|
-
it "should
|
8
|
+
it "should return a volume's abbreviation" do
|
5
9
|
Scriptures::Volume.first.abbreviation.should eq("OT")
|
6
10
|
end
|
7
11
|
it "should return total number of books in a volume" do
|
@@ -11,7 +15,7 @@ describe Scriptures::Volume do
|
|
11
15
|
end
|
12
16
|
|
13
17
|
describe Scriptures::Book do
|
14
|
-
it "should
|
18
|
+
it "should return a book proper_title" do
|
15
19
|
Scriptures::Book.first.proper_title.should eq("The First Book of Moses called Genesis")
|
16
20
|
end
|
17
21
|
|
@@ -24,7 +28,7 @@ describe Scriptures::Book do
|
|
24
28
|
end
|
25
29
|
|
26
30
|
describe Scriptures::Chapter do
|
27
|
-
it "should
|
31
|
+
it "should return a chapters id" do
|
28
32
|
Scriptures::Chapter.first.id.should eq(1)
|
29
33
|
end
|
30
34
|
|
@@ -38,7 +42,7 @@ end
|
|
38
42
|
|
39
43
|
|
40
44
|
describe Scriptures::Verse do
|
41
|
-
it "should
|
45
|
+
it "should return a verse" do
|
42
46
|
Scriptures::Verse.first.scripture.should eq("IN the beginning God created the heaven and the earth.")
|
43
47
|
end
|
44
48
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scriptures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dm-sqlite-adapter
|
@@ -66,8 +66,9 @@ files:
|
|
66
66
|
- scriptures.gemspec
|
67
67
|
- spec/database_spec.rb
|
68
68
|
- spec/spec_helper.rb
|
69
|
-
homepage: http://
|
70
|
-
licenses:
|
69
|
+
homepage: http://github.com/lukeholder/scriptures
|
70
|
+
licenses:
|
71
|
+
- MIT
|
71
72
|
post_install_message:
|
72
73
|
rdoc_options: []
|
73
74
|
require_paths:
|
@@ -84,7 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
85
|
- - ! '>='
|
85
86
|
- !ruby/object:Gem::Version
|
86
87
|
version: '0'
|
87
|
-
requirements:
|
88
|
+
requirements:
|
89
|
+
- sqlite
|
88
90
|
rubyforge_project:
|
89
91
|
rubygems_version: 1.8.24
|
90
92
|
signing_key:
|