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 +4 -4
- data/CHANGELOG.md +17 -0
- data/bundle-try.gemspec +1 -1
- data/exe/bundler-try +9 -1
- data/lib/bundle-try.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d1f79a9456f5321c0e57db5412a83c8c252964a
|
4
|
+
data.tar.gz: c5160802cc950ce6ac5fea87b7b03fa05bc0f75e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
-
|
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
|
76
|
+
gem '{{ name }}', :github => '{{ github }}'{{#ref}}, :ref => '{{ref}}'{{/ref}}
|
77
77
|
{{/github?}}
|
78
78
|
{{#gist?}}
|
79
|
-
gem '{{ name }}', gist
|
79
|
+
gem '{{ name }}', :gist => '{{ gist }}'{{#ref}}, :ref => '{{ref}}'{{/ref}}
|
80
80
|
{{/gist?}}
|
81
81
|
{{#regular?}}
|
82
82
|
gem '{{ name }}'{{#versionlike}}, '{{{ versionlike }}}'{{/versionlike}}
|