enju_search_log 0.1.0.pre → 0.1.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
data/lib/enju_search_log.rb
CHANGED
@@ -4,7 +4,7 @@ require "enju_search_log/user"
|
|
4
4
|
module EnjuSearchLog
|
5
5
|
def save_search_history(query, offset = 0, total = 0, user = nil)
|
6
6
|
return unless user.try(:save_search_history)
|
7
|
-
if
|
7
|
+
if Setting.write_search_log_to_file
|
8
8
|
write_search_log(query, total, user)
|
9
9
|
else
|
10
10
|
history = SearchHistory.new(:query => query, :start_record => offset + 1, :maximum_records => nil, :number_of_records => total)
|
@@ -0,0 +1,38 @@
|
|
1
|
+
defaults: &defaults
|
2
|
+
enju:
|
3
|
+
web_hostname: localhost
|
4
|
+
web_port_number: 3000
|
5
|
+
|
6
|
+
family_name_first: true
|
7
|
+
max_number_of_results: 500
|
8
|
+
write_search_log_to_file: true
|
9
|
+
csv_charset_conversion: true
|
10
|
+
|
11
|
+
# Choose a locale from 'ca', 'de', 'fr', 'jp', 'uk', 'us'
|
12
|
+
#AMAZON_AWS_HOSTNAME = 'ecs.amazonaws.com'
|
13
|
+
amazon:
|
14
|
+
aws_hostname: ecs.amazonaws.jp
|
15
|
+
hostname: www.amazon.co.jp
|
16
|
+
access_key: REPLACE_WITH_YOUR_AMAZON_ACCESS_KEY
|
17
|
+
secret_access_key: REPLACE_WITH_YOUR_AMAZON_SECRET_ACCESS_KEY
|
18
|
+
|
19
|
+
# :google, :amazon
|
20
|
+
book_jacket:
|
21
|
+
source: :google
|
22
|
+
unknown_resource:
|
23
|
+
|
24
|
+
# :mozshot, :simpleapi, :heartrails, :thumbalizr
|
25
|
+
screenshot:
|
26
|
+
generator: :mozshot
|
27
|
+
|
28
|
+
uploaded_file:
|
29
|
+
storage: :local
|
30
|
+
|
31
|
+
development:
|
32
|
+
<<: *defaults
|
33
|
+
|
34
|
+
test:
|
35
|
+
<<: *defaults
|
36
|
+
|
37
|
+
production:
|
38
|
+
<<: *defaults
|
File without changes
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_search_log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.1.0.
|
37
|
+
version: 0.1.0.pre5
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.1.0.
|
45
|
+
version: 0.1.0.pre5
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: sqlite3
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- spec/dummy/app/helpers/application_helper.rb
|
128
128
|
- spec/dummy/app/models/ability.rb
|
129
129
|
- spec/dummy/app/models/role.rb
|
130
|
+
- spec/dummy/app/models/setting.rb
|
130
131
|
- spec/dummy/app/models/user.rb
|
131
132
|
- spec/dummy/app/models/user_has_role.rb
|
132
133
|
- spec/dummy/app/views/layouts/application.html.erb
|
@@ -135,6 +136,7 @@ files:
|
|
135
136
|
- spec/dummy/app/views/page/404.html.erb
|
136
137
|
- spec/dummy/app/views/page/404.xml.erb
|
137
138
|
- spec/dummy/config/application.rb
|
139
|
+
- spec/dummy/config/application.yml
|
138
140
|
- spec/dummy/config/boot.rb
|
139
141
|
- spec/dummy/config/database.yml
|
140
142
|
- spec/dummy/config/environment.rb
|
@@ -151,6 +153,7 @@ files:
|
|
151
153
|
- spec/dummy/config/locales/en.yml
|
152
154
|
- spec/dummy/config/routes.rb
|
153
155
|
- spec/dummy/config.ru
|
156
|
+
- spec/dummy/db/development.sqlite3
|
154
157
|
- spec/dummy/db/migrate/20111201121844_create_roles.rb
|
155
158
|
- spec/dummy/db/migrate/20111201155456_create_users.rb
|
156
159
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|
@@ -171,7 +174,7 @@ files:
|
|
171
174
|
- spec/spec_helper.rb
|
172
175
|
- spec/support/controller_macros.rb
|
173
176
|
- spec/support/devise.rb
|
174
|
-
homepage: https://github.com/nabeta/
|
177
|
+
homepage: https://github.com/nabeta/enju_search_log
|
175
178
|
licenses: []
|
176
179
|
post_install_message:
|
177
180
|
rdoc_options: []
|
@@ -194,7 +197,7 @@ rubyforge_project:
|
|
194
197
|
rubygems_version: 1.8.23
|
195
198
|
signing_key:
|
196
199
|
specification_version: 3
|
197
|
-
summary:
|
200
|
+
summary: enju_search_log plugin
|
198
201
|
test_files:
|
199
202
|
- spec/controllers/search_histories_controller_spec.rb
|
200
203
|
- spec/dummy/app/assets/javascripts/application.js
|
@@ -203,6 +206,7 @@ test_files:
|
|
203
206
|
- spec/dummy/app/helpers/application_helper.rb
|
204
207
|
- spec/dummy/app/models/ability.rb
|
205
208
|
- spec/dummy/app/models/role.rb
|
209
|
+
- spec/dummy/app/models/setting.rb
|
206
210
|
- spec/dummy/app/models/user.rb
|
207
211
|
- spec/dummy/app/models/user_has_role.rb
|
208
212
|
- spec/dummy/app/views/layouts/application.html.erb
|
@@ -211,6 +215,7 @@ test_files:
|
|
211
215
|
- spec/dummy/app/views/page/404.html.erb
|
212
216
|
- spec/dummy/app/views/page/404.xml.erb
|
213
217
|
- spec/dummy/config/application.rb
|
218
|
+
- spec/dummy/config/application.yml
|
214
219
|
- spec/dummy/config/boot.rb
|
215
220
|
- spec/dummy/config/database.yml
|
216
221
|
- spec/dummy/config/environment.rb
|
@@ -227,6 +232,7 @@ test_files:
|
|
227
232
|
- spec/dummy/config/locales/en.yml
|
228
233
|
- spec/dummy/config/routes.rb
|
229
234
|
- spec/dummy/config.ru
|
235
|
+
- spec/dummy/db/development.sqlite3
|
230
236
|
- spec/dummy/db/migrate/20111201121844_create_roles.rb
|
231
237
|
- spec/dummy/db/migrate/20111201155456_create_users.rb
|
232
238
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|