forest_admin_datasource_toolkit 1.0.0.pre.beta.48 → 1.0.0.pre.beta.50

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
  SHA256:
3
- metadata.gz: a815ac7f48ab0d00ae3cdf571d3ed22b22c0a44e53ec7b07a66239112e746022
4
- data.tar.gz: 56d266f7fd74dff4a72885db6977dcdbe1b899742d2ef07f23e39d82225ee5cd
3
+ metadata.gz: 2bcf5ff6cb337e591a9ebc2a99541628c43a6f6cd1536d6cb82befe37c2fbef1
4
+ data.tar.gz: 3b802300796ecd5175d2ddb9b62e1ba194f2ee9903284a0360f5b5df7c22be2e
5
5
  SHA512:
6
- metadata.gz: b07353d20d5ea257c402c8471af2d5db50f4c7269214e217968b4e2b3aa864cbd8c0dff0cb4c55decc1ddc22d5ace5c7f1dc221721a9df1707332b2c70cf8f33
7
- data.tar.gz: 6742c7b1d0c7d530057305836efe4040ef1f385d4ee6bd8845dfebf4400177f3bc38e51d5e1ca1a69e69ed80880ef628d084e3ee5c4a700991579f4267c57955
6
+ metadata.gz: 4b70fc0f8a6c212277bfdbf085f9ffd53316479cfd4ead9cf7fecfc05d7fe2887f518f854d2c26cc4afb0c454d30869e9317f7b794bd2b8a1bcc097292031a0f
7
+ data.tar.gz: ee15fd10a791642a24c950b28b61a3c94be7497eae33f8cb7fa6f4d81133b29f1028300e4081d172004e8f93efd534838a30ad7471508604015bc2cad7525ce0
@@ -55,7 +55,7 @@ module ForestAdminDatasourceToolkit
55
55
  elsif result.is_a?(ConditionTree)
56
56
  result
57
57
  else
58
- ConditionTreeFactory.from_array(result)
58
+ ConditionTreeFactory.from_plain_object(result)
59
59
  end
60
60
  end
61
61
 
@@ -102,7 +102,7 @@ module ForestAdminDatasourceToolkit
102
102
  ],
103
103
  Operators::TODAY => [
104
104
  interval(
105
- proc { |now| now.beginning_of_day },
105
+ proc(&:beginning_of_day),
106
106
  proc { |now| (now + 1.day).beginning_of_day }
107
107
  )
108
108
  ]
@@ -3,7 +3,7 @@ module ForestAdminDatasourceToolkit
3
3
  class ForestException < RuntimeError
4
4
  def initialize(msg = '')
5
5
  msg = "🌳🌳🌳 #{msg}"
6
- super(msg)
6
+ super
7
7
  end
8
8
  end
9
9
  end
@@ -1,7 +1,10 @@
1
1
  module ForestAdminDatasourceToolkit
2
2
  module Exceptions
3
3
  class ValidationError < ForestException
4
- def initialize(msg = '')
4
+ attr_reader :name
5
+
6
+ def initialize(message)
7
+ @name = 'ValidationError'
5
8
  super
6
9
  end
7
10
  end
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceToolkit
2
- VERSION = "1.0.0-beta.48"
2
+ VERSION = "1.0.0-beta.50"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.48
4
+ version: 1.0.0.pre.beta.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu