Our great sponsors
-
shale
Shale is a Ruby object mapper and serializer for JSON, YAML and XML. It allows you to parse JSON, YAML and XML data and convert it into Ruby data structures, as well as serialize data structures into JSON, YAML or XML.
-
Serialization/deserialization is such an important part of web development, I have no idea why Rails includes the ancient JBuilder (and very slow since it goes through templating) library, instead of investing in a proper library. Let alone deserializing which is equally important..
I think the API Shale provides is pretty sane. I would probably use it in my next Ruby/Rails project. I don't like the fact that Nokogiri is included by default, it would be nice to declare a core type, and then bring in what you need (JSON, XML, YAML) as a different gem. But that's not a deal breaker for me.
I have created my own serializers in the past (SimpleAMS[1]) because I really detested AMS, no offence to AMS contributors, but AMS library should just die. Rails, and way more importantly Ruby, should come up with an "official" serializers/deserializers library that is flexible enough, rock solid and fast. For instance I had done some benchmarking among common serializer libraries [2] and AMS was crazy slow, without providing much flexibility, really (meaning, slowness is not justified). Others were faster, but were supporting only one JSON spec format (like jsonapi-rb).
Another thing is that most serialization libraries seem to have ActiveSupport as a main dependency (not shale though) which I think is a bit too much, and actually has a performance hit on the methods it provides. I really think that Ruby community can do better here ?
-
SonarQube
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
-
shale-website
Landing page and interactive documentation for Shale - JSON/YAML/TOML/XML mapper and serializer for Ruby.
It's a custom template I created, because I couldn't find anything that simple. The source code is available on https://github.com/kgiszczak/shale-website
Interactive examples are powered by https://opalrb.com/
-
It's a custom template I created, because I couldn't find anything that simple. The source code is available on https://github.com/kgiszczak/shale-website
Interactive examples are powered by https://opalrb.com/
-
Nice library with a very approachable documentation, congrats!
I'll probably give it a go to replace my current implementation using nokogiri-happymapper (https://github.com/mvz/happymapper)
-
Documentation site was based on https://vuepress.vuejs.org/ but it evolved so much I dropped Vue all together and wen't with plain HTML instead. I must have left that meta tag from the early days.
Regarding Vue I use it daily at my job, great library :)
-
Nice, it seems like a generic version of grape-entity https://github.com/ruby-grape/grape-entity
-
InfluxDB
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
-
Have you checked out Alba [0]? I think it’s one of the better options right now.
Related posts
- Shale v0.9.0 released - a Ruby object mapper and serializer for XML, JSON, TOML, CSV and YAML
- I'm a front-end dev currently being asked to work on a Rails API backend. What are some good resources to get comfortable with the language and the framework?
- Shale: Ruby object mapper and serializer for JSON, YAML, TOML and XML
- Shale v0.8.0 released - a Ruby object mapper and serializer for XML, JSON, TOML and YAML
- Shale v0.7.0 released - a Ruby object mapper and serializer for XML, JSON, TOML and YAML