trello-fs 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0eb7be1aa56050ce64d06c480099d31c1c0a2b4
4
- data.tar.gz: f5a0bc38aa48f34653b6e7d39b41a694a2675a80
3
+ metadata.gz: ba90143fbb24c28e3767a3c2c3c28dd3066ed723
4
+ data.tar.gz: 6fb829579fd8a3ece235063212237a1dc6ead9be
5
5
  SHA512:
6
- metadata.gz: 8c2777886e1eec4c964227552f4525b40b323ed912599ba0ec36546ea91eecf5084e380844383f12e8137ca2bb697ba7403cd52890aff466e9de440b5f2200bc
7
- data.tar.gz: 31bddfab24c43d8b483aebdbf2558dd7983148f8e1539395fc071976c364c487c0165d4a17a630e59db89a226d38f13ea373fa429b7a34652970dc4d01000064
6
+ metadata.gz: c1d644119eb420ad1b4a069cf979e3784b4e731032b65c1d755a5901d958cb8535dd3e85a7d90e8cb394aacb779bacd5cb1c4e5a270ca9b990fae6b4418fe2d3
7
+ data.tar.gz: d42ac1000dd317275c3f1d5745a66125b85a337ffcb8338da5ab8d1ce0fdcd7a891764bdfbbd3b6c73d48e203647a074fe86d4381215b5ca5b4979cee7161dcd
@@ -2,5 +2,5 @@
2
2
 
3
3
  [TrelloFs Demo Board](../README.md)
4
4
 
5
- - [TrelloFs Installation](TrelloFs_Installation.md)
6
- - [TrelloFs Features](TrelloFs_Features.md)
5
+ - [TrelloFs Installation](TrelloFs_Installation.md) `readme`
6
+ - [TrelloFs Features](TrelloFs_Features.md) `readme`
@@ -2,5 +2,5 @@
2
2
 
3
3
  [TrelloFs Demo Board](../README.md)
4
4
 
5
- - [A card with an image](A_card_with_an_image.md)
6
- - [This one has a puppy](This_one_has_a_puppy.md)
5
+ - [A card with an image](A_card_with_an_image.md) `cats` `images`
6
+ - [This one has a puppy](This_one_has_a_puppy.md) `images` `puppies`
@@ -4,10 +4,10 @@
4
4
 
5
5
  ## [A List of Cards](A_List_of_Cards/README.md)
6
6
 
7
- - [TrelloFs Installation](A_List_of_Cards/TrelloFs_Installation.md)
8
- - [TrelloFs Features](A_List_of_Cards/TrelloFs_Features.md)
7
+ - [TrelloFs Installation](A_List_of_Cards/TrelloFs_Installation.md) `readme`
8
+ - [TrelloFs Features](A_List_of_Cards/TrelloFs_Features.md) `readme`
9
9
 
10
10
  ## [A Second List of Cards](A_Second_List_of_Cards/README.md)
11
11
 
12
- - [A card with an image](A_Second_List_of_Cards/A_card_with_an_image.md)
13
- - [This one has a puppy](A_Second_List_of_Cards/This_one_has_a_puppy.md)
12
+ - [A card with an image](A_Second_List_of_Cards/A_card_with_an_image.md) `cats` `images`
13
+ - [This one has a puppy](A_Second_List_of_Cards/This_one_has_a_puppy.md) `images` `puppies`
@@ -4,10 +4,10 @@
4
4
 
5
5
  ## [A List of Cards](A_List_of_Cards/README.md)
6
6
 
7
- - [TrelloFs Installation](A_List_of_Cards/TrelloFs_Installation.md)
8
- - [TrelloFs Features](A_List_of_Cards/TrelloFs_Features.md)
7
+ - [TrelloFs Installation](A_List_of_Cards/TrelloFs_Installation.md) `readme`
8
+ - [TrelloFs Features](A_List_of_Cards/TrelloFs_Features.md) `readme`
9
9
 
10
10
  ## [A Second List of Cards](A_Second_List_of_Cards/README.md)
11
11
 
12
- - [A card with an image](A_Second_List_of_Cards/A_card_with_an_image.md)
13
- - [This one has a puppy](A_Second_List_of_Cards/This_one_has_a_puppy.md)
12
+ - [A card with an image](A_Second_List_of_Cards/A_card_with_an_image.md) `cats` `images`
13
+ - [This one has a puppy](A_Second_List_of_Cards/This_one_has_a_puppy.md) `images` `puppies`
@@ -5,6 +5,6 @@
5
5
  - [Welcome to Trello!](Welcome_to_Trello.md)
6
6
  - [This is a card.](This_is_a_card.md)
7
7
  - [Click on a card to see what's behind it.](Click_on_a_card_to_see_whats_behind_it.md)
8
- - [You can attach pictures and files...](You_can_attach_pictures_and_files.md)
8
+ - [You can attach pictures and files...](You_can_attach_pictures_and_files.md) `red one`
9
9
  - [... any kind of hyperlink ...](any_kind_of_hyperlink_.md)
10
10
  - [... or checklists.](or_checklists.md)
@@ -7,7 +7,7 @@
7
7
  - [Welcome to Trello!](Basics/Welcome_to_Trello.md)
8
8
  - [This is a card.](Basics/This_is_a_card.md)
9
9
  - [Click on a card to see what's behind it.](Basics/Click_on_a_card_to_see_whats_behind_it.md)
10
- - [You can attach pictures and files...](Basics/You_can_attach_pictures_and_files.md)
10
+ - [You can attach pictures and files...](Basics/You_can_attach_pictures_and_files.md) `red one`
11
11
  - [... any kind of hyperlink ...](Basics/any_kind_of_hyperlink_.md)
12
12
  - [... or checklists.](Basics/or_checklists.md)
13
13
 
@@ -15,7 +15,7 @@
15
15
 
16
16
  - [Invite your team to this board using the Add Members button](Intermediate/Invite_your_team_to_this_board_using_the_Add_Members_button.md)
17
17
  - [Drag people onto a card to indicate that they're responsible for it.](Intermediate/Drag_people_onto_a_card_to_indicate_that_theyre_responsible_for_it.md)
18
- - [Use color-coded labels for organization](Intermediate/Use_color-coded_labels_for_organization.md)
18
+ - [Use color-coded labels for organization](Intermediate/Use_color-coded_labels_for_organization.md) `` `red one`
19
19
  - [You can change the board background.](Intermediate/You_can_change_the_board_background.md)
20
20
  - [Make as many lists as you need!](Intermediate/Make_as_many_lists_as_you_need.md)
21
21
  - [Try dragging cards anywhere.](Intermediate/Try_dragging_cards_anywhere.md)
@@ -4,7 +4,7 @@
4
4
 
5
5
  - [Invite your team to this board using the Add Members button](Invite_your_team_to_this_board_using_the_Add_Members_button.md)
6
6
  - [Drag people onto a card to indicate that they're responsible for it.](Drag_people_onto_a_card_to_indicate_that_theyre_responsible_for_it.md)
7
- - [Use color-coded labels for organization](Use_color-coded_labels_for_organization.md)
7
+ - [Use color-coded labels for organization](Use_color-coded_labels_for_organization.md) `` `red one`
8
8
  - [You can change the board background.](You_can_change_the_board_background.md)
9
9
  - [Make as many lists as you need!](Make_as_many_lists_as_you_need.md)
10
10
  - [Try dragging cards anywhere.](Try_dragging_cards_anywhere.md)
@@ -7,7 +7,7 @@
7
7
  - [Welcome to Trello!](Basics/Welcome_to_Trello.md)
8
8
  - [This is a card.](Basics/This_is_a_card.md)
9
9
  - [Click on a card to see what's behind it.](Basics/Click_on_a_card_to_see_whats_behind_it.md)
10
- - [You can attach pictures and files...](Basics/You_can_attach_pictures_and_files.md)
10
+ - [You can attach pictures and files...](Basics/You_can_attach_pictures_and_files.md) `red one`
11
11
  - [... any kind of hyperlink ...](Basics/any_kind_of_hyperlink_.md)
12
12
  - [... or checklists.](Basics/or_checklists.md)
13
13
 
@@ -15,7 +15,7 @@
15
15
 
16
16
  - [Invite your team to this board using the Add Members button](Intermediate/Invite_your_team_to_this_board_using_the_Add_Members_button.md)
17
17
  - [Drag people onto a card to indicate that they're responsible for it.](Intermediate/Drag_people_onto_a_card_to_indicate_that_theyre_responsible_for_it.md)
18
- - [Use color-coded labels for organization](Intermediate/Use_color-coded_labels_for_organization.md)
18
+ - [Use color-coded labels for organization](Intermediate/Use_color-coded_labels_for_organization.md) `` `red one`
19
19
  - [You can change the board background.](Intermediate/You_can_change_the_board_background.md)
20
20
  - [Make as many lists as you need!](Intermediate/Make_as_many_lists_as_you_need.md)
21
21
  - [Try dragging cards anywhere.](Intermediate/Try_dragging_cards_anywhere.md)
@@ -37,10 +37,23 @@ module TrelloFs
37
37
  card_path = cb.file_name
38
38
  card_path = File.join(file_name, card_path) if full_path
39
39
 
40
- "- [#{cb.card_name}](#{card_path})"
40
+ "- [#{cb.card_name}](#{card_path})#{card_labels(card)}"
41
41
  end.join("\n")
42
42
  end
43
43
 
44
+ def card_labels(card)
45
+ labels = card.labels.sort {|a, b| a.name <=> b.name }.
46
+ map do |label|
47
+ "`#{label.name}`"
48
+ end
49
+
50
+ if labels.any?
51
+ ' ' + labels.join(' ')
52
+ else
53
+ ''
54
+ end
55
+ end
56
+
44
57
  def path
45
58
  File.join(@board_builder.path, file_name)
46
59
  end
@@ -1,3 +1,3 @@
1
1
  module TrelloFs
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trello-fs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matúš Tomlein