enju_search_log 0.1.0.pre6 → 0.1.0.pre7

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: c0c3299c71cb309bb0e515975b8231709543b2d9
4
- data.tar.gz: a36668e89747f76f7207ff652bc64d02fc46a9be
3
+ metadata.gz: 5afb3f79b394e43484940f90619f3375ca7b9740
4
+ data.tar.gz: e8253e5af30e36beb02aaadcb6c1d5c33549ae8a
5
5
  SHA512:
6
- metadata.gz: d3754d69657a49c48d405827e90b6a279e0ea797da583e528d87bfb3a573e3b3ab90d1e4077c2b289f7280371edc58bec389649b2b4dd68495b7f81495472240
7
- data.tar.gz: 626c20990b9fbce6a5b8594f7f5b92c33d647871186f2d1a4667252f17c48e4bcbd71b64b96b3f0aef3890bd75e903ebe3f4a1953adbb39fce844a1e12f8095f
6
+ metadata.gz: dd5cab045493e977152383a5f833265c61b18c96a7e0d4247281611b5c663bd87031490a5626e3514efc2dde722ff0f23788778459d4913a32fb67b329d713d1
7
+ data.tar.gz: a37411273b5cf581dc8d47e7530afc3c7c6aaf80ce65f682af23b8faa3a241e3e08a494396a227c0f489428bdd1084e390ae7a6370c71a43fbf79029fc67b984
@@ -24,10 +24,10 @@ end
24
24
  #
25
25
  # Table name: search_histories
26
26
  #
27
- # id :integer not null, primary key
27
+ # id :integer not null, primary key
28
28
  # user_id :integer
29
- # operation :string(255) default("searchRetrieve")
30
- # sru_version :float default(1.2)
29
+ # operation :string(255) default("searchRetrieve")
30
+ # sru_version :float default(1.2)
31
31
  # query :string(255)
32
32
  # start_record :integer
33
33
  # maximum_records :integer
@@ -36,7 +36,7 @@ end
36
36
  # result_set_ttl :integer
37
37
  # stylesheet :string(255)
38
38
  # extra_request_data :string(255)
39
- # number_of_records :integer default(0)
39
+ # number_of_records :integer default(0)
40
40
  # result_set_id :string(255)
41
41
  # result_set_idle_time :integer
42
42
  # records :text
@@ -44,7 +44,7 @@ end
44
44
  # diagnostics :text
45
45
  # extra_response_data :text
46
46
  # echoed_search_retrieve_request :text
47
- # created_at :datetime
48
- # updated_at :datetime
47
+ # created_at :datetime not null
48
+ # updated_at :datetime not null
49
49
  #
50
50
 
@@ -1,4 +1,4 @@
1
- require 'enju_core'
1
+ require 'enju_seed'
2
2
 
3
3
  module EnjuSearchLog
4
4
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module EnjuSearchLog
2
- VERSION = "0.1.0.pre6"
2
+ VERSION = "0.1.0.pre7"
3
3
  end
@@ -95,8 +95,10 @@ describe SearchHistoriesController do
95
95
  end
96
96
 
97
97
  it "should not show missing search_history" do
98
- get :show, :id => 100
99
- response.should be_missing
98
+ lambda{
99
+ get :show, :id => 100
100
+ }.should raise_error(ActiveRecord::RecordNotFound)
101
+ #response.should be_missing
100
102
  end
101
103
  end
102
104
 
@@ -208,8 +210,10 @@ describe SearchHistoriesController do
208
210
  end
209
211
 
210
212
  it "should not destroy missing search_history" do
211
- delete :destroy, :id => 100
212
- response.should be_missing
213
+ lambda{
214
+ delete :destroy, :id => 100
215
+ }.should raise_error(ActiveRecord::RecordNotFound)
216
+ #response.should be_missing
213
217
  end
214
218
  end
215
219
 
@@ -1,62 +1,6 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  protect_from_forgery
3
3
 
4
- rescue_from CanCan::AccessDenied, :with => :render_403
5
- rescue_from ActiveRecord::RecordNotFound, :with => :render_404
6
-
7
- before_filter :set_locale
8
-
9
- private
10
- def render_403
11
- return if performed?
12
- if user_signed_in?
13
- respond_to do |format|
14
- format.html {render :template => 'page/403', :status => 403}
15
- format.xml {render :template => 'page/403', :status => 403}
16
- format.json
17
- end
18
- else
19
- respond_to do |format|
20
- format.html {redirect_to new_user_session_url}
21
- format.xml {render :template => 'page/403', :status => 403}
22
- format.json
23
- end
24
- end
25
- end
26
-
27
- def render_404
28
- return if performed?
29
- respond_to do |format|
30
- format.html {render :template => 'page/404', :status => 404}
31
- format.xml {render :template => 'page/404', :status => 404}
32
- format.json
33
- end
34
- end
35
-
36
- def set_locale
37
- if params[:locale]
38
- unless I18n.available_locales.include?(params[:locale].to_s.intern)
39
- raise InvalidLocaleError
40
- end
41
- end
42
- if user_signed_in?
43
- locale = params[:locale] || session[:locale] || current_user.locale.try(:to_sym)
44
- else
45
- locale = params[:locale] || session[:locale]
46
- end
47
- if locale
48
- I18n.locale = @locale = session[:locale] = locale.to_sym
49
- else
50
- I18n.locale = @locale = session[:locale] = I18n.default_locale
51
- end
52
- rescue InvalidLocaleError
53
- @locale = I18n.default_locale
54
- end
55
-
56
- def access_denied
57
- raise CanCan::AccessDenied
58
- end
59
- end
60
-
61
- class InvalidLocaleError < StandardError
4
+ enju_leaf
5
+ enju_library
62
6
  end
@@ -1,28 +1,9 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  class User < ActiveRecord::Base
2
- # Include default devise modules. Others available are:
3
- # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
4
- devise :database_authenticatable, :registerable,
5
- :recoverable, :rememberable, :trackable, :validatable
6
-
7
- # Setup accessible (or protected) attributes for your model
8
- attr_accessible :email, :password, :password_confirmation, :remember_me
9
-
10
- has_one :user_has_role
11
- has_one :role, :through => :user_has_role
12
- belongs_to :required_role, :class_name => 'Role', :foreign_key => 'required_role_id'
3
+ devise :database_authenticatable, #:registerable,
4
+ :recoverable, :rememberable, :trackable, #, :validatable
5
+ :lockable, :lock_strategy => :none, :unlock_strategy => :none
13
6
 
7
+ enju_leaf_user_model
14
8
  enju_search_log_user_model
15
-
16
- def has_role?(role_in_question)
17
- return false unless role
18
- return true if role.name == role_in_question
19
- case role.name
20
- when 'Administrator'
21
- return true
22
- when 'Librarian'
23
- return true if role_in_question == 'User'
24
- else
25
- false
26
- end
27
- end
28
9
  end
@@ -43,3 +43,4 @@ module Dummy
43
43
  end
44
44
  end
45
45
 
46
+ require 'enju_leaf'
@@ -1,6 +1,8 @@
1
1
  # Use this hook to configure devise mailer, warden hooks and so forth.
2
2
  # Many of these configuration options can be set straight in your model.
3
3
  Devise.setup do |config|
4
+ config.secret_key = 'c1d460d81ff2efaca14a9e4abef14047c903384f645f02e6ab8dafc1856c2d9750a7866cf7954682d45ded1df5156e2b6b3e5ceca5799cf9b6da5d763102d6b5'
5
+
4
6
  # ==> Mailer Configuration
5
7
  # Configure the e-mail address which will be shown in Devise::Mailer,
6
8
  # note that it will be overwritten if you use your own mailer class with default "from" parameter.
@@ -0,0 +1,18 @@
1
+ class CreateLibraryGroups < ActiveRecord::Migration
2
+ def change
3
+ create_table :library_groups do |t|
4
+ t.string :name, :null => false
5
+ t.text :display_name
6
+ t.string :short_name, :null => false
7
+ t.string :email
8
+ t.text :my_networks
9
+ t.text :login_banner
10
+ t.text :note
11
+ t.integer :country_id
12
+ t.integer :position
13
+
14
+ t.timestamps
15
+ end
16
+ add_index :library_groups, :short_name
17
+ end
18
+ end
@@ -0,0 +1,9 @@
1
+ class AddAdminNetworksToLibraryGroup < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :library_groups, :admin_networks, :text
4
+ end
5
+
6
+ def self.down
7
+ remove_column :library_groups, :admin_networks
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddUrlToLibraryGroup < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :library_groups, :url, :string, :default => 'http://localhost:3000/'
4
+ end
5
+
6
+ def self.down
7
+ remove_column :library_groups, :url
8
+ end
9
+ end
@@ -13,6 +13,24 @@
13
13
 
14
14
  ActiveRecord::Schema.define(:version => 20120418121539) do
15
15
 
16
+ create_table "library_groups", :force => true do |t|
17
+ t.string "name", :null => false
18
+ t.text "display_name"
19
+ t.string "short_name", :null => false
20
+ t.string "email"
21
+ t.text "my_networks"
22
+ t.text "login_banner"
23
+ t.text "note"
24
+ t.integer "country_id"
25
+ t.integer "position"
26
+ t.datetime "created_at", :null => false
27
+ t.datetime "updated_at", :null => false
28
+ t.text "admin_networks"
29
+ t.string "url", :default => "http://localhost:3000/"
30
+ end
31
+
32
+ add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
33
+
16
34
  create_table "roles", :force => true do |t|
17
35
  t.string "name"
18
36
  t.text "display_name"
@@ -0,0 +1,34 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+ one:
3
+ id: 1
4
+ name: enju_library
5
+ display_name: "<%= I18n.locale %>: Enju Library"
6
+ short_name: enju
7
+ email: next-l@library.example.jp
8
+ note:
9
+ my_networks: 0.0.0.0/0
10
+ url: "http://localhost:3000/"
11
+ position: 1
12
+ login_banner: "*Next-L Enju*"
13
+ admin_networks: 0.0.0.0/0
14
+
15
+ # == Schema Information
16
+ #
17
+ # Table name: library_groups
18
+ #
19
+ # id :integer not null, primary key
20
+ # name :string(255) not null
21
+ # display_name :text
22
+ # short_name :string(255) not null
23
+ # email :string(255)
24
+ # my_networks :text
25
+ # login_banner :text
26
+ # note :text
27
+ # country_id :integer
28
+ # position :integer
29
+ # created_at :datetime not null
30
+ # updated_at :datetime not null
31
+ # admin_networks :text
32
+ # url :string(255) default("http://localhost:3000/")
33
+ #
34
+
@@ -58,16 +58,16 @@ four:
58
58
  extra_request_data: MyString
59
59
  created_at: 2007-10-13 11:28:02
60
60
  updated_at: 2007-10-13 11:28:02
61
- user_id:
61
+ user_id:
62
62
 
63
63
  # == Schema Information
64
64
  #
65
65
  # Table name: search_histories
66
66
  #
67
- # id :integer not null, primary key
67
+ # id :integer not null, primary key
68
68
  # user_id :integer
69
- # operation :string(255) default("searchRetrieve")
70
- # sru_version :float default(1.2)
69
+ # operation :string(255) default("searchRetrieve")
70
+ # sru_version :float default(1.2)
71
71
  # query :string(255)
72
72
  # start_record :integer
73
73
  # maximum_records :integer
@@ -76,7 +76,7 @@ four:
76
76
  # result_set_ttl :integer
77
77
  # stylesheet :string(255)
78
78
  # extra_request_data :string(255)
79
- # number_of_records :integer default(0)
79
+ # number_of_records :integer default(0)
80
80
  # result_set_id :string(255)
81
81
  # result_set_idle_time :integer
82
82
  # records :text
@@ -84,7 +84,7 @@ four:
84
84
  # diagnostics :text
85
85
  # extra_response_data :text
86
86
  # echoed_search_retrieve_request :text
87
- # created_at :datetime
88
- # updated_at :datetime
87
+ # created_at :datetime not null
88
+ # updated_at :datetime not null
89
89
  #
90
90
 
@@ -29,10 +29,10 @@ end
29
29
  #
30
30
  # Table name: search_histories
31
31
  #
32
- # id :integer not null, primary key
32
+ # id :integer not null, primary key
33
33
  # user_id :integer
34
- # operation :string(255) default("searchRetrieve")
35
- # sru_version :float default(1.2)
34
+ # operation :string(255) default("searchRetrieve")
35
+ # sru_version :float default(1.2)
36
36
  # query :string(255)
37
37
  # start_record :integer
38
38
  # maximum_records :integer
@@ -41,7 +41,7 @@ end
41
41
  # result_set_ttl :integer
42
42
  # stylesheet :string(255)
43
43
  # extra_request_data :string(255)
44
- # number_of_records :integer default(0)
44
+ # number_of_records :integer default(0)
45
45
  # result_set_id :string(255)
46
46
  # result_set_idle_time :integer
47
47
  # records :text
@@ -49,7 +49,7 @@ end
49
49
  # diagnostics :text
50
50
  # extra_response_data :text
