diff --git a/README.md b/README.md index 6e78782..229a243 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# grape-jsonapi_entity +# grape-jsonapi Adds [Jsonapi v1.0](http://jsonapi.org/) sugar on [Grape-Entity](https://github.com/ruby-grape/grape-entity). @@ -7,12 +7,12 @@ Adds [Jsonapi v1.0](http://jsonapi.org/) sugar on [Grape-Entity](https://github. ## Installation -Add the `grape`, `grape-entity` and `grape-jsonapi_entity` gems to Gemfile. +Add the `grape`, `grape-entity` and `grape-jsonapi` gems to Gemfile. ```ruby gem 'grape' gem 'grape-entity' -gem 'grape-jsonapi_entity' +gem 'grape-jsonapi' ``` Run `bundle install`. diff --git a/grape-jsonapi_entity.gemspec b/grape-jsonapi.gemspec similarity index 96% rename from grape-jsonapi_entity.gemspec rename to grape-jsonapi.gemspec index 58b1231..1ef0010 100644 --- a/grape-jsonapi_entity.gemspec +++ b/grape-jsonapi.gemspec @@ -5,7 +5,7 @@ $LOAD_PATH.push File.expand_path('../lib', __FILE__) require File.expand_path('../lib/grape/jsonapi/version', __FILE__) Gem::Specification.new do |s| - s.name = 'grape-jsonapi_entity' + s.name = 'grape-jsonapi' s.version = Grape::Jsonapi::VERSION s.platform = Gem::Platform::RUBY s.date = '2017-05-18' diff --git a/lib/grape-jsonapi_entity.rb b/lib/grape-jsonapi.rb similarity index 72% rename from lib/grape-jsonapi_entity.rb rename to lib/grape-jsonapi.rb index 11aea49..fce844e 100644 --- a/lib/grape-jsonapi_entity.rb +++ b/lib/grape-jsonapi.rb @@ -1,5 +1,2 @@ require 'grape-entity' require 'grape/jsonapi' - -module Grape -end diff --git a/lib/grape_jsonapi_entity.rb b/lib/grape_jsonapi_entity.rb deleted file mode 100644 index 519a626..0000000 --- a/lib/grape_jsonapi_entity.rb +++ /dev/null @@ -1 +0,0 @@ -require 'grape-jsonapi_entity' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b100077..128b995 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,7 +3,7 @@ require 'pry-byebug' require 'grape_entity' -require 'grape-jsonapi_entity' +require 'grape-jsonapi' require 'json' require 'ostruct'