engine 0.0.0 → 0.0.1

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
  SHA1:
3
- metadata.gz: 668d7179c24a01408a2a5a9662ef97e34f541438
4
- data.tar.gz: af96c0c16a180cfc759f17659486a4272df85bc9
3
+ metadata.gz: 0c443f59dce050fa47d5268c047aa719313fc764
4
+ data.tar.gz: 11e074cef33214256d5ac4e71d0cf8bf96af4644
5
5
  SHA512:
6
- metadata.gz: 8a05758d9e2d029ed925ab197b4f8c30ed29d2b0a42348ef58e2c7b84f79bcf3ad5f770e7c7102924fb7756f658eb69efd25dda8b474d7bc2d339c66a4bd178a
7
- data.tar.gz: a83d69cef23e40c28762d4633083082b7116968759923bf508ba00aee8c532b2d694902f385cedfc41c4e818e8d16d71cef571a25c2b7c9a172a8858f083c1fb
6
+ metadata.gz: f51edb400a098b5ca1816450e5145827fc3f2ae90c309d362e9279edce4633f959a118a9e3bb6390226224cd39f9f38be3ad8c293a00e26e7120f5a96bca5f2b
7
+ data.tar.gz: a7fccbb569f8f9b076af4eb98bb494fd00a4908fe2ffe3e9f4a3344164d258b9434c5e11c5b18183c6b2a3233f959c85bdd50b9295e732cfa8c828a53df6d6b5
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ gem.define
6
6
 
7
7
  desc "Push gem to rubygems.org"
8
8
  task :push => :gem do
9
- #sh "git tag v#{Engine::VERSION}"
9
+ sh "git tag v#{Engine::VERSION}"
10
10
  sh "git push --tags"
11
11
  sh "gem push pkg/engine-#{Engine::VERSION}.gem"
12
12
  end
@@ -1,4 +1,4 @@
1
- module XFlash
1
+ module Engine
2
2
  class Card < Struct.new(:data, :card_state)
3
3
  extend Forwardable
4
4
  def_delegators :card_state, :factor, :iteration, :streak, :interval, :expired?, :expired_for_seconds, :last_shown
@@ -1,4 +1,4 @@
1
- module XFlash
1
+ module Engine
2
2
 
3
3
  # CardStates form a linked list, each pointing to the previous state plus
4
4
  # the new data point. The actual factor/interval, streak are calculated
@@ -1,4 +1,4 @@
1
- module XFlash
1
+ module Engine
2
2
  class CLI
3
3
  attr_reader :card, :cards
4
4
  def initialize(cards)
@@ -1,4 +1,4 @@
1
- module XFlash
1
+ module Engine
2
2
  class Deck < DelegateClass(Array)
3
3
  %w[select map reject grep reverse sort_by sort].each do |array_method|
4
4
  define_method array_method do |*args, &blk|
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- module XFlash
2
+ module Engine
3
3
  FIXTURES = [
4
4
  [ '入選', "(入选) [ru4 xuan3] /to be chosen/to be elected as/" ],
5
5
  [ '報名', "(报名) [bao4 ming2] /to sign up/to enter one's name/to apply/to register/to enroll/to enlist/" ],
@@ -1,4 +1,4 @@
1
- module XFlash
1
+ module Engine
2
2
  class Rating < Struct.new(:timestamp, :rating)
3
3
  MAX_RATING = 3
4
4
  FAIL = 0
@@ -1,4 +1,4 @@
1
- module XFlash
1
+ module Engine
2
2
  class BaseStrategy < Struct.new(:card_state, :data_point)
3
3
  extend Forwardable
4
4
  def_delegators :card_state, :data_points, :iteration, :streak, :factor, :interval
@@ -1,3 +1,3 @@
1
1
  module Engine
2
- VERSION = '0.0.0'
2
+ VERSION = '0.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Brasseur
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.2.2
96
+ rubygems_version: 2.0.14
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Flashcard Engine with Spaced Repetition.