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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72ad5021366a0f0adfca387a555c57bd6c4fc69d4d7434ef6459bf4066226009
4
- data.tar.gz: b05fc85ea92fb4f556f2f046a1db6e2add1f5f0db3641d07df18966726f59147
3
+ metadata.gz: bc19668256241f2c893d81affe1ad25e78b1aea34052d3ad7da20efff5036634
4
+ data.tar.gz: 7902dac400edc9cbde2d89580aa1e299487031a5d090520137e3e8acea20ee81
5
5
  SHA512:
6
- metadata.gz: 6f61b4f9e5951fc01fe661ac9b6e28f39e07eb72933c9efc55b5c05f0cbc38338b9372f39aba95e5212495c74ed8d6e6783f4706b881184e7322a70462abdf6a
7
- data.tar.gz: a2bb352d708123be5eccae2eaf8e300fad94bf302eb3bda6ea9a863adda630b0f92ec41ce003185e336dd36f562be2cfc97dad95715bdcc1b60e2fe16d330194
6
+ metadata.gz: '08d02dc7933eb561f5182b9e464c8bd1a7aec7446c0903f38a5ed3cfabcf45f4ba74ce5ce11614240497ec63cde49d3d45ee50b451b913fe3853a96e1146472a'
7
+ data.tar.gz: c05722434520385c51be10508105025c91bebafd9d993190337dc97988011e144633c076af284d7341e322c74756152deadc5874c5321f891f0f88110324a599
data/.gitignore CHANGED
@@ -6,3 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ Gemfile.lock
10
+
11
+ sig/rbs_rails/
12
+ vendor/
File without changes
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
@@ -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
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+
3
+ git clone git@github.com:ruby/gem_rbs.git vendor/rbs/gem_rbs
4
+ bundle exec ruby -e 'require("pathname"); require("fileutils"); require("rbs_rails"); RbsRails.copy_signatures(to: "./sig/rbs_rails/")'
@@ -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.16"
24
+ spec.add_development_dependency "bundler", "~> 2.1"
25
25
  spec.add_development_dependency "onkcop"
26
- spec.add_development_dependency "rake", "~> 10.0"
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
File without changes
@@ -1,3 +1,3 @@
1
1
  module FindNearDate
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.2.0".freeze
3
3
  end
@@ -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.1.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: 2018-06-13 00:00:00.000000000 Z
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.16'
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.16'
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: '10.0'
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: '10.0'
69
- description:
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
- rubyforge_project:
107
- rubygems_version: 2.7.3
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: []
@@ -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