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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1070be152294dd627fb6f0e98038ae626412ddd716dd1ae97137de93b1b0d70
4
- data.tar.gz: 12fe0f44356159f58a8482b297a4e2268b9a4da3281be1e8cd1599bd1d2f0bc0
3
+ metadata.gz: 3034e0ca4ea70e3b33f6971169aa59faae640f4d43272fa1152293abf693651b
4
+ data.tar.gz: ea99ca40acf330e9a5136ef0789ab59737333b88fdaeec54027b4812aa9669f6
5
5
  SHA512:
6
- metadata.gz: 7d3086df6face4380f6596be5b9dea2dc61a72e3672c2e74a175e9236cd0a18fcac749e2eeef1a8df8724e232ac816c0ca9cdec425da7a3912c997a3f91b1037
7
- data.tar.gz: eee38bbee623810f27dd48d925cc456abd3a6ccbcb8773cfb4945afea29aa5da92bc6f61cbd57601f0c5ed613b4f9c4a839621bc91f33e727282d66d96e4e9ff
6
+ metadata.gz: 946339968ec6dc500c349751582d2b7c0b280522c2942ed152d8a5f8828b576ed1ddb9b118d849a2e00bbcebb352512ac5fb7465b047552f6269a4e40be2794c
7
+ data.tar.gz: 1f14f292c04fb776c12665adb84e46b81d75b26a7ba90cc0187f7b2f9b59a35f0265ead685ba612f5e5b1763a3ff992ddd372ef456db2447a678f0ae5afe1238
@@ -1,3 +1,7 @@
1
+ 0.4.1 10/20/2020
2
+ ================
3
+
4
+ We can't expect to ever release a 1.0 if the configuration object doesn't actually persist from the initializer.
1
5
 
2
6
  0.4.0 10/20/2020
3
7
  ================
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.required_ruby_version = '>= 2.3'
22
22
 
23
23
  s.add_dependency "rails", '> 5.0.0'
24
+ s.add_dependency "rack", '< 2.0.9'
24
25
 
25
26
  # grape 1.0.0 breaks the pagination solution
26
27
  s.add_dependency 'grape', ['~> 1.2.0', '< 1.2.5']
@@ -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 = OpenStruct.new(camelize_parameters: true, skip_object_reload: false)
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
@@ -1,3 +1,3 @@
1
1
  module IntrospectiveGrape
2
- VERSION = "0.4.0".freeze
2
+ VERSION = "0.4.1".freeze
3
3
  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.0
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