51
51
  # echoed_search_retrieve_request :text
52
- # created_at :datetime
53
- # updated_at :datetime
52
+ # created_at :datetime not null
53
+ # updated_at :datetime not null
54
54
  #
55
55
 
metadata CHANGED
@@ -1,78 +1,109 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_search_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre6
4
+ version: 0.1.0.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-17 00:00:00.000000000 Z
11
+ date: 2014-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: enju_seed
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.1.pre9
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.1.pre9
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: enju_biblio
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ~>
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: 0.1.0.pre31
33
+ version: 0.1.0.pre52
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ~>
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: 0.1.0.pre31
40
+ version: 0.1.0.pre52
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: sqlite3
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec-rails
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - '>='
59
+ - - '='
46
60
  - !ruby/object:Gem::Version
47
- version: '0'
61
+ version: '2.99'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - '>='
66
+ - - '='
53
67
  - !ruby/object:Gem::Version
54
- version: '0'
68
+ version: '2.99'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: factory_girl_rails
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - '>='
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
75
  version: '0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - '>='
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: enju_leaf
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.1.0.rc9
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.1.0.rc9
69
97
  description: Search log management for Next-L Enju
70
98
  email:
71
- - tanabe@mwr.mediacom.keio.ac.jp
99
+ - nabeta@fastmail.fm
72
100
  executables: []
73
101
  extensions: []
74
102
  extra_rdoc_files: []
75
103
  files:
104
+ - MIT-LICENSE
105
+ - README.rdoc
106
+ - Rakefile
76
107
  - app/controllers/search_histories_controller.rb
77
108
  - app/helpers/search_histories_helper.rb
78
109
  - app/models/enju_search_log/ability.rb
@@ -87,31 +118,24 @@ files:
87
118
  - db/migrate/090_create_search_histories.rb
88
119
  - db/migrate/20100623173800_rename_search_history_version_to_sru_version.rb
89
120
  - db/migrate/20120418121539_add_save_search_history_to_user.rb
121
+ - lib/enju_search_log.rb
90
122
  - lib/enju_search_log/engine.rb
91
123
  - lib/enju_search_log/user.rb
92
124
  - lib/enju_search_log/version.rb
93
- - lib/enju_search_log.rb
94
- - lib/generators/enju_search_log/setup/setup_generator.rb
95
125
  - lib/generators/enju_search_log/setup/USAGE
126
+ - lib/generators/enju_search_log/setup/setup_generator.rb
96
127
  - lib/tasks/enju_search_log_tasks.rake
97
- - MIT-LICENSE
98
- - Rakefile
99
- - README.rdoc
100
128
  - spec/controllers/search_histories_controller_spec.rb
129
+ - spec/dummy/Rakefile
101
130
  - spec/dummy/app/assets/javascripts/application.js
102
131
  - spec/dummy/app/assets/stylesheets/application.css
103
132
  - spec/dummy/app/controllers/application_controller.rb
104
133
  - spec/dummy/app/helpers/application_helper.rb
105
134
  - spec/dummy/app/models/ability.rb
106
- - spec/dummy/app/models/role.rb
107
135
  - spec/dummy/app/models/setting.rb
108
136
  - spec/dummy/app/models/user.rb
109
- - spec/dummy/app/models/user_has_role.rb
110
137
  - spec/dummy/app/views/layouts/application.html.erb
111
- - spec/dummy/app/views/page/403.html.erb
112
- - spec/dummy/app/views/page/403.xml.erb
113
- - spec/dummy/app/views/page/404.html.erb
114
- - spec/dummy/app/views/page/404.xml.erb
138
+ - spec/dummy/config.ru
115
139
  - spec/dummy/config/application.rb
116
140
  - spec/dummy/config/application.yml
117
141
  - spec/dummy/config/boot.rb
@@ -129,20 +153,20 @@ files:
129
153
  - spec/dummy/config/initializers/wrap_parameters.rb
130
154
  - spec/dummy/config/locales/en.yml
131
155
  - spec/dummy/config/routes.rb
132
- - spec/dummy/config.ru
133
- - spec/dummy/db/development.sqlite3
156
+ - spec/dummy/db/migrate/080_create_library_groups.rb
157
+ - spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
158
+ - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
134
159
  - spec/dummy/db/migrate/20111201121844_create_roles.rb
135
160
  - spec/dummy/db/migrate/20111201155456_create_users.rb
136
161
  - spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
137
162
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
138
163
  - spec/dummy/db/schema.rb
