trelloscrum 0.1.0 → 0.1.1
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/lib/cli.rb +7 -4
- data/lib/version.rb +1 -1
- data/readme.md +4 -2
- 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: 76c974f15634379aadbcc7f8b0a51bcb5ec242a9
|
4
|
+
data.tar.gz: 515c5fe5aad2f68e3994e564bb0b5b7c47fc2b97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9936654397b7532e222ffa7f47b729732cb15323cffa4510f7b9d5673666304b319d7cb01e3127de84c70cb5f444cd07aca27342ede8ed39ba0dbcba4f298842
|
7
|
+
data.tar.gz: 962edc9c990645c5dae8c6fad2578588637cc408d6d87b1221e81e4ba5c497c7919ab6965faa2db3a38a15e29fe763ea34ba44454a60837c794913d273dad130
|
data/lib/cli.rb
CHANGED
@@ -24,7 +24,7 @@ module TrelloScrum
|
|
24
24
|
generate_pdf(cards, outfile)
|
25
25
|
end
|
26
26
|
|
27
|
-
desc "setup DEVELOPER_PUBLIC_KEY MEMBER_TOKEN [BOARD_ID]", "config trello"
|
27
|
+
desc "setup DEVELOPER_PUBLIC_KEY MEMBER_TOKEN [BOARD_ID] [LIST_NAME]", "config trello"
|
28
28
|
long_desc <<-EOT
|
29
29
|
Generate the appropriate keys for Trello:
|
30
30
|
|
@@ -39,11 +39,14 @@ module TrelloScrum
|
|
39
39
|
\x5 2. Click "Allow"
|
40
40
|
\x5 3. Save the member token
|
41
41
|
|
42
|
+
3. Run setup with the just generated tokens.
|
43
|
+
|
42
44
|
EOT
|
43
|
-
def setup(developer_public_key, member_token, board_id=nil)
|
45
|
+
def setup(developer_public_key, member_token, board_id=nil, list_name=nil)
|
44
46
|
self.config["developer_public_key"] = developer_public_key
|
45
47
|
self.config["member_token"] = member_token
|
46
48
|
self.config["board_id"] = board_id if board_id
|
49
|
+
self.config["list_name"] = list_name if list_name
|
47
50
|
|
48
51
|
File.open(options.config, "w") do |f|
|
49
52
|
f.write JSON.pretty_generate(self.config)
|
@@ -87,14 +90,14 @@ module TrelloScrum
|
|
87
90
|
list_name = options.list || config["list_name"]
|
88
91
|
|
89
92
|
if !list_name || list_name.empty?
|
90
|
-
puts "Please enter a
|
93
|
+
puts "Please enter a listname (using --list) or configure one using setup"
|
91
94
|
exit(1)
|
92
95
|
end
|
93
96
|
|
94
97
|
board_id = options.board || config["board_id"]
|
95
98
|
|
96
99
|
if !board_id || board_id.empty?
|
97
|
-
puts "Please enter a board_id or
|
100
|
+
puts "Please enter a board_id (using --board) or configure one using setup "
|
98
101
|
exit(1)
|
99
102
|
end
|
100
103
|
|
data/lib/version.rb
CHANGED
data/readme.md
CHANGED
@@ -5,8 +5,10 @@ Generates PDF's with (+/-) one page per card with title, body and checklists. Pr
|
|
5
5
|
## Getting started
|
6
6
|
|
7
7
|
1. Install the trelloscrum gem: `gem install trelloscrum`
|
8
|
-
1. Create a `config.json` in the current directory by running `trelloscrum setup`. For more information on how to set up everything run `trelloscrum help setup`
|
9
|
-
1. Run
|
8
|
+
1. Create a `config.json` in the current directory by running `trelloscrum setup DEVELOPER_PUBLIC_KEY MEMBER_TOKEN BOARD_ID`. For more information on how to set up everything run `trelloscrum help setup`
|
9
|
+
1. Run `trelloscrum pdf --list="List title" output.pdf` to output all cards that have storypoints.
|
10
|
+
|
11
|
+
See commandline options below for more info.
|
10
12
|
|
11
13
|
## Card format
|
12
14
|
|