smart_engine 0.1.0 → 0.2.0

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: e63accc1a8c876ff58ea7b45e4c080182a27acba248641b433c346a0019ab54a
4
- data.tar.gz: b66831fd089c81edb52a441f0672eabc8455f75e396a5f4c22a61a0ef8a2a93c
3
+ metadata.gz: 70cda20326ebd513f16c9d3ff9529b56f7e083b85a4843fe3f7640e7b8d1da1c
4
+ data.tar.gz: 416c6ec9229b668b3cd6dbe779c99a80afe34debbc8d70dc9c0ac3c6d318348b
5
5
  SHA512:
6
- metadata.gz: 150f0e4fcef41db65d73d1bf8995b73627fd10f79433e0f0dbf419182c212aaa770f0033c71959b52973ce713e68d8958201241045b1a001d5fa9ea66a6437ac
7
- data.tar.gz: 4d0181d2bdbc77451a52f90a030229ea596f4124d358316c0c5cdb94ae8bb9e8ff65938802986230ae4a4cda172728ae8e691518c7329a98c8e1195df66af515
6
+ metadata.gz: 7fa576346189eaaaaa0e48818ee0688904c900792449c6595ca8885f428a18f345ab24b7257b4cc0c5b0b0842c9383e5d885572d37220b1a0a9dcaf5c6ccc11a
7
+ data.tar.gz: 7386071b2ed63e7760747b8c7f0c5cbf01a78fc4f7e3c8442ac9c4139c924bd07300943383105589327c9b68365012829e9c9a7eac617f9455c44cc6f159ca0c
@@ -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 :)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smart_engine (0.1.0)
4
+ smart_engine (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # SmartCore::Engine
1
+ # SmartCore::Engine &middot; [![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
 
@@ -6,6 +6,6 @@ module SmartCore
6
6
  #
7
7
  # @api public
8
8
  # @since 0.1.0
9
- VERSION = '0.1.0'
9
+ VERSION = '0.2.0'
10
10
  end
11
11
  end
@@ -10,6 +10,14 @@ module SmartCore
10
10
  ArgumentError = Class.new(::ArgumentError)
11
11
 
12
12
  # @api public
13
- # @sinc 0.1.0
14
- FrozenError = Class.new(::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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov