smart-period 1.0.6 → 1.0.7

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: 895c9a0aebae550b0872c4bb281ece79adf6693b019430b4da5ce30ffe0bcf9d
4
- data.tar.gz: a1c4024ee3ee06bec4a5499c4d980364fca9ec7fba6f43f8cc8f22abe8978bfc
3
+ metadata.gz: e2f52d692e80ad1fd610219f147275d392a3a74d127ccc52ce29fea1a6809f56
4
+ data.tar.gz: f43df7bfa7bff5caff9229979fb7dc02e91c3ebab263362118e23f37ddb473f9
5
5
  SHA512:
6
- metadata.gz: 2c2016a30c249b509ce2ce2dbde28fbb13254c87a261273efdff42e41108a602130d730de96ffda23cab7fa9f114f6a0c9b7d9c0561702ed995230922620ca66
7
- data.tar.gz: 3e255e9c615688671dc73fa2cdaad1146e3f8b496c701b4314c0a7340179b57fffdd2d8ca358c9bd3c086fb8562f3d2c4f78c5b09aee5e81f7238ceff13567f4
6
+ metadata.gz: 527752082a31d6d62e5ea90f3b25cf963fd9721e661419d9c7b217b5bdbea56d36cf77fa29df07a95b5006ff36b772aa3b299d170512641cee1f612b77bbc230
7
+ data.tar.gz: 919552b28b752e4ffca7c29390b937f618a87b71779afbc0166a01d438d397521dfaf2e414697f860699eb5640d9f216666180ab0f3956cea224f860c778d312
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smart-period (1.0.4)
4
+ smart-period (1.0.6)
5
5
  activesupport (>= 5, < 7)
6
6
  i18n (~> 1)
7
7
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Smart-Period [![Gem Version](https://badge.fury.io/rb/smart-period.svg)](https://badge.fury.io/rb/smart-period) [![Code Climate](https://codeclimate.com/github/billaul/period.svg)](https://codeclimate.com/github/billaul/period) [![Inline docs](http://inch-ci.org/github/billaul/period.svg)](http://inch-ci.org/github/billaul/period)
2
2
 
3
- Smart-Period aims to simplify Time-range manipulation
3
+ Smart-Period aims to simplify Time-range manipulation.
4
4
 
5
5
  ## Installation
6
6
 
@@ -29,6 +29,8 @@ Or install it yourself as:
29
29
 
30
30
  ## Quick view (TL;DR)
31
31
  ``` ruby
32
+ require 'period'
33
+
32
34
  # Get all user created today
33
35
  User.where(created_at: Period.today)
34
36
 
File without changes
File without changes
@@ -2,7 +2,6 @@ require_relative 'period/version.rb'
2
2
  require 'active_support/all'
3
3
  require 'i18n'
4
4
  require_relative 'numeric.rb'
5
-
6
5
  require_relative 'period/free_period.rb'
7
6
  require_relative 'period/day.rb'
8
7
  require_relative 'period/week.rb'
@@ -5,9 +5,6 @@ require_relative 'has_many/months.rb'
5
5
  require_relative 'has_many/quarters.rb'
6
6
  require_relative 'has_many/years.rb'
7
7
 
8
- I18n.load_path << 'locales/fr.yml'
9
- I18n.load_path << 'locales/en.yml'
10
-
11
8
  class Period::FreePeriod < Range
12
9
  include Comparable
13
10
 
@@ -1,5 +1,5 @@
1
1
  module Period
2
2
 
3
- VERSION = '1.0.6'.freeze
3
+ VERSION = '1.0.7'.freeze
4
4
 
5
5
  end
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  end
35
35
  spec.bindir = 'exe'
36
36
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
- spec.require_paths = %w[lib locales]
37
+ spec.require_paths = %w[lib]
38
38
 
39
39
  spec.required_ruby_version = '> 2.5'
40
40
  spec.add_runtime_dependency 'activesupport', '>= 5', '< 7'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart-period
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - billau_l
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-28 00:00:00.000000000 Z
11
+ date: 2021-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -86,6 +86,8 @@ files:
86
86
  - Rakefile
87
87
  - bin/console
88
88
  - bin/setup
89
+ - config/locales/en.yml
90
+ - config/locales/fr.yml
89
91
  - lib/.DS_Store
90
92
  - lib/numeric.rb
91
93
  - lib/period.rb
@@ -108,8 +110,6 @@ files:
108
110
  - lib/period/version.rb
109
111
  - lib/period/week.rb
110
112
  - lib/period/year.rb
111
- - locales/en.yml
112
- - locales/fr.yml
113
113
  - period.gemspec
114
114
  homepage: https://github.com/billaul/period
115
115
  licenses:
@@ -123,7 +123,6 @@ post_install_message:
123
123
  rdoc_options: []
124
124
  require_paths:
125
125
  - lib
126
- - locales
127
126
  required_ruby_version: !ruby/object:Gem::Requirement
128
127
  requirements:
129
128
  - - ">"