hydramata-works 0.0.1.prerelease

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.hound.yml +818 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +20 -0
  6. data/CONTRIBUTING.md +220 -0
  7. data/Gemfile +36 -0
  8. data/Guardfile +36 -0
  9. data/LICENSE +15 -0
  10. data/README.md +36 -0
  11. data/Rakefile +47 -0
  12. data/TODO.md +74 -0
  13. data/VISION.md +19 -0
  14. data/app/forms/hydramata/works/entity_form.rb +92 -0
  15. data/app/forms/hydramata/works/validation_service.rb +78 -0
  16. data/app/models/hydramata/works/data_definition.rb +57 -0
  17. data/app/models/hydramata/works/entities.rb +11 -0
  18. data/app/models/hydramata/works/entity.rb +75 -0
  19. data/app/models/hydramata/works/predicate.rb +35 -0
  20. data/app/models/hydramata/works/predicate_presentation_sequences/storage.rb +29 -0
  21. data/app/models/hydramata/works/predicate_set.rb +44 -0
  22. data/app/models/hydramata/works/predicate_sets/storage.rb +45 -0
  23. data/app/models/hydramata/works/predicates.rb +14 -0
  24. data/app/models/hydramata/works/predicates/storage.rb +33 -0
  25. data/app/models/hydramata/works/presentation_structure.rb +29 -0
  26. data/app/models/hydramata/works/property.rb +72 -0
  27. data/app/models/hydramata/works/property_set.rb +89 -0
  28. data/app/models/hydramata/works/validations.rb +6 -0
  29. data/app/models/hydramata/works/value.rb +34 -0
  30. data/app/models/hydramata/works/work_type.rb +49 -0
  31. data/app/models/hydramata/works/work_types.rb +14 -0
  32. data/app/models/hydramata/works/work_types/storage.rb +42 -0
  33. data/app/parsers/hydramata/works/datastream_parser.rb +36 -0
  34. data/app/parsers/hydramata/works/datastream_parsers/rdf_ntriples_parser.rb +60 -0
  35. data/app/parsers/hydramata/works/datastream_parsers/simple_xml_parser.rb +27 -0
  36. data/app/parsers/hydramata/works/predicate_parser.rb +31 -0
  37. data/app/parsers/hydramata/works/predicate_parsers/simple_parser.rb +13 -0
  38. data/app/parsers/hydramata/works/validations_parser.rb +22 -0
  39. data/app/parsers/hydramata/works/value_parser.rb +26 -0
  40. data/app/parsers/hydramata/works/value_parsers.rb +27 -0
  41. data/app/parsers/hydramata/works/value_parsers/date_parser.rb +13 -0
  42. data/app/parsers/hydramata/works/value_parsers/interrogation_parser.rb +18 -0
  43. data/app/parsers/hydramata/works/value_parsers/simple_parser.rb +14 -0
  44. data/app/presenters/hydramata/works/base_presenter.rb +146 -0
  45. data/app/presenters/hydramata/works/dom_attributes_builder.rb +24 -0
  46. data/app/presenters/hydramata/works/entity_presenter.rb +67 -0
  47. data/app/presenters/hydramata/works/fieldset_presenter.rb +54 -0
  48. data/app/presenters/hydramata/works/property_presenter.rb +51 -0
  49. data/app/presenters/hydramata/works/value_presenter.rb +60 -0
  50. data/app/renderers/hydramata/works/entity_renderer.rb +45 -0
  51. data/app/views/hydramata/works/fieldsets/_edit.html.erb +4 -0
  52. data/app/views/hydramata/works/fieldsets/_show.html.erb +8 -0
  53. data/app/views/hydramata/works/fieldsets/_show.json.jbuilder +8 -0
  54. data/app/views/hydramata/works/properties/_edit.html.erb +12 -0
  55. data/app/views/hydramata/works/properties/_show.html.erb +3 -0
  56. data/app/views/hydramata/works/properties/_show.json.jbuilder +1 -0
  57. data/app/views/hydramata/works/works/_edit.html.erb +8 -0
  58. data/app/views/hydramata/works/works/_new.html.erb +8 -0
  59. data/app/views/hydramata/works/works/_show.html.erb +3 -0
  60. data/app/views/hydramata/works/works/_show.json.jbuilder +13 -0
  61. data/app/wranglers/hydramata/works/fedora_wrangler.rb +66 -0
  62. data/bin/rails +12 -0
  63. data/db/migrate/20140606132349_create_hydramata_work_predicates.rb +13 -0
  64. data/db/migrate/20140606132350_create_hydramata_work_types.rb +9 -0
  65. data/db/migrate/20140606132351_create_hydramata_work_predicate_sets.rb +13 -0
  66. data/db/migrate/20140606132352_create_hydramata_work_predicate_presentation_sequences.rb +12 -0
  67. data/db/migrate/20140623200635_add_validations_to_predicates.rb +5 -0
  68. data/db/migrate/20140627134133_adding_item_type_schema_dot_org_to_work_type.rb +5 -0
  69. data/db/migrate/20140627140840_adding_item_prop_schema_dot_org_to_predicate.rb +5 -0
  70. data/db/seeds.rb +36 -0
  71. data/documents/administrative-set-strawperson.md +45 -0
  72. data/documents/diagrams/hydramata-refactor-tasks.dot +88 -0
  73. data/documents/diagrams/hydramata-sip-dip-aip.dot +88 -0
  74. data/documents/diagrams/hydramata-work-architecture.dot +129 -0
  75. data/documents/diagrams/hydramata-work-subcomponents.dot +36 -0
  76. data/documents/diagrams/map-from-database-to-work-object.dot +44 -0
  77. data/documents/diagrams/map-from-fedora-to-work-object.dot +51 -0
  78. data/documents/diagrams/map-from-input-to-work-object.dot +37 -0
  79. data/documents/diagrams/map-from-work-object-to-database.dot +31 -0
  80. data/documents/diagrams/work-rendering.dot +53 -0
  81. data/documents/diagrams/work-structure.dot +32 -0
  82. data/documents/handling-work.md +224 -0
  83. data/documents/high-level-stories.md +105 -0
  84. data/documents/hydramata-components.md +82 -0
  85. data/documents/interface-between-work-and-permissions.md +131 -0
  86. data/documents/interface-between-work-and-workflow.md +6 -0
  87. data/documents/timeline.md +75 -0
  88. data/fs +3 -0
  89. data/gemfiles/rails4.1.gemfile +12 -0
  90. data/gemfiles/rails4.gemfile +13 -0
  91. data/hydramata-works.gemspec +43 -0
  92. data/lib/hydramata-works.rb +23 -0
  93. data/lib/hydramata/works/conversions.rb +21 -0
  94. data/lib/hydramata/works/conversions/exceptions.rb +18 -0
  95. data/lib/hydramata/works/conversions/predicate.rb +22 -0
  96. data/lib/hydramata/works/conversions/predicate_set.rb +28 -0
  97. data/lib/hydramata/works/conversions/presented_fieldsets.rb +28 -0
  98. data/lib/hydramata/works/conversions/presenter.rb +13 -0
  99. data/lib/hydramata/works/conversions/property.rb +31 -0
  100. data/lib/hydramata/works/conversions/property_set.rb +23 -0
  101. data/lib/hydramata/works/conversions/translation_key_fragment.rb +20 -0
  102. data/lib/hydramata/works/conversions/value.rb +20 -0
  103. data/lib/hydramata/works/conversions/work_type.rb +26 -0
  104. data/lib/hydramata/works/engine.rb +31 -0
  105. data/lib/hydramata/works/linters.rb +99 -0
  106. data/lib/hydramata/works/linters/implement_data_definition_interface_matcher.rb +17 -0
  107. data/lib/hydramata/works/linters/implement_entity_interface_matcher.rb +16 -0
  108. data/lib/hydramata/works/linters/implement_predicate_interface_matcher.rb +17 -0
  109. data/lib/hydramata/works/linters/implement_predicate_set_interface_matcher.rb +8 -0
  110. data/lib/hydramata/works/linters/implement_property_set_interface_matcher.rb +8 -0
  111. data/lib/hydramata/works/linters/implement_value_interface_matcher.rb +8 -0
  112. data/lib/hydramata/works/linters/implement_work_type_interface_matcher.rb +13 -0
  113. data/lib/hydramata/works/linters/interface_matcher_builder.rb +36 -0
  114. data/lib/hydramata/works/translator.rb +67 -0
  115. data/lib/hydramata/works/version.rb +5 -0
  116. data/lib/hydramata_works.rb +2 -0
  117. data/lib/tasks/hydramata_work_tasks.rake +4 -0
  118. data/run_each_spec_in_isolation +16 -0
  119. data/run_each_spec_in_isolation.txt +110 -0
  120. data/script/analyzer.rb +124 -0
  121. data/script/fast_specs +22 -0
  122. data/spec/features/fedora_to_in_memory_spec.rb +60 -0
  123. data/spec/features/format_and_view_path_overrides_spec.rb +72 -0
  124. data/spec/features/in_memory_to_output_buffer_spec.rb +109 -0
  125. data/spec/features/instantiate_entity_from_persisted_work_type_spec.rb +26 -0
  126. data/spec/features/new_user_input_to_in_memory_spec.rb +75 -0
  127. data/spec/features/translation_services_spec.rb +107 -0
  128. data/spec/features/validate_entity_based_on_work_type_structure_spec.rb +19 -0
  129. data/spec/fixtures/cassettes/fedora-object.yml +299 -0
  130. data/spec/fixtures/translations.yml +20 -0
  131. data/spec/forms/hydramata/works/entity_form_spec.rb +83 -0
  132. data/spec/forms/hydramata/works/validation_service_spec.rb +32 -0
  133. data/spec/lib/hydramata-work_spec.rb +14 -0
  134. data/spec/lib/hydramata/works/conversions/predicate_set_spec.rb +50 -0
  135. data/spec/lib/hydramata/works/conversions/predicate_spec.rb +43 -0
  136. data/spec/lib/hydramata/works/conversions/presented_fieldsets_spec.rb +52 -0
  137. data/spec/lib/hydramata/works/conversions/presenter_spec.rb +22 -0
  138. data/spec/lib/hydramata/works/conversions/property_set_spec.rb +42 -0
  139. data/spec/lib/hydramata/works/conversions/property_spec.rb +68 -0
  140. data/spec/lib/hydramata/works/conversions/translation_key_fragment_spec.rb +45 -0
  141. data/spec/lib/hydramata/works/conversions/value_spec.rb +36 -0
  142. data/spec/lib/hydramata/works/conversions/work_type_spec.rb +55 -0
  143. data/spec/lib/hydramata/works/translator_spec.rb +81 -0
  144. data/spec/models/hydramata/works/data_definition_spec.rb +53 -0
  145. data/spec/models/hydramata/works/entity_spec.rb +50 -0
  146. data/spec/models/hydramata/works/predicate_presentation_sequences/storage_spec.rb +15 -0
  147. data/spec/models/hydramata/works/predicate_set_spec.rb +63 -0
  148. data/spec/models/hydramata/works/predicate_sets/storage_spec.rb +37 -0
  149. data/spec/models/hydramata/works/predicate_spec.rb +16 -0
  150. data/spec/models/hydramata/works/predicates/storage_spec.rb +78 -0
  151. data/spec/models/hydramata/works/predicates_spec.rb +18 -0
  152. data/spec/models/hydramata/works/presentation_structure_spec.rb +27 -0
  153. data/spec/models/hydramata/works/property_set_spec.rb +135 -0
  154. data/spec/models/hydramata/works/property_spec.rb +74 -0
  155. data/spec/models/hydramata/works/value_spec.rb +61 -0
  156. data/spec/models/hydramata/works/work_type_spec.rb +45 -0
  157. data/spec/models/hydramata/works/work_types/storage_spec.rb +74 -0
  158. data/spec/models/hydramata/works/work_types_spec.rb +16 -0
  159. data/spec/parsers/hydramata/works/datastream_parser_spec.rb +29 -0
  160. data/spec/parsers/hydramata/works/datastream_parsers/rdf_ntriples_parser_spec.rb +65 -0
  161. data/spec/parsers/hydramata/works/datastream_parsers/simple_xml_parser_spec.rb +37 -0
  162. data/spec/parsers/hydramata/works/predicate_parser_spec.rb +30 -0
  163. data/spec/parsers/hydramata/works/predicate_parsers/simple_parser_spec.rb +20 -0
  164. data/spec/parsers/hydramata/works/validations_parser_spec.rb +31 -0
  165. data/spec/parsers/hydramata/works/value_parser_spec.rb +22 -0
  166. data/spec/parsers/hydramata/works/value_parsers/simple_parser_spec.rb +20 -0
  167. data/spec/parsers/hydramata/works/value_parsers_spec.rb +36 -0
  168. data/spec/presenters/hydramata/works/base_presenter_spec.rb +111 -0
  169. data/spec/presenters/hydramata/works/dom_attributes_builder_spec.rb +26 -0
  170. data/spec/presenters/hydramata/works/entity_presenter_spec.rb +51 -0
  171. data/spec/presenters/hydramata/works/fieldset_presenter_spec.rb +58 -0
  172. data/spec/presenters/hydramata/works/property_presenter_spec.rb +42 -0
  173. data/spec/presenters/hydramata/works/value_presenter_spec.rb +49 -0
  174. data/spec/renderers/hydramata/works/entity_renderer_spec.rb +25 -0
  175. data/spec/spec_active_record_helper.rb +30 -0
  176. data/spec/spec_fast_helper.rb +12 -0
  177. data/spec/spec_slow_helper.rb +56 -0
  178. data/spec/spec_view_helper.rb +14 -0
  179. data/spec/test_app_templates/lib/generators/test_app_generator.rb +21 -0
  180. data/spec/views/hydramata/works/fieldsets/_edit.html.erb_spec.rb +29 -0
  181. data/spec/views/hydramata/works/fieldsets/_show.html.erb_spec.rb +25 -0
  182. data/spec/views/hydramata/works/properties/_edit.html.erb_spec.rb +22 -0
  183. data/spec/views/hydramata/works/properties/_show.html.erb_spec.rb +22 -0
  184. data/spec/views/hydramata/works/works/_edit.html.erb_spec.rb +23 -0
  185. data/spec/views/hydramata/works/works/_new.html.erb_spec.rb +23 -0
  186. data/spec/views/hydramata/works/works/_show.html.erb_spec.rb +24 -0
  187. data/spec/wranglers/hydramata/works/fedora_wrangler_spec.rb +26 -0
  188. metadata +466 -0
