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 +4 -4
- data/examples/demo_board/A_List_of_Cards/README.md +2 -2
- data/examples/demo_board/A_Second_List_of_Cards/README.md +2 -2
- data/examples/demo_board/Home +4 -4
- data/examples/demo_board/README.md +4 -4
- data/examples/welcome_board/Basics/README.md +1 -1
- data/examples/welcome_board/Home +2 -2
- data/examples/welcome_board/Intermediate/README.md +1 -1
- data/examples/welcome_board/README.md +2 -2
- data/lib/trello-fs/list_builder.rb +14 -1
- data/lib/trello-fs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba90143fbb24c28e3767a3c2c3c28dd3066ed723
|
4
|
+
data.tar.gz: 6fb829579fd8a3ece235063212237a1dc6ead9be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
- [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`
|
data/examples/demo_board/Home
CHANGED
@@ -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)
|
data/examples/welcome_board/Home
CHANGED
@@ -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
|
data/lib/trello-fs/version.rb
CHANGED