introspective_grape 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0478e58629bddd63190fa37d11c63c07872b59b
4
- data.tar.gz: 5176e6bfb35d31a20ad541a8e7069c365fb18f8b
3
+ metadata.gz: 66a8d39d065336f27862ed3f129510931bfc2d25
4
+ data.tar.gz: 667b52d722d3ea2b348cfcb3c5ca2a901ea8362d
5
5
  SHA512:
6
- metadata.gz: b45bc43f714cf140f1f2903fb075290e209b08f99f32ed656639c49440949c7de5b58ae9dded52af1aff3087690bf8e6e9591e65c2edd122914c82dd1113320f
7
- data.tar.gz: 9ec43d28db3b0b6a79970270508c636629626800d3438fe2deb56b180cfd2f8ab0a59a7b52f0d86b73a1e62559716d56f1a72a8557eea779066a69589d4d68c7
6
+ metadata.gz: 5287b37289410314b6d3993f80f852db914291eac20b10d3c322c65a1307fe27457a2b00fdd0844323d7d625765d35a04606dfbe38ad379f4e5cb721d15e97e3
7
+ data.tar.gz: bb415d186d385970deae105c58b9685d56f646c5b0bc69d0bcc5b1e2973d5a9c1433a883c897d51abd7895469709b764f3d5ad64ebc3b3e6cbb2b6819609bfc9
@@ -1,4 +1,5 @@
1
1
  # Add a formatter to grape that converts all snake case hash keys from ruby to camel case.
2
+ require 'camel_snake_keys'
2
3
  module IntrospectiveGrape
3
4
  module Formatter
4
5
  module CamelJson
@@ -1,3 +1,3 @@
1
1
  module IntrospectiveGrape
2
- VERSION = "0.2.8".freeze
2
+ VERSION = "0.2.9".freeze
3
3
  end
data/spec/dummy/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
  gem 'rails', '<5.0'
3
3
 
4
4
  #gem 'byebug'
5
- gem 'camel_snake_keys'
5
+ #gem 'camel_snake_keys'
6
6
 
7
7
  gem 'delayed_paperclip'
8
8
  #gem 'devise-async'
@@ -1,4 +1,5 @@
1
- class Dummy::ChatAPI < DummyAPI
1
+ class Dummy::ChatAPI < Grape::API
2
+ formatter :json, IntrospectiveGrape::Formatter::CamelJson
2
3
 
3
4
  before do
4
5
  authenticate!
@@ -1,7 +1,3 @@
1
- #require 'grape-swagger'
2
- #require 'grape-entity'
3
- #require 'introspective_grape/camel_snake'
4
-
5
1
  class DummyAPI < Grape::API
6
2
  version 'v1', using: :path
7
3
  format :json
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: introspective_grape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Buermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-23 00:00:00.000000000 Z
11
+ date: 2017-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails