trellish 0.0.7 → 0.0.8

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.
data/bin/trellish CHANGED
@@ -24,7 +24,8 @@ Trellish.configure(
24
24
  trello_api_key: config_file['trello_api_key'],
25
25
  trello_oauth_secret: config_file['trello_oauth_secret'],
26
26
  trello_oauth_token: config_file['trello_oauth_token'],
27
- github_oauth_token: config_file['github_oauth_token'])
27
+ github_oauth_token: config_file['github_oauth_token'],
28
+ qa_list_name: config_file['qa_list_name'])
28
29
 
29
30
  card = Trellish::Card.new(ARGV[0])
30
31
  card.finish
data/lib/trellish.rb CHANGED
@@ -11,7 +11,8 @@ module Trellish
11
11
  trello_api_key: 'TRELLO_API_KEY',
12
12
  trello_oauth_secret: 'TRELLO_OAUTH_SECRET',
13
13
  trello_oauth_token: 'TRELLO_OAUTH_TOKEN',
14
- github_oauth_token: 'GITHUB_OAUTH_TOKEN'
14
+ github_oauth_token: 'GITHUB_OAUTH_TOKEN',
15
+ qa_list_name: 'QA'
15
16
  }
16
17
 
17
18
  @valid_config_keys = @config.keys
data/lib/trellish/card.rb CHANGED
@@ -22,11 +22,11 @@ module Trellish
22
22
  end
23
23
 
24
24
  def move_to_qa
25
- qa_list = @card.board.lists.find { |list| list.name == 'QA' }
25
+ qa_list = @card.board.lists.find { |list| list.name == Trellish.config[:qa_list_name] }
26
26
  if qa_list
27
27
  @card.move_to_list(qa_list)
28
28
  else
29
- Trellish.logger.warn "Unable to move card to 'QA' list. No list named 'QA' found."
29
+ Trellish.logger.warn "Unable to move card to #{Trellish.config[:qa_list_name]} list. No list named #{Trellish.config[:qa_list_name]} found."
30
30
  end
31
31
  end
32
32
 
@@ -1,3 +1,3 @@
1
1
  module Trellish
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/trellish.example.yml CHANGED
@@ -14,3 +14,6 @@ trello_oauth_token: numbers_and_letters_and_stuff
14
14
  # curl -u 'username' -d '{"scopes":["repo"],"note":"Trellish"}' https://api.github.com/authorizations
15
15
  # and copy the token parameter from the response here.
16
16
  github_oauth_token: numbers_and_letters_and_stuff
17
+
18
+ # Name of your QA list in Trello
19
+ qa_list_name = 'QA'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trellish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-02 00:00:00.000000000 Z
12
+ date: 2012-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2