lite-regulation 1.0.0 → 1.0.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
  SHA256:
3
- metadata.gz: 070e8b576428fba02b85db6916f417839c2370521fb3609f16a516ac7c7d0365
4
- data.tar.gz: 29fd67e9a576b5709f674999c5fc9efae4cfdea7b886d7cb933964165b21f6cd
3
+ metadata.gz: ac1f4200117e80745a82f2b8cf27460ba09f01fe382b9b02dce75ac7a15be7e1
4
+ data.tar.gz: db9b588f4464e31867922929aa03ed9b23f275f1d9cc8833476329f2ca3504d8
5
5
  SHA512:
6
- metadata.gz: 1d42e1a9d94b76fa24537d5cdb8713abce5f8a9a5f32f62e332ce5781aaf60fc78b35cff84e0dda73e200dfc174b212512b335dccb1fb6f16c4fcba569f114ef
7
- data.tar.gz: 5a207d0c98d54ae3a4713f4c22115f8dd90ecfe770e37cdfef9f58229530cbb91a90370517ac672e7930e6900dfc90b89ac1cb9964faf2c0e89a5ea3c4a8dcb2
6
+ metadata.gz: 462fcf56db798600171ff14b06df5492bba3d15c5bc7a378097142f6f3640e42fd58cb7a51c1e271fb07587f438a56589ba1772f27d7ab8118ff069eafcc0202
7
+ data.tar.gz: 66f33fb8a8b738d97807c37fa60bb185bbbf57d7ccb53ffbd367ebd25df8172da671d8fc9b99305de71fa7aceb31c8c408be08310442cf41c5daba6888674bca
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
+ ## [1.0.1] - 2019-07-08
9
+ ### Added
10
+ - Require rails/railtie in railtie
8
11
 
9
12
  ## [1.0.0] - 2019-07-01
10
13
  ### Added
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-regulation (1.0.0)
4
+ lite-regulation (1.0.1)
5
5
  activerecord
6
6
  activesupport
7
7
 
@@ -58,7 +58,7 @@ module Lite
58
58
  private
59
59
 
60
60
  def extension_date(amount = nil)
61
- amount = 30 if amount.nil?
61
+ amount ||= 30
62
62
  return amount unless amount.is_a?(Integer)
63
63
 
64
64
  Lite::Regulation::Base.timestamp + amount
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'rails/railtie'
4
+
3
5
  module Lite
4
6
  module Regulation
5
7
  class Railtie < ::Rails::Railtie
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Regulation
5
5
 
6
- VERSION ||= '1.0.0'
6
+ VERSION ||= '1.0.1'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-regulation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-01 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord