climax 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/bin/climax CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
3
3
  require 'rubygems' rescue nil
4
+ require 'bundler/setup'
4
5
  require 'climax/cli'
5
6
  Climax::CLI::Application.new(ARGV)
@@ -36,7 +36,7 @@ module Climax
36
36
  end
37
37
 
38
38
  def _parse_options
39
- slop.parse!
39
+ slop.parse!(@args)
40
40
  @opts = slop
41
41
  exit 0 if opts.help?
42
42
  rescue => e
@@ -191,7 +191,7 @@ module Climax
191
191
 
192
192
  def climax_has_event?
193
193
  _events_mutex.synchronize {
194
- _events.count > 1
194
+ _events.count > 0
195
195
  }
196
196
  end
197
197
 
@@ -1,3 +1,3 @@
1
1
  module Climax
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -2,7 +2,9 @@
2
2
  # -*- mode: ruby -*-
3
3
  $:.unshift File.expand_path("../../lib", __FILE__)
4
4
  require "rubygems" rescue nil
5
+ require 'bundler/setup'
5
6
  require "<%= name %>"
7
+ Bundler.setup
6
8
  app = <%= module_string %>::Application.new(ARGV)
7
9
  received_ctrlc = false
8
10
  trap("INT") do
@@ -1,5 +1,7 @@
1
1
  $:.unshift File.join(File.dirname(__FILE__), "..", "..", "lib")
2
2
  require "rubygems" rescue nil
3
+ require "bundler/setup"
3
4
  require "<%= name %>"
5
+ Bundler.setup
4
6
  require "rspec/expectations"
5
7
  require "cucumber/rspec/doubles" # For mocking, stubs, and test doubles
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: climax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-26 00:00:00.000000000 Z
12
+ date: 2013-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry