schubert-minglr 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 3
3
3
  :major: 1
4
4
  :minor: 3
data/lib/minglr/action.rb CHANGED
@@ -1,9 +1,9 @@
1
- module Minglr
1
+ module Minglr
2
2
 
3
3
  class Action
4
4
 
5
5
  def self.execute(action, options = [], flag_options = {}, config = {})
6
- if action == options[0].to_sym
6
+ if action.to_s == options[0]
7
7
  options.shift
8
8
  else
9
9
  options.shift
@@ -27,12 +27,16 @@ module Minglr
27
27
  class Commands
28
28
 
29
29
  def self.attach(options, flag_options, config)
30
+ raise "Missing card number!" if options.empty?
31
+
30
32
  card_number = options.first
31
33
  file_name = flag_options[:file_attachment]
32
34
  Resources::Attachment.attach(card_number, file_name, config[:username], config[:password])
33
35
  end
34
36
 
35
37
  def self.card(options, flag_options, config)
38
+ raise "Missing card number!" if options.empty?
39
+
36
40
  card_number = options.first
37
41
  Resources::Card.print_card(card_number, config[:status_property])
38
42
  end
@@ -46,11 +50,15 @@ module Minglr
46
50
  end
47
51
 
48
52
  def self.fetch(options, flag_options, config)
53
+ raise "Missing card number!" if options.empty?
54
+
49
55
  card_number = options.first
50
56
  Resources::Attachment.fetch(card_number, config[:username], config[:password])
51
57
  end
52
58
 
53
59
  def self.move(options, flag_options, config)
60
+ raise "Missing card number!" if options.empty?
61
+
54
62
  card_number = options.first
55
63
  Resources::Card.move(card_number, flag_options, config)
56
64
  end
@@ -60,6 +68,8 @@ module Minglr
60
68
  end
61
69
 
62
70
  def self.update(options, flag_options, config)
71
+ raise "Missing card number!" if options.empty?
72
+
63
73
  card_number = options.first
64
74
  Resources::Card.update(card_number, flag_options)
65
75
  end
@@ -69,7 +79,7 @@ module Minglr
69
79
  end
70
80
 
71
81
  end
72
-
82
+
73
83
  end
74
84
 
75
85
  end
data/minglr.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{minglr}
5
- s.version = "1.3.2"
5
+ s.version = "1.3.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Michael Schubert", "Stephen Chu", "Chris O'Meara"]
9
- s.date = %q{2009-07-28}
9
+ s.date = %q{2009-08-04}
10
10
  s.description = %q{* This gem provides two executable binaries to interact with Mingle (http://mingle.thoughtworks.com/mingle-agile-project-management) through its API. It also has sample interactive Rake task on how to facilitate easy card movements when a card enters/exits the development queue. * mtx is a binary that facilities transition changes for use on rake tasks * minglr is a more interactive tool that provides a quick interface for many common uses}
11
11
  s.email = %q{michael@schubert.cx}
12
12
  s.executables = ["mtx", "minglr"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schubert-minglr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Schubert
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-07-28 00:00:00 -07:00
14
+ date: 2009-08-04 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies: []
17
17