smart_engine 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/smart_core/engine/version.rb +1 -1
- data/lib/smart_core/errors.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70cda20326ebd513f16c9d3ff9529b56f7e083b85a4843fe3f7640e7b8d1da1c
|
4
|
+
data.tar.gz: 416c6ec9229b668b3cd6dbe779c99a80afe34debbc8d70dc9c0ac3c6d318348b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fa576346189eaaaaa0e48818ee0688904c900792449c6595ca8885f428a18f345ab24b7257b4cc0c5b0b0842c9383e5d885572d37220b1a0a9dcaf5c6ccc11a
|
7
|
+
data.tar.gz: 7386071b2ed63e7760747b8c7f0c5cbf01a78fc4f7e3c8442ac9c4139c924bd07300943383105589327c9b68365012829e9c9a7eac617f9455c44cc6f159ca0c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [0.2.0] - 2020-01-02
|
5
|
+
### Changed
|
6
|
+
- `SmartCore::FrozenError` inherits classic `::FrozenError` behaviour for `Ruby >= 2.5.0` and old `::RuntimeError` behaviour for `Ruby < 2.5.0;
|
7
|
+
|
4
8
|
## [0.1.0] - 2020-01-02
|
5
9
|
|
6
10
|
- Minimalistic Release :)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# SmartCore::Engine
|
1
|
+
# SmartCore::Engine · [![Gem Version](https://badge.fury.io/rb/smart_engine.svg)](https://badge.fury.io/rb/smart_engine) [![Build Status](https://travis-ci.org/smart-rb/smart_engine.svg?branch=master)](https://travis-ci.org/smart-rb/smart_engine)
|
2
2
|
|
3
3
|
Generic SmartCore functionality.
|
4
4
|
|
data/lib/smart_core/errors.rb
CHANGED
@@ -10,6 +10,14 @@ module SmartCore
|
|
10
10
|
ArgumentError = Class.new(::ArgumentError)
|
11
11
|
|
12
12
|
# @api public
|
13
|
-
# @
|
14
|
-
FrozenError =
|
13
|
+
# @since 0.2.0
|
14
|
+
FrozenError = begin # rubocop:disable Naming/ConstantName
|
15
|
+
# :nocov:
|
16
|
+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.5.0')
|
17
|
+
Class.new(::FrozenError)
|
18
|
+
else
|
19
|
+
Class.new(::RuntimeError)
|
20
|
+
end
|
21
|
+
# :nocov:
|
22
|
+
end
|
15
23
|
end
|