139
- - spec/dummy/db/test.sqlite3
140
164
  - spec/dummy/public/404.html
141
165
  - spec/dummy/public/422.html
142
166
  - spec/dummy/public/500.html
143
167
  - spec/dummy/public/favicon.ico
144
- - spec/dummy/Rakefile
145
168
  - spec/dummy/script/rails
169
+ - spec/fixtures/library_groups.yml
146
170
  - spec/fixtures/roles.yml
147
171
  - spec/fixtures/search_histories.yml
148
172
  - spec/fixtures/user_has_roles.yml
@@ -160,17 +184,17 @@ require_paths:
160
184
  - lib
161
185
  required_ruby_version: !ruby/object:Gem::Requirement
162
186
  requirements:
163
- - - '>='
187
+ - - ">="
164
188
  - !ruby/object:Gem::Version
165
189
  version: '0'
166
190
  required_rubygems_version: !ruby/object:Gem::Requirement
167
191
  requirements:
168
- - - '>'
192
+ - - ">"
169
193
  - !ruby/object:Gem::Version
170
194
  version: 1.3.1
171
195
  requirements: []
172
196
  rubyforge_project:
173
- rubygems_version: 2.0.0
197
+ rubygems_version: 2.2.2
174
198
  signing_key:
175
199
  specification_version: 4
176
200
  summary: enju_search_log plugin
@@ -181,15 +205,9 @@ test_files:
181
205
  - spec/dummy/app/controllers/application_controller.rb
182
206
  - spec/dummy/app/helpers/application_helper.rb
183
207
  - spec/dummy/app/models/ability.rb
184
- - spec/dummy/app/models/role.rb
185
208
  - spec/dummy/app/models/setting.rb
186
209
  - spec/dummy/app/models/user.rb
187
- - spec/dummy/app/models/user_has_role.rb
188
210
  - spec/dummy/app/views/layouts/application.html.erb
189
- - spec/dummy/app/views/page/403.html.erb
190
- - spec/dummy/app/views/page/403.xml.erb
191
- - spec/dummy/app/views/page/404.html.erb
192
- - spec/dummy/app/views/page/404.xml.erb
193
211
  - spec/dummy/config/application.rb
194
212
  - spec/dummy/config/application.yml
195
213
  - spec/dummy/config/boot.rb
@@ -208,19 +226,21 @@ test_files:
208
226
  - spec/dummy/config/locales/en.yml
209
227
  - spec/dummy/config/routes.rb
210
228
  - spec/dummy/config.ru
211
- - spec/dummy/db/development.sqlite3
229
+ - spec/dummy/db/migrate/080_create_library_groups.rb
230
+ - spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
231
+ - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
212
232
  - spec/dummy/db/migrate/20111201121844_create_roles.rb
213
233
  - spec/dummy/db/migrate/20111201155456_create_users.rb
214
234
  - spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
215
235
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
216
236
  - spec/dummy/db/schema.rb
217
- - spec/dummy/db/test.sqlite3
218
237
  - spec/dummy/public/404.html
219
238
  - spec/dummy/public/422.html
220
239
  - spec/dummy/public/500.html
221
240
  - spec/dummy/public/favicon.ico
222
241
  - spec/dummy/Rakefile
223
242
  - spec/dummy/script/rails
243
+ - spec/fixtures/library_groups.yml
224
244
  - spec/fixtures/roles.yml
225
245
  - spec/fixtures/search_histories.yml
226
246
  - spec/fixtures/user_has_roles.yml
@@ -1,5 +0,0 @@
1
- class Role < ActiveRecord::Base
2
- def self.default_role
3
- Role.where(:name => 'Guest').first
4
- end
5
- end
@@ -1,4 +0,0 @@
1
- class UserHasRole < ActiveRecord::Base
2
- belongs_to :user
3
- belongs_to :role
4
- end
@@ -1,9 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.access_denied') -%></h1>
3
- <div id="content_list">
4
- <%= render 'page/search_form' %>
5
- </div>
6
- </div>
7
-
8
- <div id="submenu" class="ui-corner-all">
9
- </div>
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <error>
3
- <status>403</status>
4
- </error>
@@ -1,9 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.not_found') -%></h1>
3
- <div id="content_list">
4
- <%= render 'page/search_form' %>
5
- </div>
6
- </div>
7
-
8
- <div id="submenu" class="ui-corner-all">
9
- </div>
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <error>
3
- <status>404</status>
4
- </error>
File without changes
Binary file