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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/{locales → config/locales}/en.yml +0 -0
- data/{locales → config/locales}/fr.yml +0 -0
- data/lib/period.rb +0 -1
- data/lib/period/free_period.rb +0 -3
- data/lib/period/version.rb +1 -1
- data/period.gemspec +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e2f52d692e80ad1fd610219f147275d392a3a74d127ccc52ce29fea1a6809f56
|
|
4
|
+
data.tar.gz: f43df7bfa7bff5caff9229979fb7dc02e91c3ebab263362118e23f37ddb473f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 527752082a31d6d62e5ea90f3b25cf963fd9721e661419d9c7b217b5bdbea56d36cf77fa29df07a95b5006ff36b772aa3b299d170512641cee1f612b77bbc230
|
|
7
|
+
data.tar.gz: 919552b28b752e4ffca7c29390b937f618a87b71779afbc0166a01d438d397521dfaf2e414697f860699eb5640d9f216666180ab0f3956cea224f860c778d312
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Smart-Period [](https://badge.fury.io/rb/smart-period) [](https://codeclimate.com/github/billaul/period) [](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
|
data/lib/period.rb
CHANGED
data/lib/period/free_period.rb
CHANGED
data/lib/period/version.rb
CHANGED
data/period.gemspec
CHANGED
|
@@ -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
|
|
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.
|
|
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:
|
|
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
|
- - ">"
|