ankirb 0.1.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.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +10 -0
- data/ankirb.gemspec +30 -0
- data/lib/anki.rb +8 -0
- data/lib/ankirb/anki/deck.rb +56 -0
- data/lib/ankirb/export/apkg.rb +129 -0
- data/lib/ankirb/export/db.rb +86 -0
- data/lib/ankirb/export/defaults.rb +31 -0
- data/lib/ankirb/version.rb +3 -0
- metadata +156 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 261052b86dddb5f5b9043485e791292544202a5a
|
4
|
+
data.tar.gz: d64ea45ae879e49671a7bcd1219e5cf79a869fc1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6e88167cccc6acc7cff1ed803a8ca7eb87ddb2b34428d7695c9d7c6b5384f2daad328006bf266c2bc1d64641076f8d7503f30d6f892d678bc70daac1fa56eda4
|
7
|
+
data.tar.gz: 5bd523db2b4d98cf984a5782597ce71220e660b369e48af113412e2657edec5326d787c32a329bb1ca1f173cdf7eb5f19e8edf390b2a6643480d930eadae2001
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 TODO: Write your name
|
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,41 @@
|
|
1
|
+
# Ankirb
|
2
|
+
|
3
|
+
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/ankirb`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'ankirb'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install ankirb
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ankirb.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/ankirb.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'ankirb/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "ankirb"
|
8
|
+
spec.version = Anki::VERSION
|
9
|
+
spec.authors = ["Donald Hutchison"]
|
10
|
+
spec.email = ["git@toastymofo.net"]
|
11
|
+
|
12
|
+
spec.summary = %q{A gem to create Anki decks for loading in an Anki flashcard application}
|
13
|
+
spec.description = %q{A library that lets you export apkg packaged decks for Anki. Designed to deal with creation / exporting and not much else}
|
14
|
+
spec.homepage = "https://github.com/rkachowski/anki-rb"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
+
spec.bindir = "exe"
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ["lib"]
|
22
|
+
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.11'
|
24
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
25
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
26
|
+
spec.add_runtime_dependency 'rake', '~> 10.5'
|
27
|
+
spec.add_runtime_dependency 'base91', '0.0'
|
28
|
+
spec.add_runtime_dependency 'rubyzip', '~> 1.1'
|
29
|
+
spec.add_runtime_dependency 'sqlite3', '~> 1.3'
|
30
|
+
end
|
data/lib/anki.rb
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
module Anki
|
2
|
+
class Deck
|
3
|
+
attr_accessor :name, :desc
|
4
|
+
attr_reader :id, :cards
|
5
|
+
|
6
|
+
def initialize name
|
7
|
+
@name = name
|
8
|
+
@id = Time.now.to_i
|
9
|
+
@cards = {}
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
def add_card card
|
14
|
+
card.deck = self
|
15
|
+
@cards[card.id] = card
|
16
|
+
end
|
17
|
+
|
18
|
+
def cards
|
19
|
+
@cards.values
|
20
|
+
end
|
21
|
+
|
22
|
+
def [] id
|
23
|
+
@cards[id]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
class Card
|
28
|
+
attr_accessor :front, :back, :tags, :deck
|
29
|
+
attr_reader :id
|
30
|
+
|
31
|
+
@@defaults = {
|
32
|
+
:front => 'Card Front',
|
33
|
+
:back => 'Card Back'
|
34
|
+
}
|
35
|
+
|
36
|
+
def initialize options={}
|
37
|
+
@front = options[:front] || @@defaults[:front]
|
38
|
+
@back = options[:back] || @@defaults[:back]
|
39
|
+
@tags = options[:tags] || []
|
40
|
+
|
41
|
+
@id = Time.now.to_i
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
class Type
|
46
|
+
def self.new_type
|
47
|
+
0
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
class Queue
|
52
|
+
def self.new_queue
|
53
|
+
0
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,129 @@
|
|
1
|
+
require 'zip'
|
2
|
+
require 'json'
|
3
|
+
require 'fileutils'
|
4
|
+
require 'base91'
|
5
|
+
module Anki
|
6
|
+
|
7
|
+
SCHEMA_VERSION = 11
|
8
|
+
|
9
|
+
class APKGExporter
|
10
|
+
|
11
|
+
def self.export deck, path
|
12
|
+
Dir.mktmpdir do |dir|
|
13
|
+
Dir.chdir(dir) do
|
14
|
+
db = DB.create 'collection.anki2'
|
15
|
+
|
16
|
+
export_deck deck, db
|
17
|
+
export_media deck
|
18
|
+
filename = deck.name + '.apkg'
|
19
|
+
archive = Zip::File.open(filename, Zip::File::CREATE)
|
20
|
+
|
21
|
+
Dir.glob('*').each do |file|
|
22
|
+
archive.add(file, file)
|
23
|
+
end
|
24
|
+
|
25
|
+
archive.close()
|
26
|
+
|
27
|
+
FileUtils.move(filename, path)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
def self.export_media deck
|
34
|
+
#TODO: correctly export media
|
35
|
+
File.open('media', 'w'){|f| f << Defaults.media }
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.export_deck deck, db
|
39
|
+
|
40
|
+
decks = {}
|
41
|
+
decks['1'] = Defaults.deck
|
42
|
+
decks[deck.id.to_s] = deck_to_json deck
|
43
|
+
|
44
|
+
model = Defaults.model(deck.id)
|
45
|
+
|
46
|
+
db.execute "insert into col values(
|
47
|
+
#{deck.id},
|
48
|
+
#{Time.now.to_i},
|
49
|
+
#{Time.now.to_i},
|
50
|
+
#{Time.now.to_i},
|
51
|
+
#{SCHEMA_VERSION},
|
52
|
+
0,
|
53
|
+
-1,
|
54
|
+
0,
|
55
|
+
'#{Defaults.conf}',
|
56
|
+
'#{model.to_json}',
|
57
|
+
'#{JSON.generate(decks)}',
|
58
|
+
'#{Defaults.dconf}',
|
59
|
+
'#{Defaults.tags}'
|
60
|
+
)"
|
61
|
+
|
62
|
+
deck.cards.each do |card|
|
63
|
+
#flds is front and back of card separated by \xf1
|
64
|
+
flds_bytes = [card.front, card.back].map{|f|f.bytes}.insert(1, 'f1'.hex)
|
65
|
+
flds = flds_bytes.flatten.pack('C*').force_encoding('utf-8')
|
66
|
+
|
67
|
+
note = {
|
68
|
+
:id => Time.now.to_i,
|
69
|
+
:guid => Base91.encode(Random.new.rand(2**63).to_s),
|
70
|
+
:mid => Defaults.model_id,
|
71
|
+
:mod => Time.now.to_i,
|
72
|
+
:usn => -1,
|
73
|
+
:tags => nil,
|
74
|
+
:flds => flds,
|
75
|
+
:sfld => card.front.gsub(/<\/?[^>]*>/, ''), #v dirty html sanitization
|
76
|
+
:csum => 0,
|
77
|
+
:flags => 0,
|
78
|
+
:data => nil
|
79
|
+
}
|
80
|
+
|
81
|
+
add_note_to_db note, db
|
82
|
+
add_card_to_db note, deck, db
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.add_card_to_db(note, deck, db)
|
88
|
+
db.execute "insert into cards values(
|
89
|
+
#{Time.now.to_i},
|
90
|
+
#{note[:id]},
|
91
|
+
#{deck.id},
|
92
|
+
0,
|
93
|
+
#{Time.now.to_i},
|
94
|
+
-1,
|
95
|
+
#{Type.new_type},
|
96
|
+
#{Queue.new_queue},
|
97
|
+
#{Random.new.rand(2**10)},
|
98
|
+
0,
|
99
|
+
0,
|
100
|
+
0,
|
101
|
+
0,
|
102
|
+
0,
|
103
|
+
0,
|
104
|
+
0,
|
105
|
+
0,
|
106
|
+
'')"
|
107
|
+
end
|
108
|
+
|
109
|
+
def self.add_note_to_db note, db
|
110
|
+
db.execute "insert into notes values(
|
111
|
+
#{note[:id]},
|
112
|
+
'#{note[:guid]}',
|
113
|
+
#{note[:mid]},
|
114
|
+
#{note[:mod]},
|
115
|
+
#{note[:usn]},
|
116
|
+
'#{note[:tags]}',
|
117
|
+
'#{note[:flds]}',
|
118
|
+
'#{note[:sfld]}',
|
119
|
+
#{note[:csum]},
|
120
|
+
#{note[:flags]},
|
121
|
+
'#{note[:data]}')"
|
122
|
+
end
|
123
|
+
|
124
|
+
def self.deck_to_json deck
|
125
|
+
JSON.parse %Q({"name": "#{deck.name}", "extendRev": 50, "usn": -1, "collapsed": false, "browserCollapsed": true, "newToday": [29, 0], "timeToday": [29, 0], "dyn": 0, "extendNew": 10, "conf": 1, "revToday": [29, 0], "lrnToday": [29, 0], "id": #{deck.id}, "mod": 1454538410, "desc": "#{deck.desc}"})
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
require 'sqlite3'
|
2
|
+
|
3
|
+
module Anki
|
4
|
+
class DB
|
5
|
+
def self.create name
|
6
|
+
db = SQLite3::Database.new name
|
7
|
+
db.execute_batch @@schema
|
8
|
+
db
|
9
|
+
end
|
10
|
+
|
11
|
+
|
12
|
+
@@schema = <<SCHEMA
|
13
|
+
CREATE TABLE col (
|
14
|
+
id integer primary key,
|
15
|
+
crt integer not null,
|
16
|
+
mod integer not null,
|
17
|
+
scm integer not null,
|
18
|
+
ver integer not null,
|
19
|
+
dty integer not null,
|
20
|
+
usn integer not null,
|
21
|
+
ls integer not null,
|
22
|
+
conf text not null,
|
23
|
+
models text not null,
|
24
|
+
decks text not null,
|
25
|
+
dconf text not null,
|
26
|
+
tags text not null
|
27
|
+
);
|
28
|
+
CREATE TABLE notes (
|
29
|
+
id integer primary key, /* 0 */
|
30
|
+
guid text not null, /* 1 */
|
31
|
+
mid integer not null, /* 2 */
|
32
|
+
mod integer not null, /* 3 */
|
33
|
+
usn integer not null, /* 4 */
|
34
|
+
tags text not null, /* 5 */
|
35
|
+
flds text not null, /* 6 */
|
36
|
+
sfld integer not null, /* 7 */
|
37
|
+
csum integer not null, /* 8 */
|
38
|
+
flags integer not null, /* 9 */
|
39
|
+
data text not null /* 10 */
|
40
|
+
);
|
41
|
+
CREATE TABLE cards (
|
42
|
+
id integer primary key, /* 0 */
|
43
|
+
nid integer not null, /* 1 */
|
44
|
+
did integer not null, /* 2 */
|
45
|
+
ord integer not null, /* 3 */
|
46
|
+
mod integer not null, /* 4 */
|
47
|
+
usn integer not null, /* 5 */
|
48
|
+
type integer not null, /* 6 */
|
49
|
+
queue integer not null, /* 7 */
|
50
|
+
due integer not null, /* 8 */
|
51
|
+
ivl integer not null, /* 9 */
|
52
|
+
factor integer not null, /* 10 */
|
53
|
+
reps integer not null, /* 11 */
|
54
|
+
lapses integer not null, /* 12 */
|
55
|
+
left integer not null, /* 13 */
|
56
|
+
odue integer not null, /* 14 */
|
57
|
+
odid integer not null, /* 15 */
|
58
|
+
flags integer not null, /* 16 */
|
59
|
+
data text not null /* 17 */
|
60
|
+
);
|
61
|
+
CREATE TABLE revlog (
|
62
|
+
id integer primary key,
|
63
|
+
cid integer not null,
|
64
|
+
usn integer not null,
|
65
|
+
ease integer not null,
|
66
|
+
ivl integer not null,
|
67
|
+
lastIvl integer not null,
|
68
|
+
factor integer not null,
|
69
|
+
time integer not null,
|
70
|
+
type integer not null
|
71
|
+
);
|
72
|
+
CREATE TABLE graves (
|
73
|
+
usn integer not null,
|
74
|
+
oid integer not null,
|
75
|
+
type integer not null
|
76
|
+
);
|
77
|
+
CREATE INDEX ix_notes_usn on notes (usn);
|
78
|
+
CREATE INDEX ix_cards_usn on cards (usn);
|
79
|
+
CREATE INDEX ix_revlog_usn on revlog (usn);
|
80
|
+
CREATE INDEX ix_cards_nid on cards (nid);
|
81
|
+
CREATE INDEX ix_cards_sched on cards (did, queue, due);
|
82
|
+
CREATE INDEX ix_revlog_cid on revlog (cid);
|
83
|
+
CREATE INDEX ix_notes_csum on notes (csum);
|
84
|
+
SCHEMA
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Anki
|
2
|
+
class Defaults
|
3
|
+
def self.deck
|
4
|
+
JSON.parse '{"newToday":[0,0],"revToday":[0,0],"lrnToday":[0,0],"timeToday":[0,0],"conf":1,"usn":0,"desc":"","dyn":0,"collapsed":false,"extendNew":10,"extendRev":50}'
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.model deck_id
|
8
|
+
JSON.parse %Q({"#{model_id}": {"vers": [], "name": "Basic", "tags": [], "did": #{deck_id}, "usn": -1, "req": [[0, "all", [0]]], "flds": [{"name": "Front", "media": [], "sticky": false, "rtl": false, "ord": 0, "font": "Arial", "size": 20}, {"name": "Back", "media": [], "sticky": false, "rtl": false, "ord": 1, "font": "Arial", "size": 20}], "sortf": 0, "latexPre": "\\\\documentclass[12pt]{article}\\n\\\\special{papersize=3in,5in}\\n\\\\usepackage[utf8]{inputenc}\\n\\\\usepackage{amssymb,amsmath}\\n\\\\pagestyle{empty}\\n\\\\setlength{\\\\parindent}{0in}\\n\\\\begin{document}\\n\", "tmpls": [{"name": "Card 1", "qfmt": "{{Front}}", "did": null, "bafmt": "", "afmt": "{{FrontSide}}\\n\\n<hr id=answer>\\n\\n{{Back}}", "ord": 0, "bqfmt": ""}], "latexPost": "\\\\end{document}", "type": 0, "id": 1451998862056, "css": ".card {\\n font-family: arial;\\n font-size: 20px;\\n text-align: center;\\n color: black;\\n background-color: white;\\n}\\n", "mod": 1454538410}})
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.model_id
|
12
|
+
1451998862056
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.conf
|
16
|
+
'{"nextPos": 1, "estTimes": true, "activeDecks": [1], "sortType": "noteFld", "timeLim": 0, "sortBackwards": false, "addToCur": true, "curDeck": 1, "newBury": true, "newSpread": 0, "dueCounts": true, "curModel": "1454538453789", "collapseTime": 1200}'
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.dconf
|
20
|
+
'{"1": {"name": "Default", "replayq": true, "lapse": {"leechFails": 8, "minInt": 1, "delays": [10], "leechAction": 0, "mult": 0}, "rev": {"perDay": 100, "fuzz": 0.05, "ivlFct": 1, "maxIvl": 36500, "ease4": 1.3, "bury": true, "minSpace": 1}, "timer": 0, "maxTaken": 60, "usn": 0, "new": {"perDay": 20, "delays": [1, 10], "separate": true, "ints": [1, 4, 7], "initialFactor": 2500, "bury": true, "order": 1}, "mod": 0, "id": 1, "autoplay": true}}'
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.tags
|
24
|
+
'{}'
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.media
|
28
|
+
'{"1": "_Trompete.wav", "0": "____________C2A0C2A0C2A0C2A0C2A0C2A0privateC2A0C2A0C2A0C2A0C2A027-------------------27__.mp3", "3": "_Guitarre.wav", "2": "_Piano.mp3", "5": "_Flo\u0308te.mp3", "4": "_Trommel.wav", "7": "_ish_1_gb_1.mp3", "6": "_____________+no+smoking+21+27--------------------27+2C2C.mp3"}'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ankirb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Donald Hutchison
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.5'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.5'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: base91
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubyzip
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.1'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: sqlite3
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.3'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.3'
|
111
|
+
description: A library that lets you export apkg packaged decks for Anki. Designed
|
112
|
+
to deal with creation / exporting and not much else
|
113
|
+
email:
|
114
|
+
- git@toastymofo.net
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".travis.yml"
|
121
|
+
- Gemfile
|
122
|
+
- LICENSE.txt
|
123
|
+
- README.md
|
124
|
+
- Rakefile
|
125
|
+
- ankirb.gemspec
|
126
|
+
- lib/anki.rb
|
127
|
+
- lib/ankirb/anki/deck.rb
|
128
|
+
- lib/ankirb/export/apkg.rb
|
129
|
+
- lib/ankirb/export/db.rb
|
130
|
+
- lib/ankirb/export/defaults.rb
|
131
|
+
- lib/ankirb/version.rb
|
132
|
+
homepage: https://github.com/rkachowski/anki-rb
|
133
|
+
licenses:
|
134
|
+
- MIT
|
135
|
+
metadata: {}
|
136
|
+
post_install_message:
|
137
|
+
rdoc_options: []
|
138
|
+
require_paths:
|
139
|
+
- lib
|
140
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
requirements: []
|
151
|
+
rubyforge_project:
|
152
|
+
rubygems_version: 2.5.1
|
153
|
+
signing_key:
|
154
|
+
specification_version: 4
|
155
|
+
summary: A gem to create Anki decks for loading in an Anki flashcard application
|
156
|
+
test_files: []
|