Git Product home page Git Product logo

rom-yaml's People

Contributors

cflipse avatar flash-gordon avatar gustavocaso avatar solnic avatar splattael avatar v-kolesnikov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rom-yaml's Issues

Add commands

rom-yaml doesn't have support for commands yet, I think we can start with something similar to rom-csv.

Examples

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?

Wrong require statement

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.

Schema inferrer

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.