card_printer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/docs/example_card.pdf +0 -0
- data/docs/example_card.png +0 -0
- data/lib/card_printer/parser/trello_json_export.rb +4 -5
- data/lib/card_printer/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceebbcf5e00dc817a8c2d596ad1923d492fcb17c
|
4
|
+
data.tar.gz: 4394f0939bbe007cf411419b963fbdbf1d3bd482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb882b08952d98edc122bba1b5b153835b5e666acbf23e07ea601d4dd4c0aea72f1a28bdc01d9718ddccc2e3993ef77073424beb7b34477bfbe6bf3e4db9d5bd
|
7
|
+
data.tar.gz: 3eb056f725aa5444aaf8e462c9aecd17f9257a0ae0bb01737d512d9567527f44bdda7754b946d19f13475334f4faba3cd91eba905f524566b65b944214d508c6
|
data/README.md
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
A general purpose library for generating PDFs which can be printed on 6x4
|
4
4
|
index cards.
|
5
5
|
|
6
|
+
[![Example card](docs/example_card.png)](docs/example_card.pdf)
|
7
|
+
|
6
8
|
## Installation
|
7
9
|
|
8
10
|
The recommended way is to just install the gem, this will also add a
|
@@ -89,6 +91,12 @@ To add it to your browser:
|
|
89
91
|
4. enter a name such as 'Show card IDs'
|
90
92
|
5. in the URL field paste the javascript code
|
91
93
|
|
94
|
+
|
95
|
+
## Alternatives
|
96
|
+
|
97
|
+
* [Peter Kappus's Trello Printer](http://www.peterkappus.com/trello/) - nifty printout of a whole board (not separate cards)
|
98
|
+
* [Board Printer for Trello Chrome Plugin](https://chrome.google.com/webstore/detail/board-printer-for-trello/lpjpokeiblobbcpfheneagcfjlcjbkhf?hl=en) - makes quite nice small cards with title and image, printing onto regular paper. Could be good for card sorting exercise
|
99
|
+
|
92
100
|
## Contributing
|
93
101
|
|
94
102
|
1. Fork it
|
Binary file
|
Binary file
|
@@ -27,11 +27,10 @@ class CardPrinter::Parser::TrelloJsonExport < CardPrinter::Parser::Base
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def cards_for_list_id(list_id)
|
30
|
-
data['cards']
|
31
|
-
card['idList'] == list_id
|
32
|
-
|
33
|
-
Card.new(card)
|
34
|
-
end
|
30
|
+
data['cards']
|
31
|
+
.select { |card| card['idList'] == list_id }
|
32
|
+
.reject { |card| if card['closed'] then puts "card #{card['name']} closed"; end; card['closed'] == true }
|
33
|
+
.map { |card| Card.new(card) }
|
35
34
|
end
|
36
35
|
|
37
36
|
def story_from_card(list, card)
|
data/lib/card_printer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card_printer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heath
|
@@ -81,6 +81,8 @@ files:
|
|
81
81
|
- Rakefile
|
82
82
|
- bin/card_printer
|
83
83
|
- card_printer.gemspec
|
84
|
+
- docs/example_card.pdf
|
85
|
+
- docs/example_card.png
|
84
86
|
- images/coat-of-arms.png
|
85
87
|
- images/label_icon.jpg
|
86
88
|
- lib/card_printer.rb
|