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 +1 -2
- data/bundler-talks.gemspec +1 -0
- data/lib/bundler-talks/patches.rb +2 -0
- data/lib/bundler-talks/runner.rb +29 -0
- data/lib/bundler-talks/version.rb +1 -1
- metadata +17 -1
data/bin/bundler-talks
CHANGED
data/bundler-talks.gemspec
CHANGED
data/lib/bundler-talks/runner.rb
CHANGED
@@ -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
|
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.
|
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
|