schubert-minglr 1.3.3 → 1.3.5

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/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 3
2
+ :patch: 5
3
3
  :major: 1
4
4
  :minor: 3
data/lib/minglr/action.rb CHANGED
@@ -1,4 +1,4 @@
1
- module Minglr
1
+ module Minglr
2
2
 
3
3
  class Action
4
4
 
@@ -7,12 +7,14 @@ module Minglr
7
7
 
8
8
  def self.parse
9
9
  config_files = [File.join(ENV["HOME"], CONFIG_FILE), File.join(ENV["PWD"], CONFIG_FILE)]
10
+ config_files.uniq!
10
11
  config_files.each do |config_file_name|
11
12
  if File.exist?(config_file_name)
12
13
  return self.new(File.read(config_file_name)).config
13
14
  end
14
15
  end
15
16
  puts "Unable to find #{CONFIG_FILE} in #{config_files.join(", ")}"
17
+ class_eval("send :exit, 1") # Why is it so hard to mock or stub exit?
16
18
  end
17
19
 
18
20
  def initialize(config_contents)
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.3"
5
+ s.version = "1.3.5"
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-08-04}
9
+ s.date = %q{2009-08-05}
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"]
@@ -7,9 +7,11 @@ module Minglr
7
7
  context "parse" do
8
8
 
9
9
  should "look for a config file in the user home directory or the current working directory" do
10
- File.expects(:exist?).with(File.join(ENV["HOME"], ".minglrconfig"))
11
- File.expects(:exist?).with(File.expand_path(File.join(ENV["PWD"], ".minglrconfig")))
12
- ConfigParser.stubs(:puts)
10
+ File.expects(:exist?).with(File.join(ENV["HOME"], ".minglrconfig")).returns(true)
11
+ #File.expects(:exist?).with(File.expand_path(File.join(ENV["PWD"], ".minglrconfig"))).returns(false)
12
+ config_file_contents = ""
13
+ File.expects(:read).with(File.join(ENV["HOME"], ".minglrconfig")).returns(config_file_contents)
14
+
13
15
  ConfigParser.parse
14
16
  end
15
17
 
@@ -30,6 +32,7 @@ module Minglr
30
32
 
31
33
  should "print a message if the config file cannot be found" do
32
34
  File.expects(:exist?).times(2).returns(false)
35
+ ConfigParser.expects(:class_eval).with("send :exit, 1")
33
36
  ConfigParser.expects(:puts)
34
37
  ConfigParser.parse
35
38
  end
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.3
4
+ version: 1.3.5
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-08-04 00:00:00 -07:00
14
+ date: 2009-08-05 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies: []
17
17