enju_search_log 0.1.0.pre10 → 0.1.0.pre11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d0ad6e688f24e9c0b9fb97c365d8698e479eeca
4
- data.tar.gz: 526fa650eebcb495f348cbe7990471294f89e5b0
3
+ metadata.gz: 67ad23b0845731641f40fe61bd33e3ceae7974a4
4
+ data.tar.gz: 51af32dda15f829f25f9e468aae5e3142ad5a8ed
5
5
  SHA512:
6
- metadata.gz: 9308416667b6ed73469b88b0345d155dc8f15d92835d437e68931e7264452b01cc90031aa0eb05a329bd7cfff6026a3f4d94f85d16bfc9f21a7c0217fbcf3397
7
- data.tar.gz: 8eaa1e25188c999519673d28beb4df5d51663f464a0b6f156cb20a016c27e9ca6b6c34f4002cf8311d7187828a68159721f158b27107793cbaabf67cb918aa7b
6
+ metadata.gz: 46d6d040dca2b014999e8980bc26f2beff2225499c04402a1d6c55fa05e35cc7c620e7c53678baf5e7f3bd77090aecac19ce7cea5bda83464aba18761065c550
7
+ data.tar.gz: c4adee1969902b21f73c1b5fc8d88bfe8e63839ee0f0e3bec8800f1d56de629864a372de679e67695c40bb96fc9f1d1f87028637d89f70f718c79726ba6d4e0c
@@ -53,4 +53,15 @@ class SearchHistoriesController < ApplicationController
53
53
  format.json { head :no_content }
54
54
  end
55
55
  end
56
+
57
+ private
58
+ def search_history_params
59
+ params.require(:search_history).require(
60
+ :user_id, :operation, :sru_version, :query, :maximum_records,
61
+ :record_packing, :record_schema, :result_set_ttl, :stylesheet,
62
+ :extra_request_data, :number_of_records, :result_set_id,
63
+ :result_set_idle_time, :records, :next_record_position, :diagnostics,
64
+ :extra_response_data, :echoed_search_retrieve_request
65
+ )
66
+ end
56
67
  end
@@ -1,10 +1,4 @@
1
1
  class SearchHistory < ActiveRecord::Base
2
- attr_accessible :user_id, :operation, :sru_version, :query, :maximum_records,
3
- :record_packing, :record_schema, :result_set_ttl, :stylesheet,
4
- :extra_request_data, :number_of_records, :result_set_id,
5
- :result_set_idle_time, :records, :next_record_position, :diagnostics,
6
- :extra_response_data, :echoed_search_retrieve_request
7
-
8
2
  scope :not_found, -> { where(number_of_records: 0) }
9
3
  belongs_to :user
10
4
 
@@ -6,8 +6,6 @@ module EnjuSearchLog
6
6
 
7
7
  module ClassMethods
8
8
  def enju_search_log_profile_model
9
- attr_accessible :save_search_history
10
- attr_accessible :save_search_history, :as => :admin
11
9
  end
12
10
  end
13
11
  end
@@ -1,3 +1,3 @@
1
1
  module EnjuSearchLog
2
- VERSION = "0.1.0.pre10"
2
+ VERSION = "0.1.0.pre11"
3
3
  end
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_search_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre10
4
+ version: 0.1.0.pre11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-26 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_biblio
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0.pre63
19
+ version: 0.1.0.pre64
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.0.pre63
26
+ version: 0.1.0.pre64
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.1'
75
+ version: '3.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.1'
82
+ version: '3.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: factory_girl_rails
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.1.0.rc16
103
+ version: 1.1.0.rc17
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.1.0.rc16
110
+ version: 1.1.0.rc17
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: annotate
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -193,6 +193,10 @@ files:
193
193
  - spec/dummy/app/models/setting.rb
194
194
  - spec/dummy/app/models/user.rb
195
195
  - spec/dummy/app/views/layouts/application.html.erb
196
+ - spec/dummy/bin/bundle
197
+ - spec/dummy/bin/rails
198
+ - spec/dummy/bin/rake
199
+ - spec/dummy/bin/setup
196
200
  - spec/dummy/config.ru
197
201
  - spec/dummy/config/application.rb
198
202
  - spec/dummy/config/application.yml
@@ -255,7 +259,6 @@ files:
255
259
  - spec/dummy/public/422.html
256
260
  - spec/dummy/public/500.html
257
261
  - spec/dummy/public/favicon.ico
258
- - spec/dummy/script/rails
259
262
  - spec/fixtures/library_groups.yml
260
263
  - spec/fixtures/profiles.yml
261
264
  - spec/fixtures/roles.yml
@@ -285,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
288
  version: 1.3.1
286
289
  requirements: []
287
290
  rubyforge_project:
288
- rubygems_version: 2.2.2
291
+ rubygems_version: 2.4.5
289
292
  signing_key:
290
293
  specification_version: 4
291
294
  summary: enju_search_log plugin
@@ -299,6 +302,10 @@ test_files:
299
302
  - spec/dummy/app/models/setting.rb
300
303
  - spec/dummy/app/models/user.rb
301
304
  - spec/dummy/app/views/layouts/application.html.erb
305
+ - spec/dummy/bin/bundle
306
+ - spec/dummy/bin/rails
307
+ - spec/dummy/bin/rake
308
+ - spec/dummy/bin/setup
302
309
  - spec/dummy/config/application.rb
303
310
  - spec/dummy/config/application.yml
304
311
  - spec/dummy/config/boot.rb
@@ -362,7 +369,6 @@ test_files:
362
369
  - spec/dummy/public/500.html
363
370
  - spec/dummy/public/favicon.ico
364
371
  - spec/dummy/Rakefile
365
- - spec/dummy/script/rails
366
372
  - spec/fixtures/library_groups.yml
367
373
  - spec/fixtures/profiles.yml
368
374
  - spec/fixtures/roles.yml
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'