aspace_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/lib/aspace_client.rb +15 -0
  3. data/lib/aspace_client/archivesspace_json_schema.rb +210 -0
  4. data/lib/aspace_client/asutils.rb +142 -0
  5. data/lib/aspace_client/client_enum_source.rb +30 -0
  6. data/lib/aspace_client/exceptions.rb +15 -0
  7. data/lib/aspace_client/helpers.rb +0 -0
  8. data/lib/aspace_client/json_schema_concurrency_fix.rb +52 -0
  9. data/lib/aspace_client/json_schema_utils.rb +414 -0
  10. data/lib/aspace_client/jsonmodel.rb +342 -0
  11. data/lib/aspace_client/jsonmodel_client.rb +528 -0
  12. data/lib/aspace_client/jsonmodel_i18n_mixin.rb +77 -0
  13. data/lib/aspace_client/jsonmodel_type.rb +478 -0
  14. data/lib/aspace_client/memoryleak.rb +59 -0
  15. data/lib/aspace_client/schemas/abstract_agent.rb +51 -0
  16. data/lib/aspace_client/schemas/abstract_agent_relationship.rb +12 -0
  17. data/lib/aspace_client/schemas/abstract_archival_object.rb +96 -0
  18. data/lib/aspace_client/schemas/abstract_classification.rb +44 -0
  19. data/lib/aspace_client/schemas/abstract_name.rb +23 -0
  20. data/lib/aspace_client/schemas/abstract_note.rb +13 -0
  21. data/lib/aspace_client/schemas/accession.rb +174 -0
  22. data/lib/aspace_client/schemas/accession_parts_relationship.rb +31 -0
  23. data/lib/aspace_client/schemas/accession_sibling_relationship.rb +31 -0
  24. data/lib/aspace_client/schemas/active_edits.rb +23 -0
  25. data/lib/aspace_client/schemas/advanced_query.rb +12 -0
  26. data/lib/aspace_client/schemas/agent_contact.rb +25 -0
  27. data/lib/aspace_client/schemas/agent_corporate_entity.rb +32 -0
  28. data/lib/aspace_client/schemas/agent_family.rb +29 -0
  29. data/lib/aspace_client/schemas/agent_person.rb +31 -0
  30. data/lib/aspace_client/schemas/agent_relationship_associative.rb +28 -0
  31. data/lib/aspace_client/schemas/agent_relationship_earlierlater.rb +28 -0
  32. data/lib/aspace_client/schemas/agent_relationship_parentchild.rb +26 -0
  33. data/lib/aspace_client/schemas/agent_relationship_subordinatesuperior.rb +26 -0
  34. data/lib/aspace_client/schemas/agent_software.rb +22 -0
  35. data/lib/aspace_client/schemas/archival_object.rb +60 -0
  36. data/lib/aspace_client/schemas/archival_record_children.rb +15 -0
  37. data/lib/aspace_client/schemas/boolean_field_query.rb +13 -0
  38. data/lib/aspace_client/schemas/boolean_query.rb +13 -0
  39. data/lib/aspace_client/schemas/classification.rb +10 -0
  40. data/lib/aspace_client/schemas/classification_term.rb +38 -0
  41. data/lib/aspace_client/schemas/classification_tree.rb +17 -0
  42. data/lib/aspace_client/schemas/collection_management.rb +27 -0
  43. data/lib/aspace_client/schemas/container.rb +29 -0
  44. data/lib/aspace_client/schemas/container_location.rb +19 -0
  45. data/lib/aspace_client/schemas/date.rb +19 -0
  46. data/lib/aspace_client/schemas/date_field_query.rb +14 -0
  47. data/lib/aspace_client/schemas/deaccession.rb +20 -0
  48. data/lib/aspace_client/schemas/defaults.rb +104 -0
  49. data/lib/aspace_client/schemas/digital_object.rb +64 -0
  50. data/lib/aspace_client/schemas/digital_object_component.rb +53 -0
  51. data/lib/aspace_client/schemas/digital_object_tree.rb +19 -0
  52. data/lib/aspace_client/schemas/digital_record_children.rb +15 -0
  53. data/lib/aspace_client/schemas/enumeration.rb +29 -0
  54. data/lib/aspace_client/schemas/enumeration_migration.rb +14 -0
  55. data/lib/aspace_client/schemas/event.rb +88 -0
  56. data/lib/aspace_client/schemas/extent.rb +17 -0
  57. data/lib/aspace_client/schemas/external_document.rb +12 -0
  58. data/lib/aspace_client/schemas/external_id.rb +11 -0
  59. data/lib/aspace_client/schemas/field_query.rb +15 -0
  60. data/lib/aspace_client/schemas/file_version.rb +26 -0
  61. data/lib/aspace_client/schemas/group.rb +17 -0
  62. data/lib/aspace_client/schemas/instance.rb +27 -0
  63. data/lib/aspace_client/schemas/job.rb +57 -0
  64. data/lib/aspace_client/schemas/location.rb +36 -0
  65. data/lib/aspace_client/schemas/location_batch.rb +45 -0
  66. data/lib/aspace_client/schemas/merge_request.rb +48 -0
  67. data/lib/aspace_client/schemas/name_corporate_entity.rb +15 -0
  68. data/lib/aspace_client/schemas/name_family.rb +13 -0
  69. data/lib/aspace_client/schemas/name_form.rb +15 -0
  70. data/lib/aspace_client/schemas/name_person.rb +19 -0
  71. data/lib/aspace_client/schemas/name_software.rb +14 -0
  72. data/lib/aspace_client/schemas/note_abstract.rb +17 -0
  73. data/lib/aspace_client/schemas/note_bibliography.rb +29 -0
  74. data/lib/aspace_client/schemas/note_bioghist.rb +22 -0
  75. data/lib/aspace_client/schemas/note_chronology.rb +28 -0
  76. data/lib/aspace_client/schemas/note_citation.rb +32 -0
  77. data/lib/aspace_client/schemas/note_definedlist.rb +25 -0
  78. data/lib/aspace_client/schemas/note_digital_object.rb +23 -0
  79. data/lib/aspace_client/schemas/note_index.rb +29 -0
  80. data/lib/aspace_client/schemas/note_index_item.rb +25 -0
  81. data/lib/aspace_client/schemas/note_multipart.rb +25 -0
  82. data/lib/aspace_client/schemas/note_orderedlist.rb +27 -0
  83. data/lib/aspace_client/schemas/note_outline.rb +20 -0
  84. data/lib/aspace_client/schemas/note_outline_level.rb +21 -0
  85. data/lib/aspace_client/schemas/note_singlepart.rb +24 -0
  86. data/lib/aspace_client/schemas/note_text.rb +17 -0
  87. data/lib/aspace_client/schemas/permission.rb +15 -0
  88. data/lib/aspace_client/schemas/preference.rb +16 -0
  89. data/lib/aspace_client/schemas/record_tree.rb +17 -0
  90. data/lib/aspace_client/schemas/repository.rb +32 -0
  91. data/lib/aspace_client/schemas/repository_with_agent.rb +14 -0
  92. data/lib/aspace_client/schemas/resource.rb +112 -0
  93. data/lib/aspace_client/schemas/resource_tree.rb +20 -0
  94. data/lib/aspace_client/schemas/rights_statement.rb +35 -0
  95. data/lib/aspace_client/schemas/subject.rb +30 -0
  96. data/lib/aspace_client/schemas/term.rb +16 -0
  97. data/lib/aspace_client/schemas/user.rb +56 -0
  98. data/lib/aspace_client/schemas/user_defined.rb +42 -0
  99. data/lib/aspace_client/schemas/vocabulary.rb +15 -0
  100. data/lib/aspace_client/validations.rb +434 -0
  101. data/lib/aspace_client/validator_cache.rb +47 -0
  102. data/lib/aspace_client/version.rb +3 -0
  103. metadata +244 -0
