omnifocus-trello 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 020fc70d18d3943ecc3621a89efd78540bfce120
4
+ data.tar.gz: 422d04e91248fde1ee3fcddbf8e29ea3c0224942
5
+ SHA512:
6
+ metadata.gz: 16eb024e9b71968be11b39499a20b1e84808eac9587cb4ed303c24c7a48a5170e51920f20a75d863db90d4c172eaa902eb3caabd18a1ab1f2bd0dbe12dfaf71a
7
+ data.tar.gz: 9ea05c18dc39029cbc5235a49ffdc1b486c8ea266d006fcda58b58bd2e435a2a1313645c6a2ce0b5b0537378963193a310270e4ba16c94d0762ab5285976ad55
@@ -42,12 +42,16 @@ module OmniFocus::Trello
42
42
 
43
43
  def process_trello_card(boards, done_boards, card)
44
44
  number = card["idShort"]
45
- url = card["shortUrl"]
46
- board = boards.find {|board| board["id"] == card["idBoard"] }
45
+ description = if card["desc"].length > 0
46
+ card["shortUrl"] + "\n\n" + card["desc"]
47
+ else
48
+ card["shortUrl"]
49
+ end
50
+ board = boards.find {|candidate| candidate["id"] == card["idBoard"] }
47
51
  project_name = board["name"]
48
52
  ticket_id = "#{PREFIX}-#{project_name}##{number}"
49
53
  title = "#{ticket_id}: #{card["name"]}"
50
- list = board["lists"].find {|list| list["id"] == card["idList"] }
54
+ list = board["lists"].find {|candidate| candidate["id"] == card["idList"] }
51
55
 
52
56
  # If card is in a "done" list, mark it as completed.
53
57
  if done_boards.include?(list["name"])
@@ -59,7 +63,7 @@ module OmniFocus::Trello
59
63
  return
60
64
  end
61
65
 
62
- bug_db[project_name][ticket_id] = [title, url]
66
+ bug_db[project_name][ticket_id] = [title, description]
63
67
  end
64
68
 
65
69
  def fetch_trello_boards(token)
@@ -1,5 +1,5 @@
1
1
  require "omnifocus"
2
2
 
3
3
  module OmniFocus::Trello
4
- VERSION = "1.1.1"
4
+ VERSION = "1.2.0"
5
5
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnifocus-trello
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Vesa Vänskä
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-24 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: omnifocus
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.1'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '2.1'
30
27
  description: Plugin for omnifocus gem to provide Trello BTS synchronization.
@@ -34,7 +31,7 @@ executables: []
34
31
  extensions: []
35
32
  extra_rdoc_files: []
36
33
  files:
37
- - .gitignore
34
+ - ".gitignore"
38
35
  - Gemfile
39
36
  - LICENSE
40
37
  - README.md
@@ -44,26 +41,25 @@ files:
44
41
  - omnifocus-trello.gemspec
45
42
  homepage: https://github.com/vesan/omnifocus-trello
46
43
  licenses: []
44
+ metadata: {}
47
45
  post_install_message:
48
46
  rdoc_options: []
49
47
  require_paths:
50
48
  - lib
51
49
  required_ruby_version: !ruby/object:Gem::Requirement
52
- none: false
53
50
  requirements:
54
- - - ! '>='
51
+ - - ">="
55
52
  - !ruby/object:Gem::Version
56
53
  version: '0'
57
54
  required_rubygems_version: !ruby/object:Gem::Requirement
58
- none: false
59
55
  requirements:
60
- - - ! '>='
56
+ - - ">="
61
57
  - !ruby/object:Gem::Version
62
58
  version: '0'
63
59
  requirements: []
64
60
  rubyforge_project:
65
- rubygems_version: 1.8.24
61
+ rubygems_version: 2.2.2
66
62
  signing_key:
67
- specification_version: 3
63
+ specification_version: 4
68
64
  summary: Plugin for omnifocus gem to provide Trello BTS synchronization.
69
65
  test_files: []