pivotal-to-trello 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -5,66 +5,67 @@ require 'pivotal-to-trello'
5
5
 
6
6
  # Requires supporting files with custom matchers and macros, etc,
7
7
  # in ./support/ and its subdirectories.
8
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
9
9
 
10
10
  RSpec.configure do |config|
11
11
  end
12
12
 
13
13
  def mock_pivotal_wrapper
14
14
  pivotal = double(PivotalToTrello::PivotalWrapper)
15
- pivotal.stub(:project_choices => {})
16
- pivotal.stub(:stories => [])
15
+ allow(pivotal).to receive_messages(project_choices: {})
16
+ allow(pivotal).to receive_messages(stories: [])
17
17
  pivotal
18
18
  end
19
19
 
20
20
  def mock_trello_wrapper
21
21
  trello = double(PivotalToTrello::TrelloWrapper)
22
- trello.stub(:board_choices => {})
23
- trello.stub(:list_choices => {})
24
- trello.stub(:label_choices => {})
22
+ allow(trello).to receive_messages(board_choices: {})
23
+ allow(trello).to receive_messages(list_choices: {})
24
+ allow(trello).to receive_messages(label_choices: {})
25
25
  trello
26
26
  end
27
27
 
28
28
  def mock_pivotal_story(options = {})
29
29
  options = {
30
- :name => 'My Story',
31
- :description => 'My Description',
32
- :current_state => 'unstarted',
33
- :story_type => 'feature',
30
+ name: 'My Story',
31
+ description: 'My Description',
32
+ current_state: 'unstarted',
33
+ story_type: 'feature',
34
34
  }.merge(options)
35
35
  story = double(PivotalTracker::Story)
36
- story.stub_chain(:notes, :all).and_return([])
37
- options.each { |k, v| story.stub(k => v) }
36
+ allow(story).to receive_message_chain(:notes, :all).and_return([])
37
+ allow(story).to receive_message_chain(:tasks, :all).and_return([])
38
+ options.each { |k, v| allow(story).to receive_messages(k => v) }
38
39
  story
39
40
  end
40
41
 
41
42
  def mock_trello_card(options = {})
42
43
  options = {
43
- :name => 'My Card',
44
- :desc => 'My Description',
44
+ id: 1_234,
45
+ name: 'My Card',
46
+ desc: 'My Description',
47
+ board_id: 1_234_321,
45
48
  }.merge(options)
46
49
  card = double(Trello::Card)
47
- options.each { |k, v| card.stub(k => v) }
50
+ options.each { |k, v| allow(card).to receive_messages(k => v) }
48
51
  card
49
52
  end
50
53
 
51
54
  def mock_options
52
- OpenStruct.new({
53
- :pivotal_project_id => 'pivotal_project_id',
54
- :trello_board_id => 'trello_board_id',
55
- :icebox_list_id => 'icebox_list_id',
56
- :current_list_id => 'current_list_id',
57
- :finished_list_id => 'finished_list_id',
58
- :delivered_list_id => 'delivered_list_id',
59
- :accepted_list_id => 'accepted_list_id',
60
- :rejected_list_id => 'rejected_list_id',
61
- :bug_list_id => 'bug_list_id',
62
- :chore_list_id => 'chore_list_id',
63
- :feature_list_id => 'feature_list_id',
64
- :release_list_id => 'release_list_id',
65
- :bug_label => 'bug_label',
66
- :feature_label => 'feature_label',
67
- :chore_label => 'chore_label',
68
- :release_label => 'release_label',
69
- })
70
- end
55
+ OpenStruct.new( pivotal_project_id: 'pivotal_project_id',
56
+ trello_board_id: 'trello_board_id',
57
+ icebox_list_id: 'icebox_list_id',
58
+ current_list_id: 'current_list_id',
59
+ finished_list_id: 'finished_list_id',
60
+ delivered_list_id: 'delivered_list_id',
61
+ accepted_list_id: 'accepted_list_id',
62
+ rejected_list_id: 'rejected_list_id',
63
+ bug_list_id: 'bug_list_id',
64
+ chore_list_id: 'chore_list_id',
65
+ feature_list_id: 'feature_list_id',
66
+ release_list_id: 'release_list_id',
67
+ bug_label: 'bug_label',
68
+ feature_label: 'feature_label',
69
+ chore_label: 'chore_label',
70
+ release_label: 'release_label')
71
+ end
metadata CHANGED
@@ -1,57 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-to-trello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Perrett
8
+ - Erik Frederiksen
9
+ - Kenneth Kalmer
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2014-01-13 00:00:00.000000000 Z
13
+ date: 2017-08-10 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: highline
15
17
  requirement: !ruby/object:Gem::Requirement
