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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cli.rb +7 -4
  3. data/lib/version.rb +1 -1
  4. data/readme.md +4 -2
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7400785d9440390067e1d35fd8d33cbb6ca7930
4
- data.tar.gz: 7e4ca5f8d0974e16adbbcae7962f24581a031f24
3
+ metadata.gz: 76c974f15634379aadbcc7f8b0a51bcb5ec242a9
4
+ data.tar.gz: 515c5fe5aad2f68e3994e564bb0b5b7c47fc2b97
5
5
  SHA512:
6
- metadata.gz: 3fc10493800ca0dac2f36719fb2f849b147a227dbcaa73f6f5cf53c3b4f181573fe267d06180f0b3201029f15fcd2b8b3d98265b9a7a64c7ffaca92bb39de02d
7
- data.tar.gz: 3398005874c404863abc6ec9fe4d9e1592421b536edc012e9f7b28c437511ce452d14b5e4e020b572fda1753895b87a83a13bad766ccb361fb75be7acc67bc40
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 lisname or configurate one (use --list)"
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 configurate one (use --board)"
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
@@ -1,3 +1,3 @@
1
1
  module TrelloScrum
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trelloscrum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flurin Egger