enju_inter_library_loan 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/Rakefile +12 -1
- data/app/controllers/inter_library_loans_controller.rb +4 -4
- data/lib/enju_inter_library_loan/version.rb +1 -1
- data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
- data/spec/dummy/db/schema.rb +24 -24
- data/spec/dummy/db/test.sqlite3 +0 -0
- metadata +113 -36
data/MIT-LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -14,7 +14,7 @@ end
|
|
14
14
|
|
15
15
|
RDoc::Task.new(:rdoc) do |rdoc|
|
16
16
|
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = '
|
17
|
+
rdoc.title = 'EnjuInterLibraryLoan'
|
18
18
|
rdoc.options << '--line-numbers'
|
19
19
|
rdoc.rdoc_files.include('README.rdoc')
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
@@ -43,3 +43,14 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
43
43
|
end
|
44
44
|
|
45
45
|
task :default => :spec
|
46
|
+
require 'rake/testtask'
|
47
|
+
|
48
|
+
Rake::TestTask.new(:test) do |t|
|
49
|
+
t.libs << 'lib'
|
50
|
+
t.libs << 'test'
|
51
|
+
t.pattern = 'test/**/*_test.rb'
|
52
|
+
t.verbose = false
|
53
|
+
end
|
54
|
+
|
55
|
+
|
56
|
+
task :default => :test
|
@@ -95,7 +95,7 @@ class InterLibraryLoansController < ApplicationController
|
|
95
95
|
if @inter_library_loan.update_attributes(params[:inter_library_loan])
|
96
96
|
flash[:notice] = t('controller.successfully_updated', :model => t('activerecord.models.inter_library_loan'))
|
97
97
|
format.html { redirect_to(@inter_library_loan) }
|
98
|
-
format.json { head :
|
98
|
+
format.json { head :no_content }
|
99
99
|
else
|
100
100
|
@inter_library_loan.item = @item
|
101
101
|
@libraries = LibraryGroup.first.real_libraries
|
@@ -115,10 +115,10 @@ class InterLibraryLoansController < ApplicationController
|
|
115
115
|
respond_to do |format|
|
116
116
|
if @item
|
117
117
|
format.html { redirect_to item_inter_library_loans_url(@item) }
|
118
|
-
format.json { head :
|
118
|
+
format.json { head :no_content }
|
119
119
|
else
|
120
|
-
format.html { redirect_to
|
121
|
-
format.json { head :
|
120
|
+
format.html { redirect_to inter_library_loans_url }
|
121
|
+
format.json { head :no_content }
|
122
122
|
end
|
123
123
|
end
|
124
124
|
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 => 20120105074911) do
|
15
15
|
|
16
16
|
create_table "inter_library_loans", :force => true do |t|
|
17
17
|
t.integer "item_id", :null => false
|
@@ -23,8 +23,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
23
23
|
t.datetime "return_received_at"
|
24
24
|
t.datetime "deleted_at"
|
25
25
|
t.string "state"
|
26
|
-
t.datetime "created_at"
|
27
|
-
t.datetime "updated_at"
|
26
|
+
t.datetime "created_at"
|
27
|
+
t.datetime "updated_at"
|
28
28
|
end
|
29
29
|
|
30
30
|
add_index "inter_library_loans", ["borrowing_library_id"], :name => "index_inter_library_loans_on_borrowing_library_id"
|
@@ -35,8 +35,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
35
35
|
t.string "item_identifier"
|
36
36
|
t.integer "circulation_status_id", :default => 5, :null => false
|
37
37
|
t.integer "checkout_type_id", :default => 1, :null => false
|
38
|
-
t.datetime "created_at"
|
39
|
-
t.datetime "updated_at"
|
38
|
+
t.datetime "created_at"
|
39
|
+
t.datetime "updated_at"
|
40
40
|
t.datetime "deleted_at"
|
41
41
|
t.integer "shelf_id", :default => 1, :null => false
|
42
42
|
t.integer "basket_id"
|
@@ -79,10 +79,10 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
79
79
|
t.integer "users_count", :default => 0, :null => false
|
80
80
|
t.integer "position"
|
81
81
|
t.integer "country_id"
|
82
|
-
t.
|
83
|
-
t.datetime "
|
84
|
-
t.datetime "updated_at", :null => false
|
82
|
+
t.datetime "created_at"
|
83
|
+
t.datetime "updated_at"
|
85
84
|
t.datetime "deleted_at"
|
85
|
+
t.string "isil"
|
86
86
|
end
|
87
87
|
|
88
88
|
add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
|
@@ -100,8 +100,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
100
100
|
t.integer "valid_period_for_new_user", :default => 365, :null => false
|
101
101
|
t.boolean "post_to_union_catalog", :default => false, :null => false
|
102
102
|
t.integer "country_id"
|
103
|
-
t.datetime "created_at"
|
104
|
-
t.datetime "updated_at"
|
103
|
+
t.datetime "created_at"
|
104
|
+
t.datetime "updated_at"
|
105
105
|
t.text "admin_networks"
|
106
106
|
t.boolean "allow_bookmark_external_url", :default => false, :null => false
|
107
107
|
t.integer "position"
|
@@ -118,8 +118,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
118
118
|
t.string "manifestation_identifier"
|
119
119
|
t.datetime "date_of_publication"
|
120
120
|
t.datetime "copyright_date"
|
121
|
-
t.datetime "created_at"
|
122
|
-
t.datetime "updated_at"
|
121
|
+
t.datetime "created_at"
|
122
|
+
t.datetime "updated_at"
|
123
123
|
t.datetime "deleted_at"
|
124
124
|
t.string "access_address"
|
125
125
|
t.integer "language_id", :default => 1, :null => false
|
@@ -174,8 +174,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
174
174
|
t.text "display_name"
|
175
175
|
t.text "note"
|
176
176
|
t.integer "position"
|
177
|
-
t.datetime "created_at"
|
178
|
-
t.datetime "updated_at"
|
177
|
+
t.datetime "created_at"
|
178
|
+
t.datetime "updated_at"
|
179
179
|
end
|
180
180
|
|
181
181
|
create_table "patrons", :force => true do |t|
|
@@ -191,8 +191,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
191
191
|
t.string "full_name"
|
192
192
|
t.text "full_name_transcription"
|
193
193
|
t.text "full_name_alternative"
|
194
|
-
t.datetime "created_at"
|
195
|
-
t.datetime "updated_at"
|
194
|
+
t.datetime "created_at"
|
195
|
+
t.datetime "updated_at"
|
196
196
|
t.datetime "deleted_at"
|
197
197
|
t.string "zip_code_1"
|
198
198
|
t.string "zip_code_2"
|
@@ -239,8 +239,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
239
239
|
t.text "display_name"
|
240
240
|
t.text "note"
|
241
241
|
t.integer "position"
|
242
|
-
t.datetime "created_at"
|
243
|
-
t.datetime "updated_at"
|
242
|
+
t.datetime "created_at"
|
243
|
+
t.datetime "updated_at"
|
244
244
|
end
|
245
245
|
|
246
246
|
create_table "shelves", :force => true do |t|
|
@@ -250,8 +250,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
250
250
|
t.integer "library_id", :default => 1, :null => false
|
251
251
|
t.integer "items_count", :default => 0, :null => false
|
252
252
|
t.integer "position"
|
253
|
-
t.datetime "created_at"
|
254
|
-
t.datetime "updated_at"
|
253
|
+
t.datetime "created_at"
|
254
|
+
t.datetime "updated_at"
|
255
255
|
t.datetime "deleted_at"
|
256
256
|
end
|
257
257
|
|
@@ -260,8 +260,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
260
260
|
create_table "user_has_roles", :force => true do |t|
|
261
261
|
t.integer "user_id"
|
262
262
|
t.integer "role_id"
|
263
|
-
t.datetime "created_at"
|
264
|
-
t.datetime "updated_at"
|
263
|
+
t.datetime "created_at"
|
264
|
+
t.datetime "updated_at"
|
265
265
|
end
|
266
266
|
|
267
267
|
create_table "users", :force => true do |t|
|
@@ -270,8 +270,8 @@ ActiveRecord::Schema.define(:version => 20111201163718) do
|
|
270
270
|
t.string "username"
|
271
271
|
t.text "note"
|
272
272
|
t.string "locale"
|
273
|
-
t.datetime "created_at"
|
274
|
-
t.datetime "updated_at"
|
273
|
+
t.datetime "created_at"
|
274
|
+
t.datetime "updated_at"
|
275
275
|
t.string "email", :default => "", :null => false
|
276
276
|
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
277
277
|
t.string "reset_password_token"
|
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_inter_library_loan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '3.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.2'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: devise
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: cancan
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: will_paginate
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ! '>='
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: '0'
|
55
70
|
type: :runtime
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: state_machine
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ! '>='
|
@@ -65,10 +85,15 @@ dependencies:
|
|
65
85
|
version: '0'
|
66
86
|
type: :runtime
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: addressable
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
99
|
- - ! '>='
|
@@ -76,10 +101,15 @@ dependencies:
|
|
76
101
|
version: '0'
|
77
102
|
type: :runtime
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
80
110
|
- !ruby/object:Gem::Dependency
|
81
111
|
name: friendly_id
|
82
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
83
113
|
none: false
|
84
114
|
requirements:
|
85
115
|
- - ~>
|
@@ -87,10 +117,15 @@ dependencies:
|
|
87
117
|
version: '4.0'
|
88
118
|
type: :runtime
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '4.0'
|
91
126
|
- !ruby/object:Gem::Dependency
|
92
127
|
name: attribute_normalizer
|
93
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
94
129
|
none: false
|
95
130
|
requirements:
|
96
131
|
- - ~>
|
@@ -98,10 +133,15 @@ dependencies:
|
|
98
133
|
version: '1.1'
|
99
134
|
type: :runtime
|
100
135
|
prerelease: false
|
101
|
-
version_requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '1.1'
|
102
142
|
- !ruby/object:Gem::Dependency
|
103
143
|
name: sunspot_rails
|
104
|
-
requirement:
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
105
145
|
none: false
|
106
146
|
requirements:
|
107
147
|
- - ! '>='
|
@@ -109,10 +149,15 @@ dependencies:
|
|
109
149
|
version: '0'
|
110
150
|
type: :runtime
|
111
151
|
prerelease: false
|
112
|
-
version_requirements:
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
113
158
|
- !ruby/object:Gem::Dependency
|
114
159
|
name: sunspot_solr
|
115
|
-
requirement:
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
116
161
|
none: false
|
117
162
|
requirements:
|
118
163
|
- - ! '>='
|
@@ -120,21 +165,31 @@ dependencies:
|
|
120
165
|
version: '0'
|
121
166
|
type: :runtime
|
122
167
|
prerelease: false
|
123
|
-
version_requirements:
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
124
174
|
- !ruby/object:Gem::Dependency
|
125
175
|
name: acts_as_list
|
126
|
-
requirement:
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
127
177
|
none: false
|
128
178
|
requirements:
|
129
179
|
- - ~>
|
130
180
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.1.
|
181
|
+
version: 0.1.6
|
132
182
|
type: :runtime
|
133
183
|
prerelease: false
|
134
|
-
version_requirements:
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ~>
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: 0.1.6
|
135
190
|
- !ruby/object:Gem::Dependency
|
136
191
|
name: sqlite3
|
137
|
-
requirement:
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
138
193
|
none: false
|
139
194
|
requirements:
|
140
195
|
- - ! '>='
|
@@ -142,10 +197,15 @@ dependencies:
|
|
142
197
|
version: '0'
|
143
198
|
type: :development
|
144
199
|
prerelease: false
|
145
|
-
version_requirements:
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ! '>='
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
146
206
|
- !ruby/object:Gem::Dependency
|
147
207
|
name: rspec-rails
|
148
|
-
requirement:
|
208
|
+
requirement: !ruby/object:Gem::Requirement
|
149
209
|
none: false
|
150
210
|
requirements:
|
151
211
|
- - ! '>='
|
@@ -153,21 +213,31 @@ dependencies:
|
|
153
213
|
version: '0'
|
154
214
|
type: :development
|
155
215
|
prerelease: false
|
156
|
-
version_requirements:
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ! '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
157
222
|
- !ruby/object:Gem::Dependency
|
158
223
|
name: factory_girl_rails
|
159
|
-
requirement:
|
224
|
+
requirement: !ruby/object:Gem::Requirement
|
160
225
|
none: false
|
161
226
|
requirements:
|
162
|
-
- -
|
227
|
+
- - ! '>='
|
163
228
|
- !ruby/object:Gem::Version
|
164
|
-
version: '
|
229
|
+
version: '0'
|
165
230
|
type: :development
|
166
231
|
prerelease: false
|
167
|
-
version_requirements:
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
168
238
|
- !ruby/object:Gem::Dependency
|
169
239
|
name: sunspot-rails-tester
|
170
|
-
requirement:
|
240
|
+
requirement: !ruby/object:Gem::Requirement
|
171
241
|
none: false
|
172
242
|
requirements:
|
173
243
|
- - ! '>='
|
@@ -175,7 +245,12 @@ dependencies:
|
|
175
245
|
version: '0'
|
176
246
|
type: :development
|
177
247
|
prerelease: false
|
178
|
-
version_requirements:
|
248
|
+
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
250
|
+
requirements:
|
251
|
+
- - ! '>='
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
179
254
|
description: Inter library loan management for Next-L Enju
|
180
255
|
email:
|
181
256
|
- tanabe@mwr.mediacom.keio.ac.jp
|
@@ -258,6 +333,7 @@ files:
|
|
258
333
|
- spec/dummy/db/migrate/20111201155456_create_users.rb
|
259
334
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|
260
335
|
- spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
|
336
|
+
- spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
|
261
337
|
- spec/dummy/db/schema.rb
|
262
338
|
- spec/dummy/db/test.sqlite3
|
263
339
|
- spec/dummy/lib/master_model.rb
|
@@ -305,7 +381,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
305
381
|
version: '0'
|
306
382
|
requirements: []
|
307
383
|
rubyforge_project:
|
308
|
-
rubygems_version: 1.8.
|
384
|
+
rubygems_version: 1.8.23
|
309
385
|
signing_key:
|
310
386
|
specification_version: 3
|
311
387
|
summary: enju_inter_library_loan plugin
|
@@ -366,6 +442,7 @@ test_files:
|
|
366
442
|
- spec/dummy/db/migrate/20111201155456_create_users.rb
|
367
443
|
- spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
|
368
444
|
- spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
|
445
|
+
- spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
|
369
446
|
- spec/dummy/db/schema.rb
|
370
447
|
- spec/dummy/db/test.sqlite3
|
371
448
|
- spec/dummy/lib/master_model.rb
|