bundler 1.15.4 → 1.16.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

Files changed (251) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +12 -7
  4. data/exe/bundle +1 -1
  5. data/exe/bundle_ruby +4 -3
  6. data/lib/bundler.rb +47 -37
  7. data/lib/bundler/build_metadata.rb +38 -0
  8. data/lib/bundler/capistrano.rb +5 -0
  9. data/lib/bundler/cli.rb +155 -67
  10. data/lib/bundler/cli/add.rb +0 -1
  11. data/lib/bundler/cli/binstubs.rb +9 -7
  12. data/lib/bundler/cli/cache.rb +5 -4
  13. data/lib/bundler/cli/check.rb +3 -5
  14. data/lib/bundler/cli/clean.rb +5 -6
  15. data/lib/bundler/cli/common.rb +11 -2
  16. data/lib/bundler/cli/config.rb +2 -1
  17. data/lib/bundler/cli/console.rb +2 -1
  18. data/lib/bundler/cli/doctor.rb +1 -0
  19. data/lib/bundler/cli/exec.rb +2 -1
  20. data/lib/bundler/cli/gem.rb +3 -2
  21. data/lib/bundler/cli/info.rb +0 -1
  22. data/lib/bundler/cli/init.rb +17 -6
  23. data/lib/bundler/cli/inject.rb +1 -0
  24. data/lib/bundler/cli/install.rb +61 -61
  25. data/lib/bundler/cli/issue.rb +1 -1
  26. data/lib/bundler/cli/list.rb +22 -0
  27. data/lib/bundler/cli/lock.rb +0 -1
  28. data/lib/bundler/cli/open.rb +2 -2
  29. data/lib/bundler/cli/outdated.rb +13 -8
  30. data/lib/bundler/cli/package.rb +9 -6
  31. data/lib/bundler/cli/platform.rb +1 -0
  32. data/lib/bundler/cli/plugin.rb +1 -0
  33. data/lib/bundler/cli/pristine.rb +9 -2
  34. data/lib/bundler/cli/show.rb +0 -1
  35. data/lib/bundler/cli/update.rb +31 -5
  36. data/lib/bundler/cli/viz.rb +1 -0
  37. data/lib/bundler/compact_index_client.rb +1 -0
  38. data/lib/bundler/compact_index_client/cache.rb +1 -0
  39. data/lib/bundler/compact_index_client/updater.rb +3 -2
  40. data/lib/bundler/compatibility_guard.rb +14 -0
  41. data/lib/bundler/constants.rb +1 -0
  42. data/lib/bundler/current_ruby.rb +5 -4
  43. data/lib/bundler/definition.rb +140 -95
  44. data/lib/bundler/dep_proxy.rb +2 -0
  45. data/lib/bundler/dependency.rb +6 -7
  46. data/lib/bundler/deployment.rb +1 -1
  47. data/lib/bundler/deprecate.rb +1 -0
  48. data/lib/bundler/dsl.rb +97 -62
  49. data/lib/bundler/endpoint_specification.rb +9 -0
  50. data/lib/bundler/env.rb +63 -27
  51. data/lib/bundler/environment_preserver.rb +26 -6
  52. data/lib/bundler/errors.rb +1 -0
  53. data/lib/bundler/feature_flag.rb +39 -4
  54. data/lib/bundler/fetcher.rb +15 -8
  55. data/lib/bundler/fetcher/base.rb +1 -0
  56. data/lib/bundler/fetcher/compact_index.rb +2 -11
  57. data/lib/bundler/fetcher/dependency.rb +1 -0
  58. data/lib/bundler/fetcher/downloader.rb +1 -0
  59. data/lib/bundler/fetcher/index.rb +1 -0
  60. data/lib/bundler/friendly_errors.rb +2 -1
  61. data/lib/bundler/gem_helper.rb +14 -9
  62. data/lib/bundler/gem_helpers.rb +1 -0
  63. data/lib/bundler/gem_remote_fetcher.rb +1 -0
  64. data/lib/bundler/gem_tasks.rb +1 -0
  65. data/lib/bundler/gem_version_promoter.rb +1 -0
  66. data/lib/bundler/gemdeps.rb +1 -0
  67. data/lib/bundler/graph.rb +1 -0
  68. data/lib/bundler/index.rb +15 -8
  69. data/lib/bundler/injector.rb +25 -22
  70. data/lib/bundler/inline.rb +5 -7
  71. data/lib/bundler/installer.rb +93 -45
  72. data/lib/bundler/installer/gem_installer.rb +2 -0
  73. data/lib/bundler/installer/parallel_installer.rb +73 -42
  74. data/lib/bundler/installer/standalone.rb +1 -0
  75. data/lib/bundler/lazy_specification.rb +2 -1
  76. data/lib/bundler/lockfile_generator.rb +95 -0
  77. data/lib/bundler/lockfile_parser.rb +10 -4
  78. data/lib/bundler/match_platform.rb +1 -0
  79. data/lib/bundler/mirror.rb +6 -3
  80. data/lib/bundler/plugin.rb +1 -0
  81. data/lib/bundler/plugin/api/source.rb +8 -0
  82. data/lib/bundler/plugin/installer.rb +7 -6
  83. data/lib/bundler/plugin/source_list.rb +7 -8
  84. data/lib/bundler/process_lock.rb +24 -0
  85. data/lib/bundler/psyched_yaml.rb +1 -0
  86. data/lib/bundler/remote_specification.rb +1 -0
  87. data/lib/bundler/resolver.rb +138 -191
  88. data/lib/bundler/resolver/spec_group.rb +111 -0
  89. data/lib/bundler/retry.rb +1 -0
  90. data/lib/bundler/ruby_dsl.rb +1 -0
  91. data/lib/bundler/ruby_version.rb +1 -0
  92. data/lib/bundler/rubygems_ext.rb +5 -4
  93. data/lib/bundler/rubygems_gem_installer.rb +23 -0
  94. data/lib/bundler/rubygems_integration.rb +56 -27
  95. data/lib/bundler/runtime.rb +3 -5
  96. data/lib/bundler/settings.rb +177 -76
  97. data/lib/bundler/settings/validator.rb +79 -0
  98. data/lib/bundler/setup.rb +1 -0
  99. data/lib/bundler/shared_helpers.rb +86 -26
  100. data/lib/bundler/similarity_detector.rb +1 -0
  101. data/lib/bundler/source.rb +32 -0
  102. data/lib/bundler/source/gemspec.rb +1 -0
  103. data/lib/bundler/source/git.rb +21 -16
  104. data/lib/bundler/source/git/git_proxy.rb +14 -10
  105. data/lib/bundler/source/metadata.rb +63 -0
  106. data/lib/bundler/source/path.rb +8 -8
  107. data/lib/bundler/source/path/installer.rb +2 -0
  108. data/lib/bundler/source/rubygems.rb +131 -84
  109. data/lib/bundler/source/rubygems/remote.rb +3 -0
  110. data/lib/bundler/source_list.rb +75 -15
  111. data/lib/bundler/spec_set.rb +2 -1
  112. data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
  113. data/lib/bundler/stub_specification.rb +1 -0
  114. data/lib/bundler/templates/Executable +4 -0
  115. data/lib/bundler/templates/Executable.bundler +105 -0
  116. data/lib/bundler/templates/Gemfile +1 -0
  117. data/lib/bundler/templates/gems.rb +8 -0
  118. data/lib/bundler/templates/newgem/README.md.tt +1 -1
  119. data/lib/bundler/templates/newgem/gitignore.tt +0 -1
  120. data/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -1
  121. data/lib/bundler/templates/newgem/rspec.tt +1 -0
  122. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
  123. data/lib/bundler/ui.rb +1 -0
  124. data/lib/bundler/ui/rg_proxy.rb +1 -0
  125. data/lib/bundler/ui/shell.rb +15 -4
  126. data/lib/bundler/ui/silent.rb +1 -0
  127. data/lib/bundler/uri_credentials_filter.rb +1 -0
  128. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
  129. data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
  130. data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
  131. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
  132. data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
  133. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +3 -2
  134. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
  135. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +1 -0
  136. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
  137. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
  138. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
  139. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
  140. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
  141. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
  142. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +3 -2
  143. data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +69 -6
  144. data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
  145. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
  146. data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
  147. data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +487 -148
  148. data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
  149. data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
  150. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1 -1
  151. data/lib/bundler/vendored_fileutils.rb +9 -0
  152. data/lib/bundler/vendored_molinillo.rb +1 -0
  153. data/lib/bundler/vendored_persistent.rb +34 -0
  154. data/lib/bundler/vendored_thor.rb +1 -0
  155. data/lib/bundler/version.rb +6 -2
  156. data/lib/bundler/version_ranges.rb +1 -0
  157. data/lib/bundler/vlad.rb +5 -0
  158. data/lib/bundler/worker.rb +1 -0
  159. data/lib/bundler/yaml_serializer.rb +3 -3
  160. data/man/bundle-add.1 +43 -0
  161. data/man/bundle-add.1.txt +40 -0
  162. data/man/bundle-binstubs.1 +40 -0
  163. data/man/bundle-binstubs.1.txt +48 -0
  164. data/man/bundle-binstubs.ronn +14 -0
  165. data/man/bundle-check.1 +31 -0
  166. data/man/bundle-check.1.txt +32 -0
  167. data/man/bundle-clean.1 +24 -0
  168. data/man/bundle-clean.1.txt +26 -0
  169. data/man/bundle-config.1 +455 -0
  170. data/man/bundle-config.1.txt +491 -0
  171. data/man/bundle-config.ronn +133 -79
  172. data/man/bundle-exec.1 +165 -0
  173. data/man/bundle-exec.1.txt +178 -0
  174. data/man/bundle-exec.ronn +7 -0
  175. data/man/bundle-gem.1 +80 -0
  176. data/man/bundle-gem.1.txt +91 -0
  177. data/man/bundle-gem.ronn +2 -1
  178. data/man/bundle-info.1 +20 -0
  179. data/man/bundle-info.1.txt +21 -0
  180. data/man/bundle-init.1 +20 -0
  181. data/man/bundle-init.1.txt +24 -0
  182. data/man/bundle-inject.1 +33 -0
  183. data/man/bundle-inject.1.txt +32 -0
  184. data/man/bundle-install.1 +305 -0
  185. data/man/bundle-install.1.txt +385 -0
  186. data/man/bundle-install.ronn +32 -32
  187. data/man/bundle-list.1 +20 -0
  188. data/man/bundle-list.1.txt +21 -0
  189. data/man/bundle-list.ronn +15 -0
  190. data/man/bundle-lock.1 +84 -0
  191. data/man/bundle-lock.1.txt +93 -0
  192. data/man/bundle-open.1 +32 -0
  193. data/man/bundle-open.1.txt +29 -0
  194. data/man/bundle-outdated.1 +151 -0
  195. data/man/bundle-outdated.1.txt +127 -0
  196. data/man/bundle-outdated.ronn +1 -1
  197. data/man/bundle-package.1 +55 -0
  198. data/man/bundle-package.1.txt +79 -0
  199. data/man/bundle-package.ronn +5 -0
  200. data/man/bundle-platform.1 +61 -0
  201. data/man/bundle-platform.1.txt +57 -0
  202. data/man/bundle-pristine.1 +34 -0
  203. data/man/bundle-pristine.1.txt +44 -0
  204. data/man/bundle-pristine.ronn +24 -3
  205. data/man/bundle-show.1 +23 -0
  206. data/man/bundle-show.1.txt +25 -0
  207. data/man/bundle-update.1 +390 -0
  208. data/man/bundle-update.1.txt +386 -0
  209. data/man/bundle-update.ronn +2 -2
  210. data/man/bundle-viz.1 +39 -0
  211. data/man/bundle-viz.1.txt +38 -0
  212. data/man/bundle-viz.ronn +5 -5
  213. data/man/bundle.1 +132 -0
  214. data/man/bundle.1.txt +113 -0
  215. data/man/bundle.ronn +5 -2
  216. data/man/gemfile.5 +679 -0
  217. data/man/gemfile.5.ronn +31 -0
  218. data/man/gemfile.5.txt +636 -0
  219. data/man/index.txt +23 -0
  220. metadata +21 -36
  221. data/.codeclimate.yml +0 -25
  222. data/.gitignore +0 -18
  223. data/.rspec +0 -3
  224. data/.rubocop.yml +0 -131
  225. data/.rubocop_todo.yml +0 -418
  226. data/.travis.yml +0 -122
  227. data/CODE_OF_CONDUCT.md +0 -42
  228. data/CONTRIBUTING.md +0 -17
  229. data/Rakefile +0 -338
  230. data/bin/rake +0 -19
  231. data/bin/rspec +0 -15
  232. data/bin/rubocop +0 -17
  233. data/bin/with_rubygems +0 -39
  234. data/bundler.gemspec +0 -48
  235. data/doc/README.md +0 -30
  236. data/doc/TROUBLESHOOTING.md +0 -64
  237. data/doc/contributing/BUG_TRIAGE.md +0 -36
  238. data/doc/contributing/COMMUNITY.md +0 -13
  239. data/doc/contributing/GETTING_HELP.md +0 -11
  240. data/doc/contributing/HOW_YOU_CAN_HELP.md +0 -27
  241. data/doc/contributing/ISSUES.md +0 -51
  242. data/doc/contributing/README.md +0 -38
  243. data/doc/development/NEW_FEATURES.md +0 -10
  244. data/doc/development/PULL_REQUESTS.md +0 -40
  245. data/doc/development/README.md +0 -19
  246. data/doc/development/RELEASING.md +0 -9
  247. data/doc/development/SETUP.md +0 -27
  248. data/doc/documentation/README.md +0 -29
  249. data/doc/documentation/VISION.md +0 -26
  250. data/doc/documentation/WRITING.md +0 -54
  251. data/task/release.rake +0 -116