@@ -0,0 +1,23 @@
1
+ require 'spec_view_helper'
2
+
3
+ # As of 3.0.x :type tags are no longer inferred.
4
+ # This means, without the `type: :view` tag, the render method does not exist
5
+ # in the example context
6
+ describe 'hydramata/works/works/_new.html.erb', type: :view do
7
+ let(:object) { double('Object', fieldsets: [fieldset1, fieldset2], dom_class: 'my-dom-class') }
8
+
9
+ # A short circuit as the render does not normally
10
+ let(:fieldset1) { double('Fieldset', render: '<div class="set1">Fieldset 1</div>'.html_safe) }
11
+ let(:fieldset2) { double('Fieldset', render: '<div class="set2">Fieldset 2</div>'.html_safe) }
12
+
13
+ it 'renders the object and fieldsets' do
14
+ render partial: 'hydramata/works/works/new', object: object
15
+
16
+ expect(fieldset1).to have_received(:render).with(template: view, locals: { form: kind_of(ActionView::Helpers::FormBuilder) })
17
+ expect(fieldset2).to have_received(:render).with(template: view, locals: { form: kind_of(ActionView::Helpers::FormBuilder) })
18
+ expect(rendered).to have_tag('form.work.my-dom-class') do
19
+ with_tag('.set1', text: 'Fieldset 1')
20
+ with_tag('.set2', text: 'Fieldset 2')
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,24 @@
1
+ require 'spec_view_helper'
2
+
3
+ # As of 3.0.x :type tags are no longer inferred.
4
+ # This means, without the `type: :view` tag, the render method does not exist
5
+ # in the example context
6
+ describe 'hydramata/works/works/_show.html.erb', type: :view do
7
+ let(:dom_attributes) { { class: ['work', 'my-dom-class'] } }
8
+ let(:object) { double('Object', fieldsets: [fieldset1, fieldset2], container_content_tag_attributes: dom_attributes) }
9
+
10
+ # A short circuit as the render does not normally
11
+ let(:fieldset1) { double('Fieldset', render: '<div class="set1">Fieldset 1</div>'.html_safe) }
12
+ let(:fieldset2) { double('Fieldset', render: '<div class="set2">Fieldset 2</div>'.html_safe) }
13
+
14
+ it 'renders the object and fieldsets' do
15
+ render partial: 'hydramata/works/works/show', object: object
16
+
17
+ expect(fieldset1).to have_received(:render).with(template: view)
18
+ expect(fieldset2).to have_received(:render).with(template: view)
19
+ expect(rendered).to have_tag('article.work.my-dom-class') do
20
+ with_tag('.set1', text: 'Fieldset 1')
21
+ with_tag('.set2', text: 'Fieldset 2')
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,26 @@
1
+ require 'spec_fast_helper'
2
+ require 'hydramata/works/fedora_wrangler'
3
+
4
+ module Hydramata
5
+ module Works
6
+ class MockEntity
7
+ attr_accessor :work_type
8
+ end
9
+ describe FedoraWrangler do
10
+ let(:model_name) { 'SeniorThesis' }
11
+ let(:digital_object) { double('Digital Object', models: ["info:fedora/afmodel:#{model_name}", 'info:fedora/fedora-system:FedoraObject-3.0'])}
12
+ let(:repository_connection) { double('Repository Connection', find: true) }
13
+ let(:entity) { MockEntity.new }
14
+ subject { described_class.new(repository_connection: repository_connection, entity: entity) }
15
+
16
+ it 'should assign the work type to the collaborating entity' do
17
+ expect(repository_connection).to receive(:find).and_return(digital_object)
18
+ expect { subject.call(:pid) }.
19
+ to change { entity.work_type }.
20
+ from(nil).
21
+ to('SeniorThesis')
22
+ end
23
+
24
+ end
25
+ end
26
+ end
metadata ADDED
@@ -0,0 +1,466 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hydramata-works
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.prerelease
5
+ platform: ruby
6
+ authors:
7
+ - Jeremy Friesen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdf
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: psych
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.0.5
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.0.5
55
+ - !ruby/object:Gem::Dependency
56
+ name: engine_cart
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-html-matchers
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.6'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.6'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.3'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.3'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubydora
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.7'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.7'
139
+ - !ruby/object:Gem::Dependency
140
+ name: vcr
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '2.9'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '2.9'
153
+ - !ruby/object:Gem::Dependency
154
+ name: webmock
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.18'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.18'
167
+ - !ruby/object:Gem::Dependency
168
+ name: database_cleaner
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '1.3'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '1.3'
181
+ description: Provide a well defined data-structure to ease the interaction between
182
+ differing layers of a Hydra application.
183
+ email:
184
+ - jeremy.n.friesen@gmail.com
185
+ executables: []
186
+ extensions: []
187
+ extra_rdoc_files: []
188
+ files:
189
+ - ".gitignore"
190
+ - ".hound.yml"
191
+ - ".rspec"
192
+ - ".travis.yml"
193
+ - CONTRIBUTING.md
194
+ - Gemfile
195
+ - Guardfile
196
+ - LICENSE
197
+ - README.md
198
+ - Rakefile
199
+ - TODO.md
200
+ - VISION.md
201
+ - app/forms/hydramata/works/entity_form.rb
202
+ - app/forms/hydramata/works/validation_service.rb
203
+ - app/models/hydramata/works/data_definition.rb
204
+ - app/models/hydramata/works/entities.rb
205
+ - app/models/hydramata/works/entity.rb
206
+ - app/models/hydramata/works/predicate.rb
207
+ - app/models/hydramata/works/predicate_presentation_sequences/storage.rb
208
+ - app/models/hydramata/works/predicate_set.rb
209
+ - app/models/hydramata/works/predicate_sets/storage.rb
210
+ - app/models/hydramata/works/predicates.rb
211
+ - app/models/hydramata/works/predicates/storage.rb
212
+ - app/models/hydramata/works/presentation_structure.rb
213
+ - app/models/hydramata/works/property.rb
214
+ - app/models/hydramata/works/property_set.rb
215
+ - app/models/hydramata/works/validations.rb
216
+ - app/models/hydramata/works/value.rb
217
+ - app/models/hydramata/works/work_type.rb
218
+ - app/models/hydramata/works/work_types.rb
219
+ - app/models/hydramata/works/work_types/storage.rb
220
+ - app/parsers/hydramata/works/datastream_parser.rb
221
+ - app/parsers/hydramata/works/datastream_parsers/rdf_ntriples_parser.rb
222
+ - app/parsers/hydramata/works/datastream_parsers/simple_xml_parser.rb
223
+ - app/parsers/hydramata/works/predicate_parser.rb
224
+ - app/parsers/hydramata/works/predicate_parsers/simple_parser.rb
225
+ - app/parsers/hydramata/works/validations_parser.rb
226
+ - app/parsers/hydramata/works/value_parser.rb
227
+ - app/parsers/hydramata/works/value_parsers.rb
228
+ - app/parsers/hydramata/works/value_parsers/date_parser.rb
229
+ - app/parsers/hydramata/works/value_parsers/interrogation_parser.rb
230
+ - app/parsers/hydramata/works/value_parsers/simple_parser.rb
231
+ - app/presenters/hydramata/works/base_presenter.rb
232
+ - app/presenters/hydramata/works/dom_attributes_builder.rb
233
+ - app/presenters/hydramata/works/entity_presenter.rb
234
+ - app/presenters/hydramata/works/fieldset_presenter.rb
235
+ - app/presenters/hydramata/works/property_presenter.rb
236
+ - app/presenters/hydramata/works/value_presenter.rb
237
+ - app/renderers/hydramata/works/entity_renderer.rb
238
+ - app/views/hydramata/works/fieldsets/_edit.html.erb
239
+ - app/views/hydramata/works/fieldsets/_show.html.erb
240
+ - app/views/hydramata/works/fieldsets/_show.json.jbuilder
241
+ - app/views/hydramata/works/properties/_edit.html.erb
242
+ - app/views/hydramata/works/properties/_show.html.erb
243
+ - app/views/hydramata/works/properties/_show.json.jbuilder
244
+ - app/views/hydramata/works/works/_edit.html.erb
245
+ - app/views/hydramata/works/works/_new.html.erb
246
+ - app/views/hydramata/works/works/_show.html.erb
247
+ - app/views/hydramata/works/works/_show.json.jbuilder
248
+ - app/wranglers/hydramata/works/fedora_wrangler.rb
249
+ - bin/rails
250
+ - db/migrate/20140606132349_create_hydramata_work_predicates.rb
251
+ - db/migrate/20140606132350_create_hydramata_work_types.rb
252
+ - db/migrate/20140606132351_create_hydramata_work_predicate_sets.rb
253
+ - db/migrate/20140606132352_create_hydramata_work_predicate_presentation_sequences.rb
254
+ - db/migrate/20140623200635_add_validations_to_predicates.rb
255
+ - db/migrate/20140627134133_adding_item_type_schema_dot_org_to_work_type.rb
256
+ - db/migrate/20140627140840_adding_item_prop_schema_dot_org_to_predicate.rb
257
+ - db/seeds.rb
258
+ - documents/administrative-set-strawperson.md
259
+ - documents/diagrams/hydramata-refactor-tasks.dot
260
+ - documents/diagrams/hydramata-sip-dip-aip.dot
261
+ - documents/diagrams/hydramata-work-architecture.dot
262
+ - documents/diagrams/hydramata-work-subcomponents.dot
263
+ - documents/diagrams/map-from-database-to-work-object.dot
264
+ - documents/diagrams/map-from-fedora-to-work-object.dot
265
+ - documents/diagrams/map-from-input-to-work-object.dot
266
+ - documents/diagrams/map-from-work-object-to-database.dot
267
+ - documents/diagrams/work-rendering.dot
268
+ - documents/diagrams/work-structure.dot
269
+ - documents/handling-work.md
270
+ - documents/high-level-stories.md
271
+ - documents/hydramata-components.md
272
+ - documents/interface-between-work-and-permissions.md
273
+ - documents/interface-between-work-and-workflow.md
274
+ - documents/timeline.md
275
+ - fs
276
+ - gemfiles/rails4.1.gemfile
277
+ - gemfiles/rails4.gemfile
278
+ - hydramata-works.gemspec
279
+ - lib/hydramata-works.rb
280
+ - lib/hydramata/works/conversions.rb
281
+ - lib/hydramata/works/conversions/exceptions.rb
282
+ - lib/hydramata/works/conversions/predicate.rb
283
+ - lib/hydramata/works/conversions/predicate_set.rb
284
+ - lib/hydramata/works/conversions/presented_fieldsets.rb
285
+ - lib/hydramata/works/conversions/presenter.rb
286
+ - lib/hydramata/works/conversions/property.rb
287
+ - lib/hydramata/works/conversions/property_set.rb
288
+ - lib/hydramata/works/conversions/translation_key_fragment.rb
289
+ - lib/hydramata/works/conversions/value.rb
290
+ - lib/hydramata/works/conversions/work_type.rb
291
+ - lib/hydramata/works/engine.rb
292
+ - lib/hydramata/works/linters.rb
293
+ - lib/hydramata/works/linters/implement_data_definition_interface_matcher.rb
294
+ - lib/hydramata/works/linters/implement_entity_interface_matcher.rb
295
+ - lib/hydramata/works/linters/implement_predicate_interface_matcher.rb
296
+ - lib/hydramata/works/linters/implement_predicate_set_interface_matcher.rb
297
+ - lib/hydramata/works/linters/implement_property_set_interface_matcher.rb
298
+ - lib/hydramata/works/linters/implement_value_interface_matcher.rb
299
+ - lib/hydramata/works/linters/implement_work_type_interface_matcher.rb
300
+ - lib/hydramata/works/linters/interface_matcher_builder.rb
301
+ - lib/hydramata/works/translator.rb
302
+ - lib/hydramata/works/version.rb
303
+ - lib/hydramata_works.rb
304
+ - lib/tasks/hydramata_work_tasks.rake
305
+ - run_each_spec_in_isolation
306
+ - run_each_spec_in_isolation.txt
307
+ - script/analyzer.rb
308
+ - script/fast_specs
309
+ - spec/features/fedora_to_in_memory_spec.rb
310
+ - spec/features/format_and_view_path_overrides_spec.rb
311
+ - spec/features/in_memory_to_output_buffer_spec.rb
312
+ - spec/features/instantiate_entity_from_persisted_work_type_spec.rb
313
+ - spec/features/new_user_input_to_in_memory_spec.rb
314
+ - spec/features/translation_services_spec.rb
315
+ - spec/features/validate_entity_based_on_work_type_structure_spec.rb
316
+ - spec/fixtures/cassettes/fedora-object.yml
317
+ - spec/fixtures/translations.yml
318
+ - spec/forms/hydramata/works/entity_form_spec.rb
319
+ - spec/forms/hydramata/works/validation_service_spec.rb
320
+ - spec/lib/hydramata-work_spec.rb
321
+ - spec/lib/hydramata/works/conversions/predicate_set_spec.rb
322
+ - spec/lib/hydramata/works/conversions/predicate_spec.rb
323
+ - spec/lib/hydramata/works/conversions/presented_fieldsets_spec.rb
324
+ - spec/lib/hydramata/works/conversions/presenter_spec.rb
325
+ - spec/lib/hydramata/works/conversions/property_set_spec.rb
326
+ - spec/lib/hydramata/works/conversions/property_spec.rb
327
+ - spec/lib/hydramata/works/conversions/translation_key_fragment_spec.rb
328
+ - spec/lib/hydramata/works/conversions/value_spec.rb
329
+ - spec/lib/hydramata/works/conversions/work_type_spec.rb
330
+ - spec/lib/hydramata/works/translator_spec.rb
331
+ - spec/models/hydramata/works/data_definition_spec.rb
332
+ - spec/models/hydramata/works/entity_spec.rb
333
+ - spec/models/hydramata/works/predicate_presentation_sequences/storage_spec.rb
334
+ - spec/models/hydramata/works/predicate_set_spec.rb
335
+ - spec/models/hydramata/works/predicate_sets/storage_spec.rb
336
+ - spec/models/hydramata/works/predicate_spec.rb
337
+ - spec/models/hydramata/works/predicates/storage_spec.rb
338
+ - spec/models/hydramata/works/predicates_spec.rb
339
+ - spec/models/hydramata/works/presentation_structure_spec.rb
340
+ - spec/models/hydramata/works/property_set_spec.rb
341
+ - spec/models/hydramata/works/property_spec.rb
342
+ - spec/models/hydramata/works/value_spec.rb
343
+ - spec/models/hydramata/works/work_type_spec.rb
344
+ - spec/models/hydramata/works/work_types/storage_spec.rb
345
+ - spec/models/hydramata/works/work_types_spec.rb
346
+ - spec/parsers/hydramata/works/datastream_parser_spec.rb
347
+ - spec/parsers/hydramata/works/datastream_parsers/rdf_ntriples_parser_spec.rb
348
+ - spec/parsers/hydramata/works/datastream_parsers/simple_xml_parser_spec.rb
349
+ - spec/parsers/hydramata/works/predicate_parser_spec.rb
350
+ - spec/parsers/hydramata/works/predicate_parsers/simple_parser_spec.rb
351
+ - spec/parsers/hydramata/works/validations_parser_spec.rb
352
+ - spec/parsers/hydramata/works/value_parser_spec.rb
353
+ - spec/parsers/hydramata/works/value_parsers/simple_parser_spec.rb
354
+ - spec/parsers/hydramata/works/value_parsers_spec.rb
355
+ - spec/presenters/hydramata/works/base_presenter_spec.rb
356
+ - spec/presenters/hydramata/works/dom_attributes_builder_spec.rb
357
+ - spec/presenters/hydramata/works/entity_presenter_spec.rb
358
+ - spec/presenters/hydramata/works/fieldset_presenter_spec.rb
359
+ - spec/presenters/hydramata/works/property_presenter_spec.rb
360
+ - spec/presenters/hydramata/works/value_presenter_spec.rb
361
+ - spec/renderers/hydramata/works/entity_renderer_spec.rb
362
+ - spec/spec_active_record_helper.rb
363
+ - spec/spec_fast_helper.rb
364
+ - spec/spec_slow_helper.rb
365
+ - spec/spec_view_helper.rb
366
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
367
+ - spec/views/hydramata/works/fieldsets/_edit.html.erb_spec.rb
368
+ - spec/views/hydramata/works/fieldsets/_show.html.erb_spec.rb
369
+ - spec/views/hydramata/works/properties/_edit.html.erb_spec.rb
370
+ - spec/views/hydramata/works/properties/_show.html.erb_spec.rb
371
+ - spec/views/hydramata/works/works/_edit.html.erb_spec.rb
372
+ - spec/views/hydramata/works/works/_new.html.erb_spec.rb
373
+ - spec/views/hydramata/works/works/_show.html.erb_spec.rb
374
+ - spec/wranglers/hydramata/works/fedora_wrangler_spec.rb
375
+ homepage: https://github.com/jeremyf/hydramata-work
376
+ licenses:
377
+ - APACHE2
378
+ metadata: {}
379
+ post_install_message:
380
+ rdoc_options: []
381
+ require_paths:
382
+ - lib
383
+ required_ruby_version: !ruby/object:Gem::Requirement
384
+ requirements:
385
+ - - "~>"
386
+ - !ruby/object:Gem::Version
387
+ version: '2.0'
388
+ required_rubygems_version: !ruby/object:Gem::Requirement
389
+ requirements:
390
+ - - ">"
391
+ - !ruby/object:Gem::Version
392
+ version: 1.3.1
393
+ requirements: []
394
+ rubyforge_project:
395
+ rubygems_version: 2.2.2
396
+ signing_key:
397
+ specification_version: 4
398
+ summary: Provide a well defined data-structure to ease the interaction between differing
399
+ layers of a Hydra application.
400
+ test_files:
401
+ - spec/features/fedora_to_in_memory_spec.rb
402
+ - spec/features/format_and_view_path_overrides_spec.rb
403
+ - spec/features/in_memory_to_output_buffer_spec.rb
404
+ - spec/features/instantiate_entity_from_persisted_work_type_spec.rb
405
+ - spec/features/new_user_input_to_in_memory_spec.rb
406
+ - spec/features/translation_services_spec.rb
407
+ - spec/features/validate_entity_based_on_work_type_structure_spec.rb
408
+ - spec/fixtures/cassettes/fedora-object.yml
409
+ - spec/fixtures/translations.yml
410
+ - spec/forms/hydramata/works/entity_form_spec.rb
411
+ - spec/forms/hydramata/works/validation_service_spec.rb
412
+ - spec/lib/hydramata-work_spec.rb
413
+ - spec/lib/hydramata/works/conversions/predicate_set_spec.rb
414
+ - spec/lib/hydramata/works/conversions/predicate_spec.rb
415
+ - spec/lib/hydramata/works/conversions/presented_fieldsets_spec.rb
416
+ - spec/lib/hydramata/works/conversions/presenter_spec.rb
417
+ - spec/lib/hydramata/works/conversions/property_set_spec.rb
418
+ - spec/lib/hydramata/works/conversions/property_spec.rb
419
+ - spec/lib/hydramata/works/conversions/translation_key_fragment_spec.rb
420
+ - spec/lib/hydramata/works/conversions/value_spec.rb
421
+ - spec/lib/hydramata/works/conversions/work_type_spec.rb
422
+ - spec/lib/hydramata/works/translator_spec.rb
423
+ - spec/models/hydramata/works/data_definition_spec.rb
424
+ - spec/models/hydramata/works/entity_spec.rb
425
+ - spec/models/hydramata/works/predicate_presentation_sequences/storage_spec.rb
426
+ - spec/models/hydramata/works/predicate_set_spec.rb
427
+ - spec/models/hydramata/works/predicate_sets/storage_spec.rb
428
+ - spec/models/hydramata/works/predicate_spec.rb
429
+ - spec/models/hydramata/works/predicates/storage_spec.rb
430
+ - spec/models/hydramata/works/predicates_spec.rb
431
+ - spec/models/hydramata/works/presentation_structure_spec.rb
432
+ - spec/models/hydramata/works/property_set_spec.rb
433
+ - spec/models/hydramata/works/property_spec.rb
434
+ - spec/models/hydramata/works/value_spec.rb
435
+ - spec/models/hydramata/works/work_type_spec.rb
436
+ - spec/models/hydramata/works/work_types/storage_spec.rb
437
+ - spec/models/hydramata/works/work_types_spec.rb
438
+ - spec/parsers/hydramata/works/datastream_parser_spec.rb
439
+ - spec/parsers/hydramata/works/datastream_parsers/rdf_ntriples_parser_spec.rb
440
+ - spec/parsers/hydramata/works/datastream_parsers/simple_xml_parser_spec.rb
441
+ - spec/parsers/hydramata/works/predicate_parser_spec.rb
442
+ - spec/parsers/hydramata/works/predicate_parsers/simple_parser_spec.rb
443
+ - spec/parsers/hydramata/works/validations_parser_spec.rb
444
+ - spec/parsers/hydramata/works/value_parser_spec.rb
445
+ - spec/parsers/hydramata/works/value_parsers/simple_parser_spec.rb
446
+ - spec/parsers/hydramata/works/value_parsers_spec.rb
447
+ - spec/presenters/hydramata/works/base_presenter_spec.rb
448
+ - spec/presenters/hydramata/works/dom_attributes_builder_spec.rb
449
+ - spec/presenters/hydramata/works/entity_presenter_spec.rb
450
+ - spec/presenters/hydramata/works/fieldset_presenter_spec.rb
451
+ - spec/presenters/hydramata/works/property_presenter_spec.rb
452
+ - spec/presenters/hydramata/works/value_presenter_spec.rb
453
+ - spec/renderers/hydramata/works/entity_renderer_spec.rb
454
+ - spec/spec_active_record_helper.rb
455
+ - spec/spec_fast_helper.rb
456
+ - spec/spec_slow_helper.rb
457
+ - spec/spec_view_helper.rb
458
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
459
+ - spec/views/hydramata/works/fieldsets/_edit.html.erb_spec.rb
460
+ - spec/views/hydramata/works/fieldsets/_show.html.erb_spec.rb
461
+ - spec/views/hydramata/works/properties/_edit.html.erb_spec.rb
462
+ - spec/views/hydramata/works/properties/_show.html.erb_spec.rb
463
+ - spec/views/hydramata/works/works/_edit.html.erb_spec.rb
464
+ - spec/views/hydramata/works/works/_new.html.erb_spec.rb
465
+ - spec/views/hydramata/works/works/_show.html.erb_spec.rb
466
+ - spec/wranglers/hydramata/works/fedora_wrangler_spec.rb