hydra-core 6.3.3 → 6.3.4

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: 8106466b12a6f1dba6af3166196978901845be03
4
+ data.tar.gz: ad73413b369fea0f7f49f4905d99f3dc940bfada
5
+ SHA512:
6
+ metadata.gz: da415a6c990c4feb67c452b9dc09265f0635f4f7130233eca0717727f18e6ccdfeefc3ad6c1f217aefaefbda94498c07d1c5beaa8dde53030758fdbc5a8c8fa4
7
+ data.tar.gz: d5af7016ec5f63d9619f0938255d4bfb03b02477c4661de3595585030909eee3f518a91fbc4e1e822b6b17144eda54280b965fa3fc8051296e02c9c841a8c965
@@ -60,6 +60,9 @@ class HeadGenerator < Rails::Generators::Base
60
60
  copy_file "config/role_map_production.yml", "config/role_map_production.yml"
61
61
  copy_file "config/role_map_test.yml", "config/role_map_test.yml"
62
62
 
63
+ # CanCan ability.rb
64
+ copy_file "ability.rb", "app/models/ability.rb"
65
+
63
66
  # Fedora & Solr YAML files
64
67
  invoke('active_fedora:config')
65
68
  end
@@ -0,0 +1,21 @@
1
+ class Ability
2
+ include Hydra::Ability
3
+
4
+ # Define any customized permissions here. Some commented examples are included below.
5
+ def custom_permissions
6
+
7
+ # Limits deleting objects to a the admin user
8
+ #
9
+ # if current_user.admin?
10
+ # can [:destroy], ActiveFedora::Base
11
+ # end
12
+
13
+ # Limits creating new objects to a specific group
14
+ #
15
+ # if user_groups.include? 'special_group'
16
+ # can [:create], ActiveFedora::Base
17
+ # end
18
+
19
+ end
20
+
21
+ end
@@ -1,4 +1,4 @@
1
1
  module HydraHead
2
- VERSION = "6.3.3"
2
+ VERSION = "6.3.4"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.3
5
- prerelease:
4
+ version: 6.3.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Matt Zumwalt, Bess Sadler, Julie Meloni, Naomi Dushay, Jessie Keck, John Scofield,
@@ -10,14 +9,13 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-08-16 00:00:00.000000000 Z
12
+ date: 2013-08-27 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rails
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: 3.2.3
23
21
  - - <
@@ -26,9 +24,8 @@ dependencies:
26
24
  type: :runtime
27
25
  prerelease: false
28
26
  version_requirements: !ruby/object:Gem::Requirement
29
- none: false
30
27
  requirements:
31
- - - ! '>='
28
+ - - '>='
32
29
  - !ruby/object:Gem::Version
33
30
  version: 3.2.3
34
31
  - - <
@@ -37,7 +34,6 @@ dependencies:
37
34
  - !ruby/object:Gem::Dependency
38
35
  name: blacklight
39
36
  requirement: !ruby/object:Gem::Requirement
40
- none: false
41
37
  requirements:
42
38
  - - ~>
43
39
  - !ruby/object:Gem::Version
@@ -45,7 +41,6 @@ dependencies:
45
41
  type: :runtime
46
42
  prerelease: false
47
43
  version_requirements: !ruby/object:Gem::Requirement
48
- none: false
49
44
  requirements:
50
45
  - - ~>
51
46
  - !ruby/object:Gem::Version
@@ -53,150 +48,132 @@ dependencies:
53
48
  - !ruby/object:Gem::Dependency
54
49
  name: active-fedora
55
50
  requirement: !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
- - - ! '>='
52
+ - - '>='
59
53
  - !ruby/object:Gem::Version
60
54
  version: '0'
61
55
  type: :runtime
62
56
  prerelease: false
63
57
  version_requirements: !ruby/object:Gem::Requirement
64
- none: false
65
58
  requirements:
66
- - - ! '>='
59
+ - - '>='
67
60
  - !ruby/object:Gem::Version
68
61
  version: '0'
69
62
  - !ruby/object:Gem::Dependency
70
63
  name: block_helpers
71
64
  requirement: !ruby/object:Gem::Requirement
72
- none: false
73
65
  requirements:
74
- - - ! '>='
66
+ - - '>='
75
67
  - !ruby/object:Gem::Version
76
68
  version: '0'
77
69
  type: :runtime
78
70
  prerelease: false
79
71
  version_requirements: !ruby/object:Gem::Requirement
80
- none: false
81
72
  requirements:
82
- - - ! '>='
73
+ - - '>='
83
74
  - !ruby/object:Gem::Version
84
75
  version: '0'
85
76
  - !ruby/object:Gem::Dependency
86
77
  name: deprecation
87
78
  requirement: !ruby/object:Gem::Requirement
88
- none: false
89
79
  requirements:
90
- - - ! '>='
80
+ - - '>='
91
81
  - !ruby/object:Gem::Version
92
82
  version: 0.0.5
93
83
  type: :runtime
94
84
  prerelease: false
95
85
  version_requirements: !ruby/object:Gem::Requirement
96
- none: false
97
86
  requirements:
98
- - - ! '>='
87
+ - - '>='
99
88
  - !ruby/object:Gem::Version
100
89
  version: 0.0.5
101
90
  - !ruby/object:Gem::Dependency
102
91
  name: hydra-access-controls
103
92
  requirement: !ruby/object:Gem::Requirement
104
- none: false
105
93
  requirements:
106
94
  - - '='
107
95
  - !ruby/object:Gem::Version
108
- version: 6.3.3
96
+ version: 6.3.4
109
97
  type: :runtime
110
98
  prerelease: false
