gris 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1dafb45eacbbe8ce8cdb4613c714e5497f496932
4
- data.tar.gz: 15434af827ed90e6116e621b18425d89f49b2dc5
3
+ metadata.gz: a683be06c5c714578f43ac6e2d0f21ed51d74a4c
4
+ data.tar.gz: 3191f2ffde90d228298f06887c62f16a8b210007
5
5
  SHA512:
6
- metadata.gz: d2f9056a432af7db7116dbdb5a3ef754f1b414b402527d0613ab17672b06f55013dc6723b046b431932b342c532fbcc214741fc24dadccd0f697c18b7857d1ad
7
- data.tar.gz: 74c5de29f70a2a1148333eef451ec84eb0a7032c4779d630044ac2b9ab09395379cf99a5008809ec7bbdb2e992f48cb08e1c2a5cf73d9a1c20715d674a2bbfed
6
+ metadata.gz: 616ddbd83398dd971737f535c87f4faf0df5b23f0a315ea6b94bc81ee956737b6f95e52eff93826b03d3fa19364242dd33a92208a17b7604dc7a29211829852f
7
+ data.tar.gz: 708d01729f56cf84ee336ae253fd5e3592f0d2e65ffa23e0752aad9ab36b94e42795aeb6955b6a9140a37596dd9b968d03456b32d02a61536d2ce4edc160645d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gris (0.0.7)
4
+ gris (0.0.8)
5
5
  activesupport (~> 4.2, >= 4.2.0)
6
6
  dotenv (~> 1.0.2, >= 1.0.2)
7
7
  git (~> 1.2, >= 1.2.8)
@@ -1,6 +1,7 @@
1
1
  class ApplicationEndpoint < Grape::API
2
2
  format :json
3
3
  formatter :json, Grape::Formatter::Roar
4
+ content_type :json, 'application/hal+json'
4
5
 
5
6
  helpers do
6
7
  include Gris::AuthenticationHelpers
data/lib/gris/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Gris
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
 
4
4
  class Version
5
5
  class << self
@@ -79,6 +79,10 @@ describe Gris::Generators::ScaffoldGenerator do
79
79
  expect(application_api_file).to match(/class ApplicationEndpoint < Grape::API/)
80
80
  end
81
81
 
82
+ it 'the application endpoint uses hal+json content_type' do
83
+ expect(application_api_file).to include "content_type :json, 'application/hal+json'"
84
+ end
85
+
82
86
  it 'mounts the RootPresenter' do
83
87
  expect(application_api_file).to match(/present self, with: RootPresenter/)
84
88
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Fareed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor