bundler-talks 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/bin/bundler-talks CHANGED
@@ -3,5 +3,4 @@
3
3
  bundler_talks_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
4
4
  $LOAD_PATH.unshift(bundler_talks_dir) unless $LOAD_PATH.include?(bundler_talks_dir)
5
5
  require 'bundler-talks'
6
-
7
- `bundle #{ARGV.join(' ')}`
6
+ require 'bundler-talks/runner'
@@ -20,5 +20,6 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_dependency 'talks'
23
+ s.add_dependency 'thor'
23
24
  s.add_dependency 'bundler'
24
25
  end
@@ -1,4 +1,6 @@
1
1
  require 'bundler'
2
+ require 'bundler/cli'
3
+ require 'thor'
2
4
 
3
5
  module Bundler
4
6
  class CLI < Thor
@@ -0,0 +1,29 @@
1
+ begin
2
+ # Check if an older version of bundler is installed
3
+ $:.each do |path|
4
+ if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9
5
+ err = "Please remove Bundler 0.8 versions."
6
+ err << "This can be done by running `gem cleanup bundler`."
7
+ abort(err)
8
+ end
9
+ end
10
+ require 'bundler/cli'
11
+ Bundler::CLI.start
12
+ rescue Bundler::BundlerError => e
13
+ Bundler.ui.error e.message
14
+ Bundler.ui.debug e.backtrace.join("\n")
15
+ exit e.status_code
16
+ rescue Interrupt => e
17
+ Bundler.ui.error "\nQuitting..."
18
+ Bundler.ui.debug e.backtrace.join("\n")
19
+ exit 1
20
+ rescue SystemExit => e
21
+ exit e.status
22
+ rescue Exception => e
23
+ Bundler.ui.error "Unfortunately, a fatal error has occurred. " +
24
+ "Please report this error to the Bundler issue tracker at " +
25
+ "https://github.com/carlhuda/bundler/issues so that we can fix it. " +
26
+ "Please include the full output of the command, your Gemfile and Gemfile.lock. " +
27
+ "Thanks!"
28
+ raise e
29
+ end
@@ -1,3 +1,3 @@
1
1
  module BundlerTalks
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-talks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: thor
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: bundler
32
48
  requirement: !ruby/object:Gem::Requirement