decentworks-date-support 0.1.1 → 0.2.0

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +81 -0
  3. data/LICENSE +1 -1
  4. data/README.md +245 -40
  5. data/lib/decentworks/date_support/configuration.rb +19 -18
  6. data/lib/decentworks/date_support/date.rb +4 -541
  7. data/lib/decentworks/date_support/date_extension.rb +761 -0
  8. data/lib/decentworks/date_support/date_time.rb +9 -0
  9. data/lib/decentworks/date_support/time.rb +7 -0
  10. data/lib/decentworks/date_support/time_extension.rb +742 -0
  11. data/lib/decentworks/date_support/time_with_zone.rb +12 -0
  12. data/lib/decentworks/date_support/version.rb +1 -1
  13. data/lib/decentworks/date_support.rb +5 -1
  14. data/lib/generators/decentworks/date_support/install/templates/decentworks_date_support.rb.tt +4 -6
  15. data/sig/decentworks/date_support/configuration.rbs +12 -3
  16. data/sig/decentworks/date_support/date.rbs +3 -167
  17. data/sig/decentworks/date_support/date_extension.rbs +244 -0
  18. data/sig/decentworks/date_support/date_time.rbs +4 -0
  19. data/sig/decentworks/date_support/time.rbs +4 -0
  20. data/sig/decentworks/date_support/time_extension.rbs +248 -0
  21. data/sig/decentworks/date_support/time_with_zone.rbs +21 -0
  22. data/sig/decentworks/date_support/version.rbs +5 -0
  23. metadata +14 -13
  24. data/.rspec +0 -3
  25. data/.rubocop.yml +0 -8
  26. data/.ruby-version +0 -1
  27. data/CODE_OF_CONDUCT.md +0 -132
  28. data/LICENSE.txt +0 -21
  29. data/Rakefile +0 -12
  30. data/Steepfile +0 -43
  31. data/lib/decentworks/active_support/time_with_zone_support.rb +0 -541
  32. data/rbs_collection.lock.yaml +0 -288
  33. data/rbs_collection.yaml +0 -41
  34. data/sig/decentworks/active_support/time_with_zone_support.rbs +0 -163
