README.md in active_remote-7.0.0 vs README.md in active_remote-7.1.0

- old
+ new

@@ -1,14 +1,16 @@ -[![Build Status](https://travis-ci.org/liveh2o/active_remote.svg?branch=master)](https://travis-ci.org/liveh2o/active_remote) +![CI](https://github.com/liveh2o/active_remote/actions/workflows/main.yml/badge.svg) +[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard) +[![Gem Version](https://badge.fury.io/rb/active_remote.svg)](https://badge.fury.io/rb/active_remote) # Active Remote Active Remote provides [Active Record](https://github.com/rails/rails/tree/master/activerecord)-like object-relational mapping over RPC. Think of it as Active Record for your platform: within a service, use Active Record to persist objects and between services, use Active Remote. Active Remote provides a base class that when subclassed, provides the functionality you need to setup your remote model. Because Active Remote provides model persistence between RPC services, it uses a GUID to retrieve records and establish associations. So Active Remote expects your RPC data format to provide a :guid field that can be used to identify your remote models. -Unlike Active Record, Active Remote doesn't have access to a database table to create attribute mappings. So you'll need to do a little setup to let Active Remote know how to persist your model*. +Unlike Active Record, Active Remote doesn't have access to a database table to create attribute mappings. So you'll need to do a little setup to let Active Remote know how to persist your model\*. ```Ruby # Given a product record that has :guid & :name fields: class Product < ActiveRecord::Base # :guid, :name @@ -19,11 +21,11 @@ attribute :guid attribute :name end ``` -_*Using Ruby's inherited hook, you could build an attribute mapper to setup your remote models for you._ +_\*Using Ruby's inherited hook, you could build an attribute mapper to setup your remote models for you._ Like Active Record, Active Remote relies heavily on naming conventions and standard CRUD actions. It expects models name to map to it's service (e.g Product => ProductService) and will infer the service name automatically. ```Ruby # Given a product service that has #search, #create, #update, and #delete endpoints @@ -48,11 +50,11 @@ # Your remote model will just work. class Product < ActiveRemote::Base end ``` - You can, of course override it if need be: +You can, of course override it if need be: ```Ruby # If you have a custom service: class CustomProductService < RPCService # CRUD actions @@ -75,10 +77,9 @@ $ bundle Or install it yourself as: $ gem install active_remote - ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)