enju_resource_merge 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b3583105ab96abd5e6a9303a2d92b688cfaadb69
4
+ data.tar.gz: 9050151a5dc9811feca696e5c697decef2bf8ad0
5
+ SHA512:
6
+ metadata.gz: c7a01b76513b3a86ad9864355fd77fea287a4cafd003974198f01086d6e7303d7a9ddf14044eca9268fb83cbd49c8c3b96eea2a2d59cc0d27484710390aea847
7
+ data.tar.gz: 81a310a244be2c1cb9ff048491325070fee15bf309ccdacbf0b5bcb25982bc9ad9988b187871fd7645d5219307558e62660804be314d753ee7f9cd984e0d0574
@@ -0,0 +1,24 @@
1
+ module EnjuResourceMerge
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, [
9
+ PatronMerge,
10
+ PatronMergeList,
11
+ SeriesStatementMerge,
12
+ SeriesStatementMergeList
13
+ ]
14
+ when 'Librarian'
15
+ can :manage, [
16
+ PatronMerge,
17
+ PatronMergeList,
18
+ SeriesStatementMerge,
19
+ SeriesStatementMergeList
20
+ ]
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuResourceMerge
2
- VERSION = "0.1.0.pre5"
2
+ VERSION = "0.1.0.pre6"
3
3
  end
@@ -1,22 +1,24 @@
1
- class Ability
2
- include CanCan::Ability
1
+ #module EnjuResourceMerge
2
+ class Ability
3
+ include CanCan::Ability
3
4
 
4
- def initialize(user)
5
- case user.try(:role).try(:name)
6
- when 'Administrator'
7
- can :manage, [
8
- PatronMerge,
9
- PatronMergeList,
10
- SeriesStatementMerge,
11
- SeriesStatementMergeList
12
- ]
13
- when 'Librarian'
14
- can :manage, [
15
- PatronMerge,
16
- PatronMergeList,
17
- SeriesStatementMerge,
18
- SeriesStatementMergeList
19
- ]
5
+ def initialize(user, ip_address = nil)
6
+ case user.try(:role).try(:name)
7
+ when 'Administrator'
8
+ can :manage, [
9
+ PatronMerge,
10
+ PatronMergeList,
11
+ SeriesStatementMerge,
12
+ SeriesStatementMergeList
13
+ ]
14
+ when 'Librarian'
15
+ can :manage, [
16
+ PatronMerge,
17
+ PatronMergeList,
18
+ SeriesStatementMerge,
19
+ SeriesStatementMergeList
20
+ ]
21
+ end
20
22
  end
21
23
  end
22
- end
24
+ #end
@@ -44,4 +44,3 @@ module Dummy
44
44
  end
45
45
 
46
46
  require 'enju_biblio'
47
- require 'enju_manifestation_viewer'
Binary file
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_resource_merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre5
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: 2012-12-13 00:00:00.000000000 Z
11
+ date: 2013-03-16 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,131 +27,101 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: inherited_resources
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: dynamic_form
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
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
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: enju_biblio
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
69
- version: 0.1.0.pre13
61
+ version: 0.1.0.pre25
70
62
  type: :runtime
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
- version: 0.1.0.pre13
68
+ version: 0.1.0.pre25
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: sqlite3
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: rspec-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: factory_girl_rails
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '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
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: sunspot_solr
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ~>
132
116
  - !ruby/object:Gem::Version
133
- version: 2.0.0.pre.120925
117
+ version: 2.0.0
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ~>
140
123
  - !ruby/object:Gem::Version
141
- version: 2.0.0.pre.120925
142
- - !ruby/object:Gem::Dependency
143
- name: enju_manifestation_viewer
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ~>
148
- - !ruby/object:Gem::Version
149
- version: 0.1.0.pre3
150
- type: :development
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ~>
156
- - !ruby/object:Gem::Version
157
- version: 0.1.0.pre3
124
+ version: 2.0.0
158
125
  description: Merge resource records for Next-L Enju
159
126
  email:
160
127
  - tanabe@mwr.mediacom.keio.ac.jp
@@ -166,6 +133,7 @@ files:
166
133
  - app/controllers/patron_merges_controller.rb
167
134
  - app/controllers/series_statement_merge_lists_controller.rb
168
135
  - app/controllers/series_statement_merges_controller.rb
136
+ - app/models/enju_resource_merge/ability.rb
169
137
  - app/models/patron_merge.rb
170
138
  - app/models/patron_merge_list.rb
171
139
  - app/models/series_statement_merge.rb
@@ -369,32 +337,28 @@ files:
369
337
  - spec/views/series_statement_merges/index.html.erb_spec.rb
370
338
  - spec/views/series_statement_merges/new.html.erb_spec.rb
371
339
  - spec/views/series_statement_merges/show.html.erb_spec.rb
372
- homepage: https://github.com/nabeta/enju_resource_merge
340
+ homepage: https://github.com/next-l/enju_resource_merge
373
341
  licenses: []
342
+ metadata: {}
374
343
  post_install_message:
375
344
  rdoc_options: []
376
345
  require_paths:
377
346
  - lib
378
347
  required_ruby_version: !ruby/object:Gem::Requirement
379
- none: false
380
348
  requirements:
381
- - - ! '>='
349
+ - - '>='
382
350
  - !ruby/object:Gem::Version
383
351
  version: '0'
384
- segments:
385
- - 0
386
- hash: 2804683948885607675
387
352
  required_rubygems_version: !ruby/object:Gem::Requirement
388
- none: false
389
353
  requirements:
390
- - - ! '>'
354
+ - - '>'
391
355
  - !ruby/object:Gem::Version
392
356
  version: 1.3.1
393
357
  requirements: []
394
358
  rubyforge_project:
395
- rubygems_version: 1.8.23
359
+ rubygems_version: 2.0.0
396
360
  signing_key:
397
- specification_version: 3
361
+ specification_version: 4
398
362
  summary: enju_resource_merge plugin
399
363
  test_files:
400
364
  - spec/controllers/patron_merge_lists_controller_spec.rb