booklist 0.0.9 → 0.0.10

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: 9563af51bd960512923c640e4d09d280703dcc78
4
- data.tar.gz: ec4cfca402e541297d083911f8ab966df32247df
3
+ metadata.gz: 0d55d1691850bfe3fc679642a86b5da4e8b3b01b
4
+ data.tar.gz: 298a896f85fc38c611375c5a84eb288ba26f9910
5
5
  SHA512:
6
- metadata.gz: 31294702b7174bcc5cb7a6a5f0917c8b1a6ed8ed7d59bf28314d46975f63e1f1c01d661b153d9fda20caa27a901e46fdce9b49e3534544a8d7924328cb521d31
7
- data.tar.gz: 385d1e7333062b05f40ddc174f7e050174e02c13481bdfd1752d00b6d6102579be7eab627f6132358d7dcae0ab3096f46d5d50255fe6511d047c17a40768aca7
6
+ metadata.gz: 494d4b61d59b1420f1b8f73d239753a5d58c301ef22caf6ec8748f2d0c360e0bef7ccf8e27268c5734ccd85b743846414417f60dc33a329aab426ea412638cd4
7
+ data.tar.gz: b80ba7fb3bea13958f5000ea63c2ceeb3cfa0847401ab29009acfe46ca2eecc3ea981e1fc678aef4afdd35e5d622cc0473ca03022c8efeab19ee19fb50f34bfe
@@ -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 = ?", "%#{options.state}%"]).to_a if options.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
@@ -1,3 +1,3 @@
1
1
  module Booklist
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
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.9
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-14 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3