booklist 0.0.9 → 0.0.10
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 +4 -4
- data/lib/booklist.rb +1 -1
- data/lib/booklist/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: 0d55d1691850bfe3fc679642a86b5da4e8b3b01b
|
|
4
|
+
data.tar.gz: 298a896f85fc38c611375c5a84eb288ba26f9910
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 494d4b61d59b1420f1b8f73d239753a5d58c301ef22caf6ec8748f2d0c360e0bef7ccf8e27268c5734ccd85b743846414417f60dc33a329aab426ea412638cd4
|
|
7
|
+
data.tar.gz: b80ba7fb3bea13958f5000ea63c2ceeb3cfa0847401ab29009acfe46ca2eecc3ea981e1fc678aef4afdd35e5d622cc0473ca03022c8efeab19ee19fb50f34bfe
|
data/lib/booklist.rb
CHANGED
|
@@ -51,7 +51,7 @@ module Booklist
|
|
|
51
51
|
books += Book.where(["title LIKE ?", "%#{options.title}%"]).to_a if options.title
|
|
52
52
|
books += Book.where(["author LIKE ? or addn_authors LIKE ?", "%#{options.author}%", "%#{options.author}%"]).to_a if options.author
|
|
53
53
|
books += Book.where(["author LIKE ? or addn_authors LIKE ?", "%#{options.addn_authors}%", "%#{options.addn_authors}%"]).to_a if options.addn_authors
|
|
54
|
-
books += Book.where(["state
|
|
54
|
+
books += Book.where(["state LIKE ?", "%#{options.state}%"]).to_a if options.state
|
|
55
55
|
books.uniq!
|
|
56
56
|
books.sort!{ |a, b| a.id <=> b.id}
|
|
57
57
|
books.select!{ |b| b.state == options.state} if options.state
|
data/lib/booklist/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: booklist
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Crosby
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-12-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sqlite3
|