Skip to content

Commit

Permalink
Merge pull request #172 from CDRH/feature/fields
Browse files Browse the repository at this point in the history
Feature/fields
  • Loading branch information
jduss4 committed Aug 24, 2020
2 parents 60bcd9e + c5f3f10 commit 3748b4a
Show file tree
Hide file tree
Showing 34 changed files with 1,766 additions and 771 deletions.
40 changes: 39 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,48 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
<!-- Template - Please preserve this order of sections
## [Unreleased] - Brief description
[Unreleased]: https://github.com/CDRH/datura/compare/v#.#.#...dev
### Fixed
### Added
### Changed
### Removed
### Migration
### Deprecated
### Security
-->

## [v0.2.0-beta](https://github.com/CDRH/datura/compare/v0.1.6...v0.2.0-beta) - 2020-08-17 - Altering field and xpath behavior, adds get_elements

### Added
- Fields (and therefore methods) for ES JSON, such as extent, alternative, spatial, etc
- Methods to xToES format fields to accommodate default behavior
- ES JSON `uri` now populated using default Orchid item path
- Tests and fixtures for all supported formats except CustomToEs
- `get_elements` returns nodeset given xpath arguments
- `spatial` nested fields `spatial.type` and `spatial.title`

### Changed
- Arguments for `get_text`, `get_list`, and `get_xpaths`
- XPaths for VRA and TEI to Elasticsearch
- Default behavior for CsvToEs for some fields
- Documentation updated
- Changed Install instructions to include RVM and gemset naming conventions
- API field `coverage_spatial` is now just `spatial`

### Migration
- Change `coverage_spatial` nested field to `spatial`
- `get_text`, `get_list`, and `get_xpaths` require changing arguments to keyword (like `xml` and `keep_tags`)
- Recommend checking xpaths and behavior of fields after updating to this version, as some defaults have changed
- Possible to refactor previous FileCsv overrides to use new CsvToEs abilities, but not necessary

## [v0.1.6](https://github.com/CDRH/datura/compare/v0.1.5...v0.1.6) - 2020-04-24 - Improvements to CSV, WEBS transformers and adds Custom transformer

Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
datura (0.1.5)
datura (0.2.0.pre.beta)
colorize (~> 0.8.1)
nokogiri (~> 1.8)
rest-client (~> 2.0.2)
Expand All @@ -16,11 +16,11 @@ GEM
domain_name (~> 0.5)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2019.1009)
mime-types-data (3.2020.0512)
mini_portile2 (2.4.0)
minitest (5.14.0)
minitest (5.14.1)
netrc (0.11.0)
nokogiri (1.10.9)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
rake (13.0.1)
rest-client (2.0.2)
Expand Down
Loading

0 comments on commit 3748b4a

Please sign in to comment.