oai_repository 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/generators/templates/oai_repository.rb +19 -5
- data/lib/oai_repository/version.rb +1 -1
- metadata +13 -13
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'rifcs_format'
|
2
1
|
OaiRepository.setup do |config|
|
3
2
|
|
4
3
|
config.repository_name = 'NAME YOUR REPOSITORY'
|
@@ -6,7 +5,7 @@ OaiRepository.setup do |config|
|
|
6
5
|
# The URL from which this OAI Repository is served.
|
7
6
|
# If you're deploying to different hostnames (e.g. development, QA and
|
8
7
|
# production environments, each with different hostnames), you could
|
9
|
-
#
|
8
|
+
# dynamically set this.
|
10
9
|
config.repository_url = 'URL OF THE REPOSITORY'
|
11
10
|
|
12
11
|
# By default the (unique) identifier of each record will be composed as
|
@@ -18,6 +17,9 @@ OaiRepository.setup do |config|
|
|
18
17
|
# the AR models you intend to serve. That value will supplant the default.
|
19
18
|
config.record_prefix = 'http://localhost:3000/'
|
20
19
|
|
20
|
+
# This is your repository administrator's email address.
|
21
|
+
# This will appear in the information returned from an "Identify" call to
|
22
|
+
# your repository
|
21
23
|
config.admin_email = 'change_me@example.com'
|
22
24
|
|
23
25
|
# Map the name of the set to the ActiveRecord (or other) class name that
|
@@ -36,10 +38,22 @@ OaiRepository.setup do |config|
|
|
36
38
|
# model: Instrument
|
37
39
|
# }
|
38
40
|
# ]
|
41
|
+
#
|
42
|
+
# The "model" value should be the class name of the ActiveRecord model class
|
43
|
+
# that is being identified with the given set. It doesn't actually *have*
|
44
|
+
# to be a ActiveRecord model class, but it should act like one.
|
39
45
|
config.sets = []
|
40
46
|
|
41
|
-
|
42
|
-
|
43
|
-
|
47
|
+
# By default, an OAI repository must emit its records in OAI_DC (Dublin Core)
|
48
|
+
# format. If you want to provide other output formats for your repository
|
49
|
+
# (and those formats are subclasses of OAI::Provider::Metadata.Format) then
|
50
|
+
# you can specify them here. E.g.
|
51
|
+
#
|
52
|
+
# require 'rifcs_format'
|
53
|
+
#
|
54
|
+
# config.additional_formats = [
|
55
|
+
# OAI::Provider::Metadata::RIFCS
|
56
|
+
# ]
|
57
|
+
config.additional_formats = []
|
44
58
|
|
45
59
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oai_repository
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-07-16 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &73988580 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '3.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *73988580
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: oai
|
28
|
-
requirement: &
|
28
|
+
requirement: &73987980 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *73987980
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: sqlite3
|
39
|
-
requirement: &
|
39
|
+
requirement: &73987490 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *73987490
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rspec-rails
|
50
|
-
requirement: &
|
50
|
+
requirement: &73986910 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *73986910
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: capybara
|
61
|
-
requirement: &
|
61
|
+
requirement: &74038900 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
version: '0'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *74038900
|
70
70
|
description: An Engine for Rails (3.1+) that allows you to make your application an
|
71
71
|
OAI-PMH Data Provider. See http://www.openarchives.org/pmh/ and http://www.openarchives.org/OAI/openarchivesprotocol.html#Repository
|
72
72
|
email:
|
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
segments:
|
116
116
|
- 0
|
117
|
-
hash:
|
117
|
+
hash: 353737199
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
segments:
|
125
125
|
- 0
|
126
|
-
hash:
|
126
|
+
hash: 353737199
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
129
|
rubygems_version: 1.8.15
|