omnifocus-trello 1.2.1 → 1.2.2
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/lib/omnifocus/trello.rb +5 -5
- data/lib/omnifocus/trello/version.rb +1 -1
- metadata +15 -10
- checksums.yaml +0 -7
data/lib/omnifocus/trello.rb
CHANGED
@@ -11,7 +11,7 @@ module OmniFocus::Trello
|
|
11
11
|
config = YAML.load(File.read(path)) rescue nil
|
12
12
|
|
13
13
|
unless config then
|
14
|
-
config = { :token => "Open URL https://trello.com/1/authorize?key=#{KEY}&name=OmniFocus+Trello+integration&expiration=never&response_type=token and copy the token from the web page here.", :
|
14
|
+
config = { :token => "Open URL https://trello.com/1/authorize?key=#{KEY}&name=OmniFocus+Trello+integration&expiration=never&response_type=token and copy the token from the web page here.", :done_lists => ["Done", "Deployed", "Finished", "Cards in these boards are considered done, you add and remove names to fit your workflow."] }
|
15
15
|
|
16
16
|
File.open(path, "w") { |f|
|
17
17
|
YAML.dump(config, f)
|
@@ -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
|
-
|
29
|
+
done_lists = config[:done_lists] || 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,
|
33
|
+
process_trello_card(boards, done_lists, 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,
|
43
|
+
def process_trello_card(boards, done_lists, card)
|
44
44
|
number = card["idShort"]
|
45
45
|
description = if card["desc"].length > 0
|
46
46
|
card["shortUrl"] + "\n\n" + card["desc"]
|
@@ -54,7 +54,7 @@ module OmniFocus::Trello
|
|
54
54
|
list = board["lists"].find {|candidate| candidate["id"] == card["idList"] }
|
55
55
|
|
56
56
|
# If card is in a "done" list, mark it as completed.
|
57
|
-
if
|
57
|
+
if done_lists.include?(list["name"])
|
58
58
|
return
|
59
59
|
end
|
60
60
|
|
metadata
CHANGED
@@ -1,27 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnifocus-trello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Vesa Vänskä
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: omnifocus
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '2.2'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '2.2'
|
27
30
|
description: Plugin for omnifocus gem to provide Trello BTS synchronization.
|
@@ -31,7 +34,7 @@ executables: []
|
|
31
34
|
extensions: []
|
32
35
|
extra_rdoc_files: []
|
33
36
|
files:
|
34
|
-
-
|
37
|
+
- .gitignore
|
35
38
|
- Gemfile
|
36
39
|
- LICENSE
|
37
40
|
- README.md
|
@@ -41,25 +44,27 @@ files:
|
|
41
44
|
- omnifocus-trello.gemspec
|
42
45
|
homepage: https://github.com/vesan/omnifocus-trello
|
43
46
|
licenses: []
|
44
|
-
metadata: {}
|
45
47
|
post_install_message:
|
46
48
|
rdoc_options: []
|
47
49
|
require_paths:
|
48
50
|
- lib
|
49
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
50
53
|
requirements:
|
51
|
-
- -
|
54
|
+
- - ! '>='
|
52
55
|
- !ruby/object:Gem::Version
|
53
56
|
version: '0'
|
54
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
55
59
|
requirements:
|
56
|
-
- -
|
60
|
+
- - ! '>='
|
57
61
|
- !ruby/object:Gem::Version
|
58
62
|
version: '0'
|
59
63
|
requirements: []
|
60
64
|
rubyforge_project:
|
61
|
-
rubygems_version:
|
65
|
+
rubygems_version: 1.8.23.2
|
62
66
|
signing_key:
|
63
|
-
specification_version:
|
67
|
+
specification_version: 3
|
64
68
|
summary: Plugin for omnifocus gem to provide Trello BTS synchronization.
|
65
69
|
test_files: []
|
70
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: b6052e1e61bfcea7b5ac7ac9a5d1adb2e036f3ef
|
4
|
-
data.tar.gz: 68925ef043ef80b51d5dc6103491cbde72d4bf50
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 7ae9590e7ce32c415058caa0ba81fcf3bcbae39e5eaa3c12f5b7049314b694b8e8d3429932f62109d70a577b73a21a55c22e3066eb3e118cde4174046c6d7eda
|
7
|
-
data.tar.gz: 30a224a7385ac225c9156babbce1e65b5e802ddee65a081f58d0bbcfa519d2dd06b62a65997621eb37cdea9cd7228442de0d2be45831a1edd15bdf471c619cb3
|