bundle-try 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ddba0208467125097d2c03bf5fb1d1f7d0c117a
4
- data.tar.gz: 45e1e60cb993da1a050f47ad4cf76cdbdd7d13a7
3
+ metadata.gz: 6d1f79a9456f5321c0e57db5412a83c8c252964a
4
+ data.tar.gz: c5160802cc950ce6ac5fea87b7b03fa05bc0f75e
5
5
  SHA512:
6
- metadata.gz: 9ff813082c3b868597ebd40bc9257705b146559f896f19bec082317e2772e0d9e3ad02cdd0e4f99d4b72ff22e5bc9322413663d6fb9098cf474ba34e7a0e7722
7
- data.tar.gz: 1ed47577d12ceac509e77c2b820956faec9ec2dbb0ae8658946b9a8a3ba4f915fa904b1ae97c8c786e588a2442f9f098a507f12a57656b2598c3f28f8ef58f4f
6
+ metadata.gz: 1bebb2dc41795732c095f9ffbe62bd99ae965e5035d39734dddf5e470968aa2a2dbbe5217925ea1d0445bd9648460f59908d0007e90ee3d8c952f45ee70c5670
7
+ data.tar.gz: 63a6aca87ccddc8fa37b9104331a32a64db1d7a0ece0215e958bbfe5e0cc8487721a500d2e40588f8423ca26dae220631e5d9ff64b9ef229088a784aa1c10fcf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## 1.6.1
2
+
3
+ ### Fixed
4
+
5
+ * Generated Gemfile is ruby 1.9.3 compatible
6
+ * Output of `bundle install` appeared in the generated Gemfile.
7
+
8
+ ## 1.6.0
9
+
10
+ ### Added
11
+
12
+ * instead of a repl you can now start a shell:
13
+
14
+ $ bundle try rake --shell
15
+ Bundling...
16
+ bash> bundle exec rake --version
17
+
1
18
  ## 1.5.0
2
19
 
3
20
  ### Fixed
data/bundle-try.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "bundle-try"
7
- spec.version = '1.6.0'
7
+ spec.version = '1.6.1'
8
8
  spec.authors = ["Gert Goet"]
9
9
  spec.email = ["gert@thinkcreate.nl"]
10
10
 
data/exe/bundler-try CHANGED
@@ -78,16 +78,24 @@ else
78
78
  gemfile_content = BundleTry::Gemfile.render({:gemlines => BundleTry.argv_to_gemlines(argv) })
79
79
  File.write(gemfile_path, gemfile_content)
80
80
  Dir.chdir bundle_try_folder
81
- Bundler::CLI.start(%W(install), :debug => true)
81
+
82
+ bundle_install = ->(quiet = false) {
83
+ cmd = %w(install)
84
+ cmd << '--quiet' if quiet
85
+ Bundler::CLI.start(cmd, :debug => false)
86
+ }
82
87
 
83
88
  if ARGV.include?('--shell')
89
+ bundle_install[]
84
90
  puts "Entering folder '#{bundle_try_folder}'. Happy hacking!"
85
91
  `#{ENV['SHELL']} 1>&2`
86
92
  else
87
93
  if STDOUT.tty?
94
+ bundle_install[]
88
95
  puts "Want to capture the generated Gemfile? Use `bundle try rake > Gemfile`."
89
96
  Bundler::CLI.start(%W(console), :debug => true)
90
97
  else
98
+ bundle_install[:quiet]
91
99
  puts gemfile_content
92
100
  end
93
101
  end
data/lib/bundle-try.rb CHANGED
@@ -73,10 +73,10 @@ source "https://rubygems.org"
73
73
 
74
74
  {{#gemlines}}
75
75
  {{#github?}}
76
- gem '{{ name }}', github: '{{ github }}'{{#ref}}, ref: '{{ref}}'{{/ref}}
76
+ gem '{{ name }}', :github => '{{ github }}'{{#ref}}, :ref => '{{ref}}'{{/ref}}
77
77
  {{/github?}}
78
78
  {{#gist?}}
79
- gem '{{ name }}', gist: '{{ gist }}'{{#ref}}, ref: '{{ref}}'{{/ref}}
79
+ gem '{{ name }}', :gist => '{{ gist }}'{{#ref}}, :ref => '{{ref}}'{{/ref}}
80
80
  {{/gist?}}
81
81
  {{#regular?}}
82
82
  gem '{{ name }}'{{#versionlike}}, '{{{ versionlike }}}'{{/versionlike}}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle-try
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gert Goet