github_to_trello 1.0.1 → 1.0.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.
- checksums.yaml +13 -5
- data/Gemfile +1 -0
- data/Rakefile +9 -3
- data/github_to_trello.gemspec +2 -1
- data/lib/github_to_trello/trello_gateway.rb +1 -9
- data/lib/github_to_trello/version.rb +1 -1
- data/spec/{trello_gateway_spec.rb → integration/trello_gateway_spec.rb} +9 -14
- data/spec/spec_helper.rb +1 -0
- data/spec/{github_gateway_spec.rb → unit/github_gateway_spec.rb} +1 -1
- data/spec/{github_to_trello_spec.rb → unit/github_to_trello_spec.rb} +1 -1
- metadata +39 -22
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YmY4MDY3NGJiMjNjNjhjZGFkMmYwNTI1MmE2NmYzMjNmZjFjMjljZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YmQzODFkZDlkZDMwZjQwYjJkZjk0OGZiMTY5ZGVjOWIxYjEwMTZjYw==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTBmNDE4OTgzOTJhYTRiYWRiYzNiNDVjNDA5NWE0ZGVmZTQ1NDBkYTc0Yzhh
|
10
|
+
YTVlN2YxMmM2NzE1OTljOWVkYjI0ZTFlZDBmODk5ZTRmNGNhNTA0NGY1NTgz
|
11
|
+
NmQ1YmI5OTk3YTdlM2M5NWI2ZDBlZmFkOGVmMjEwNWIwZDQ0NWU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NThhMjcyYzAwZmQ2NTYyNmI2NTdhY2QxZGVhNzUxOGYxNjY2NDJhYzNjODAx
|
14
|
+
NWE1ZDMxMTE2YTJhZGQ4ZGYwNzJmODFkYTk2MDcxMGU3ODI3ZDg5ZjRiM2Nk
|
15
|
+
MTc5ZTYwMTFjOGIyMmJhMDdhY2NjMTdmNTUwMTM4MWUwNDM2ZTY=
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,9 +1,15 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rspec/core/rake_task"
|
3
3
|
|
4
|
-
task :default => "spec:
|
4
|
+
task :default => "spec:unit"
|
5
|
+
task "spec:all" => %w[spec:unit spec:integration]
|
5
6
|
|
6
|
-
desc "Run tests"
|
7
|
+
desc "Run unit tests"
|
8
|
+
RSpec::Core::RakeTask.new("spec:unit") do |t|
|
9
|
+
t.pattern = "spec/unit/*.rb"
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Run integration tests"
|
7
13
|
RSpec::Core::RakeTask.new("spec:integration") do |t|
|
8
|
-
|
14
|
+
t.pattern = "spec/integration/*.rb"
|
9
15
|
end
|
data/github_to_trello.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'github_to_trello/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "github_to_trello"
|
8
8
|
spec.version = GithubToTrello::VERSION
|
9
|
-
spec.authors = ["chrissie"]
|
9
|
+
spec.authors = ["chrissie", "raymondberg"]
|
10
10
|
spec.email = ["chrissie.deist@gmail.com"]
|
11
11
|
spec.description = %q{A gem for converting github issues into trello cards}
|
12
12
|
spec.summary = %q{Pulls github issues from specified repos and automatically creates/populates trello lists with the repo names on a specified board.}
|
@@ -23,5 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.3.0"
|
26
|
+
spec.add_development_dependency "dotenv"
|
26
27
|
spec.add_development_dependency "rake"
|
27
28
|
end
|
@@ -44,19 +44,11 @@ class TrelloGateway
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def _create_card(issue)
|
47
|
-
|
47
|
+
Trello::Card.create(
|
48
48
|
:name => issue.title,
|
49
49
|
:list_id => inbox.id,
|
50
50
|
:desc => issue.body + "\n" + issue.html_url + "\n" + issue.updated_at.to_s,
|
51
51
|
)
|
52
|
-
_add_checklist_to(card)
|
53
|
-
card
|
54
|
-
end
|
55
|
-
|
56
|
-
def _add_checklist_to(card)
|
57
|
-
checklist = Trello::Checklist.create(:name => "Todo", :board_id => board.id)
|
58
|
-
checklist.add_item("Initial Response")
|
59
|
-
card.add_checklist(checklist)
|
60
52
|
end
|
61
53
|
|
62
54
|
def _board(id)
|
@@ -1,13 +1,17 @@
|
|
1
1
|
require 'rspec'
|
2
|
-
|
2
|
+
require 'dotenv'
|
3
|
+
require_relative '../spec_helper'
|
4
|
+
|
5
|
+
Dotenv.load
|
3
6
|
|
4
7
|
describe TrelloGateway do
|
5
8
|
before(:each) do
|
9
|
+
|
6
10
|
@gateway = TrelloGateway.new(
|
7
|
-
:public_key => "56acdaa7404ebcc8bbaffab18428d4d2",
|
8
|
-
:token => "08f4481d00aba0091592ad9e0ce7e025ac9e238ead31852fe4a75270fbd562e9",
|
9
|
-
:board_id => "5jGWvKui",
|
10
|
-
:inbox_name => "django_blog",
|
11
|
+
:public_key => ENV["TRELLO_PUBLIC_KEY"] || "56acdaa7404ebcc8bbaffab18428d4d2",
|
12
|
+
:token => ENV["TRELLO_TOKEN"] || "08f4481d00aba0091592ad9e0ce7e025ac9e238ead31852fe4a75270fbd562e9",
|
13
|
+
:board_id => ENV["TRELLO_BOARD_ID"] || "5jGWvKui",
|
14
|
+
:inbox_name => ENV["TRELLO_INBOX_NAME"] || "django_blog",
|
11
15
|
)
|
12
16
|
|
13
17
|
@issue = double(:issue,
|
@@ -92,15 +96,6 @@ describe TrelloGateway do
|
|
92
96
|
expect(card.list.name).to eq("django_blog")
|
93
97
|
end
|
94
98
|
|
95
|
-
it "includes a checklist with item for initial response when creating cards" do
|
96
|
-
card = @gateway.create_or_update_card(@issue)
|
97
|
-
expect(card.checklists.length).to eq 1
|
98
|
-
|
99
|
-
checklist = card.checklists.first
|
100
|
-
expect(checklist.items.length).to eq 1
|
101
|
-
expect(checklist.items.first.name).to eq "Initial Response"
|
102
|
-
end
|
103
|
-
|
104
99
|
it "does not add a duplicate card if card exits in list already" do
|
105
100
|
card = @gateway.create_or_update_card(@issue)
|
106
101
|
card = @gateway.create_or_update_card(@issue)
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require_relative "../lib/github_to_trello"
|
metadata
CHANGED
@@ -1,83 +1,98 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_to_trello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chrissie
|
8
|
+
- raymondberg
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-12-21 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: octokit
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- -
|
18
|
+
- - ~>
|
18
19
|
- !ruby/object:Gem::Version
|
19
20
|
version: 4.0.1
|
20
21
|
type: :runtime
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
|
-
- -
|
25
|
+
- - ~>
|
25
26
|
- !ruby/object:Gem::Version
|
26
27
|
version: 4.0.1
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: ruby-trello
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- -
|
32
|
+
- - ~>
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: 1.2.1
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
|
-
- -
|
39
|
+
- - ~>
|
39
40
|
- !ruby/object:Gem::Version
|
40
41
|
version: 1.2.1
|
41
42
|
- !ruby/object:Gem::Dependency
|
42
43
|
name: bundler
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
|
-
- -
|
46
|
+
- - ~>
|
46
47
|
- !ruby/object:Gem::Version
|
47
48
|
version: '1.3'
|
48
49
|
type: :development
|
49
50
|
prerelease: false
|
50
51
|
version_requirements: !ruby/object:Gem::Requirement
|
51
52
|
requirements:
|
52
|
-
- -
|
53
|
+
- - ~>
|
53
54
|
- !ruby/object:Gem::Version
|
54
55
|
version: '1.3'
|
55
56
|
- !ruby/object:Gem::Dependency
|
56
57
|
name: rspec
|
57
58
|
requirement: !ruby/object:Gem::Requirement
|
58
59
|
requirements:
|
59
|
-
- -
|
60
|
+
- - ~>
|
60
61
|
- !ruby/object:Gem::Version
|
61
62
|
version: 3.3.0
|
62
63
|
type: :development
|
63
64
|
prerelease: false
|
64
65
|
version_requirements: !ruby/object:Gem::Requirement
|
65
66
|
requirements:
|
66
|
-
- -
|
67
|
+
- - ~>
|
67
68
|
- !ruby/object:Gem::Version
|
68
69
|
version: 3.3.0
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: dotenv
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ! '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
69
84
|
- !ruby/object:Gem::Dependency
|
70
85
|
name: rake
|
71
86
|
requirement: !ruby/object:Gem::Requirement
|
72
87
|
requirements:
|
73
|
-
- -
|
88
|
+
- - ! '>='
|
74
89
|
- !ruby/object:Gem::Version
|
75
90
|
version: '0'
|
76
91
|
type: :development
|
77
92
|
prerelease: false
|
78
93
|
version_requirements: !ruby/object:Gem::Requirement
|
79
94
|
requirements:
|
80
|
-
- -
|
95
|
+
- - ! '>='
|
81
96
|
- !ruby/object:Gem::Version
|
82
97
|
version: '0'
|
83
98
|
description: A gem for converting github issues into trello cards
|
@@ -87,7 +102,7 @@ executables: []
|
|
87
102
|
extensions: []
|
88
103
|
extra_rdoc_files: []
|
89
104
|
files:
|
90
|
-
-
|
105
|
+
- .gitignore
|
91
106
|
- Gemfile
|
92
107
|
- LICENSE.txt
|
93
108
|
- README.md
|
@@ -97,9 +112,10 @@ files:
|
|
97
112
|
- lib/github_to_trello/github_gateway.rb
|
98
113
|
- lib/github_to_trello/trello_gateway.rb
|
99
114
|
- lib/github_to_trello/version.rb
|
100
|
-
- spec/
|
101
|
-
- spec/
|
102
|
-
- spec/
|
115
|
+
- spec/integration/trello_gateway_spec.rb
|
116
|
+
- spec/spec_helper.rb
|
117
|
+
- spec/unit/github_gateway_spec.rb
|
118
|
+
- spec/unit/github_to_trello_spec.rb
|
103
119
|
homepage: https://github.com/chrissiedeist/github_to_trello
|
104
120
|
licenses:
|
105
121
|
- MIT
|
@@ -110,22 +126,23 @@ require_paths:
|
|
110
126
|
- lib
|
111
127
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
128
|
requirements:
|
113
|
-
- -
|
129
|
+
- - ! '>='
|
114
130
|
- !ruby/object:Gem::Version
|
115
131
|
version: 1.9.3
|
116
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
133
|
requirements:
|
118
|
-
- -
|
134
|
+
- - ! '>='
|
119
135
|
- !ruby/object:Gem::Version
|
120
136
|
version: '0'
|
121
137
|
requirements: []
|
122
138
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.4.
|
139
|
+
rubygems_version: 2.4.8
|
124
140
|
signing_key:
|
125
141
|
specification_version: 4
|
126
142
|
summary: Pulls github issues from specified repos and automatically creates/populates
|
127
143
|
trello lists with the repo names on a specified board.
|
128
144
|
test_files:
|
129
|
-
- spec/
|
130
|
-
- spec/
|
131
|
-
- spec/
|
145
|
+
- spec/integration/trello_gateway_spec.rb
|
146
|
+
- spec/spec_helper.rb
|
147
|
+
- spec/unit/github_gateway_spec.rb
|
148
|
+
- spec/unit/github_to_trello_spec.rb
|