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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ef173f98df8a520a796ad3f206fdb1110af8bdd
4
- data.tar.gz: b068c8797ad849acff74c3e5852c849e9ac27f0f
3
+ metadata.gz: 7d5c0bd25a52aa9d078042c40cc43b8a3bcc3e7f
4
+ data.tar.gz: d0ab8e881d55f6e7fe49be5f453091aee417b426
5
5
  SHA512:
6
- metadata.gz: 38b8ec0ab99e534080fdeb48e15816dbfef584692c751339978d409ca117b058e217c3a4d550a9801abfe501054331b7d998dbf7470a7605959d7fe1c1b5144b
7
- data.tar.gz: bd458e11c80190cf4dc8c2a87d86da9b1112580401611a3bd1975d771bac1fb7d31f9c6bb34b95b1d4c7c4316c01e7ba27eddd0c7d975acd417438da5d6f9f78
6
+ metadata.gz: 0f88ae571ce7825399b1ed8a465363a4d93e45ff24e72e2fd24e3d88092f6233d11173467243e92b896f7f72fa6384fd512fa920d4e41f9955d5778e5aa0b1b8
7
+ data.tar.gz: a75126184e3882843b033f4b6b1083ce719a091200ae5be949aa665306df11c44786c38cee68b19fee7c39ce4067efc7f203f15023991b64b0b6defcbb641fe8
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Ankirb
1
+ # ankirb
2
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
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
- TODO: Write usage instructions here
26
-
27
- ## Development
25
+ ```ruby
26
+ require 'ankirb'
28
27
 
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.
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
- 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).
31
+ Anki::apkg.export deck, "~/Anki/Decks" #export to ~/Anki/Decks/FancyExampleDeck.apkg
32
+ ```
32
33
 
33
34
  ## Contributing
34
35
 
File without changes
@@ -4,7 +4,7 @@ require 'fileutils'
4
4
  require 'base91'
5
5
  module Anki
6
6
 
7
- SCHEMA_VERSION = 11
7
+ SCHEMA_VERSION = 11 unless const_defined?(:SCHEMA_VERSION)
8
8
 
9
9
  class APKGExporter
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Anki
2
- VERSION = "0.1.1"
2
+ VERSION = '0.1.2' unless const_defined?(:VERSION)
3
3
  end
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.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-10 00:00:00.000000000 Z
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/anki.rb
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