@@ -0,0 +1,3 @@
1
+ module AspaceClient
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,244 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aspace_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Chris Fitzpatrick
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.8.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.8.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: json-schema
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.10
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.10
41
+ - !ruby/object:Gem::Dependency
42
+ name: puma
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 2.8.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.8.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: net-http-persistent
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: '2.8'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: '2.8'
69
+ - !ruby/object:Gem::Dependency
70
+ name: multipart-post
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 1.2.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 1.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '1.5'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '1.5'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: A lightweight utility to facilitate interaction with the ArchivesSpace
112
+ backend API.
113
+ email: chris.fitzpatrick@lyrasis.org
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - lib/aspace_client/archivesspace_json_schema.rb
119
+ - lib/aspace_client/asutils.rb
120
+ - lib/aspace_client/client_enum_source.rb
121
+ - lib/aspace_client/exceptions.rb
122
+ - lib/aspace_client/helpers.rb
123
+ - lib/aspace_client/json_schema_concurrency_fix.rb
124
+ - lib/aspace_client/json_schema_utils.rb
125
+ - lib/aspace_client/jsonmodel.rb
126
+ - lib/aspace_client/jsonmodel_client.rb
127
+ - lib/aspace_client/jsonmodel_i18n_mixin.rb
128
+ - lib/aspace_client/jsonmodel_type.rb
129
+ - lib/aspace_client/memoryleak.rb
130
+ - lib/aspace_client/schemas/abstract_agent.rb
131
+ - lib/aspace_client/schemas/abstract_agent_relationship.rb
132
+ - lib/aspace_client/schemas/abstract_archival_object.rb
133
+ - lib/aspace_client/schemas/abstract_classification.rb
134
+ - lib/aspace_client/schemas/abstract_name.rb
135
+ - lib/aspace_client/schemas/abstract_note.rb
136
+ - lib/aspace_client/schemas/accession.rb
137
+ - lib/aspace_client/schemas/accession_parts_relationship.rb
138
+ - lib/aspace_client/schemas/accession_sibling_relationship.rb
139
+ - lib/aspace_client/schemas/active_edits.rb
140
+ - lib/aspace_client/schemas/advanced_query.rb
141
+ - lib/aspace_client/schemas/agent_contact.rb
142
+ - lib/aspace_client/schemas/agent_corporate_entity.rb
143
+ - lib/aspace_client/schemas/agent_family.rb
144
+ - lib/aspace_client/schemas/agent_person.rb
145
+ - lib/aspace_client/schemas/agent_relationship_associative.rb
146
+ - lib/aspace_client/schemas/agent_relationship_earlierlater.rb
147
+ - lib/aspace_client/schemas/agent_relationship_parentchild.rb
148
+ - lib/aspace_client/schemas/agent_relationship_subordinatesuperior.rb
149
+ - lib/aspace_client/schemas/agent_software.rb
150
+ - lib/aspace_client/schemas/archival_object.rb
151
+ - lib/aspace_client/schemas/archival_record_children.rb
152
+ - lib/aspace_client/schemas/boolean_field_query.rb
153
+ - lib/aspace_client/schemas/boolean_query.rb
154
+ - lib/aspace_client/schemas/classification.rb
155
+ - lib/aspace_client/schemas/classification_term.rb
156
+ - lib/aspace_client/schemas/classification_tree.rb
157
+ - lib/aspace_client/schemas/collection_management.rb
158
+ - lib/aspace_client/schemas/container.rb
159
+ - lib/aspace_client/schemas/container_location.rb
160
+ - lib/aspace_client/schemas/date.rb
161
+ - lib/aspace_client/schemas/date_field_query.rb
162
+ - lib/aspace_client/schemas/deaccession.rb
163
+ - lib/aspace_client/schemas/defaults.rb
164
+ - lib/aspace_client/schemas/digital_object.rb
165
+ - lib/aspace_client/schemas/digital_object_component.rb
166
+ - lib/aspace_client/schemas/digital_object_tree.rb
167
+ - lib/aspace_client/schemas/digital_record_children.rb
168
+ - lib/aspace_client/schemas/enumeration.rb
169
+ - lib/aspace_client/schemas/enumeration_migration.rb
170
+ - lib/aspace_client/schemas/event.rb
171
+ - lib/aspace_client/schemas/extent.rb
172
+ - lib/aspace_client/schemas/external_document.rb
173
+ - lib/aspace_client/schemas/external_id.rb
174
+ - lib/aspace_client/schemas/field_query.rb
175
+ - lib/aspace_client/schemas/file_version.rb
176
+ - lib/aspace_client/schemas/group.rb
177
+ - lib/aspace_client/schemas/instance.rb
178
+ - lib/aspace_client/schemas/job.rb
179
+ - lib/aspace_client/schemas/location.rb
180
+ - lib/aspace_client/schemas/location_batch.rb
181
+ - lib/aspace_client/schemas/merge_request.rb
182
+ - lib/aspace_client/schemas/name_corporate_entity.rb
183
+ - lib/aspace_client/schemas/name_family.rb
184
+ - lib/aspace_client/schemas/name_form.rb
185
+ - lib/aspace_client/schemas/name_person.rb
186
+ - lib/aspace_client/schemas/name_software.rb
187
+ - lib/aspace_client/schemas/note_abstract.rb
188
+ - lib/aspace_client/schemas/note_bibliography.rb
189
+ - lib/aspace_client/schemas/note_bioghist.rb
190
+ - lib/aspace_client/schemas/note_chronology.rb
191
+ - lib/aspace_client/schemas/note_citation.rb
192
+ - lib/aspace_client/schemas/note_definedlist.rb
193
+ - lib/aspace_client/schemas/note_digital_object.rb
194
+ - lib/aspace_client/schemas/note_index.rb
195
+ - lib/aspace_client/schemas/note_index_item.rb
196
+ - lib/aspace_client/schemas/note_multipart.rb
197
+ - lib/aspace_client/schemas/note_orderedlist.rb
198
+ - lib/aspace_client/schemas/note_outline.rb
199
+ - lib/aspace_client/schemas/note_outline_level.rb
200
+ - lib/aspace_client/schemas/note_singlepart.rb
201
+ - lib/aspace_client/schemas/note_text.rb
202
+ - lib/aspace_client/schemas/permission.rb
203
+ - lib/aspace_client/schemas/preference.rb
204
+ - lib/aspace_client/schemas/record_tree.rb
205
+ - lib/aspace_client/schemas/repository.rb
206
+ - lib/aspace_client/schemas/repository_with_agent.rb
207
+ - lib/aspace_client/schemas/resource.rb
208
+ - lib/aspace_client/schemas/resource_tree.rb
209
+ - lib/aspace_client/schemas/rights_statement.rb
210
+ - lib/aspace_client/schemas/subject.rb
211
+ - lib/aspace_client/schemas/term.rb
212
+ - lib/aspace_client/schemas/user.rb
213
+ - lib/aspace_client/schemas/user_defined.rb
214
+ - lib/aspace_client/schemas/vocabulary.rb
215
+ - lib/aspace_client/validations.rb
216
+ - lib/aspace_client/validator_cache.rb
217
+ - lib/aspace_client/version.rb
218
+ - lib/aspace_client.rb
219
+ homepage: https://github.com/archivesspace/aspace-client
220
+ licenses:
221
+ - ECL2
222
+ metadata: {}
223
+ post_install_message:
224
+ rdoc_options: []
225
+ require_paths:
226
+ - lib
227
+ required_ruby_version: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - '>='
230
+ - !ruby/object:Gem::Version
231
+ version: '0'
232
+ required_rubygems_version: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - '>='
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ requirements: []
238
+ rubyforge_project:
239
+ rubygems_version: 2.0.14
240
+ signing_key:
241
+ specification_version: 4
242
+ summary: A lightweight utility to facilitate interaction with the ArchivesSpace backend
243
+ API.
244
+ test_files: []