corn_starch 1.1.19 → 1.1.20

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: 9bda8f83635a70e2b69ff56ebc353658d4d5f58f
4
- data.tar.gz: 33c8cfdd613f0c0a70b5f945e0b49ffc52a7d52b
3
+ metadata.gz: 23780760827ce0abfcc08013174834187d895537
4
+ data.tar.gz: bd4a80297bc5363f01321c835712e60bdf3066a9
5
5
  SHA512:
6
- metadata.gz: 05e99a2c6cc43704c6293636a71c1c763bb05e2c936ea547ff31c92b088dc09b61bf858a2de62aba9c102544e24291f4b4a06bc5295fde85f75687914ace7e01
7
- data.tar.gz: 8fd789637b83fa02ccc7c6fa7799694b4620f09e28be4b4774d5466643e0d4027daacecff3a507e7dd2b710cbd0787a828e410936d68c7e174e2ca36b34333fb
6
+ metadata.gz: 5b305fe499274a902819cb4113843e6a192f1ef5809413eaa59bf166bf6bc1e2ad8a30bda50c7ac986d08e4a8cd238deb8bd968cb9c4360d5ec7d7ddcdaf1770
7
+ data.tar.gz: 80b034903430cce573031b7107cadc97161354b6e156cd975afebf639722c60db8c95773ddb60867d78dcc2cc52c8a4781684b6fd60f555fba1615984de9bef6
@@ -12,20 +12,21 @@ require 'json'
12
12
  CORNSTARCH_CONF_FILE = "#{Rails.root}/config/corn_starch.yml"
13
13
  CORNSTARCH_CONF = YAML::load_file CORNSTARCH_CONF_FILE if File.exist? CORNSTARCH_CONF_FILE
14
14
  CORNSTARCH_CONF ||= {}
15
+ CORNSTARCH_CONF.deep_symbolize_keys!
15
16
 
16
17
  ######################
17
18
  # Configure Defaults #
18
19
  ######################
19
20
 
20
21
  # Pagination
21
- CORNSTARCH_CONF['pagination'] ||= {}
22
- CORNSTARCH_CONF['pagination']['page_range'] ||= 6
23
- CORNSTARCH_CONF['pagination']['records_per_page'] ||= {}
24
- CORNSTARCH_CONF['pagination']['records_per_page']['default'] ||= 10
25
- CORNSTARCH_CONF['pagination']['records_per_page']['opts'] ||= [ 10, 25, 50, 100 ]
22
+ CORNSTARCH_CONF[:pagination] ||= {}
23
+ CORNSTARCH_CONF[:pagination][:page_range] ||= 6
24
+ CORNSTARCH_CONF[:pagination][:records_per_page] ||= {}
25
+ CORNSTARCH_CONF[:pagination][:records_per_page][:default] ||= 10
26
+ CORNSTARCH_CONF[:pagination][:records_per_page][:opts] ||= [ 10, 25, 50, 100 ]
26
27
 
27
28
  # Authentication
28
- CORNSTARCH_CONF['authentication'] ||= {}
29
- CORNSTARCH_CONF['authentication']['user_model'] ||= {}
30
- CORNSTARCH_CONF['authentication']['user_model']['name'] ||= 'User'
31
- CORNSTARCH_CONF['authentication']['user_model']['uid_field'] ||= 'username'
29
+ CORNSTARCH_CONF[:authentication] ||= {}
30
+ CORNSTARCH_CONF[:authentication][:user_model] ||= {}
31
+ CORNSTARCH_CONF[:authentication][:user_model][:name] ||= 'User'
32
+ CORNSTARCH_CONF[:authentication][:user_model][:uid_field] ||= 'username'
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.1.19'
2
+ VERSION = '1.1.20'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corn_starch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.19
4
+ version: 1.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse