gris 0.2.0 → 0.2.1

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: 2378dec765082f5338685289ccf3d21dd31c717a
4
- data.tar.gz: 6fdaf44e01b1d85daaaeff4a29b347cc982a1219
3
+ metadata.gz: 9ff6ba8261f1cca3c6a660af036c196c47ae34ad
4
+ data.tar.gz: 8fda53f634f7e03cd90a87b495ffba548e2ad7ee
5
5
  SHA512:
6
- metadata.gz: 40fbf86e8c95817a85735229c9c5460e57a1f18b18d729948228f6d740349edb922c1c7ae7ff1fe3ecb10f6473acd88a730edf83c4d00d91768415b84de7fb6a
7
- data.tar.gz: ce324d4d11f5d0bf09a509426bf8472f251b672d32973325d02eaa9403d3de6ac434adf3acb4a47ffdd12972bac62acb9b721b288adc4839fd63a597510b48ff
6
+ metadata.gz: 803be7f9239a72edc4227e2c0b5019d9dac2325359a1924610016c158b37357f40db6aa53aed4e6b05fdfeb641a328c4488c3ebf20e1e169e27bc80eb2da932a
7
+ data.tar.gz: 0e9b303cce658e25f64709449412bae655c15b0e0a672f7256d908b67d446fb74fef4617fdd1421bb2f257677fc1d7b00a1f8e91f553278695312cb42b50b29a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gris (0.2.0)
4
+ gris (0.2.1)
5
5
  activesupport (~> 4.2, >= 4.2.0)
6
6
  chronic (~> 0.10.0)
7
7
  dotenv (~> 2.0, >= 2.0)
@@ -23,16 +23,14 @@ Gem::Specification.new do |s|
23
23
  s.add_runtime_dependency 'rake', '~> 10.4', '>= 10.4.2'
24
24
  s.add_runtime_dependency 'git', '~> 1.2', '>= 1.2.8'
25
25
  s.add_runtime_dependency 'dotenv', '~> 2.0', '>= 2.0'
26
-
27
- s.add_dependency 'logging', '~> 2.0'
28
- s.add_dependency 'grape', '~> 0.11.0', '>= 0.11.0'
29
- s.add_dependency 'grape-roar', '~> 0.3.0', '>= 0.3.0'
30
-
31
- s.add_dependency 'grape-swagger', '~> 0.10.0'
32
- s.add_dependency 'roar', '~> 1.0.1'
33
- s.add_dependency 'racksh', '~> 1.0'
34
- s.add_dependency 'hashie-forbidden_attributes', '~> 0.1.0'
35
- s.add_dependency 'chronic', '~> 0.10.0'
26
+ s.add_runtime_dependency 'logging', '~> 2.0'
27
+ s.add_runtime_dependency 'grape', '~> 0.11.0', '>= 0.11.0'
28
+ s.add_runtime_dependency 'grape-roar', '~> 0.3.0', '>= 0.3.0'
29
+ s.add_runtime_dependency 'grape-swagger', '~> 0.10.0'
30
+ s.add_runtime_dependency 'roar', '~> 1.0.1'
31
+ s.add_runtime_dependency 'racksh', '~> 1.0'
32
+ s.add_runtime_dependency 'hashie-forbidden_attributes', '~> 0.1.0'
33
+ s.add_runtime_dependency 'chronic', '~> 0.10.0'
36
34
 
37
35
  s.add_development_dependency 'bundler'
38
36
  s.add_development_dependency 'rspec', '~> 3.2'
@@ -21,7 +21,7 @@ RSpec.configure do |config|
21
21
  DatabaseCleaner.clean_with(:truncation)
22
22
  end
23
23
 
24
- config.after(:each) do |_example|
24
+ config.before(:each) do
25
25
  DatabaseCleaner.clean
26
26
  end
27
27
  end
@@ -17,7 +17,7 @@ module Gris
17
17
 
18
18
  def permitted_params(options = {})
19
19
  options = { include_missing: false }.merge(options)
20
- process_datetime_params(params) if keys_to_convert
20
+ process_datetime_params(params) if respond_to?(:process_datetime_params)
21
21
  declared(params, options)
22
22
  end
23
23
 
@@ -15,6 +15,7 @@ module Gris
15
15
  end
16
16
 
17
17
  def process_datetime_params(params)
18
+ return unless keys_to_convert
18
19
  params.keys.each do |key|
19
20
  if keys_to_convert.include?(key)
20
21
  params[key] = string_to_datetime(params[key])
@@ -1,5 +1,5 @@
1
1
  module Gris
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
 
4
4
  class Version
5
5
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Fareed