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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 441592a76812230e3599bb265cabe324ad6fd00a
4
- data.tar.gz: 8495fd2074eaa5de4a32463d5040009352042a78
3
+ metadata.gz: ceebbcf5e00dc817a8c2d596ad1923d492fcb17c
4
+ data.tar.gz: 4394f0939bbe007cf411419b963fbdbf1d3bd482
5
5
  SHA512:
6
- metadata.gz: b42adad680fc28d500ef4421c563221f0ce475e3f61eeeb00b9998c4caf6d1f0319d92f0ba11be7c7b851e0e14cda5e9da7bc688f4e18115fabe229fd7b59efd
7
- data.tar.gz: 52dab4ffa4a3c9524f7e028904b4e763f1232bd1812251c72106e7bf61bec53f4ed553df6b99c766f45e8663a4a190732340f89af3e35aad5b240f85783b6629
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'].select do |card|
31
- card['idList'] == list_id
32
- end.map do |card|
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)
@@ -1,3 +1,3 @@
1
1
  module CardPrinter
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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