data/bin/rake DELETED
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
5
-
6
- require "rubygems"
7
-
8
- bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
9
- bundler_spec.dependencies.each do |dep|
10
- begin
11
- gem dep.name, dep.requirement
12
- rescue Gem::LoadError => e
13
- $stderr.puts "#{e.message} (#{e.class})"
14
- end
15
- end
16
-
17
- Gem.finish_resolve if Gem.respond_to?(:finish_resolve)
18
-
19
- load Gem.bin_path("rake", "rake")
data/bin/rspec DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
5
-
6
- require "rubygems"
7
-
8
- bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
9
- bundler_spec.dependencies.each do |dep|
10
- gem dep.name, dep.requirement
11
- end
12
-
13
- Gem.finish_resolve if Gem.respond_to?(:finish_resolve)
14
-
15
- load Gem.bin_path("rspec-core", "rspec")
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
5
-
6
- require "rubygems"
7
-
8
- bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
9
- bundler_spec.dependencies.each do |dep|
10
- gem dep.name, dep.requirement
11
- end
12
-
13
- gem "rubocop", "= 0.48.0"
14
-
15
- Gem.finish_resolve if Gem.respond_to?(:finish_resolve)
16
-
17
- load Gem.bin_path("rubocop", "rubocop")
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "pathname"
5
-
6
- def run(*cmd)
7
- return if system(*cmd)
8
- raise "Running `#{cmd.join(" ")}` failed"
9
- end
10
-
11
- version = ENV.delete("RGV")
12
- rubygems_path = Pathname.new(__FILE__).join("../../tmp/rubygems").expand_path
13
- unless rubygems_path.directory?
14
- rubygems_path.parent.mkpath unless rubygems_path.directory?
15
- run("git", "clone", "https://github.com/rubygems/rubygems.git", rubygems_path.to_s)
16
- end
17
- Dir.chdir(rubygems_path) do
18
- version = "v#{version}" if version =~ /\A\d/
19
- run("git", "checkout", version, "--quiet")
20
- end if version
21
-
22
- rubygems_lib = rubygems_path + "lib"
23
- ENV["RUBYOPT"] = %(-I#{rubygems_lib} #{ENV["RUBYOPT"]})
24
-
25
- if $0 != __FILE__
26
- ARGV.unshift($0)
27
- elsif cmd = ARGV.first
28
- possible_dirs = [
29
- Pathname.new(__FILE__) + "..",
30
- Pathname.new(__FILE__) + "../../exe",
31
- rubygems_path + "bin",
32
- ]
33
- cmd = possible_dirs.map do |dir|
34
- dir.join(cmd).expand_path
35
- end.find(&:file?)
36
- ARGV[0] = cmd.to_s if cmd
37
- end
38
-
39
- exec(*ARGV)
@@ -1,48 +0,0 @@
1
- # coding: utf-8
2
- # frozen_string_literal: true
3
- lib = File.expand_path("../lib/", __FILE__)
4
- $:.unshift lib unless $:.include?(lib)
5
- require "bundler/version"
6
-
7
- Gem::Specification.new do |s|
8
- s.name = "bundler"
9
- s.version = Bundler::VERSION
10
- s.license = "MIT"
11
- s.authors = [
12
- "André Arko", "Samuel Giddins", "Chris Morris", "James Wen", "Tim Moore",
13
- "André Medeiros", "Jessica Lynn Suttles", "Terence Lee", "Carl Lerche",
14
- "Yehuda Katz"
15
- ]
16
- s.email = ["team@bundler.io"]
17
- s.homepage = "http://bundler.io"
18
- s.summary = "The best way to manage your application's dependencies"
19
- s.description = "Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably"
20
-
21
- if s.respond_to?(:metadata=)
22
- s.metadata = {
23
- "bug_tracker_uri" => "http://github.com/bundler/bundler/issues",
24
- "changelog_uri" => "https://github.com/bundler/bundler/blob/master/CHANGELOG.md",
25
- "homepage_uri" => "https://bundler.io/",
26
- "source_code_uri" => "http://github.com/bundler/bundler/",
27
- }
28
- end
29
-
30
- s.required_ruby_version = ">= 1.8.7"
31
- s.required_rubygems_version = ">= 1.3.6"
32
-
33
- s.add_development_dependency "automatiek", "~> 0.1.0"
34
- s.add_development_dependency "mustache", "0.99.6"
35
- s.add_development_dependency "rake", "~> 10.0"
36
- s.add_development_dependency "rdiscount", "~> 2.2"
37
- s.add_development_dependency "ronn", "~> 0.7.3"
38
- s.add_development_dependency "rspec", "~> 3.5"
39
-
40
- s.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
41
- # we don't check in man pages, but we need to ship them because
42
- # we use them to generate the long-form help for each command.
43
- s.files += Dir.glob("man/**/*")
44
-
45
- s.bindir = "exe"
46
- s.executables = %w(bundle bundler)
47
- s.require_paths = ["lib"]
48
- end
@@ -1,30 +0,0 @@
1
- # Docs: Contributing and developing Bundler
2
-
3
- _If you're looking for documentation on how to use Bundler: visit [bundler.io](http://bundler.io/), or run `bundle help` from the command line. You may also be interested in [troubleshooting common issues](TROUBLESHOOTING.md) found when using Bundler._
4
-
5
- Bundler welcomes contributions from *everyone*. While contributing, please follow the project [code of conduct](http://bundler.io/conduct.html), so that everyone can be included.
6
-
7
- If you'd like to help make Bundler better, you totally rock! Thanks for helping us make Bundler better.
8
-
9
- ## Contributing
10
-
11
- * [Overview & getting started](contributing/README.md)
12
- * [How you can help: your first contributions!](contributing/HOW_YOU_CAN_HELP.md)
13
- * [Bug triage](contributing/BUG_TRIAGE.md)
14
- * [Getting help](contributing/GETTING_HELP.md)
15
- * [Filing issues](contributing/ISSUES.md)
16
- * [Community](contributing/COMMUNITY.md)
17
-
18
- ## Development
19
-
20
- * [Overview](development/README.md)
21
- * [Development setup](development/SETUP.md)
22
- * [Submitting pull requests](development/PULL_REQUESTS.md)
23
- * [Adding new features](development/NEW_FEATURES.md)
24
- * [Releasing Bundler](development/RELEASING.md)
25
-
26
- ## Documentation
27
-
28
- * [Overview](documentation/README.md)
29
- * [Writing docs for man pages](documentation/WRITING.md)
30
- * [Documentation vision](documentation/VISION.md)
@@ -1,64 +0,0 @@
1
- # Troubleshooting common issues
2
-
3
- Stuck using Bundler? Browse these common issues before [filing a new issue](contributing/ISSUES.md).
4
-
5
- ## Permission denied when installing bundler
6
-
7
- Certain operating systems such as MacOS and Ubuntu have versions of Ruby that require elevated privileges to install gems.
8
-
9
- ERROR: While executing gem ... (Gem::FilePermissionError)
10
- You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
11
-
12
- There are multiple ways to solve this issue. You can install bundler with elevated privilges using `sudo` or `su`.
13
-
14
- sudo gem install bundler
15
-
16
- If you cannot elevated your privileges or do not want to globally install Bundler, you can use the `--user-install` option.
17
-
18
- gem install bundler --user-install
19
-
20
- This will install Bundler into your home directory. Note that you will need to append `~/.gem/ruby/<ruby version>/bin` to your `$PATH` variable to use `bundle`.
21
-
22
- ## Heroku errors
23
-
24
- Please open a ticket with [Heroku](https://www.heroku.com) if you're having trouble deploying. They have a professional support team who can help you resolve Heroku issues far better than the Bundler team can. If the problem that you are having turns out to be a bug in Bundler itself, [Heroku support](https://www.heroku.com/support) can get the exact details to us.
25
-
26
- ## Other problems
27
-
28
- First, figure out exactly what it is that you're trying to do (see [XY Problem](http://xyproblem.info/)). Then, go to the [Bundler documentation website](http://bundler.io) and see if we have instructions on how to do that.
29
-
30
- Second, check [the compatibility
31
- list](http://bundler.io/compatibility.html), and make sure that the version of Bundler that you are using works with the versions of Ruby and Rubygems that you are using. To see your versions:
32
-
33
- # Bundler version
34
- bundle -v
35
-
36
- # Ruby version
37
- ruby -v
38
-
39
- # Rubygems version
40
- gem -v
41
-
42
- If these instructions don't work, or you can't find any appropriate instructions, you can try these troubleshooting steps:
43
-
44
- # Remove user-specific gems and git repos
45
- rm -rf ~/.bundle/ ~/.gem/bundler/ ~/.gems/cache/bundler/
46
-
47
- # Remove system-wide git repos and git checkouts
48
- rm -rf $GEM_HOME/bundler/ $GEM_HOME/cache/bundler/
49
-
50
- # Remove project-specific settings
51
- rm -rf .bundle/
52
-
53
- # Remove project-specific cached gems and repos
54
- rm -rf vendor/cache/
55
-
56
- # Remove the saved resolve of the Gemfile
57
- rm -rf Gemfile.lock
58
-
59
- # Uninstall the rubygems-bundler and open_gem gems
60
- rvm gemset use global # if using rvm
61
- gem uninstall rubygems-bundler open_gem
62
-
63
- # Try to install one more time
64
- bundle install
@@ -1,36 +0,0 @@
1
- # Bug triage
2
-
3
- Triaging is the work of processing tickets that have been opened by users. Common tasks include verifying bugs, categorizing tickets, and ensuring there's enough information to reproduce the bug for anyone who wants to try to fix it.
4
-
5
- We've created an [issues guide](ISSUES.md) to walk users through the process of how to report an issue with the Bundler project. We also have a [troubleshooting guide](../TROUBLESHOOTING.md) to diagnose common problems.
6
-
7
- Not every ticket will be a bug in Bundler's code, but open tickets usually mean that the there is something we could improve to help that user. Sometimes that means writing additional documentation or making error messages clearer.
8
-
9
- ## Triaging existing issues
10
-
11
- When you're looking at a ticket, here are the main questions to ask:
12
-
13
- * Can I reproduce this bug myself?
14
- * Are the steps to reproduce the bug clearly documented in the ticket?
15
- * Which versions of Bundler (1.1.x, 1.2.x, git, etc.) manifest this bug?
16
- * Which operating systems (OS X, Windows, Ubuntu, CentOS, etc.) manifest this bug?
17
- * Which rubies (MRI, JRuby, Rubinius, etc.) and which versions (1.8.7, 1.9.3, etc.) have this bug?
18
-
19
- If you can't reproduce the issue, chances are good that the bug has been fixed already (hurrah!). That's a good time to post to the ticket explaining what you did and how it worked.
20
-
21
- If you can reproduce an issue, you're well on your way to fixing it. :)
22
-
23
- ## Fixing your triaged bug
24
-
25
- Everyone is welcome and encouraged to fix any open bug, improve an error message or add documentation. If you have a fix or an improvement to a ticket that you would like to contribute, we have a small guide to help:
26
-
27
- 1. Discuss the fix on the existing issue. Coordinating with everyone else saves duplicate work and serves as a great way to get suggestions and ideas if you need any.
28
- 2. Base your commits on the correct branch. Bugfixes for 1.x versions of Bundler should be based on the matching 1-x-stable branch.
29
- 3. Review the [pull request guide](../development/PULL_REQUESTS.md).
30
- 4. Commit the code with at least one test covering your changes to a named branch in your fork.
31
- 5. Put a line in the [CHANGELOG](../../CHANGELOG.md) summarizing your changes under the next release under the “Bugfixes” heading.
32
- 6. Send us a [pull request](https://help.github.com/articles/using-pull-requests) from your bugfix branch.
33
-
34
- ## Duplicates!
35
-
36
- Finally, the ticket may be a duplicate of another older ticket. If you notice a ticket is a duplicate, simply comment on the ticket noting the original ticket’s number. For example, you could say “This is a duplicate of issue #42, and can be closed”.
@@ -1,13 +0,0 @@
1
- # Community
2
-
3
- Community is an important part of all we do. If you’d like to be part of the Bundler community, you can jump right in and start helping make Bundler better for everyone who uses it.
4
-
5
- It would be tremendously helpful to have more people answering questions about Bundler (and often simply about [Rubygems](https://github.com/rubygems/rubygems) or Ruby itself) in our [issue tracker](https://github.com/bundler/bundler/issues) or on [Stack Overflow](http://stackoverflow.com/questions/tagged/bundler).
6
-
7
- Additional documentation and explanation is always helpful, too. If you have any suggestions for the Bundler website [bundler.io](http://bundler.io), we would absolutely love it if you opened an issue or pull request on the [bundler-site](https://github.com/bundler/bundler-site) repository.
8
-
9
- Sharing your experiences and discoveries by writing them up is a valuable way to help others who have similar problems or experiences in the future. You can write a blog post, create an example and commit it to GitHub, take screenshots, or make videos.
10
-
11
- Publishing examples of how Bundler is used helps everyone, and we’ve discovered that people already use it in ways that we never imagined when we were writing it. If you’re still not sure what to write about, there are also several projects doing interesting things based on Bundler. They could probably use publicity too.
12
-
13
- Finally, all contributors to the Bundler project must agree to the contributor [code of conduct](http://bundler.io/conduct.html). By participating in this project you agree to abide by its terms.
@@ -1,11 +0,0 @@
1
- # Getting help
2
-
3
- If you have any questions after reading the documentation for contributing, please feel free to contact either [@indirect](https://github.com/indirect), [@segiddins](https://github.com/segiddins), or [@RochesterinNYC](https://github.com/RochesterinNYC). They are all happy to provide help working through your first bug fix or thinking through the problem you’re trying to resolve.
4
-
5
- The best ways to get in touch are:
6
-
7
- * [Bundler Slack](https://bundler.slack.com).
8
- * Not a member of the Slack? Join the Bundler team slack [here](http://slack.bundler.io/)!
9
- * [Bundler mailing list](http://groups.google.com/group/ruby-bundler)
10
-
11
- You may also find our guide on [filing issues](ISSUES.md) to be helpful as well!
@@ -1,27 +0,0 @@
1
- # How you can help: your first commits!
2
-
3
- If you’re interested in contributing to Bundler, that’s awesome! We’d love your help.
4
-
5
- If at any point you get stuck, here's how to [get in touch with the Bundler team for help](GETTING_HELP.md).
6
-
7
- ## First contribution suggestions
8
-
9
- We track [small bugs and features](https://github.com/bundler/bundler/labels/contribution%3A%20small) so that anyone who wants to help can start with something that's not too overwhelming.
10
-
11
- Generally, great ways to get started helping out with Bundler are:
12
-
13
- - using prerelease versions (run `gem install bundler --pre`)
14
- - [reporting bugs you encounter or suggesting new features](https://github.com/bundler/bundler/issues/new)
15
- - see our [issues guide](ISSUES.md) for help on filing issues
16
- - see the [new features documentation](../development/NEW_FEATURES.md) for more
17
- - adding to or editing [the Bundler documentation website](http://bundler.io) and [Bundler man pages](http://bundler.io/man/bundle.1.html)
18
- - [checking issues for completeness](BUG_TRIAGE.md)
19
- - closing issues that are not complete
20
- - adding a failing test for reproducible [reported bugs](https://github.com/bundler/bundler/issues)
21
- - reviewing [pull requests](https://github.com/bundler/bundler/pulls) and suggesting improvements
22
- - improving existing code, including suggestions from [PullReview](https://www.pullreview.com/github/bundler/bundler/reviews/master) or [CodeClimate](https://codeclimate.com/github/bundler/bundler)
23
- - writing code (no patch is too small! fix typos or bad whitespace)
24
- - get started setting up your dev environment with [these instructions](../development/DEVELOPMENT_SETUP.md)
25
- - backfilling [unit tests](https://github.com/bundler/bundler/tree/master/spec/bundler) for modules that lack [coverage](https://codeclimate.com/github/bundler/bundler/coverage)
26
-
27
- If nothing on those lists looks good, [talk to us](http://slack.bundler.io/), and we'll figure out what you can help with. We can absolutely use your help, no matter what level of programming skill you have at the moment.
@@ -1,51 +0,0 @@
1
- # Filing Issues: a guide
2
-
3
- So! You're having problems with Bundler. This file is here to help. If you're running into an error, try reading the rest of this file for help. If you can't figure out how to solve your problem, there are also instructions on how to report a bug.
4
-
5
- Before filing an issue, check our [troubleshooting guide](../TROUBLESHOOTING.md) for quick fixes to common issues.
6
-
7
- ## Documentation
8
-
9
- Instructions for common Bundler uses can be found on the [Bundler documentation site](http://bundler.io/).
10
-
11
- Detailed information about each Bundler command, including help with common problems, can be found in the [Bundler man pages](http://bundler.io/man/bundle.1.html) or [Bundler Command Line Reference](http://bundler.io/v1.11/commands.html).
12
-
13
- ## Reporting unresolved problems
14
-
15
- Check our [troubleshooting common issues guide](../TROUBLESHOOTING.md) and see if your issues is resolved using the steps provided.
16
-
17
- Hopefully the troubleshooting steps above resolved your problem! If things still aren't working the way you expect them to, please let us know so that we can diagnose and hopefully fix the problem you're having.
18
-
19
- **The best way to report a bug is by providing a reproduction script.** See these examples:
20
-
21
- * [Git environment variables causing install to fail.](https://gist.github.com/xaviershay/6207550)
22
- * [Multiple gems in a repository cannot be updated independently.](https://gist.github.com/xaviershay/6295889)
23
-
24
- A half working script with comments for the parts you were unable to automate is still appreciated.
25
-
26
- If you are unable to do that, please include the following information in your report:
27
-
28
- - What you're trying to accomplish
29
- - The command you ran
30
- - What you expected to happen
31
- - What actually happened
32
- - The exception backtrace(s), if any
33
- - Everything output by running `bundle env`
34
-
35
- If your version of Bundler does not have the `bundle env` command, then please include:
36
-
37
- - Your `Gemfile`
38
- - Your `Gemfile.lock`
39
- - Your Bundler configuration settings (run `bundle config`)
40
- - What version of bundler you are using (run `bundle -v`)
41
- - What version of Ruby you are using (run `ruby -v`)
42
- - What version of Rubygems you are using (run `gem -v`)
43
- - Whether you are using RVM, and if so what version (run `rvm -v`)
44
- - Whether you have the `rubygems-bundler` gem, which can break gem executables (run `gem list rubygems-bundler`)
45
- - Whether you have the `open_gem` gem, which can cause rake activation conflicts (run `gem list open_gem`)
46
-
47
- If you have either `rubygems-bundler` or `open_gem` installed, please try removing them and then following the troubleshooting steps above before opening a new ticket.
48
-
49
- [Create a gist](https://gist.github.com) containing all of that information, then visit the [Bundler issue tracker](https://github.com/bundler/bundler/issues) and [create a ticket](https://github.com/bundler/bundler/issues/new) describing your problem and linking to your gist.
50
-
51
- Thanks for reporting issues and helping make Bundler better!
@@ -1,38 +0,0 @@
1
- # Contributing to Bundler
2
-
3
- Welcome to Bundler! We are so happy that you're here. We know it can be daunting to joining a new open source project, so here's a quick overview of what you can expect from this documentation.
4
-
5
- *Something missing?* Send us a [pull request](../development/PULL_REQUESTS.md)!
6
-
7
- **Recommended first steps**
8
-
9
- - Join us in the Bundler slack! Generate an invite [here](http://slack.bundler.io/)
10
- - *If you're interested in helping with code:*
11
- - Get a quick overview of our [development process](../development/README.md)
12
- - [Setup your machine for development](../development/SETUP.md)
13
- - Checkout [How you can help: your first contributions!](HOW_YOU_CAN_HELP.md) for a list of suggestions to get started
14
- - *If you're interested in helping with documentation:*
15
- - Read up on [how documentation works for Bundler](../documentation/README.md)
16
- - Learn about our [documentation vision](../documentation/VISION.md)
17
-
18
- You can start learning about Bundler by reading [the documentation](http://bundler.io). If you want, you can also read a (lengthy) explanation of [why Bundler exists and what it does](http://bundler.io/rationale.html).
19
-
20
- ## [How you can help: your first contributions!](HOW_YOU_CAN_HELP.md)
21
-
22
- A detailed overview of how to get started contributing to Bundler, including a long list of suggestions for your first project.
23
-
24
- ## [Bug triage](BUG_TRIAGE.md)
25
-
26
- Want to take a stab at processing issues? Start here.
27
-
28
- ## [Getting help](GETTING_HELP.md)
29
-
30
- How to get in touch with folks who can help when you're stuck. Don't worry! This happens to all of us. We're really nice, we promise.
31
-
32
- ## [Filing issues](ISSUES.md)
33
-
34
- We see a lot of issues in the Bundler repo! Use this guide to file informative, actionable issues.
35
-
36
- ## [Community](COMMUNITY.md)
37
-
38
- Learn more about our goals for the Bundler community and the ways you can help us build better together.
@@ -1,10 +0,0 @@
1
- # Adding New Features
2
-
3
- If you would like to add a new feature to Bundler, please follow these steps:
4
-
5
- 1. [Create an issue](https://github.com/bundler/bundler/issues/new) with the [`feature-request` label](https://github.com/bundler/bundler/labels/type:%20feature-request) to discuss your feature.
6
- 2. Base your commits on the master branch, since we follow [SemVer](http://semver.org) and don't add new features to old releases.
7
- 3. Commit the code and at least one test covering your changes to a feature branch in your fork.
8
- 4. Send us a [pull request](PULL_REQUESTS.md) from your feature branch.
9
-
10
- If you don't hear back immediately, don’t get discouraged! We all have day jobs, but we respond to most tickets within a day or two.
@@ -1,40 +0,0 @@
1
- # Submitting Pull Requests
2
-
3
- Before you submit a pull request, please remember to do the following:
4
-
5
- 1. Check your code format and style
6
- 2. Run the test suite
7
- 3. Use a meaningful commit message without tags
8
-
9
- ## Code formatting
10
-
11
- Make sure the code formatting and styling adheres to the guidelines. We use RuboCop for this. Lack of formatting adherence will result in automatic Travis build failures.
12
-
13
- $ bin/rubocop -a
14
-
15
- ## Tests
16
-
17
- Prior to submitting your PR, please run the test suite:
18
-
19
- $ bin/rspec
20
-
21
- If you are unable to run the entire test suite, please run the unit test suite and at least the integration specs related to the command or domain of Bundler that your code changes relate to.
22
-
23
- Ex. For a pull request that changes something with `bundle update`, you might run:
24
-
25
- $ bin/rspec spec/bundler
26
- $ bin/rspec spec/commands/update_spec.rb
27
-
28
- ## Commit messages
29
-
30
- Please ensure that the commit messages included in the pull request __do not__ have the following:
31
- - `@tag` GitHub user or team references (ex. `@indirect` or `@bundler/core`)
32
- - `#id` references to issues or pull requests (ex. `#43` or `bundler/bundler-site#12`)
33
-
34
- If you want to use these mechanisms, please instead include them in the pull request description. This prevents multiple notifications or references being created on commit rebases or pull request/branch force pushes.
35
-
36
- Additionally, do not use `[ci skip]` or `[skip ci]` mechanisms in your pull request titles/descriptions or commit messages. Every potential commit and pull request should run through Bundler's CI system. This applies to all changes/commits (ex. even a change to just documentation or the removal of a comment).
37
-
38
- ## CHANGELOG.md
39
-
40
- Don't forget to add your changes into the CHANGELOG! If you're submitting documentation, note the changes under the "Documentation" heading.