trello-fs 0.0.1 → 0.0.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: cc6d6851ca6b37b219b7ff84caee00142a1cd72a
4
- data.tar.gz: f6ec294f6fa58d9f3840136cf5640898b4db0ac6
3
+ metadata.gz: f0eb7be1aa56050ce64d06c480099d31c1c0a2b4
4
+ data.tar.gz: f5a0bc38aa48f34653b6e7d39b41a694a2675a80
5
5
  SHA512:
6
- metadata.gz: 37a62c91bc69b68d357cc686fd6c3693469e51489f615461441acc7acc2d3602bfeaf46f355910a06f4a5d2531c1b82744d91f76ed81ab3263abc2d20f0b7be5
7
- data.tar.gz: bd7db6a8006e6130a10f23b290b2ac6aea93edd8beb094c7a1976adc74084978043d73bd16b2fed237ed5d610fe84520d3a54b0ca175b7054c7c14dd644610a6
6
+ metadata.gz: 8c2777886e1eec4c964227552f4525b40b323ed912599ba0ec36546ea91eecf5084e380844383f12e8137ca2bb697ba7403cd52890aff466e9de440b5f2200bc
7
+ data.tar.gz: 31bddfab24c43d8b483aebdbf2558dd7983148f8e1539395fc071976c364c487c0165d4a17a630e59db89a226d38f13ea373fa429b7a34652970dc4d01000064
@@ -1,6 +1,6 @@
1
1
  # [Welcome Board](https://trello.com/b/bkskcUIO/welcome-board)
2
2
 
3
- [`no name`](Labels/no_name.md) [`red one`](Labels/red_one.md)
3
+ [`no name`](Labels/no_name.md) [`red one`](Labels/red_one.md)
4
4
 
5
5
  ## [Basics](Basics/README.md)
6
6
 
@@ -1,6 +1,6 @@
1
1
  # [Welcome Board](https://trello.com/b/bkskcUIO/welcome-board)
2
2
 
3
- [`no name`](Labels/no_name.md) [`red one`](Labels/red_one.md)
3
+ [`no name`](Labels/no_name.md) [`red one`](Labels/red_one.md)
4
4
 
5
5
  ## [Basics](Basics/README.md)
6
6
 
@@ -33,7 +33,9 @@ module TrelloFs
33
33
  cards: [])
34
34
  end
35
35
 
36
- cards = json['cards'].map do |card|
36
+ cards = json['cards'].
37
+ select {|card| lists[card['idList']] }.
38
+ map do |card|
37
39
  list = lists[card['idList']]
38
40
  c = OpenStruct.new(id: card['id'],
39
41
  name: card['name'],
@@ -76,7 +78,7 @@ module TrelloFs
76
78
  end
77
79
 
78
80
  def download_board_json
79
- url = "https://api.trello.com/1/boards/#{@repository.board_id}?key=#{@repository.developer_public_key}&token=#{@repository.member_token}&cards=all&lists=all&labels=all&card_checklists=all&card_attachments=true&organization=true"
81
+ url = "https://api.trello.com/1/boards/#{@repository.board_id}?key=#{@repository.developer_public_key}&token=#{@repository.member_token}&cards=open&lists=open&labels=all&card_checklists=all&card_attachments=true&organization=true&labels_limit=999"
80
82
  JSON.parse(open(url).read)
81
83
  end
82
84
  end
@@ -1,3 +1,3 @@
1
1
  module TrelloFs
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -21,7 +21,7 @@ describe TrelloFs::AttachmentBuilder do
21
21
  subject { attachment_builder.path }
22
22
 
23
23
  it { should include 'Card_Name' }
24
- it { should include 'Attachment Name' }
24
+ it { should include 'Attachment_Name' }
25
25
  end
26
26
 
27
27
  describe '#already_downloaded?' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trello-fs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matúš Tomlein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-21 00:00:00.000000000 Z
11
+ date: 2015-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler