introspective_grape 0.4.0 → 0.4.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/introspective_grape.gemspec +1 -0
- data/lib/introspective_grape.rb +3 -1
- data/lib/introspective_grape/configuration.rb +15 -0
- data/lib/introspective_grape/version.rb +1 -1
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3034e0ca4ea70e3b33f6971169aa59faae640f4d43272fa1152293abf693651b
|
4
|
+
data.tar.gz: ea99ca40acf330e9a5136ef0789ab59737333b88fdaeec54027b4812aa9669f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 946339968ec6dc500c349751582d2b7c0b280522c2942ed152d8a5f8828b576ed1ddb9b118d849a2e00bbcebb352512ac5fb7465b047552f6269a4e40be2794c
|
7
|
+
data.tar.gz: 1f14f292c04fb776c12665adb84e46b81d75b26a7ba90cc0187f7b2f9b59a35f0265ead685ba612f5e5b1763a3ff992ddd372ef456db2447a678f0ae5afe1238
|
data/CHANGELOG.md
CHANGED
data/introspective_grape.gemspec
CHANGED
data/lib/introspective_grape.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
require 'introspective_grape/configuration'
|
1
2
|
module IntrospectiveGrape
|
2
3
|
autoload :API, 'introspective_grape/api'
|
3
4
|
autoload :CamelSnake, 'introspective_grape/camel_snake'
|
5
|
+
autoload :Configure, 'introspective_grape/configuration'
|
4
6
|
autoload :CreateHelpers, 'introspective_grape/create_helpers'
|
5
7
|
autoload :Doc, 'introspective_grape/doc'
|
6
8
|
autoload :Filters, 'introspective_grape/filters'
|
@@ -13,6 +15,6 @@ module IntrospectiveGrape
|
|
13
15
|
end
|
14
16
|
|
15
17
|
def self.config
|
16
|
-
@config
|
18
|
+
@config ||= Configuration.new
|
17
19
|
end
|
18
20
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module IntrospectiveGrape
|
2
|
+
def self.configure
|
3
|
+
self.config ||= Configuration.new
|
4
|
+
yield config
|
5
|
+
end
|
6
|
+
|
7
|
+
class Configuration
|
8
|
+
attr_accessor :camelize_parameters, :skip_object_reload
|
9
|
+
|
10
|
+
def initialize
|
11
|
+
@camelize_parameters = true
|
12
|
+
@skip_object_reload = false
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: introspective_grape
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Buermann
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 5.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.9
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "<"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.0.9
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: grape
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -247,6 +261,7 @@ files:
|
|
247
261
|
- lib/introspective_grape.rb
|
248
262
|
- lib/introspective_grape/api.rb
|
249
263
|
- lib/introspective_grape/camel_snake.rb
|
264
|
+
- lib/introspective_grape/configuration.rb
|
250
265
|
- lib/introspective_grape/create_helpers.rb
|
251
266
|
- lib/introspective_grape/doc.rb
|
252
267
|
- lib/introspective_grape/filters.rb
|