@@ -1,288 +0,0 @@
1
- ---
2
- path: ".gem_rbs_collection"
3
- gems:
4
- - name: actionpack
5
- version: '7.2'
6
- source:
7
- type: git
8
- name: ruby/gem_rbs_collection
9
- revision: 82762423fc5694b82888ea89a972847cf19838c2
10
- remote: https://github.com/ruby/gem_rbs_collection.git
11
- repo_dir: gems
12
- - name: actionview
13
- version: '6.0'
14
- source:
15
- type: git
16
- name: ruby/gem_rbs_collection
17
- revision: 82762423fc5694b82888ea89a972847cf19838c2
18
- remote: https://github.com/ruby/gem_rbs_collection.git
19
- repo_dir: gems
20
- - name: activesupport
21
- version: '7.0'
22
- source:
23
- type: git
24
- name: ruby/gem_rbs_collection
25
- revision: 82762423fc5694b82888ea89a972847cf19838c2
26
- remote: https://github.com/ruby/gem_rbs_collection.git
27
- repo_dir: gems
28
- - name: ast
29
- version: '2.4'
30
- source:
31
- type: git
32
- name: ruby/gem_rbs_collection
33
- revision: 82762423fc5694b82888ea89a972847cf19838c2
34
- remote: https://github.com/ruby/gem_rbs_collection.git
35
- repo_dir: gems
36
- - name: base64
37
- version: 0.3.0
38
- source:
39
- type: rubygems
40
- - name: bigdecimal
41
- version: 4.1.2
42
- source:
43
- type: rubygems
44
- - name: cgi
45
- version: '0.5'
46
- source:
47
- type: git
48
- name: ruby/gem_rbs_collection
49
- revision: 82762423fc5694b82888ea89a972847cf19838c2
50
- remote: https://github.com/ruby/gem_rbs_collection.git
51
- repo_dir: gems
52
- - name: concurrent-ruby
53
- version: '1.1'
54
- source:
55
- type: git
56
- name: ruby/gem_rbs_collection
57
- revision: 82762423fc5694b82888ea89a972847cf19838c2
58
- remote: https://github.com/ruby/gem_rbs_collection.git
59
- repo_dir: gems
60
- - name: connection_pool
61
- version: '2.4'
62
- source:
63
- type: git
64
- name: ruby/gem_rbs_collection
65
- revision: 82762423fc5694b82888ea89a972847cf19838c2
66
- remote: https://github.com/ruby/gem_rbs_collection.git
67
- repo_dir: gems
68
- - name: date
69
- version: '0'
70
- source:
71
- type: stdlib
72
- - name: delegate
73
- version: '0'
74
- source:
75
- type: stdlib
76
- - name: digest
77
- version: '0'
78
- source:
79
- type: stdlib
80
- - name: erb
81
- version: '0'
82
- source:
83
- type: stdlib
84
- - name: faker
85
- version: 3.4.2
86
- source:
87
- type: git
88
- name: ruby/gem_rbs_collection
89
- revision: 82762423fc5694b82888ea89a972847cf19838c2
90
- remote: https://github.com/ruby/gem_rbs_collection.git
91
- repo_dir: gems
92
- - name: fileutils
93
- version: '0'
94
- source:
95
- type: stdlib
96
- - name: i18n
97
- version: '1.10'
98
- source:
99
- type: git
100
- name: ruby/gem_rbs_collection
101
- revision: 82762423fc5694b82888ea89a972847cf19838c2
102
- remote: https://github.com/ruby/gem_rbs_collection.git
103
- repo_dir: gems
104
- - name: io-console
105
- version: '0'
106
- source:
107
- type: stdlib
108
- - name: json
109
- version: '0'
110
- source:
111
- type: stdlib
112
- - name: lint_roller
113
- version: '1.1'
114
- source:
115
- type: git
116
- name: ruby/gem_rbs_collection
117
- revision: 82762423fc5694b82888ea89a972847cf19838c2
118
- remote: https://github.com/ruby/gem_rbs_collection.git
119
- repo_dir: gems
120
- - name: logger
121
- version: '1.7'
122
- source:
123
- type: git
124
- name: ruby/gem_rbs_collection
125
- revision: 82762423fc5694b82888ea89a972847cf19838c2
126
- remote: https://github.com/ruby/gem_rbs_collection.git
127
- repo_dir: gems
128
- - name: minitest
129
- version: '5.25'
130
- source:
131
- type: git
132
- name: ruby/gem_rbs_collection
133
- revision: 82762423fc5694b82888ea89a972847cf19838c2
134
- remote: https://github.com/ruby/gem_rbs_collection.git
135
- repo_dir: gems
136
- - name: monitor
137
- version: '0'
138
- source:
139
- type: stdlib
140
- - name: nokogiri
141
- version: '1.11'
142
- source:
143
- type: git
144
- name: ruby/gem_rbs_collection
145
- revision: 82762423fc5694b82888ea89a972847cf19838c2
146
- remote: https://github.com/ruby/gem_rbs_collection.git
147
- repo_dir: gems
148
- - name: openssl
149
- version: '0'
150
- source:
151
- type: stdlib
152
- - name: parser
153
- version: '3.2'
154
- source:
155
- type: git
156
- name: ruby/gem_rbs_collection
157
- revision: 82762423fc5694b82888ea89a972847cf19838c2
158
- remote: https://github.com/ruby/gem_rbs_collection.git
159
- repo_dir: gems
160
- - name: pp
161
- version: '0'
162
- source:
163
- type: stdlib
164
- - name: prettyprint
165
- version: '0'
166
- source:
167
- type: stdlib
168
- - name: rack
169
- version: '2.2'
170
- source:
171
- type: git
172
- name: ruby/gem_rbs_collection
173
- revision: 82762423fc5694b82888ea89a972847cf19838c2
174
- remote: https://github.com/ruby/gem_rbs_collection.git
175
- repo_dir: gems
176
- - name: rails-dom-testing
177
- version: '2.0'
178
- source:
179
- type: git
180
- name: ruby/gem_rbs_collection
181
- revision: 82762423fc5694b82888ea89a972847cf19838c2
182
- remote: https://github.com/ruby/gem_rbs_collection.git
183
- repo_dir: gems
184
- - name: rails-html-sanitizer
185
- version: '1.6'
186
- source:
187
- type: git
188
- name: ruby/gem_rbs_collection
189
- revision: 82762423fc5694b82888ea89a972847cf19838c2
190
- remote: https://github.com/ruby/gem_rbs_collection.git
191
- repo_dir: gems
192
- - name: railties
193
- version: '6.0'
194
- source:
195
- type: git
196
- name: ruby/gem_rbs_collection
197
- revision: 82762423fc5694b82888ea89a972847cf19838c2
198
- remote: https://github.com/ruby/gem_rbs_collection.git
199
- repo_dir: gems
200
- - name: rake
201
- version: '13.0'
202
- source:
203
- type: git
204
- name: ruby/gem_rbs_collection
205
- revision: 82762423fc5694b82888ea89a972847cf19838c2
206
- remote: https://github.com/ruby/gem_rbs_collection.git
207
- repo_dir: gems
208
- - name: random-formatter
209
- version: '0'
210
- source:
211
- type: stdlib
212
- - name: rdoc
213
- version: '0'
214
- source:
215
- type: stdlib
216
- - name: regexp_parser
217
- version: '2.8'
218
- source:
219
- type: git
220
- name: ruby/gem_rbs_collection
221
- revision: 82762423fc5694b82888ea89a972847cf19838c2
222
- remote: https://github.com/ruby/gem_rbs_collection.git
223
- repo_dir: gems
224
- - name: rubocop-ast
225
- version: '1.46'
226
- source:
227
- type: git
228
- name: ruby/gem_rbs_collection
229
- revision: 82762423fc5694b82888ea89a972847cf19838c2
230
- remote: https://github.com/ruby/gem_rbs_collection.git
231
- repo_dir: gems
232
- - name: securerandom
233
- version: '0'
234
- source:
235
- type: stdlib
236
- - name: singleton
237
- version: '0'
238
- source:
239
- type: stdlib
240
- - name: socket
241
- version: '0'
242
- source:
243
- type: stdlib
244
- - name: stringio
245
- version: '0'
246
- source:
247
- type: stdlib
248
- - name: tempfile
249
- version: '0'
250
- source:
251
- type: stdlib
252
- - name: thor
253
- version: '1.2'
254
- source:
255
- type: git
256
- name: ruby/gem_rbs_collection
257
- revision: 82762423fc5694b82888ea89a972847cf19838c2
258
- remote: https://github.com/ruby/gem_rbs_collection.git
259
- repo_dir: gems
260
- - name: time
261
- version: '0'
262
- source:
263
- type: stdlib
264
- - name: timeout
265
- version: '0'
266
- source:
267
- type: stdlib
268
- - name: tmpdir
269
- version: '0'
270
- source:
271
- type: stdlib
272
- - name: tsort
273
- version: '0'
274
- source:
275
- type: stdlib
276
- - name: tzinfo
277
- version: '2.0'
278
- source:
279
- type: git
280
- name: ruby/gem_rbs_collection
281
- revision: 82762423fc5694b82888ea89a972847cf19838c2
282
- remote: https://github.com/ruby/gem_rbs_collection.git
283
- repo_dir: gems
284
- - name: uri
285
- version: '0'
286
- source:
287
- type: stdlib
288
- gemfile_lock_path: Gemfile.lock
data/rbs_collection.yaml DELETED
@@ -1,41 +0,0 @@
1
- # Download sources
2
- sources:
3
- - type: git
4
- name: ruby/gem_rbs_collection
5
- remote: https://github.com/ruby/gem_rbs_collection.git
6
- revision: main
7
- repo_dir: gems
8
-
9
- # You can specify local directories as sources also.
10
- # - type: local
11
- # path: path/to/your/local/repository
12
-
13
- # A directory to install the downloaded RBSs
14
- path: .gem_rbs_collection
15
-
16
- # gems:
17
- # # If you want to avoid installing rbs files for gems, you can specify them here.
18
- # - name: GEM_NAME
19
- # ignore: true
20
-
21
- gems:
22
- - name: prism
23
- ignore: true
24
- - name: simplecov
25
- ignore: true
26
- - name: rspec
27
- ignore: true
28
- - name: rspec-core
29
- ignore: true
30
- - name: rspec-expectations
31
- ignore: true
32
- - name: rspec-mocks
33
- ignore: true
34
- - name: rspec-support
35
- ignore: true
36
- - name: rubocop
37
- ignore: true
38
- - name: steep
39
- ignore: true
40
- - name: rbs
41
- ignore: true
@@ -1,163 +0,0 @@
1
- module Decentworks
2
- module ActiveSupport
3
- module TimeWithZoneSupport
4
- def beginning_of_this_week: -> ::ActiveSupport::TimeWithZone
5
- def end_of_this_week: -> ::ActiveSupport::TimeWithZone
6
- def all_this_week: -> ::Range[::ActiveSupport::TimeWithZone]
7
-
8
- def all_this_month: -> ::Range[::ActiveSupport::TimeWithZone]
9
-
10
- def two_months_ago: -> ::ActiveSupport::TimeWithZone
11
- def three_months_ago: -> ::ActiveSupport::TimeWithZone
12
- def four_months_ago: -> ::ActiveSupport::TimeWithZone
13
- def five_months_ago: -> ::ActiveSupport::TimeWithZone
14
- def six_months_ago: -> ::ActiveSupport::TimeWithZone
15
- def half_year_ago: -> ::ActiveSupport::TimeWithZone
16
- def seven_months_ago: -> ::ActiveSupport::TimeWithZone
17
- def eight_months_ago: -> ::ActiveSupport::TimeWithZone
18
- def nine_months_ago: -> ::ActiveSupport::TimeWithZone
19
- def ten_months_ago: -> ::ActiveSupport::TimeWithZone
20
- def eleven_months_ago: -> ::ActiveSupport::TimeWithZone
21
-
22
- def two_months_since: -> ::ActiveSupport::TimeWithZone
23
- def three_months_since: -> ::ActiveSupport::TimeWithZone
24
- def four_months_since: -> ::ActiveSupport::TimeWithZone
25
- def five_months_since: -> ::ActiveSupport::TimeWithZone
26
- def six_months_since: -> ::ActiveSupport::TimeWithZone
27
- def half_year_since: -> ::ActiveSupport::TimeWithZone
28
- def seven_months_since: -> ::ActiveSupport::TimeWithZone
29
- def eight_months_since: -> ::ActiveSupport::TimeWithZone
30
- def nine_months_since: -> ::ActiveSupport::TimeWithZone
31
- def ten_months_since: -> ::ActiveSupport::TimeWithZone
32
- def eleven_months_since: -> ::ActiveSupport::TimeWithZone
33
-
34
- def beginning_of_january: -> ::ActiveSupport::TimeWithZone
35
- def end_of_january: -> ::ActiveSupport::TimeWithZone
36
- def all_january: -> ::Range[::ActiveSupport::TimeWithZone]
37
- def beginning_of_january?: -> bool
38
- def end_of_january?: -> bool
39
- def in_january?: -> bool
40
-
41
- def beginning_of_february: -> ::ActiveSupport::TimeWithZone
42
- def end_of_february: -> ::ActiveSupport::TimeWithZone
43
- def all_february: -> ::Range[::ActiveSupport::TimeWithZone]
44
- def beginning_of_february?: -> bool
45
- def end_of_february?: -> bool
46
- def in_february?: -> bool
47
-
48
- def beginning_of_march: -> ::ActiveSupport::TimeWithZone
49
- def end_of_march: -> ::ActiveSupport::TimeWithZone
50
- def all_march: -> ::Range[::ActiveSupport::TimeWithZone]
51
- def beginning_of_march?: -> bool
52
- def end_of_march?: -> bool
53
- def in_march?: -> bool
54
-
55
- def beginning_of_april: -> ::ActiveSupport::TimeWithZone
56
- def end_of_april: -> ::ActiveSupport::TimeWithZone
57
- def all_april: -> ::Range[::ActiveSupport::TimeWithZone]
58
- def beginning_of_april?: -> bool
59
- def end_of_april?: -> bool
60
- def in_april?: -> bool
61
-
62
- def beginning_of_may: -> ::ActiveSupport::TimeWithZone
63
- def end_of_may: -> ::ActiveSupport::TimeWithZone
64
- def all_may: -> ::Range[::ActiveSupport::TimeWithZone]
65
- def beginning_of_may?: -> bool
66
- def end_of_may?: -> bool
67
- def in_may?: -> bool
68
-
69
- def beginning_of_june: -> ::ActiveSupport::TimeWithZone
70
- def end_of_june: -> ::ActiveSupport::TimeWithZone
71
- def all_june: -> ::Range[::ActiveSupport::TimeWithZone]
72
- def beginning_of_june?: -> bool
73
- def end_of_june?: -> bool
74
- def in_june?: -> bool
75
-
76
- def beginning_of_july: -> ::ActiveSupport::TimeWithZone
77
- def end_of_july: -> ::ActiveSupport::TimeWithZone
78
- def all_july: -> ::Range[::ActiveSupport::TimeWithZone]
79
- def beginning_of_july?: -> bool
80
- def end_of_july?: -> bool
81
- def in_july?: -> bool
82
-
83
- def beginning_of_august: -> ::ActiveSupport::TimeWithZone
84
- def end_of_august: -> ::ActiveSupport::TimeWithZone
85
- def all_august: -> ::Range[::ActiveSupport::TimeWithZone]
86
- def beginning_of_august?: -> bool
87
- def end_of_august?: -> bool
88
- def in_august?: -> bool
89
-
90
- def beginning_of_september: -> ::ActiveSupport::TimeWithZone
91
- def end_of_september: -> ::ActiveSupport::TimeWithZone
92
- def all_september: -> ::Range[::ActiveSupport::TimeWithZone]
93
- def beginning_of_september?: -> bool
94
- def end_of_september?: -> bool
95
- def in_september?: -> bool
96
-
97
- def beginning_of_october: -> ::ActiveSupport::TimeWithZone
98
- def end_of_october: -> ::ActiveSupport::TimeWithZone
99
- def all_october: -> ::Range[::ActiveSupport::TimeWithZone]
100
- def beginning_of_october?: -> bool
101
- def end_of_october?: -> bool
102
- def in_october?: -> bool
103
-
104
- def beginning_of_november: -> ::ActiveSupport::TimeWithZone
105
- def end_of_november: -> ::ActiveSupport::TimeWithZone
106
- def all_november: -> ::Range[::ActiveSupport::TimeWithZone]
107
- def beginning_of_november?: -> bool
108
- def end_of_november?: -> bool
109
- def in_november?: -> bool
110
-
111
- def beginning_of_december: -> ::ActiveSupport::TimeWithZone
112
- def end_of_december: -> ::ActiveSupport::TimeWithZone
113
- def all_december: -> ::Range[::ActiveSupport::TimeWithZone]
114
- def beginning_of_december?: -> bool
115
- def end_of_december?: -> bool
116
- def in_december?: -> bool
117
-
118
- def beginning_of_first_quarter: -> ::ActiveSupport::TimeWithZone
119
- def end_of_first_quarter: -> ::ActiveSupport::TimeWithZone
120
- def all_first_quarter: -> ::Range[::ActiveSupport::TimeWithZone]
121
- def beginning_of_first_quarter?: -> bool
122
- def end_of_first_quarter?: -> bool
123
- def in_first_quarter?: -> bool
124
-
125
- def beginning_of_second_quarter: -> ::ActiveSupport::TimeWithZone
126
- def end_of_second_quarter: -> ::ActiveSupport::TimeWithZone
127
- def all_second_quarter: -> ::Range[::ActiveSupport::TimeWithZone]
128
- def beginning_of_second_quarter?: -> bool
129
- def end_of_second_quarter?: -> bool
130
- def in_second_quarter?: -> bool
131
-
132
- def beginning_of_third_quarter: -> ::ActiveSupport::TimeWithZone
133
- def end_of_third_quarter: -> ::ActiveSupport::TimeWithZone
134
- def all_third_quarter: -> ::Range[::ActiveSupport::TimeWithZone]
135
- def beginning_of_third_quarter?: -> bool
136
- def end_of_third_quarter?: -> bool
137
- def in_third_quarter?: -> bool
138
-
139
- def beginning_of_fourth_quarter: -> ::ActiveSupport::TimeWithZone
140
- def end_of_fourth_quarter: -> ::ActiveSupport::TimeWithZone
141
- def all_fourth_quarter: -> ::Range[::ActiveSupport::TimeWithZone]
142
- def beginning_of_fourth_quarter?: -> bool
143
- def end_of_fourth_quarter?: -> bool
144
- def in_fourth_quarter?: -> bool
145
-
146
- def beginning_of_first_half: -> ::ActiveSupport::TimeWithZone
147
- def end_of_first_half: -> ::ActiveSupport::TimeWithZone
148
- def all_first_half: -> ::Range[::ActiveSupport::TimeWithZone]
149
- def beginning_of_first_half?: -> bool
150
- def end_of_first_half?: -> bool
151
- def in_first_half?: -> bool
152
-
153
- def beginning_of_second_half: -> ::ActiveSupport::TimeWithZone
154
- def end_of_second_half: -> ::ActiveSupport::TimeWithZone
155
- def all_second_half: -> ::Range[::ActiveSupport::TimeWithZone]
156
- def beginning_of_second_half?: -> bool
157
- def end_of_second_half?: -> bool
158
- def in_second_half?: -> bool
159
-
160
- def whole_months_elapsed: (?from: ::ActiveSupport::TimeWithZone, ?to: ::ActiveSupport::TimeWithZone) -> ::Integer
161
- end
162
- end
163
- end