valkyrie_active_fedora 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +77 -0
- data/.rubocop.yml +276 -0
- data/.rubocop_todo.yml +20 -0
- data/.solr_wrapper +6 -0
- data/.travis.yml +19 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +17 -0
- data/LICENSE +201 -0
- data/README.md +46 -0
- data/Rakefile +17 -0
- data/config/fedora.yml +14 -0
- data/config/service_mappings.yml +9 -0
- data/config/solr.yml +15 -0
- data/lib/generators/valkyrie_active_fedora/config/USAGE +9 -0
- data/lib/generators/valkyrie_active_fedora/config/config_generator.rb +10 -0
- data/lib/generators/valkyrie_active_fedora/config/fedora/fedora_generator.rb +16 -0
- data/lib/generators/valkyrie_active_fedora/config/fedora/templates/.fcrepo_wrapper.yml +4 -0
- data/lib/generators/valkyrie_active_fedora/config/fedora/templates/fcrepo_wrapper_test.yml +4 -0
- data/lib/generators/valkyrie_active_fedora/config/fedora/templates/fedora.yml +15 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/solr_generator.rb +19 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/.solr_wrapper.yml +8 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr.yml +7 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/_rest_managed.json +3 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/admin-extra.html +31 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/elevate.xml +36 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/mapping-ISOLatin1Accent.txt +246 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/protwords.txt +21 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/schema.xml +379 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/scripts.conf +24 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/solrconfig.xml +325 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/spellings.txt +2 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/stopwords.txt +58 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/stopwords_en.txt +58 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/synonyms.txt +31 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/example.xsl +132 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/example_atom.xsl +67 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/example_rss.xsl +66 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/luke.xsl +337 -0
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr_wrapper_test.yml +8 -0
- data/lib/generators/valkyrie_active_fedora/model/USAGE +11 -0
- data/lib/generators/valkyrie_active_fedora/model/model_generator.rb +31 -0
- data/lib/generators/valkyrie_active_fedora/model/templates/datastream.rb.erb +32 -0
- data/lib/generators/valkyrie_active_fedora/model/templates/datastream_spec.rb.erb +13 -0
- data/lib/generators/valkyrie_active_fedora/model/templates/model.rb.erb +46 -0
- data/lib/generators/valkyrie_active_fedora/model/templates/model_spec.rb.erb +38 -0
- data/lib/tasks/valkyrie_active_fedora_dev.rake +67 -0
- data/lib/valkyrie_active_fedora.rb +11 -0
- data/lib/valkyrie_active_fedora/base.rb +39 -0
- data/lib/valkyrie_active_fedora/engine.rb +12 -0
- data/lib/valkyrie_active_fedora/version.rb +4 -0
- data/spec/.gitignore +1 -0
- data/spec/rails_helper.rb +3 -0
- data/spec/spec_helper.rb +108 -0
- data/spec/unit/base_spec.rb +36 -0
- data/tasks/valkyrie_active_fedora_dev.rake +17 -0
- data/valkyrie_active_fedora.gemspec +47 -0
- metadata +314 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bb3204d5ea81515a5c5d414acc6b5413dfa2f80f793abab6f05b607771968c24
|
4
|
+
data.tar.gz: 6544d26ef4518f6f9f97282fad146cf6b392257eea6a915f1115fc31184208b5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8989d36fef448474e3de820eb6bb6aad5f9bada51ccb9663ebc349ae138b05252e4c30da8ed22b7cd56156a1ac8658b79fbe61d4084ec39b699b2182afe275a3
|
7
|
+
data.tar.gz: 1e3da26fff5f7a745b78888dc58a6090a25c2eddbd96c8f2cd0b9257fb3f5edb0241fe2d5362734602adb5eb5311ecf8ea65d956b9bfbd693921034533291d24
|
data/.gitignore
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Ignore bundler config.
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore the default SQLite database.
|
11
|
+
/db/*.sqlite3
|
12
|
+
/db/*.sqlite3-journal
|
13
|
+
|
14
|
+
# Ignore all logfiles and tempfiles.
|
15
|
+
/log/*
|
16
|
+
/tmp/*
|
17
|
+
!/log/.keep
|
18
|
+
!/tmp/.keep
|
19
|
+
rails.log
|
20
|
+
solr.log
|
21
|
+
fedora.log
|
22
|
+
redis.log
|
23
|
+
script/log
|
24
|
+
|
25
|
+
/node_modules
|
26
|
+
/yarn-error.log
|
27
|
+
|
28
|
+
.byebug_history
|
29
|
+
|
30
|
+
# Ignore vendor/cache
|
31
|
+
/vendor/cache
|
32
|
+
/vendor/bundle
|
33
|
+
|
34
|
+
# ignore development scripts
|
35
|
+
/devscript
|
36
|
+
|
37
|
+
# Ignore public documents, (compiled) assets, and sitemap
|
38
|
+
/public/documents
|
39
|
+
/public/assets
|
40
|
+
/public/sitemap.xml.gz
|
41
|
+
|
42
|
+
# ignore renderer file
|
43
|
+
# shows the template being rendered in the html source
|
44
|
+
config/initializers/renderer.rb
|
45
|
+
|
46
|
+
# ignore jetty
|
47
|
+
jetty
|
48
|
+
|
49
|
+
# ignore local coverage
|
50
|
+
coverage
|
51
|
+
|
52
|
+
# ignore rubocop reports
|
53
|
+
reports
|
54
|
+
|
55
|
+
# ignore persisting example file
|
56
|
+
/spec/examples.txt
|
57
|
+
.DS_Store
|
58
|
+
|
59
|
+
# from rails engine creation process
|
60
|
+
.bundle/
|
61
|
+
log/*.log
|
62
|
+
pkg/
|
63
|
+
test/dummy/db/*.sqlite3
|
64
|
+
test/dummy/db/*.sqlite3-journal
|
65
|
+
test/dummy/log/*.log
|
66
|
+
test/dummy/node_modules/
|
67
|
+
test/dummy/yarn-error.log
|
68
|
+
test/dummy/storage/
|
69
|
+
test/dummy/tmp/
|
70
|
+
|
71
|
+
.internal_test_app
|
72
|
+
|
73
|
+
# do not keep the built gem
|
74
|
+
*.gem
|
75
|
+
|
76
|
+
# do not keep Gemfile.lock for engines
|
77
|
+
Gemfile.lock
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,276 @@
|
|
1
|
+
inherit_gem:
|
2
|
+
# bixby: bixby_default.yml
|
3
|
+
|
4
|
+
inherit_from: .rubocop_todo.yml
|
5
|
+
|
6
|
+
AllCops:
|
7
|
+
TargetRubyVersion: 2.2
|
8
|
+
DisplayCopNames: true
|
9
|
+
Include:
|
10
|
+
- '**/Rakefile'
|
11
|
+
Exclude:
|
12
|
+
- 'db/**/*'
|
13
|
+
- 'script/**/*'
|
14
|
+
- 'spec/test_app_templates/**/*'
|
15
|
+
- 'vendor/**/*'
|
16
|
+
- 'lib/hyrax/specs/**/*'
|
17
|
+
|
18
|
+
Lint/HandleExceptions:
|
19
|
+
Exclude:
|
20
|
+
- 'spec/unit/**/*'
|
21
|
+
- 'spec/integration/**/*'
|
22
|
+
- 'lib/active_fedora/cleaner.rb'
|
23
|
+
- 'lib/active_fedora/associations/builder/has_subresource.rb'
|
24
|
+
|
25
|
+
Lint/AssignmentInCondition:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Metrics/LineLength:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Metrics/AbcSize:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Metrics/BlockNesting:
|
35
|
+
Exclude:
|
36
|
+
- 'lib/active_fedora/autosave_association.rb'
|
37
|
+
- 'lib/active_fedora/associations/has_many_association.rb'
|
38
|
+
|
39
|
+
Metrics/CyclomaticComplexity:
|
40
|
+
Exclude:
|
41
|
+
- 'lib/active_fedora.rb'
|
42
|
+
- 'lib/active_fedora/core.rb'
|
43
|
+
- 'lib/active_fedora/reflection.rb'
|
44
|
+
- 'lib/active_fedora/relation/finder_methods.rb'
|
45
|
+
- 'lib/active_fedora/query_result_builder.rb'
|
46
|
+
- 'lib/active_fedora/nested_attributes.rb'
|
47
|
+
- 'lib/active_fedora/autosave_association.rb'
|
48
|
+
- 'lib/active_fedora/associations/has_many_association.rb'
|
49
|
+
- 'lib/active_fedora/associations/has_and_belongs_to_many_association.rb'
|
50
|
+
- 'lib/active_fedora/associations/builder/indirectly_contains.rb'
|
51
|
+
- 'lib/active_fedora/associations/builder/directly_contains_one.rb'
|
52
|
+
- 'lib/active_fedora/file_configurator.rb'
|
53
|
+
- 'lib/active_fedora/file.rb'
|
54
|
+
- 'lib/active_fedora/attribute_methods.rb'
|
55
|
+
- 'lib/active_fedora/scoping/named.rb'
|
56
|
+
- 'lib/active_fedora/indexing/field_mapper.rb'
|
57
|
+
- 'lib/active_fedora/indexing/suffix.rb'
|
58
|
+
- 'lib/active_fedora/inheritance.rb'
|
59
|
+
|
60
|
+
Metrics/PerceivedComplexity:
|
61
|
+
Exclude:
|
62
|
+
- 'lib/active_fedora.rb'
|
63
|
+
- 'lib/active_fedora/relation/finder_methods.rb'
|
64
|
+
- 'lib/active_fedora/nested_attributes.rb'
|
65
|
+
- 'lib/active_fedora/file_configurator.rb'
|
66
|
+
- 'lib/active_fedora/autosave_association.rb'
|
67
|
+
- 'lib/active_fedora/associations/has_many_association.rb'
|
68
|
+
- 'lib/active_fedora/associations/has_and_belongs_to_many_association.rb'
|
69
|
+
- 'lib/active_fedora/associations/builder/indirectly_contains.rb'
|
70
|
+
- 'lib/active_fedora/associations/builder/directly_contains_one.rb'
|
71
|
+
- 'lib/active_fedora/associations/collection_association.rb'
|
72
|
+
- 'lib/active_fedora/attribute_methods.rb'
|
73
|
+
- 'lib/active_fedora/scoping/named.rb'
|
74
|
+
- 'lib/active_fedora/indexing/field_mapper.rb'
|
75
|
+
- 'lib/active_fedora/inheritance.rb'
|
76
|
+
|
77
|
+
Metrics/ModuleLength:
|
78
|
+
Exclude:
|
79
|
+
- 'lib/active_fedora.rb'
|
80
|
+
- 'lib/active_fedora/relation/finder_methods.rb'
|
81
|
+
- 'lib/active_fedora/persistence.rb'
|
82
|
+
- 'lib/active_fedora/attributes.rb'
|
83
|
+
- 'lib/active_fedora/autosave_association.rb'
|
84
|
+
- 'lib/active_fedora/attached_files.rb'
|
85
|
+
- 'lib/active_fedora/nested_attributes.rb'
|
86
|
+
|
87
|
+
Metrics/ClassLength:
|
88
|
+
Exclude:
|
89
|
+
- 'lib/active_fedora/rdf/fcrepo.rb'
|
90
|
+
- 'lib/active_fedora/file_configurator.rb'
|
91
|
+
- 'lib/active_fedora/file.rb'
|
92
|
+
- 'lib/active_fedora/associations/association.rb'
|
93
|
+
- 'lib/active_fedora/associations/builder/association.rb'
|
94
|
+
- 'lib/active_fedora/associations/collection_proxy.rb'
|
95
|
+
- 'lib/active_fedora/associations/collection_association.rb'
|
96
|
+
- 'lib/active_fedora/reflection.rb'
|
97
|
+
- 'lib/active_fedora/orders/ordered_list.rb'
|
98
|
+
- 'lib/active_fedora/solr_service.rb'
|
99
|
+
- 'lib/active_fedora/associations/orders_association.rb'
|
100
|
+
|
101
|
+
Metrics/MethodLength:
|
102
|
+
Enabled: false
|
103
|
+
|
104
|
+
Naming/MethodName:
|
105
|
+
Exclude:
|
106
|
+
- 'lib/active_fedora/with_metadata.rb'
|
107
|
+
|
108
|
+
Style/AndOr:
|
109
|
+
Exclude:
|
110
|
+
- 'lib/active_fedora/associations/has_many_association.rb'
|
111
|
+
|
112
|
+
Naming/AccessorMethodName:
|
113
|
+
Exclude:
|
114
|
+
- 'lib/active_fedora/with_metadata/metadata_node.rb'
|
115
|
+
- 'lib/active_fedora/fedora_attributes.rb'
|
116
|
+
- 'lib/active_fedora/attribute_methods/dirty.rb'
|
117
|
+
- 'lib/active_fedora/associations/has_many_association.rb'
|
118
|
+
- 'lib/active_fedora/associations/association.rb'
|
119
|
+
|
120
|
+
Naming/PredicateName:
|
121
|
+
Exclude:
|
122
|
+
- 'lib/active_fedora/attribute_methods.rb'
|
123
|
+
- 'lib/active_fedora/relation/finder_methods.rb'
|
124
|
+
- 'lib/active_fedora/versionable.rb'
|
125
|
+
- 'lib/active_fedora/reflection.rb'
|
126
|
+
- 'lib/active_fedora/pathing.rb'
|
127
|
+
- 'lib/active_fedora/nested_attributes.rb'
|
128
|
+
- 'lib/active_fedora/clean_connection.rb'
|
129
|
+
- 'lib/active_fedora/attributes.rb'
|
130
|
+
- 'lib/active_fedora/file/attributes.rb'
|
131
|
+
- 'lib/active_fedora/attached_files.rb'
|
132
|
+
- 'lib/active_fedora/associations.rb'
|
133
|
+
- 'lib/active_fedora/association_hash.rb'
|
134
|
+
- 'lib/active_fedora/aggregation/list_source.rb'
|
135
|
+
- 'lib/active_fedora/associations/builder/aggregation.rb'
|
136
|
+
- 'lib/active_fedora/indexing/suffix.rb'
|
137
|
+
|
138
|
+
Style/GuardClause:
|
139
|
+
Exclude:
|
140
|
+
- 'lib/active_fedora/autosave_association.rb'
|
141
|
+
|
142
|
+
Style/TrivialAccessors:
|
143
|
+
Exclude:
|
144
|
+
- 'lib/active_fedora/reflection.rb'
|
145
|
+
- 'lib/active_fedora/attributes/node_config.rb'
|
146
|
+
- 'lib/active_fedora/associations/directly_contains_one_association.rb'
|
147
|
+
- 'lib/active_fedora/associations/belongs_to_association.rb'
|
148
|
+
- 'lib/active_fedora/associations/association.rb'
|
149
|
+
|
150
|
+
Style/EachWithObject:
|
151
|
+
Exclude:
|
152
|
+
- 'lib/active_fedora/relation/finder_methods.rb'
|
153
|
+
|
154
|
+
Style/CaseEquality:
|
155
|
+
Exclude:
|
156
|
+
- 'lib/active_fedora/relation/finder_methods.rb'
|
157
|
+
|
158
|
+
Style/BlockDelimiters:
|
159
|
+
Exclude:
|
160
|
+
- 'spec/**/*'
|
161
|
+
|
162
|
+
Layout/BlockEndNewline:
|
163
|
+
Exclude:
|
164
|
+
- 'spec/**/*'
|
165
|
+
|
166
|
+
Layout/MultilineBlockLayout:
|
167
|
+
Exclude:
|
168
|
+
- 'spec/**/*'
|
169
|
+
|
170
|
+
Style/Semicolon:
|
171
|
+
Exclude:
|
172
|
+
- 'spec/**/*'
|
173
|
+
|
174
|
+
Style/Lambda:
|
175
|
+
Exclude:
|
176
|
+
- 'spec/**/*'
|
177
|
+
|
178
|
+
Layout/IndentationConsistency:
|
179
|
+
EnforcedStyle: rails
|
180
|
+
|
181
|
+
Style/CollectionMethods:
|
182
|
+
PreferredMethods:
|
183
|
+
collect: 'map'
|
184
|
+
collect!: 'map!'
|
185
|
+
inject: 'reduce'
|
186
|
+
detect: 'find'
|
187
|
+
find_all: 'select'
|
188
|
+
|
189
|
+
Style/WordArray:
|
190
|
+
Enabled: false
|
191
|
+
|
192
|
+
Style/RegexpLiteral:
|
193
|
+
Enabled: false
|
194
|
+
|
195
|
+
Style/StringLiterals:
|
196
|
+
Enabled: false
|
197
|
+
|
198
|
+
Style/ClassAndModuleChildren:
|
199
|
+
Enabled: false
|
200
|
+
|
201
|
+
Style/Documentation:
|
202
|
+
Enabled: false
|
203
|
+
|
204
|
+
Style/GlobalVars:
|
205
|
+
Exclude:
|
206
|
+
- 'spec/**/*'
|
207
|
+
|
208
|
+
Style/SingleLineBlockParams:
|
209
|
+
Enabled: false
|
210
|
+
|
211
|
+
Style/ClassVars:
|
212
|
+
Exclude:
|
213
|
+
- 'spec/unit/finder_methods_spec.rb'
|
214
|
+
- 'spec/unit/base_spec.rb'
|
215
|
+
- 'spec/integration/indexing_spec.rb'
|
216
|
+
- 'lib/active_fedora/identifiable.rb'
|
217
|
+
|
218
|
+
Style/SignalException:
|
219
|
+
Enabled: false
|
220
|
+
|
221
|
+
Naming/FileName:
|
222
|
+
Exclude:
|
223
|
+
- 'lib/active-fedora.rb'
|
224
|
+
|
225
|
+
Style/ZeroLengthPredicate:
|
226
|
+
Exclude:
|
227
|
+
- 'lib/active_fedora/file/attributes.rb'
|
228
|
+
|
229
|
+
Performance/RedundantMerge:
|
230
|
+
Exclude:
|
231
|
+
- 'lib/active_fedora/railtie.rb'
|
232
|
+
|
233
|
+
Rails:
|
234
|
+
Enabled: true
|
235
|
+
|
236
|
+
Rails/Output:
|
237
|
+
Exclude:
|
238
|
+
- 'lib/generators/**/*'
|
239
|
+
|
240
|
+
Rails/Date:
|
241
|
+
Enabled: false
|
242
|
+
|
243
|
+
Rails/TimeZone:
|
244
|
+
Enabled: false
|
245
|
+
|
246
|
+
RSpec/AnyInstance:
|
247
|
+
Enabled: false
|
248
|
+
|
249
|
+
RSpec/ExampleWording:
|
250
|
+
CustomTransform:
|
251
|
+
be: is
|
252
|
+
have: has
|
253
|
+
not: does not
|
254
|
+
NOT: does NOT
|
255
|
+
IgnoredWords:
|
256
|
+
- only
|
257
|
+
|
258
|
+
RSpec/FilePath:
|
259
|
+
Enabled: false
|
260
|
+
|
261
|
+
RSpec/InstanceVariable:
|
262
|
+
Enabled: false
|
263
|
+
|
264
|
+
RSpec/DescribeClass:
|
265
|
+
Exclude:
|
266
|
+
- 'spec/integration/**/*'
|
267
|
+
|
268
|
+
RSpec/DescribedClass:
|
269
|
+
Exclude:
|
270
|
+
- 'spec/unit/finder_methods_spec.rb'
|
271
|
+
|
272
|
+
RSpec/NotToNot:
|
273
|
+
Enabled: false
|
274
|
+
|
275
|
+
RSpec/MessageSpies:
|
276
|
+
Enabled: false
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-05-16 14:10:19 -0500 using RuboCop version 0.56.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: PreferredDelimiters.
|
12
|
+
Style/PercentLiteralDelimiters:
|
13
|
+
Exclude:
|
14
|
+
- 'Rakefile'
|
15
|
+
|
16
|
+
# Offense count: 1
|
17
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
18
|
+
# URISchemes: http, https
|
19
|
+
Metrics/LineLength:
|
20
|
+
Max: 82
|
data/.solr_wrapper
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
language: ruby
|
2
|
+
cache: bundler
|
3
|
+
sudo: false
|
4
|
+
rvm: 2.4
|
5
|
+
matrix:
|
6
|
+
include:
|
7
|
+
- rvm: 2.3
|
8
|
+
env: RAILS_VERSION=4.2.10
|
9
|
+
- env: RAILS_VERSION=5.0.7
|
10
|
+
- env: RAILS_VERSION=5.1.6
|
11
|
+
- rvm: 2.5
|
12
|
+
- env: RAILS_VERSION=5.2.1
|
13
|
+
global_env:
|
14
|
+
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
15
|
+
before_install:
|
16
|
+
- gem update --system
|
17
|
+
- gem install bundler
|
18
|
+
before_script:
|
19
|
+
- jdk_switcher use oraclejdk8
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
# Bundler will rely on valkyrie_activefedora.gemspec for dependency information.
|
4
|
+
|
5
|
+
gemspec path: File.expand_path('..', __FILE__)
|
6
|
+
|
7
|
+
gem 'byebug' unless ENV['TRAVIS']
|
8
|
+
gem 'pry-byebug' unless ENV['CI']
|
9
|
+
|
10
|
+
gem 'activemodel', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
|
11
|
+
|
12
|
+
group :test do
|
13
|
+
gem 'simplecov', require: false
|
14
|
+
gem 'coveralls', require: false
|
15
|
+
end
|
16
|
+
|
17
|
+
gem 'jruby-openssl', platform: :jruby
|
data/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2018 Cornell University
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|