16
18
  requirements:
17
- - - ">="
19
+ - - "~>"
18
20
  - !ruby/object:Gem::Version
19
- version: 1.6.20
21
+ version: 1.7.8
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - ">="
26
+ - - "~>"
25
27
  - !ruby/object:Gem::Version
26
- version: 1.6.20
28
+ version: 1.7.8
27
29
  - !ruby/object:Gem::Dependency
28
30
  name: ruby-trello
29
31
  requirement: !ruby/object:Gem::Requirement
30
32
  requirements:
31
- - - ">="
33
+ - - "~>"
32
34
  - !ruby/object:Gem::Version
33
- version: 1.1.0
35
+ version: 2.0.0
34
36
  type: :runtime
35
37
  prerelease: false
36
38
  version_requirements: !ruby/object:Gem::Requirement
37
39
  requirements:
38
- - - ">="
40
+ - - "~>"
39
41
  - !ruby/object:Gem::Version
40
- version: 1.1.0
42
+ version: 2.0.0
41
43
  - !ruby/object:Gem::Dependency
42
44
  name: pivotal-tracker
43
45
  requirement: !ruby/object:Gem::Requirement
44
46
  requirements:
45
- - - ">="
47
+ - - "~>"
46
48
  - !ruby/object:Gem::Version
47
- version: 0.5.12
49
+ version: 0.5.13
48
50
  type: :runtime
49
51
  prerelease: false
50
52
  version_requirements: !ruby/object:Gem::Requirement
51
53
  requirements:
52
- - - ">="
54
+ - - "~>"
53
55
  - !ruby/object:Gem::Version
54
- version: 0.5.12
56
+ version: 0.5.13
55
57
  - !ruby/object:Gem::Dependency
56
58
  name: rspec
57
59
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +88,28 @@ dependencies:
86
88
  requirements:
87
89
  - - ">="
88
90
  - !ruby/object:Gem::Version
89
- version: 2.0.0
91
+ version: 2.3.7
90
92
  type: :development
91
93
  prerelease: false
92
94
  version_requirements: !ruby/object:Gem::Requirement
93
95
  requirements:
94
96
  - - ">="
95
97
  - !ruby/object:Gem::Version
96
- version: 2.0.0
98
+ version: 2.3.7
99
+ - !ruby/object:Gem::Dependency
100
+ name: rubocop
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: 0.49.1
106
+ type: :development
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 0.49.1
97
113
  description: Pulls stories from Pivotal Tracker and imports them into Trello
98
114
  email: hello@daveperrett.com
99
115
  executables:
@@ -104,6 +120,8 @@ extra_rdoc_files:
104
120
  - README.markdown
105
121
  files:
106
122
  - ".document"
123
+ - ".rubocop.yml"
124
+ - Dockerfile
107
125
  - Gemfile
108
126
  - LICENSE.txt
109
127
  - README.markdown
@@ -140,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
158
  version: '0'
141
159
  requirements: []
142
160
  rubyforge_project:
143
- rubygems_version: 2.2.1
161
+ rubygems_version: 2.4.5
144
162
  signing_key:
145
163
  specification_version: 4
146
164
  summary: Pivotal Tracker to Trello exporter