ankirb 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/lib/{anki.rb → ankirb.rb} +0 -0
- data/lib/ankirb/export/apkg.rb +1 -1
- data/lib/ankirb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5c0bd25a52aa9d078042c40cc43b8a3bcc3e7f
|
4
|
+
data.tar.gz: d0ab8e881d55f6e7fe49be5f453091aee417b426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f88ae571ce7825399b1ed8a465363a4d93e45ff24e72e2fd24e3d88092f6233d11173467243e92b896f7f72fa6384fd512fa920d4e41f9955d5778e5aa0b1b8
|
7
|
+
data.tar.gz: a75126184e3882843b033f4b6b1083ce719a091200ae5be949aa665306df11c44786c38cee68b19fee7c39ce4067efc7f203f15023991b64b0b6defcbb641fe8
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#
|
1
|
+
# ankirb
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/ankirb.svg)](https://badge.fury.io/rb/ankirb)
|
4
|
+
|
5
|
+
A basic gem to create [Anki](http://ankisrs.net/) decks (.apkg)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -22,13 +22,14 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
25
|
+
```ruby
|
26
|
+
require 'ankirb'
|
28
27
|
|
29
|
-
|
28
|
+
deck = Anki::Deck.new 'FancyExampleDeck'
|
29
|
+
deck.add_card Anki::Card.new(:front=>"What is the french for cheese omelette?", :back=>"Omelette au fromage")
|
30
30
|
|
31
|
-
|
31
|
+
Anki::apkg.export deck, "~/Anki/Decks" #export to ~/Anki/Decks/FancyExampleDeck.apkg
|
32
|
+
```
|
32
33
|
|
33
34
|
## Contributing
|
34
35
|
|
data/lib/{anki.rb → ankirb.rb}
RENAMED
File without changes
|
data/lib/ankirb/export/apkg.rb
CHANGED
data/lib/ankirb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ankirb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Donald Hutchison
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,7 +123,7 @@ files:
|
|
123
123
|
- README.md
|
124
124
|
- Rakefile
|
125
125
|
- ankirb.gemspec
|
126
|
-
- lib/
|
126
|
+
- lib/ankirb.rb
|
127
127
|
- lib/ankirb/anki/deck.rb
|
128
128
|
- lib/ankirb/export/apkg.rb
|
129
129
|
- lib/ankirb/export/db.rb
|