lsolr 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lsolr.rb +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e10967d4b5a602672070691c144b7471cd2b085ae08737a457101333540d82e2
4
- data.tar.gz: d58e9b7d1975f3d6b5d799bb26985974ab134f3edb4794354cbb52ba2f7625f2
3
+ metadata.gz: f14beb4eb4ea605689087f9ac1d6a3e27454918c377d4f3f096a06490502b67b
4
+ data.tar.gz: c49281b312fab6f80817df5d183ed90f0f635b90e3a4acb34051ff0660dd9675
5
5
  SHA512:
6
- metadata.gz: 722047aaeded40aeafeac2f614c8eb7f2add58a8a51963a3a7ef9d2f32a4c0a3643daf7f2f7f42283a041cec18d58cdf1e5b6d7a5c66d071bf9ac2a602d590ff
7
- data.tar.gz: 2cc6913b18142b476cf1edc47fbf7dc8ce15dcc674c838ea07045c93cbc2b13d8dab7f37ec2c5277878f64620c5352fc6311d1010f0535e8c12b956af50c2e2f
6
+ metadata.gz: 06ec0a49a25893f4febf32b175167159d8b18d7cad19aa7876fbe678905058aec45a1d34cf9544830c11cb9b42c95f881c2ef66e96de65fd97526382154a8d57
7
+ data.tar.gz: 1953e59728553443cd41289392d1364f94276e4e0c9556c70822ca9ab9225237d76002e8b6477814ba2f0db6407420984703ce5b4ac0b422501d59d0dab6d77b
@@ -113,6 +113,8 @@ class LSolr
113
113
  when String then build_raw_query(params)
114
114
  else raise TypeError, "Could not build solr query. Please specify a Hash or String value. #{params.inspect} given."
115
115
  end
116
+ rescue TypeError => e
117
+ raise ArgumentError, "#{e.message} It is not a supported type."
116
118
  end
117
119
 
118
120
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lsolr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taishi Kasuga