searchify 0.0.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,7 +64,7 @@ class ActionView::Helpers::FormBuilder
64
64
  model_name = options.delete(:model_name) || extract_model_name(field)
65
65
  field_name = options.delete(:field_name) || extract_field_name(field)
66
66
  collection = options.delete(:collection) || extract_collection(model_name)
67
- search_url = options.delete(:search_url) || extract_search_url(collection, options.delete(:scopes), options(:search_strategy))
67
+ search_url = options.delete(:search_url) || extract_search_url(collection, options.delete(:scopes), options.delete(:search_strategy))
68
68
 
69
69
  # field options
70
70
  options[:class] = [:searchify].push(options[:class]).flatten.compact
@@ -90,8 +90,7 @@ class ActionView::Helpers::FormBuilder
90
90
 
91
91
  def extract_search_url(collection, params=nil, search_strategy=nil)
92
92
  params ||= {}
93
-
94
-
93
+
95
94
  url = "#{@template.searchify_path}/search/#{collection}.json?"
96
95
  params[:search_strategy] = search_strategy if search_strategy
97
96
 
@@ -1,3 +1,3 @@
1
1
  module Searchify
2
- VERSION = "0.0.9"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,56 +1,75 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: searchify
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.9
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Christian Blais
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-12-21 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-01-03 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: rails
16
- requirement: &20828500 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
17
25
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
22
33
  type: :runtime
23
- prerelease: false
24
- version_requirements: *20828500
25
- - !ruby/object:Gem::Dependency
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
26
36
  name: jquery-rails
27
- requirement: &20828040 !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
28
39
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
33
47
  type: :runtime
34
- prerelease: false
35
- version_requirements: *20828040
36
- - !ruby/object:Gem::Dependency
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
37
50
  name: sqlite3
38
- requirement: &20827600 !ruby/object:Gem::Requirement
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
39
53
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
44
61
  type: :development
45
- prerelease: false
46
- version_requirements: *20827600
62
+ version_requirements: *id003
47
63
  description: Searchify provides a quick way to search your collections.
48
- email:
64
+ email:
49
65
  - christ.blais@gmail.com
50
66
  executables: []
67
+
51
68
  extensions: []
69
+
52
70
  extra_rdoc_files: []
53
- files:
71
+
72
+ files:
54
73
  - app/helpers/searchify/searchify_helper.rb
55
74
  - app/assets/javascripts/searchify/searchify.js
56
75
  - app/controllers/searchify/searchify_controller.rb
@@ -96,31 +115,41 @@ files:
96
115
  - test/dummy/public/404.html
97
116
  - test/dummy/public/422.html
98
117
  - test/unit/helpers/searchify/searchify_helper_test.rb
118
+ has_rdoc: true
99
119
  homepage: http://github.com/christianblais/searchify
100
120
  licenses: []
121
+
101
122
  post_install_message:
102
123
  rdoc_options: []
103
- require_paths:
124
+
125
+ require_paths:
104
126
  - lib
105
- required_ruby_version: !ruby/object:Gem::Requirement
127
+ required_ruby_version: !ruby/object:Gem::Requirement
106
128
  none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ hash: 3
133
+ segments:
134
+ - 0
135
+ version: "0"
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
137
  none: false
113
- requirements:
114
- - - ! '>='
115
- - !ruby/object:Gem::Version
116
- version: '0'
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ hash: 3
142
+ segments:
143
+ - 0
144
+ version: "0"
117
145
  requirements: []
146
+
118
147
  rubyforge_project:
119
- rubygems_version: 1.8.10
148
+ rubygems_version: 1.6.1
120
149
  signing_key:
121
150
  specification_version: 3
122
151
  summary: Search with ease!
123
- test_files:
152
+ test_files:
124
153
  - test/test_helper.rb
125
154
  - test/searchify_test.rb
126
155
  - test/integration/navigation_test.rb