cocina-models 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c031b56f3548f5017668e942e8464b8043799b66eb3de2a627a0bce2fb7954c2
4
- data.tar.gz: f71f049e417a93ece04d27cf3b6836b24bdf7fa232ffcec4f5bba2236298a7bb
3
+ metadata.gz: 88852e29f63eec2983df0a4c6e7a9453d1cf38382899469fc7d7e5699a6964f8
4
+ data.tar.gz: 33259a2ea826852f38bee282d367443aee4611db1ecb59fa1f83b0213f419cb9
5
5
  SHA512:
6
- metadata.gz: c1ccd0ab5d5367632a44abb864eb6d7eb6787791a4cbe3c71cfd0d97f1ef13e04d0e4ee7ca8947bdf7f71e50c1af19dce29600f92e5694d3ec46c5582eed0eaf
7
- data.tar.gz: 277c311506184fa9d0958d101a0dfe3168681e4f26619d339b750e48c990ebfd8d89ca7d998291c6bffe70d25e2e9c5beddec93930f9ce8deb3d333e94ac822a
6
+ metadata.gz: dcb43ae3ec2e8053bd674cfe893c6844f84642fe8d96099b432be6569299a009bb918920da9a087a324089929718261073aef216f88bb786d1ec35e938e8eedd
7
+ data.tar.gz: 33041208f7ec19d9704f2c98090757366ed971aebbf21e6726c5279d93f572e561b2035d4798cb81272aa71973a6fe3bc983c72a4a8eb17cdb3479862d48b972
data/README.md CHANGED
@@ -1,35 +1,8 @@
1
1
  # Cocina::Models
2
+ [![Gem Version](https://badge.fury.io/rb/cocina-models.svg)](https://badge.fury.io/rb/cocina-models)
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cocina/models`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+ This is the models for transporting digital repository objects using the Cocina application profile.
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
+ This is a work in progress and will eventually implement the full Cocina data model. See https://github.com/sul-dlss/taco-truck/blob/master/COCINA.md#cocina-data-models--shapes
6
7
 
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'cocina-models'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install cocina-models
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cocina-models.
8
+ See also https://github.com/sul-dlss-labs/taco/tree/master/maps
@@ -14,18 +14,6 @@ Gem::Specification.new do |spec|
14
14
  spec.description = 'SDR data models that can be validated'
15
15
  spec.homepage = 'https://github.com/sul-dlss-labs/cocina-models'
16
16
 
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- if spec.respond_to?(:metadata)
20
- # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
-
22
- spec.metadata['homepage_uri'] = spec.homepage
23
- spec.metadata['source_code_uri'] = 'https://github.com/sul-dlss-labs/cocina-models'
24
- else
25
- raise 'RubyGems 2.0 or newer is required to protect against ' \
26
- 'public gem pushes.'
27
- end
28
-
29
17
  # Specify which files should be added to the gem when it is released.
30
18
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
31
19
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
data/lib/cocina/models.rb CHANGED
@@ -10,6 +10,8 @@ class CocinaModelsInflector < Zeitwerk::Inflector
10
10
  case basename
11
11
  when 'dro'
12
12
  'DRO'
13
+ when 'version'
14
+ 'VERSION'
13
15
  else
14
16
  super
15
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct
@@ -116,9 +116,7 @@ files:
116
116
  - lib/cocina/models/version.rb
117
117
  homepage: https://github.com/sul-dlss-labs/cocina-models
118
118
  licenses: []
119
- metadata:
120
- homepage_uri: https://github.com/sul-dlss-labs/cocina-models
121
- source_code_uri: https://github.com/sul-dlss-labs/cocina-models
119
+ metadata: {}
122
120
  post_install_message:
123
121
  rdoc_options: []
124
122
  require_paths: