pirate 0.1.1 → 0.1.2

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/lib/pirate.rb +5 -3
  3. data/pirate.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -26,9 +26,11 @@ module Pirate
26
26
  def self.find(search_params)
27
27
  @query = search_params[:searchInput]
28
28
 
29
- exact_match_redirects(@query)
30
- levenshtein_search_stores_redirect(@query) unless @@result[:redirect]
31
- levenshtein_search_tags_redirect(@query) if @@tag_enabled && !@@result[:redirect]
29
+ if search_params[:no_redirect].nil?
30
+ exact_match_redirects(@query)
31
+ levenshtein_search_stores_redirect(@query) unless @@result[:redirect]
32
+ levenshtein_search_tags_redirect(@query) if @@tag_enabled && !@@result[:redirect]
33
+ end
32
34
 
33
35
  if @@result[:redirect].nil?
34
36
  @@page[search_params[:cat].to_sym] = search_params[:page] if search_params[:cat] && search_params[:page]
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pirate}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Hsu"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pirate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Hsu