fsrs 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6cba5488414e90983669f4a77fb4ad1f4cee8ce9b9fbfa4d2609dde42d2b8c34
4
+ data.tar.gz: '09be9d648a12a4995a5d42a935fe04210006292695cffc638004a98b561e6be9'
5
+ SHA512:
6
+ metadata.gz: 422600cbc08224ef57c382ca4d7b5d854a09065ef27b48f89622fb993a784262368b8bce0107934d2a4c46a0b16a8ed2bfb0eb159f79d531616c52bd7445acc7
7
+ data.tar.gz: ab99a8c63a3345c7e1944d3f74202002e788be92f8dcea2c49085d46de0d2be20f5f867370fa0dca25fca427a3e3754350c567370b86a7adb9e0f69eb0084e4b
data/.rubocop.yml ADDED
@@ -0,0 +1,10 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.0
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+
6
+ Style/StringLiterals:
7
+ EnforcedStyle: double_quotes
8
+
9
+ Style/StringLiteralsInInterpolation:
10
+ EnforcedStyle: double_quotes
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-04-30
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at 6334+clayton@users.noreply.github.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 clayton
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Fsrs
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fsrs`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fsrs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/fsrs/blob/master/CODE_OF_CONDUCT.md).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the Fsrs project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/fsrs/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "minitest/test_task"
5
+ require "minitest/pride"
6
+
7
+ Minitest::TestTask.create
8
+
9
+ task default: %i[test]
10
+
11
+ # require "rubocop/rake_task"
12
+
13
+ # RuboCop::RakeTask.new
14
+
15
+ # task default: %i[test rubocop]
data/lib/fsrs/fsrs.rb ADDED
@@ -0,0 +1,361 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Fsrs
4
+ #
5
+ ## Scheduling Info
6
+ class SchedulingInfo
7
+ attr_accessor :card, :review_log
8
+
9
+ def initialize(card, review_log)
10
+ @card = card
11
+ @review_log = review_log
12
+ end
13
+ end
14
+
15
+ #
16
+ ## Review Log
17
+ class ReviewLog
18
+ attr_accessor :rating, :scheduled_days, :elapsed_days, :review, :state
19
+
20
+ def initialize(rating, scheduled_days, elapsed_days, review, state)
21
+ @rating = rating
22
+ @scheduled_days = scheduled_days
23
+ @elapsed_days = elapsed_days
24
+ @review = review
25
+ @state = state
26
+ end
27
+ end
28
+
29
+ #
30
+ ## Determines next review date
31
+ class CardScheduler
32
+ attr_accessor :again, :hard, :good, :easy
33
+
34
+ def initialize(card)
35
+ @again = card.clone
36
+ @hard = card.clone
37
+ @good = card.clone
38
+ @easy = card.clone
39
+ end
40
+
41
+ def update_state(state)
42
+ case state
43
+ when State::NEW
44
+ update_new_state
45
+ when State::LEARNING, State::RELEARNING
46
+ update_learning_relearning_state(state)
47
+ when State::REVIEW
48
+ update_review_state
49
+ end
50
+ end
51
+
52
+ def schedule(now, hard_interval, good_interval, easy_interval)
53
+ update_schedule_days(hard_interval, good_interval, easy_interval)
54
+ update_due_dates(now, hard_interval, good_interval, easy_interval)
55
+ end
56
+
57
+ def record_log(card, now)
58
+ {
59
+ Rating::AGAIN => record_again_log(card, now),
60
+ Rating::HARD => record_hard_log(card, now),
61
+ Rating::GOOD => record_good_log(card, now),
62
+ Rating::EASY => record_easy_log(card, now)
63
+ }
64
+ end
65
+
66
+ private
67
+
68
+ def update_due_dates(now, hard_interval, good_interval, easy_interval)
69
+ @again.due = now + 5.minutes
70
+ @hard.due = hard_interval.positive? ? now + hard_interval.days : now + 10.minutes
71
+ @good.due = now + good_interval.days
72
+ @easy.due = now + easy_interval.days
73
+ end
74
+
75
+ def update_schedule_days(hard_interval, good_interval, easy_interval)
76
+ @again.scheduled_days = 0
77
+ @hard.scheduled_days = hard_interval
78
+ @good.scheduled_days = good_interval
79
+ @easy.scheduled_days = easy_interval
80
+ end
81
+
82
+ def update_new_state
83
+ @again.state = State::LEARNING
84
+ @hard.state = State::LEARNING
85
+ @good.state = State::LEARNING
86
+ @easy.state = State::REVIEW
87
+ end
88
+
89
+ def update_learning_relearning_state(state)
90
+ @again.state = state
91
+ @hard.state = state
92
+ @good.state = State::REVIEW
93
+ @easy.state = State::REVIEW
94
+ end
95
+
96
+ def update_review_state
97
+ @again.state = State::RELEARNING
98
+ @hard.state = State::REVIEW
99
+ @good.state = State::REVIEW
100
+ @easy.state = State::REVIEW
101
+ @again.lapses += 1
102
+ end
103
+
104
+ def record_again_log(card, now)
105
+ SchedulingInfo.new(
106
+ @again,
107
+ ReviewLog.new(
108
+ Rating::AGAIN,
109
+ @again.scheduled_days,
110
+ card.elapsed_days,
111
+ now,
112
+ card.state
113
+ )
114
+ )
115
+ end
116
+
117
+ def record_hard_log(card, now)
118
+ SchedulingInfo.new(
119
+ @hard,
120
+ ReviewLog.new(
121
+ Rating::HARD,
122
+ @hard.scheduled_days,
123
+ card.elapsed_days,
124
+ now,
125
+ card.state
126
+ )
127
+ )
128
+ end
129
+
130
+ def record_good_log(card, now)
131
+ SchedulingInfo.new(
132
+ @good,
133
+ ReviewLog.new(
134
+ Rating::GOOD,
135
+ @good.scheduled_days,
136
+ card.elapsed_days,
137
+ now,
138
+ card.state
139
+ )
140
+ )
141
+ end
142
+
143
+ def record_easy_log(card, now)
144
+ SchedulingInfo.new(
145
+ @easy,
146
+ ReviewLog.new(
147
+ Rating::EASY,
148
+ @easy.scheduled_days,
149
+ card.elapsed_days,
150
+ now,
151
+ card.state
152
+ )
153
+ )
154
+ end
155
+ end
156
+
157
+ #
158
+ ## Rating
159
+ class Rating
160
+ AGAIN = 1
161
+ HARD = 2
162
+ GOOD = 3
163
+ EASY = 4
164
+ end
165
+
166
+ #
167
+ ## Card
168
+ class Card
169
+ attr_accessor :due, :stability, :difficulty, :elapsed_days, :scheduled_days, :reps, :lapses, :state, :last_review
170
+
171
+ def initialize
172
+ @due = DateTime.new
173
+ @stability = 0.0
174
+ @difficulty = 0.0
175
+ @elapsed_days = 0
176
+ @scheduled_days = 0
177
+ @reps = 0
178
+ @lapses = 0
179
+ @state = State::NEW
180
+ end
181
+
182
+ def get_retrievability(now)
183
+ decay = -0.5
184
+ factor = (0.9**(1 / decay)) - 1
185
+
186
+ return nil unless @state == State::REVIEW
187
+
188
+ elapsed_days = [0, (now - @last_review).to_i].max
189
+ (1 + (factor * elapsed_days / @stability))**decay
190
+ end
191
+
192
+ def deep_clone
193
+ Marshal.load(Marshal.dump(self))
194
+ end
195
+ end
196
+
197
+ #
198
+ ## State
199
+ class State
200
+ NEW = 0
201
+ LEARNING = 1
202
+ REVIEW = 2
203
+ RELEARNING = 3
204
+ end
205
+
206
+ #
207
+ ## Scheduler
208
+ class Scheduler
209
+ attr_accessor :p, :decay, :factor
210
+
211
+ def initialize
212
+ @p = Parameters.new
213
+ @decay = -0.5
214
+ @factor = (0.9**(1 / @decay)) - 1
215
+ end
216
+
217
+ def repeat(card, now)
218
+ raise Fsrs::InvalidDateError unless now.utc?
219
+
220
+ card = card.clone
221
+ card.elapsed_days = if card.state == State::NEW
222
+ 0
223
+ else
224
+ (now - card.last_review).to_i
225
+ end
226
+ card.last_review = now
227
+ card.reps += 1
228
+ card_scheduler = CardScheduler.new(card)
229
+ card_scheduler.update_state(card.state)
230
+
231
+ case card.state
232
+ when State::NEW
233
+ schedule_new_state(card_scheduler, now)
234
+ when State::LEARNING, State::RELEARNING
235
+ schedule_learning_relearning_state(card_scheduler, now)
236
+ when State::REVIEW
237
+ schedule_review_state(card_scheduler, card, now)
238
+ end
239
+ card_scheduler.record_log(card, now)
240
+ end
241
+
242
+ def schedule_new_state(s, now)
243
+ init_ds(s)
244
+ s.again.due = now + 60
245
+ s.hard.due = now + (5 * 60)
246
+ s.good.due = now + (10 * 60)
247
+ easy_interval = next_interval(s.easy.stability)
248
+ s.easy.scheduled_days = easy_interval
249
+ s.easy.due = now + easy_interval.days
250
+ end
251
+
252
+ def schedule_learning_relearning_state(s, now)
253
+ hard_interval = 0
254
+ good_interval = next_interval(s.good.stability)
255
+ easy_interval = [next_interval(s.easy.stability), good_interval + 1].max
256
+ s.schedule(now, hard_interval, good_interval, easy_interval)
257
+ end
258
+
259
+ def schedule_review_state(s, card, now)
260
+ interval = card.elapsed_days
261
+ last_d = card.difficulty
262
+ last_s = card.stability
263
+ retrievability = forgetting_curve(interval, last_s)
264
+ next_ds(s, last_d, last_s, retrievability)
265
+ hard_interval = next_interval(s.hard.stability)
266
+ good_interval = next_interval(s.good.stability)
267
+ hard_interval = [hard_interval, good_interval].min
268
+ good_interval = [good_interval, hard_interval + 1].max
269
+ easy_interval = [next_interval(s.easy.stability), good_interval + 1].max
270
+ s.schedule(now, hard_interval, good_interval, easy_interval)
271
+ end
272
+
273
+ def init_ds(s)
274
+ s.again.difficulty = init_difficulty(Rating::AGAIN)
275
+ s.again.stability = init_stability(Rating::AGAIN)
276
+ s.hard.difficulty = init_difficulty(Rating::HARD)
277
+ s.hard.stability = init_stability(Rating::HARD)
278
+ s.good.difficulty = init_difficulty(Rating::GOOD)
279
+ s.good.stability = init_stability(Rating::GOOD)
280
+ s.easy.difficulty = init_difficulty(Rating::EASY)
281
+ s.easy.stability = init_stability(Rating::EASY)
282
+ end
283
+
284
+ def next_ds(s, last_d, last_s, retrievability)
285
+ s.again.difficulty = next_difficulty(last_d, Rating::AGAIN)
286
+ s.again.stability = next_forget_stability(last_d, last_s, retrievability)
287
+ s.hard.difficulty = next_difficulty(last_d, Rating::HARD)
288
+ s.hard.stability = next_recall_stability(last_d, last_s, retrievability, Rating::HARD)
289
+ s.good.difficulty = next_difficulty(last_d, Rating::GOOD)
290
+ s.good.stability = next_recall_stability(last_d, last_s, retrievability, Rating::GOOD)
291
+ s.easy.difficulty = next_difficulty(last_d, Rating::EASY)
292
+ s.easy.stability = next_recall_stability(last_d, last_s, retrievability, Rating::EASY)
293
+ end
294
+
295
+ def init_stability(r)
296
+ [self.p.w[r - 1], 0.1].max
297
+ end
298
+
299
+ def init_difficulty(r)
300
+ [[self.p.w[4] - (self.p.w[5] * (r - 3)), 1].max, 10].min
301
+ end
302
+
303
+ def forgetting_curve(elapsed_days, stability)
304
+ (1 + (factor * elapsed_days / stability))**decay
305
+ end
306
+
307
+ def next_interval(s)
308
+ new_interval = s / factor * ((self.p.request_retention**(1 / decay)) - 1)
309
+ new_interval.round.clamp(1, self.p.maximum_interval)
310
+ end
311
+
312
+ def next_difficulty(d, r)
313
+ next_d = d - (self.p.w[6] * (r - 3))
314
+ mean_reversion(self.p.w[4], next_d).clamp(1, 10)
315
+ end
316
+
317
+ def mean_reversion(init, current)
318
+ (self.p.w[7] * init) + ((1 - self.p.w[7]) * current)
319
+ end
320
+
321
+ def next_recall_stability(d, s, r, rating)
322
+ hard_penalty = rating == Rating::HARD ? self.p.w[15] : 1
323
+ easy_bonus = rating == Rating::EASY ? self.p.w[16] : 1
324
+ s * (1 + (Math.exp(self.p.w[8]) * (11 - d) * (s**-self.p.w[9]) * (Math.exp((1 - r) * self.p.w[10]) - 1) * hard_penalty * easy_bonus))
325
+ end
326
+
327
+ def next_forget_stability(d, s, r)
328
+ self.p.w[11] * (d**-self.p.w[12]) * (((s + 1)**self.p.w[13]) - 1) * Math.exp((1 - r) * self.p.w[14])
329
+ end
330
+ end
331
+
332
+ #
333
+ ## Parameters
334
+ class Parameters
335
+ attr_accessor :request_retention, :maximum_interval, :w
336
+
337
+ def initialize
338
+ @request_retention = 0.9
339
+ @maximum_interval = 36_500
340
+ @w = [
341
+ 0.4,
342
+ 0.6,
343
+ 2.4,
344
+ 5.8,
345
+ 4.93,
346
+ 0.94,
347
+ 0.86,
348
+ 0.01,
349
+ 1.49,
350
+ 0.14,
351
+ 0.94,
352
+ 2.18,
353
+ 0.05,
354
+ 0.34,
355
+ 1.26,
356
+ 0.29,
357
+ 2.61
358
+ ]
359
+ end
360
+ end
361
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Fsrs
4
+ VERSION = "0.9.0"
5
+ end
data/lib/fsrs.rb ADDED
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/deprecator"
4
+ require "active_support/deprecation"
5
+ require "active_support/time"
6
+ require "active_support/time_with_zone"
7
+
8
+ require_relative "fsrs/version"
9
+ require_relative "fsrs/fsrs"
10
+
11
+ module Fsrs
12
+ class Error < StandardError; end
13
+
14
+ #
15
+ ## An error for invalidate dates
16
+ class InvalidDateError < Error
17
+ def initialize(msg = "Date must be UTC and timezone-aware")
18
+ super
19
+ end
20
+ end
21
+ end
data/sig/fsrs.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Fsrs
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fsrs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0
5
+ platform: ruby
6
+ authors:
7
+ - clayton
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '7.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '7.0'
27
+ description: A ruby implementation of the Open Spaced Repetition's Free Spaced Repetition
28
+ Scheduler.
29
+ email:
30
+ - 6334+clayton@users.noreply.github.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - ".rubocop.yml"
36
+ - CHANGELOG.md
37
+ - CODE_OF_CONDUCT.md
38
+ - LICENSE.txt
39
+ - README.md
40
+ - Rakefile
41
+ - lib/fsrs.rb
42
+ - lib/fsrs/fsrs.rb
43
+ - lib/fsrs/version.rb
44
+ - sig/fsrs.rbs
45
+ homepage: https://github.com/clayton/rb-fsrs
46
+ licenses:
47
+ - MIT
48
+ metadata:
49
+ allowed_push_host: https://rubygems.org
50
+ homepage_uri: https://github.com/clayton/rb-fsrs
51
+ source_code_uri: https://github.com/clayton/rb-fsrs
52
+ changelog_uri: https://github.com/clayton/rb-fsrs/blob/master/CHANGELOG.md
53
+ rubygems_mfa_required: 'true'
54
+ post_install_message:
55
+ rdoc_options: []
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 3.0.0
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ requirements: []
69
+ rubygems_version: 3.5.9
70
+ signing_key:
71
+ specification_version: 4
72
+ summary: Ruby implementation of FSRS algorithm.
73
+ test_files: []