omnifocus-trello 1.1.0 → 1.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.
@@ -26,11 +26,11 @@ module OmniFocus::Trello
26
26
  def populate_trello_tasks
27
27
  config = load_or_create_trello_config
28
28
  token = config[:token]
29
- done_lists = config[:done_lists]
29
+ done_boards = config[:done_boards]
30
30
 
31
31
  boards = fetch_trello_boards(token)
32
32
  fetch_trello_cards(token).each do |card|
33
- process_trello_card(boards, done_lists, card)
33
+ process_trello_card(boards, done_boards, card)
34
34
  end
35
35
  end
36
36
 
@@ -40,7 +40,7 @@ module OmniFocus::Trello
40
40
  JSON.parse(open(url).read)
41
41
  end
42
42
 
43
- def process_trello_card(boards, done_lists, card)
43
+ def process_trello_card(boards, done_boards, card)
44
44
  number = card["idShort"]
45
45
  url = card["shortUrl"]
46
46
  board = boards.find {|board| board["id"] == card["idBoard"] }
@@ -50,7 +50,7 @@ module OmniFocus::Trello
50
50
  list = board["lists"].find {|list| list["id"] == card["idList"] }
51
51
 
52
52
  # If card is in a "done" list, mark it as completed.
53
- if done_lists.include?(list["name"])
53
+ if done_boards.include?(list["name"])
54
54
  return
55
55
  end
56
56
 
@@ -1,5 +1,5 @@
1
1
  require "omnifocus"
2
2
 
3
3
  module OmniFocus::Trello
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnifocus-trello
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
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: 2013-05-01 00:00:00.000000000 Z
12
+ date: 2013-05-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omnifocus