enju_search_log 0.1.0.pre7 → 0.1.0.pre8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/search_histories_controller.rb +3 -3
- data/app/views/search_histories/edit.html.erb +1 -1
- data/app/views/search_histories/index.html.erb +4 -4
- data/app/views/search_histories/new.html.erb +2 -2
- data/app/views/search_histories/show.html.erb +1 -1
- data/db/migrate/20140811132912_add_save_search_history_to_profile.rb +5 -0
- data/lib/enju_search_log/profile.rb +14 -0
- data/lib/enju_search_log/user.rb +0 -2
- data/lib/enju_search_log/version.rb +1 -1
- data/lib/enju_search_log.rb +2 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
- data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
- data/spec/dummy/db/schema.rb +19 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/fixtures/library_groups.yml +19 -21
- data/spec/fixtures/profiles.yml +98 -0
- data/spec/fixtures/users.yml +3 -21
- data/spec/models/search_history_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -0
- metadata +52 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59ff08d5aa9d6b3b6330fd5db554c8a3067c395b
|
4
|
+
data.tar.gz: 31c4fce7512c3944920b6e7833a3c89741fd4e75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49406ef19fd104ed51b7e99d19fec13f1ee1644bda7ac69e9ca556172c5c5b0e8070c32a42760ec2a99dbc5e2227233a9834b8e7bd73abd20262b5af0ef8135d
|
7
|
+
data.tar.gz: 96a094f7945e9577cb0fea9f363d0b09afead83253d21a048edf393cab0155fc192b51394af6863900354c5661c21a0b09f1b1c089b9a9e3aad0bf8eb0ce61df
|
@@ -21,7 +21,7 @@ class SearchHistoriesController < ApplicationController
|
|
21
21
|
|
22
22
|
respond_to do |format|
|
23
23
|
format.html # index.html.erb
|
24
|
-
format.json { render :
|
24
|
+
format.json { render json: @search_histories.to_json }
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -30,7 +30,7 @@ class SearchHistoriesController < ApplicationController
|
|
30
30
|
def show
|
31
31
|
respond_to do |format|
|
32
32
|
format.html # show.html.erb
|
33
|
-
format.json { render :
|
33
|
+
format.json { render json: @search_history.to_json }
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -49,7 +49,7 @@ class SearchHistoriesController < ApplicationController
|
|
49
49
|
SearchHistory.remove_all_history(current_user)
|
50
50
|
|
51
51
|
respond_to do |format|
|
52
|
-
format.html { redirect_to search_histories_url, :
|
52
|
+
format.html { redirect_to search_histories_url, notice: t('controller.successfully_deleted', model: t('activerecord.models.search_history')) }
|
53
53
|
format.json { head :no_content }
|
54
54
|
end
|
55
55
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.editing', :
|
2
|
+
<h1 class="title"><%= t('page.editing', model: t('activerecord.models.search_history')) -%></h1>
|
3
3
|
<div id="content_list">
|
4
4
|
|
5
5
|
<%= form_for(@search_history) do |f| -%>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.listing', :
|
2
|
+
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.search_history')) -%></h1>
|
3
3
|
<div id="content_list">
|
4
4
|
<% if current_user.try(:has_role?, 'Librarian') %>
|
5
5
|
<%- if params[:mode] == 'not_found' -%>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
</p>
|
10
10
|
<%- else -%>
|
11
11
|
<p>
|
12
|
-
<%= link_to t('search_history.failed_search'), search_histories_path(:
|
12
|
+
<%= link_to t('search_history.failed_search'), search_histories_path(mode: 'not_found') -%>
|
13
13
|
</p>
|
14
14
|
<%- end -%>
|
15
15
|
<% end %>
|
@@ -41,7 +41,7 @@
|
|
41
41
|
</td>
|
42
42
|
<td>
|
43
43
|
<%- if can? :delete, search_history -%>
|
44
|
-
<%= link_to t('page.destroy'), search_history, :
|
44
|
+
<%= link_to t('page.destroy'), search_history, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
|
45
45
|
<%- end -%>
|
46
46
|
</td>
|
47
47
|
</tr>
|
@@ -54,6 +54,6 @@
|
|
54
54
|
|
55
55
|
<div id="submenu" class="ui-corner-all">
|
56
56
|
<ul>
|
57
|
-
<li><%= link_to t('search_history.remove_all_history'), remove_all_search_histories_path, :
|
57
|
+
<li><%= link_to t('search_history.remove_all_history'), remove_all_search_histories_path, method: :put, data: {confirm: t('page.are_you_sure')} %></li>
|
58
58
|
</ul>
|
59
59
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<h1 class="title"><%= t('page.new', :
|
1
|
+
<h1 class="title"><%= t('page.new', model: t('activerecord.models.search_history')) -%></h1>
|
2
2
|
|
3
3
|
<!--
|
4
|
-
<%= form_for(:search_history, :
|
4
|
+
<%= form_for(:search_history, url: search_histories_path) do |f| -%>
|
5
5
|
<%= f.error_messages -%>
|
6
6
|
|
7
7
|
<%- end -%>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="content_detail" class="ui-corner-all">
|
2
|
-
<h1 class="title"><%= t('page.showing', :
|
2
|
+
<h1 class="title"><%= t('page.showing', model: t('activerecord.models.search_history')) -%></h1>
|
3
3
|
<div id="content_list">
|
4
4
|
<p id="notice"><%= notice %></p>
|
5
5
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module EnjuSearchLog
|
2
|
+
module EnjuProfile
|
3
|
+
def self.included(base)
|
4
|
+
base.extend ClassMethods
|
5
|
+
end
|
6
|
+
|
7
|
+
module ClassMethods
|
8
|
+
def enju_search_log_profile_model
|
9
|
+
attr_accessible :save_search_history
|
10
|
+
attr_accessible :save_search_history, :as => :admin
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/enju_search_log/user.rb
CHANGED
data/lib/enju_search_log.rb
CHANGED
File without changes
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class CreateProfiles < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :profiles do |t|
|
4
|
+
t.integer :user_id
|
5
|
+
t.integer :user_group_id
|
6
|
+
t.integer :library_id
|
7
|
+
t.string :locale
|
8
|
+
t.string :user_number
|
9
|
+
t.text :full_name
|
10
|
+
t.text :note
|
11
|
+
t.text :keyword_list
|
12
|
+
t.integer :required_role_id
|
13
|
+
|
14
|
+
t.timestamps
|
15
|
+
end
|
16
|
+
|
17
|
+
add_index :profiles, :user_id
|
18
|
+
add_index :profiles, :user_number, :unique => true
|
19
|
+
end
|
20
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20140811031145) do
|
15
15
|
|
16
16
|
create_table "library_groups", :force => true do |t|
|
17
17
|
t.string "name", :null => false
|
@@ -31,6 +31,24 @@ ActiveRecord::Schema.define(:version => 20120418121539) do
|
|
31
31
|
|
32
32
|
add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
|
33
33
|
|
34
|
+
create_table "profiles", :force => true do |t|
|
35
|
+
t.integer "user_id"
|
36
|
+
t.integer "user_group_id"
|
37
|
+
t.integer "library_id"
|
38
|
+
t.string "locale"
|
39
|
+
t.string "user_number"
|
40
|
+
t.text "full_name"
|
41
|
+
t.text "note"
|
42
|
+
t.text "keyword_list"
|
43
|
+
t.integer "required_role_id"
|
44
|
+
t.datetime "created_at", :null => false
|
45
|
+
t.datetime "updated_at", :null => false
|
46
|
+
t.datetime "expired_at"
|
47
|
+
end
|
48
|
+
|
49
|
+
add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id"
|
50
|
+
add_index "profiles", ["user_number"], :name => "index_profiles_on_user_number", :unique => true
|
51
|
+
|
34
52
|
create_table "roles", :force => true do |t|
|
35
53
|
t.string "name"
|
36
54
|
t.text "display_name"
|
Binary file
|
@@ -1,34 +1,32 @@
|
|
1
1
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
2
|
one:
|
3
3
|
id: 1
|
4
|
-
name:
|
5
|
-
display_name:
|
6
|
-
short_name:
|
7
|
-
email: next-l@library.example.jp
|
4
|
+
name: unknown
|
5
|
+
display_name: unknown
|
6
|
+
short_name: unknown
|
8
7
|
note:
|
9
8
|
my_networks: 0.0.0.0/0
|
10
9
|
url: "http://localhost:3000/"
|
11
|
-
|
12
|
-
login_banner: "*Next-L Enju*"
|
13
|
-
admin_networks: 0.0.0.0/0
|
10
|
+
|
14
11
|
|
15
12
|
# == Schema Information
|
16
13
|
#
|
17
14
|
# Table name: library_groups
|
18
15
|
#
|
19
|
-
# id
|
20
|
-
# name
|
21
|
-
# display_name
|
22
|
-
# short_name
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
27
|
-
# country_id
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
16
|
+
# id :integer not null, primary key
|
17
|
+
# name :string(255) not null
|
18
|
+
# display_name :text
|
19
|
+
# short_name :string(255) not null
|
20
|
+
# my_networks :text
|
21
|
+
# login_banner :text
|
22
|
+
# note :text
|
23
|
+
# post_to_union_catalog :boolean default(FALSE), not null
|
24
|
+
# country_id :integer
|
25
|
+
# created_at :datetime
|
26
|
+
# updated_at :datetime
|
27
|
+
# admin_networks :text
|
28
|
+
# allow_bookmark_external_url :boolean default(FALSE), not null
|
29
|
+
# position :integer
|
30
|
+
# url :string(255) default("http://localhost:3000/")
|
33
31
|
#
|
34
32
|
|
@@ -0,0 +1,98 @@
|
|
1
|
+
---
|
2
|
+
admin:
|
3
|
+
updated_at: 2008-05-31 13:16:30.163731 +09:00
|
4
|
+
user_group_id: 2
|
5
|
+
id: 1
|
6
|
+
user_id: 1
|
7
|
+
note:
|
8
|
+
library_id: 2
|
9
|
+
created_at: 2007-11-19 16:58:32.111941 +09:00
|
10
|
+
required_role_id: 4
|
11
|
+
user_number: "00001"
|
12
|
+
locale: "ja"
|
13
|
+
librarian1:
|
14
|
+
updated_at: 2008-05-31 12:41:16.337474 +09:00
|
15
|
+
user_group_id: 1
|
16
|
+
id: 2
|
17
|
+
user_id: 2
|
18
|
+
note:
|
19
|
+
library_id: 1
|
20
|
+
created_at: 2007-11-19 16:58:33.172441 +09:00
|
21
|
+
required_role_id: 1
|
22
|
+
user_number: "00002"
|
23
|
+
locale: "ja"
|
24
|
+
user1:
|
25
|
+
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
26
|
+
user_group_id: 1
|
27
|
+
id: 3
|
28
|
+
user_id: 3
|
29
|
+
note:
|
30
|
+
library_id: 2
|
31
|
+
created_at: 2007-11-19 16:58:34.637413 +09:00
|
32
|
+
required_role_id: 3
|
33
|
+
user_number: "00003"
|
34
|
+
locale: "ja"
|
35
|
+
librarian2:
|
36
|
+
updated_at: 2008-05-31 12:42:23.340575 +09:00
|
37
|
+
user_group_id: 1
|
38
|
+
id: 4
|
39
|
+
user_id: 4
|
40
|
+
note:
|
41
|
+
library_id: 2
|
42
|
+
created_at: 2008-01-18 12:24:04.222344 +09:00
|
43
|
+
required_role_id: 1
|
44
|
+
user_number: "00004"
|
45
|
+
locale: "ja"
|
46
|
+
user2:
|
47
|
+
updated_at: 2008-05-31 12:42:44.711117 +09:00
|
48
|
+
user_group_id: 1
|
49
|
+
id: 5
|
50
|
+
user_id: 5
|
51
|
+
note:
|
52
|
+
library_id: 1
|
53
|
+
created_at: 2008-01-18 13:29:06.922728 +09:00
|
54
|
+
required_role_id: 2
|
55
|
+
# user_number: '00005'
|
56
|
+
locale: "ja"
|
57
|
+
user3:
|
58
|
+
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
59
|
+
user_group_id: 1
|
60
|
+
id: 6
|
61
|
+
user_id: 6
|
62
|
+
note:
|
63
|
+
library_id: 2
|
64
|
+
created_at: 2007-11-19 16:58:34.637413 +09:00
|
65
|
+
required_role_id: 3
|
66
|
+
user_number: "00006"
|
67
|
+
locale: "ja"
|
68
|
+
user4:
|
69
|
+
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
70
|
+
user_group_id: 1
|
71
|
+
id: 7
|
72
|
+
user_id: 7
|
73
|
+
note:
|
74
|
+
library_id: 2
|
75
|
+
created_at: 2007-11-19 16:58:34.637413 +09:00
|
76
|
+
required_role_id: 3
|
77
|
+
user_number: "00007"
|
78
|
+
locale: "ja"
|
79
|
+
|
80
|
+
# == Schema Information
|
81
|
+
#
|
82
|
+
# Table name: profiles
|
83
|
+
#
|
84
|
+
# id :integer not null, primary key
|
85
|
+
# user_id :integer
|
86
|
+
# user_group_id :integer
|
87
|
+
# library_id :integer
|
88
|
+
# locale :string(255)
|
89
|
+
# user_number :string(255)
|
90
|
+
# full_name :text
|
91
|
+
# note :text
|
92
|
+
# keyword_list :text
|
93
|
+
# required_role_id :integer
|
94
|
+
# created_at :datetime not null
|
95
|
+
# updated_at :datetime not null
|
96
|
+
# checkout_icalendar_token :string(255)
|
97
|
+
# save_checkout_history :boolean default(FALSE), not null
|
98
|
+
#
|
data/spec/fixtures/users.yml
CHANGED
@@ -2,68 +2,50 @@
|
|
2
2
|
admin:
|
3
3
|
updated_at: 2008-05-31 13:16:30.163731 +09:00
|
4
4
|
encrypted_password: $2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi
|
5
|
-
user_group_id: 2
|
6
5
|
id: 1
|
7
|
-
note:
|
8
6
|
username: admin
|
9
7
|
email: tanabe@kamata.lib.teu.ac.jp
|
10
8
|
created_at: 2007-11-19 16:58:32.111941 +09:00
|
11
|
-
required_role_id: 4
|
12
9
|
librarian1:
|
13
10
|
updated_at: 2008-05-31 12:41:16.337474 +09:00
|
14
11
|
encrypted_password: $2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS
|
15
|
-
user_group_id: 1
|
16
12
|
id: 2
|
17
|
-
note:
|
18
13
|
username: librarian1
|
19
14
|
email: librarian1@kamata.lib.teu.ac.jp
|
20
15
|
created_at: 2007-11-19 16:58:33.172441 +09:00
|
21
|
-
required_role_id: 1
|
22
16
|
user1:
|
23
17
|
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
24
18
|
encrypted_password: $2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW
|
25
|
-
user_group_id: 1
|
26
19
|
id: 3
|
27
|
-
note:
|
28
20
|
username: user1
|
29
21
|
email: user1@kamata.lib.teu.ac.jp
|
30
22
|
created_at: 2007-11-19 16:58:34.637413 +09:00
|
31
|
-
required_role_id: 3
|
32
23
|
librarian2:
|
33
24
|
updated_at: 2008-05-31 12:42:23.340575 +09:00
|
34
25
|
encrypted_password: $2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS
|
35
|
-
user_group_id: 1
|
36
26
|
id: 4
|
37
|
-
note:
|
38
27
|
username: librarian2
|
28
|
+
email: librarian2@library.example.jp
|
39
29
|
created_at: 2008-01-18 12:24:04.222344 +09:00
|
40
|
-
required_role_id: 1
|
41
30
|
user2:
|
42
31
|
updated_at: 2008-05-31 12:42:44.711117 +09:00
|
43
32
|
encrypted_password: $2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca
|
44
|
-
user_group_id: 1
|
45
33
|
id: 5
|
46
|
-
note:
|
47
34
|
username: user2
|
35
|
+
email: user2@library.example.jp
|
48
36
|
created_at: 2008-01-18 13:29:06.922728 +09:00
|
49
|
-
required_role_id: 2
|
50
37
|
user3:
|
51
38
|
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
52
39
|
encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
|
53
|
-
user_group_id: 1
|
54
40
|
id: 6
|
55
|
-
note:
|
56
41
|
username: user3
|
57
42
|
email: user3@kamata.lib.teu.ac.jp
|
58
43
|
created_at: 2007-11-19 16:58:34.637413 +09:00
|
59
|
-
required_role_id: 3
|
60
44
|
user4:
|
61
45
|
updated_at: 2008-05-31 13:02:25.101261 +09:00
|
62
46
|
encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
|
63
|
-
user_group_id: 1
|
64
47
|
id: 7
|
65
|
-
note:
|
66
48
|
username: user4
|
67
49
|
email: user4@kamata.lib.teu.ac.jp
|
68
50
|
created_at: 2007-11-19 16:58:34.637413 +09:00
|
69
|
-
|
51
|
+
locked_at: <%= 1.day.ago %>
|
@@ -7,7 +7,7 @@ describe SearchHistory do
|
|
7
7
|
it "should create search history" do
|
8
8
|
user = users(:admin)
|
9
9
|
user.save_search_history = true
|
10
|
-
user.save_history('test', 1, 10).should
|
10
|
+
user.save_history('test', 1, 10).should be_truthy
|
11
11
|
end
|
12
12
|
|
13
13
|
it "should not create search history if the user disabled logging" do
|
data/spec/spec_helper.rb
CHANGED
@@ -27,6 +27,8 @@ RSpec.configure do |config|
|
|
27
27
|
config.use_transactional_fixtures = true
|
28
28
|
|
29
29
|
config.extend ControllerMacros, :type => :controller
|
30
|
+
|
31
|
+
config.infer_spec_type_from_file_location!
|
30
32
|
end
|
31
33
|
|
32
34
|
FactoryGirl.definition_file_paths << "#{::Rails.root}/../../spec/factories"
|
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.
|
4
|
+
version: 0.1.0.pre8
|
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-
|
11
|
+
date: 2014-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enju_seed
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.1.
|
19
|
+
version: 0.1.1.pre10
|
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.1.
|
26
|
+
version: 0.1.1.pre10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: enju_biblio
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.0.
|
33
|
+
version: 0.1.0.pre56
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.0.
|
40
|
+
version: 0.1.0.pre56
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '3.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: factory_girl_rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,42 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.1.0.
|
89
|
+
version: 1.1.0.rc13
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.1.0.
|
96
|
+
version: 1.1.0.rc13
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: annotate
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-activemodel-mocks
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
97
125
|
description: Search log management for Next-L Enju
|
98
126
|
email:
|
99
127
|
- nabeta@fastmail.fm
|
@@ -118,8 +146,10 @@ files:
|
|
118
146
|
- db/migrate/090_create_search_histories.rb
|
119
147
|
- db/migrate/20100623173800_rename_search_history_version_to_sru_version.rb
|
120
148
|
- db/migrate/20120418121539_add_save_search_history_to_user.rb
|
149
|
+
- db/migrate/20140811132912_add_save_search_history_to_profile.rb
|
121
150
|
- lib/enju_search_log.rb
|
122
151
|
- lib/enju_search_log/engine.rb
|
152
|
+
- lib/enju_search_log/profile.rb
|
123
153
|
- lib/enju_search_log/user.rb
|
124
154
|
- lib/enju_search_log/version.rb
|
125
155
|
- lib/generators/enju_search_log/setup/USAGE
|
@@ -153,6 +183,7 @@ files:
|
|
153
183
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
154
184
|
- spec/dummy/config/locales/en.yml
|
155
185
|
- spec/dummy/config/routes.rb
|
186
|
+
- spec/dummy/db/development.sqlite3
|
156
187
|
- spec/dummy/db/migrate/080_create_library_groups.rb
|
157
188
|
- spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
|
158
189
|
- spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
|
@@ -160,13 +191,17 @@ files:
|
|
160
191
|
- spec/dummy/db/migrate/20111201155456_create_users.rb
|
161
192
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|
162
193
|
- spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
|
194
|
+
- spec/dummy/db/migrate/20140122054321_create_profiles.rb
|
195
|
+
- spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb
|
163
196
|
- spec/dummy/db/schema.rb
|
197
|
+
- spec/dummy/db/test.sqlite3
|
164
198
|
- spec/dummy/public/404.html
|
165
199
|
- spec/dummy/public/422.html
|
166
200
|
- spec/dummy/public/500.html
|
167
201
|
- spec/dummy/public/favicon.ico
|
168
202
|
- spec/dummy/script/rails
|
169
203
|
- spec/fixtures/library_groups.yml
|
204
|
+
- spec/fixtures/profiles.yml
|
170
205
|
- spec/fixtures/roles.yml
|
171
206
|
- spec/fixtures/search_histories.yml
|
172
207
|
- spec/fixtures/user_has_roles.yml
|
@@ -226,6 +261,7 @@ test_files:
|
|
226
261
|
- spec/dummy/config/locales/en.yml
|
227
262
|
- spec/dummy/config/routes.rb
|
228
263
|
- spec/dummy/config.ru
|
264
|
+
- spec/dummy/db/development.sqlite3
|
229
265
|
- spec/dummy/db/migrate/080_create_library_groups.rb
|
230
266
|
- spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
|
231
267
|
- spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
|
@@ -233,7 +269,10 @@ test_files:
|
|
233
269
|
- spec/dummy/db/migrate/20111201155456_create_users.rb
|
234
270
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|
235
271
|
- spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
|
272
|
+
- spec/dummy/db/migrate/20140122054321_create_profiles.rb
|
273
|
+
- spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb
|
236
274
|
- spec/dummy/db/schema.rb
|
275
|
+
- spec/dummy/db/test.sqlite3
|
237
276
|
- spec/dummy/public/404.html
|
238
277
|
- spec/dummy/public/422.html
|
239
278
|
- spec/dummy/public/500.html
|
@@ -241,6 +280,7 @@ test_files:
|
|
241
280
|
- spec/dummy/Rakefile
|
242
281
|
- spec/dummy/script/rails
|
243
282
|
- spec/fixtures/library_groups.yml
|
283
|
+
- spec/fixtures/profiles.yml
|
244
284
|
- spec/fixtures/roles.yml
|
245
285
|
- spec/fixtures/search_histories.yml
|
246
286
|
- spec/fixtures/user_has_roles.yml
|