flare 1.0.0 → 1.0.1

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/flare.gemspec +2 -2
  3. data/lib/flare/session.rb +2 -2
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
data/flare.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{flare}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Dwan"]
12
- s.date = %q{2009-12-29}
12
+ s.date = %q{2009-12-30}
13
13
  s.description = %q{This needs to get updated}
14
14
  s.email = %q{mpdwan@gmail.com}
15
15
  s.extra_rdoc_files = [
data/lib/flare/session.rb CHANGED
@@ -67,6 +67,8 @@ module Flare
67
67
 
68
68
  options.assert_valid_keys(:filter, :types, :page, :per_page, :limit, :fields, :order, :facet)
69
69
 
70
+ args << '*:*' if args.empty?
71
+
70
72
  query = {
71
73
  :q => args,
72
74
  :fq => Array(options[:filter]).flatten,
@@ -93,8 +95,6 @@ module Flare
93
95
  query[:fq] << Array(options[:types]).map {|type| "type:#{type}"}.join(" OR ")
94
96
  end
95
97
 
96
- query[:q] = query.delete(:fq) if query[:q].blank?
97
-
98
98
  ::ActiveRecord::Base.logger.debug(<<-SOLR.squish)
99
99
  \e[4;32mSolr Query:\e[0;1m
100
100
  #{query[:q].join(', ')}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flare
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Dwan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-29 00:00:00 -06:00
12
+ date: 2009-12-30 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency