find_near_date 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.rubocop.yml +0 -0
- data/Gemfile +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/Steepfile +20 -0
- data/bin/setup_rbs +4 -0
- data/find_near_date.gemspec +4 -2
- data/lib/find_near_date.rb +0 -0
- data/lib/find_near_date/version.rb +1 -1
- data/sig/find_near_date.rbs +4 -0
- metadata +42 -13
- data/Gemfile.lock +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc19668256241f2c893d81affe1ad25e78b1aea34052d3ad7da20efff5036634
|
4
|
+
data.tar.gz: 7902dac400edc9cbde2d89580aa1e299487031a5d090520137e3e8acea20ee81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08d02dc7933eb561f5182b9e464c8bd1a7aec7446c0903f38a5ed3cfabcf45f4ba74ce5ce11614240497ec63cde49d3d45ee50b451b913fe3853a96e1146472a'
|
7
|
+
data.tar.gz: c05722434520385c51be10508105025c91bebafd9d993190337dc97988011e144633c076af284d7341e322c74756152deadc5874c5321f891f0f88110324a599
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/Steepfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
target :lib do
|
2
|
+
signature "sig"
|
3
|
+
|
4
|
+
check "lib"
|
5
|
+
|
6
|
+
repo_path "vendor/rbs/gem_rbs/gems"
|
7
|
+
|
8
|
+
library "pathname"
|
9
|
+
library "logger"
|
10
|
+
library "mutex_m"
|
11
|
+
library "date"
|
12
|
+
|
13
|
+
library "activesupport"
|
14
|
+
library "actionpack"
|
15
|
+
library "activejob"
|
16
|
+
library "activemodel"
|
17
|
+
library "actionview"
|
18
|
+
library "activerecord"
|
19
|
+
library "railties"
|
20
|
+
end
|
data/bin/setup_rbs
ADDED
data/find_near_date.gemspec
CHANGED
@@ -21,7 +21,9 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
23
|
spec.add_dependency "activerecord", ">= 4"
|
24
|
-
spec.add_development_dependency "bundler", "~> 1
|
24
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
25
25
|
spec.add_development_dependency "onkcop"
|
26
|
-
spec.add_development_dependency "rake", "~>
|
26
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
27
|
+
spec.add_development_dependency "rbs_rails", "~> 0.6"
|
28
|
+
spec.add_development_dependency "steep", "~> 0.39"
|
27
29
|
end
|
data/lib/find_near_date.rb
CHANGED
File without changes
|
@@ -0,0 +1,4 @@
|
|
1
|
+
module FindNearDate[Model] : _ActiveRecord_Relation[Model]
|
2
|
+
def find_near_date: (Time | DateTime | ActiveSupport::TimeWithZone date, ?Symbol | String date_column, ?key_column: Symbol | String, ?period: Integer | Float, ?log: bool) -> ActiveRecord::Base
|
3
|
+
VERSION: String
|
4
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: find_near_date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Narazaka
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1
|
33
|
+
version: '2.1'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1
|
40
|
+
version: '2.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: onkcop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,15 +58,43 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
69
|
-
|
68
|
+
version: '13.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rbs_rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.6'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.6'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: steep
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.39'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.39'
|
97
|
+
description:
|
70
98
|
email:
|
71
99
|
- info@narazaka.net
|
72
100
|
executables: []
|
@@ -76,19 +104,21 @@ files:
|
|
76
104
|
- ".gitignore"
|
77
105
|
- ".rubocop.yml"
|
78
106
|
- Gemfile
|
79
|
-
- Gemfile.lock
|
80
107
|
- README.md
|
81
108
|
- Rakefile
|
109
|
+
- Steepfile
|
82
110
|
- bin/console
|
83
111
|
- bin/setup
|
112
|
+
- bin/setup_rbs
|
84
113
|
- find_near_date.gemspec
|
85
114
|
- lib/find_near_date.rb
|
86
115
|
- lib/find_near_date/version.rb
|
116
|
+
- sig/find_near_date.rbs
|
87
117
|
homepage: https://github.com/Narazaka/find_near_date
|
88
118
|
licenses:
|
89
119
|
- Zlib
|
90
120
|
metadata: {}
|
91
|
-
post_install_message:
|
121
|
+
post_install_message:
|
92
122
|
rdoc_options: []
|
93
123
|
require_paths:
|
94
124
|
- lib
|
@@ -103,9 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
133
|
- !ruby/object:Gem::Version
|
104
134
|
version: '0'
|
105
135
|
requirements: []
|
106
|
-
|
107
|
-
|
108
|
-
signing_key:
|
136
|
+
rubygems_version: 3.2.3
|
137
|
+
signing_key:
|
109
138
|
specification_version: 4
|
110
139
|
summary: find record by date from DB tables that is not indexed by date column
|
111
140
|
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
find_near_date (0.1.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
ast (2.4.0)
|
10
|
-
onkcop (0.53.0.0)
|
11
|
-
rubocop (~> 0.53.0)
|
12
|
-
rubocop-rspec (>= 1.24.0)
|
13
|
-
parallel (1.12.1)
|
14
|
-
parser (2.5.1.0)
|
15
|
-
ast (~> 2.4.0)
|
16
|
-
powerpack (0.1.2)
|
17
|
-
rainbow (3.0.0)
|
18
|
-
rake (10.5.0)
|
19
|
-
rubocop (0.53.0)
|
20
|
-
parallel (~> 1.10)
|
21
|
-
parser (>= 2.5)
|
22
|
-
powerpack (~> 0.1)
|
23
|
-
rainbow (>= 2.2.2, < 4.0)
|
24
|
-
ruby-progressbar (~> 1.7)
|
25
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
26
|
-
rubocop-rspec (1.26.0)
|
27
|
-
rubocop (>= 0.53.0)
|
28
|
-
ruby-progressbar (1.9.0)
|
29
|
-
unicode-display_width (1.4.0)
|
30
|
-
|
31
|
-
PLATFORMS
|
32
|
-
ruby
|
33
|
-
|
34
|
-
DEPENDENCIES
|
35
|
-
bundler (~> 1.16)
|
36
|
-
find_near_date!
|
37
|
-
onkcop
|
38
|
-
rake (~> 10.0)
|
39
|
-
|
40
|
-
BUNDLED WITH
|
41
|
-
1.16.1
|