rom-rb / rom-yaml Goto Github PK
View Code? Open in Web Editor NEWYAML support for Ruby Object Mapper
License: MIT License
YAML support for Ruby Object Mapper
License: MIT License
rom-yaml
doesn't have support for commands yet, I think we can start with something similar to rom-csv
.
Where can I find examples of a real usecase? spec/integration/adapter_spec.rb
is not really an example code. It is not helpful. How can I create a new yaml file for a Relation using the YAML Gateway?
Script for reproduction:
#!/usr/bin/env ruby
require 'bundler/inline'
gemfile(true) do
source 'https://rubygems.org'
gem 'rom-yaml', '~> 2.0.0rc1'
end
require 'rom-yaml'
Output
Resolving dependencies...
Using bundler 1.16.0.pre.3
Using concurrent-ruby 1.0.5
Using dry-configurable 0.7.0
Using dry-container 0.6.0
Using dry-core 0.4.0
Using dry-equalizer 0.2.0
Using dry-initializer 2.3.0
Using dry-logic 0.4.2
Using inflecto 0.0.2
Using dry-types 0.12.1
Using ice_nine 0.11.2
Using dry-struct 0.3.1
Using transproc 1.0.2
Using rom-mapper 1.0.2
Using rom-core 4.0.2
Using rom-yaml 2.0.0.rc1
/Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/rom-yaml-2.0.0.rc1/lib/rom/yaml.rb:1:in `require': cannot load such file -- rom (LoadError)
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/rom-yaml-2.0.0.rc1/lib/rom/yaml.rb:1:in `<top (required)>'
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/rom-yaml-2.0.0.rc1/lib/rom-yaml.rb:1:in `require'
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/rom-yaml-2.0.0.rc1/lib/rom-yaml.rb:1:in `<top (required)>'
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0.pre.3/lib/bundler/runtime.rb:83:in `require'
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0.pre.3/lib/bundler/runtime.rb:83:in `block (2 levels) in require'
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0.pre.3/lib/bundler/runtime.rb:78:in `each'
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0.pre.3/lib/bundler/runtime.rb:78:in `block in require'
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0.pre.3/lib/bundler/runtime.rb:67:in `each'
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0.pre.3/lib/bundler/runtime.rb:67:in `require'
from /Users/vkolesnikov/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0.pre.3/lib/bundler/inline.rb:70:in `gemfile'
from test.rb:5:in `<main>'
I assume we don't need to require rom, but rom-core only. In other case we should add 'rom' as runtime-dependency for rom-yaml.
It should be possible to add schema inferrer, which would load yaml dataset and generate a map with unique key names and all possible value types for each key, and simply return a list of rom attribute types.
It'd be great to support one YAML file per relation too!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.