pivotal-to-trello 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f01097e2d24aadf66beb8dc27875d82744aa4b2
4
- data.tar.gz: f5a685b829cadfcf63a129ac2661243ab97b9282
3
+ metadata.gz: f4eb4bfc61b49c49a3ff14337f7e2816505de9ba
4
+ data.tar.gz: 0867d6cd6f87df13ed5fc67f743a71891ab4551a
5
5
  SHA512:
6
- metadata.gz: f4979c4408c7f8e516cda63850199bd140b07e0dbaa7c9fd25b5c0f3ed69306db276c67da7a46fd1acb8ae3090d5ee75e8eff601a2d8dac1c16b897b1a46e9dc
7
- data.tar.gz: 56a36ff2b8be8c184974b6bcc7600c348c64fcdefaf13d143a996c03cd1ca8de2480d6b89d28387dff8a25bb33ed3d9d505d52e38bfd96ae1ad5372f6fe0bae8
6
+ metadata.gz: 5cf3a5598818af37390a4e48c4e8e608fdf411eee2befe6c63eb9af726791ba4cda5703f410a9204b732b64148998353483bf416904e557c0ef3a379c4c28224
7
+ data.tar.gz: 3875769ce9abb1ff6babfeb9fcdc24d4fb7c5b14cae104acf0b7416cbc02fceb07f3f1e87bd20996db059145575ebf62e9864da6629d1f2bd71c6c369fb05b4c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -55,7 +55,7 @@ module PivotalToTrello
55
55
 
56
56
  if list_id
57
57
  card = trello.create_card(list_id, story)
58
- trello.add_label(card, label)
58
+ trello.add_label(card, label) unless label.nil?
59
59
  end
60
60
  end
61
61
  end
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: pivotal-to-trello 0.1.1 ruby lib
5
+ # stub: pivotal-to-trello 0.1.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "pivotal-to-trello"
9
- s.version = "0.1.1"
9
+ s.version = "0.1.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -96,6 +96,13 @@ describe 'Core' do
96
96
  trello.should_receive(:add_label).with(card, core.options.bug_label)
97
97
  core.import!
98
98
  end
99
+
100
+ it 'ignores nil labels' do
101
+ core.options.stub(:bug_label => nil)
102
+ story.stub(:story_type => 'bug')
103
+ trello.should_not_receive(:add_label)
104
+ core.import!
105
+ end
99
106
  end
100
107
  end
101
108
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-to-trello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Perrett