enju_inter_library_loan 0.1.0.pre5 → 0.1.0.pre6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 299848b2029648b2d5affd7e6ce9d29d18a5673e
|
4
|
+
data.tar.gz: 49ccb3ac538c70116fdc18ae86042539fe902807
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ab4998713d9fe9220bc3d92060f5b5bcd02bd6f8c210f6b10760cc2ceb1fd2862755e3d3d3d5a9577f5df5ea54f48616fb69098364359d398ccb0b73ac923e62
|
7
|
+
data.tar.gz: 81d8c3126b98322bc5539c89f4cd6155cdd67d333584dbe5a86971450a82a400efdbb3cc79fe3fdb017f8a7d7c8d4e3e2d0aaf2f640a39a536fad8524811939f
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module EnjuInterLibraryLoan
|
2
|
+
class Ability
|
3
|
+
include CanCan::Ability
|
4
|
+
|
5
|
+
def initialize(user, ip_address = nil)
|
6
|
+
case user.try(:role).try(:name)
|
7
|
+
when 'Administrator'
|
8
|
+
can :manage, InterLibraryLoan
|
9
|
+
when 'Librarian'
|
10
|
+
can :manage, InterLibraryLoan
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module EnjuInterLibraryLoan
|
2
|
+
module InterLibraryLoanItem
|
3
|
+
def self.included(base)
|
4
|
+
base.extend ClassMethods
|
5
|
+
end
|
6
|
+
|
7
|
+
module ClassMethods
|
8
|
+
def enju_inter_library_loan_item_model
|
9
|
+
include InstanceMethods
|
10
|
+
has_many :inter_library_loans, :dependent => :destroy
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module InstanceMethods
|
15
|
+
def inter_library_loaned?
|
16
|
+
true if self.inter_library_loans.size > 0
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_inter_library_loan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.1.0.pre6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kosuke Tanabe
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-03-13 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,99 +27,87 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: state_machine
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: enju_biblio
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.1.0.
|
47
|
+
version: 0.1.0.pre23
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.0.
|
54
|
+
version: 0.1.0.pre23
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: sqlite3
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rspec-rails
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - '>='
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - '>='
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: factory_girl_rails
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - '>='
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - '>='
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: sunspot_solr
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - ~>
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.0.0
|
103
|
+
version: 2.0.0
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - ~>
|
124
109
|
- !ruby/object:Gem::Version
|
125
|
-
version: 2.0.0
|
110
|
+
version: 2.0.0
|
126
111
|
description: Inter library loan management for Next-L Enju
|
127
112
|
email:
|
128
113
|
- tanabe@mwr.mediacom.keio.ac.jp
|
@@ -131,6 +116,7 @@ extensions: []
|
|
131
116
|
extra_rdoc_files: []
|
132
117
|
files:
|
133
118
|
- app/controllers/inter_library_loans_controller.rb
|
119
|
+
- app/models/enju_inter_library_loan/ability.rb
|
134
120
|
- app/models/inter_library_loan.rb
|
135
121
|
- app/views/inter_library_loans/edit.html.erb
|
136
122
|
- app/views/inter_library_loans/index.atom.builder
|
@@ -143,6 +129,7 @@ files:
|
|
143
129
|
- config/routes.rb
|
144
130
|
- db/migrate/148_create_inter_library_loans.rb
|
145
131
|
- lib/enju_inter_library_loan/engine.rb
|
132
|
+
- lib/enju_inter_library_loan/item.rb
|
146
133
|
- lib/enju_inter_library_loan/version.rb
|
147
134
|
- lib/enju_inter_library_loan.rb
|
148
135
|
- lib/generators/enju_inter_library_loan/views_generator.rb
|
@@ -233,32 +220,28 @@ files:
|
|
233
220
|
- spec/spec_helper.rb
|
234
221
|
- spec/support/controller_macros.rb
|
235
222
|
- spec/support/devise.rb
|
236
|
-
homepage: https://github.com/
|
223
|
+
homepage: https://github.com/next-l/enju_inter_library_loan
|
237
224
|
licenses: []
|
225
|
+
metadata: {}
|
238
226
|
post_install_message:
|
239
227
|
rdoc_options: []
|
240
228
|
require_paths:
|
241
229
|
- lib
|
242
230
|
required_ruby_version: !ruby/object:Gem::Requirement
|
243
|
-
none: false
|
244
231
|
requirements:
|
245
|
-
- -
|
232
|
+
- - '>='
|
246
233
|
- !ruby/object:Gem::Version
|
247
234
|
version: '0'
|
248
|
-
segments:
|
249
|
-
- 0
|
250
|
-
hash: 906177691805871116
|
251
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
|
-
none: false
|
253
236
|
requirements:
|
254
|
-
- -
|
237
|
+
- - '>'
|
255
238
|
- !ruby/object:Gem::Version
|
256
239
|
version: 1.3.1
|
257
240
|
requirements: []
|
258
241
|
rubyforge_project:
|
259
|
-
rubygems_version:
|
242
|
+
rubygems_version: 2.0.0
|
260
243
|
signing_key:
|
261
|
-
specification_version:
|
244
|
+
specification_version: 4
|
262
245
|
summary: enju_inter_library_loan plugin
|
263
246
|
test_files:
|
264
247
|
- spec/controllers/inter_library_loans_controller_spec.rb
|