111
99
  version_requirements: !ruby/object:Gem::Requirement
112
- none: false
113
100
  requirements:
114
101
  - - '='
115
102
  - !ruby/object:Gem::Version
116
- version: 6.3.3
103
+ version: 6.3.4
117
104
  - !ruby/object:Gem::Dependency
118
105
  name: jettywrapper
119
106
  requirement: !ruby/object:Gem::Requirement
120
- none: false
121
107
  requirements:
122
- - - ! '>='
108
+ - - '>='
123
109
  - !ruby/object:Gem::Version
124
110
  version: 1.4.1
125
111
  type: :runtime
126
112
  prerelease: false
127
113
  version_requirements: !ruby/object:Gem::Requirement
128
- none: false
129
114
  requirements:
130
- - - ! '>='
115
+ - - '>='
131
116
  - !ruby/object:Gem::Version
132
117
  version: 1.4.1
133
118
  - !ruby/object:Gem::Dependency
134
119
  name: sqlite3
135
120
  requirement: !ruby/object:Gem::Requirement
136
- none: false
137
121
  requirements:
138
- - - ! '>='
122
+ - - '>='
139
123
  - !ruby/object:Gem::Version
140
124
  version: '0'
141
125
  type: :development
142
126
  prerelease: false
143
127
  version_requirements: !ruby/object:Gem::Requirement
144
- none: false
145
128
  requirements:
146
- - - ! '>='
129
+ - - '>='
147
130
  - !ruby/object:Gem::Version
148
131
  version: '0'
149
132
  - !ruby/object:Gem::Dependency
150
133
  name: yard
151
134
  requirement: !ruby/object:Gem::Requirement
152
- none: false
153
135
  requirements:
154
- - - ! '>='
136
+ - - '>='
155
137
  - !ruby/object:Gem::Version
156
138
  version: '0'
157
139
  type: :development
158
140
  prerelease: false
159
141
  version_requirements: !ruby/object:Gem::Requirement
160
- none: false
161
142
  requirements:
162
- - - ! '>='
143
+ - - '>='
163
144
  - !ruby/object:Gem::Version
164
145
  version: '0'
165
146
  - !ruby/object:Gem::Dependency
166
147
  name: rspec-rails
167
148
  requirement: !ruby/object:Gem::Requirement
168
- none: false
169
149
  requirements:
170
- - - ! '>='
150
+ - - '>='
171
151
  - !ruby/object:Gem::Version
172
152
  version: '0'
173
153
  type: :development
174
154
  prerelease: false
175
155
  version_requirements: !ruby/object:Gem::Requirement
176
- none: false
177
156
  requirements:
178
- - - ! '>='
157
+ - - '>='
179
158
  - !ruby/object:Gem::Version
180
159
  version: '0'
181
160
  - !ruby/object:Gem::Dependency
182
161
  name: factory_girl_rails
183
162
  requirement: !ruby/object:Gem::Requirement
184
- none: false
185
163
  requirements:
186
- - - ! '>='
164
+ - - '>='
187
165
  - !ruby/object:Gem::Version
188
166
  version: '0'
189
167
  type: :development
190
168
  prerelease: false
191
169
  version_requirements: !ruby/object:Gem::Requirement
192
- none: false
193
170
  requirements:
194
- - - ! '>='
171
+ - - '>='
195
172
  - !ruby/object:Gem::Version
196
173
  version: '0'
197
- description: ! 'Hydra-Head is a Rails Engine containing the core code for a Hydra
198
- application. The full hydra stack includes: Blacklight, Fedora, Solr, active-fedora,
199
- solrizer, and om'
174
+ description: 'Hydra-Head is a Rails Engine containing the core code for a Hydra application.
175
+ The full hydra stack includes: Blacklight, Fedora, Solr, active-fedora, solrizer,
176
+ and om'
200
177
  email:
201
178
  - hydra-tech@googlegroups.com
202
179
  executables: []
@@ -220,6 +197,7 @@ files:
220
197
  - lib/generators/hydra/head_generator.rb
221
198
  - lib/generators/hydra/hyhead_fixtures_generator.rb
222
199
  - lib/generators/hydra/jetty_generator.rb
200
+ - lib/generators/hydra/templates/ability.rb
223
201
  - lib/generators/hydra/templates/catalog_controller.rb
224
202
  - lib/generators/hydra/templates/config/fedora.yml
225
203
  - lib/generators/hydra/templates/config/initializers/action_dispatch_http_upload_monkey_patch.rb
@@ -286,27 +264,26 @@ files:
286
264
  homepage: http://projecthydra.org
287
265
  licenses:
288
266
  - APACHE2
267
+ metadata: {}
289
268
  post_install_message:
290
269
  rdoc_options: []
291
270
  require_paths:
292
271
  - lib
293
272
  required_ruby_version: !ruby/object:Gem::Requirement
294
- none: false
295
273
  requirements:
296
- - - ! '>='
274
+ - - '>='
297
275
  - !ruby/object:Gem::Version
298
276
  version: 1.9.3
299
277
  required_rubygems_version: !ruby/object:Gem::Requirement
300
- none: false
301
278
  requirements:
302
- - - ! '>='
279
+ - - '>='
303
280
  - !ruby/object:Gem::Version
304
281
  version: '0'
305
282
  requirements: []
306
283
  rubyforge_project:
307
- rubygems_version: 1.8.23
284
+ rubygems_version: 2.0.5
308
285
  signing_key:
309
- specification_version: 3
286
+ specification_version: 4
310
287
  summary: Hydra-Head Rails Engine (requires Rails3)
311
288
  test_files:
312
289
  - spec/.gitignore