fat_core 4.2.0 → 4.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: 3dad2a3d13f88cceae80ce506b9437db18b461ff
4
- data.tar.gz: e062e1b2e146b137cd61a8b8fb99e57f20f821ed
3
+ metadata.gz: d12f27121edad6375e7788a6b8939b13d0273517
4
+ data.tar.gz: 14466da4952364774be8ae21a486fb89c3056ea2
5
5
  SHA512:
6
- metadata.gz: 74db8ea73f1d1bdf9b299a655a8e7f5bd84306c8f56ae9259c633f8d1092a70bd5face91daa860ed3572e6210ddc5cec331b37cda2a6eda947a5c79cc3b80a88
7
- data.tar.gz: 93294b20d5c26f31aecff5420507aa3fee031d3d66b3c71f23652e84162c941a795c3cd0fbd7aae6be9c16bd910dfec45cab0d9c866483874cc0f3c2885901b4
6
+ metadata.gz: 076c5f5e62472a0d4ae0849aa0364c8aa8d2c11c46cc1aeac2a59cadd96e532c89b4b3b12c41fb4df5a1410895d045142584ca62415b4fbcd2bacda265b76d62
7
+ data.tar.gz: 7de7ab41c62c27e23be7d1a7b6e55ff615b233942ef95d4aded80f19c73b59f9a11315360436677b18848117466c3c976969ac00a13c6d0adc56220c5f48172d
data/.travis.yml CHANGED
@@ -1,9 +1,7 @@
1
1
  language: ruby
2
2
  bundler_args: --without debug
3
3
  rvm:
4
- - 2.2.0
5
- - 2.1.0
6
- - 2.0.0
7
- - 1.9.3
8
- - rbx-2
4
+ - 2.2.2
5
+ - 2.3
6
+ - 2.4
9
7
  - ruby-head
data/fat_core.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.description = 'Write a longer description. Optional.'
14
14
  spec.homepage = ''
15
15
  spec.license = 'MIT'
16
- spec.required_ruby_version = '>= 2.3.1'
16
+ spec.required_ruby_version = '>= 2.2.2'
17
17
  spec.metadata['yard.run'] = 'yri' # use "yard" to build full HTML docs.
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0")
data/lib/fat_core/date.rb CHANGED
@@ -3,6 +3,7 @@ require 'active_support/core_ext/date'
3
3
  require 'active_support/core_ext/time'
4
4
  require 'active_support/core_ext/numeric/time'
5
5
  require 'active_support/core_ext/integer/time'
6
+ require 'fat_core/patches'
6
7
 
7
8
  # ## FatCore Date Extensions
8
9
  #
@@ -1,3 +1,4 @@
1
+ require 'fat_core/patches'
1
2
  require 'active_support/core_ext/object/blank'
2
3
 
3
4
  module FatCore
@@ -0,0 +1,16 @@
1
+ # Provide #positive? and #negative? for older versions of Ruby.
2
+ unless 2.respond_to?(:positive?)
3
+ class Numeric
4
+ def positive?
5
+ self > 0
6
+ end
7
+ end
8
+ end
9
+
10
+ unless 2.respond_to?(:negative?)
11
+ class Numeric
12
+ def negative?
13
+ self < 0
14
+ end
15
+ end
16
+ end
@@ -1,4 +1,5 @@
1
1
  require 'bigdecimal'
2
+ require 'fat_core/patches'
2
3
  require 'damerau-levenshtein'
3
4
  require 'active_support/core_ext/regexp'
4
5
 
@@ -1,7 +1,7 @@
1
1
  module FatCore
2
2
  MAJOR = 4
3
3
  MINOR = 2
4
- PATCH = 0
4
+ PATCH = 1
5
5
 
6
6
  # FatCore version number
7
7
  VERSION = [MAJOR, MINOR, PATCH].compact.join('.')
data/lib/fat_core.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  require 'fat_core/version'
2
+ require 'fat_core/patches'
2
3
  require 'active_support/core_ext/object/blank'
3
4
  require 'active_support/core_ext/object/deep_dup'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel E. Doherty
@@ -197,6 +197,7 @@ files:
197
197
  - lib/fat_core/kernel.rb
198
198
  - lib/fat_core/nil.rb
199
199
  - lib/fat_core/numeric.rb
200
+ - lib/fat_core/patches.rb
200
201
  - lib/fat_core/range.rb
201
202
  - lib/fat_core/string.rb
202
203
  - lib/fat_core/symbol.rb
@@ -226,7 +227,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
227
  requirements:
227
228
  - - ">="
228
229
  - !ruby/object:Gem::Version
229
- version: 2.3.1
230
+ version: 2.2.2
230
231
  required_rubygems_version: !ruby/object:Gem::Requirement
231
232
  requirements:
232
233
  - - ">="