bundler-maglev- 1.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. data/.gitignore +22 -0
  2. data/.travis.yml +32 -0
  3. data/CHANGELOG.md +805 -0
  4. data/ISSUES.md +62 -0
  5. data/LICENSE +23 -0
  6. data/README.md +29 -0
  7. data/Rakefile +212 -0
  8. data/UPGRADING.md +103 -0
  9. data/bin/bundle +22 -0
  10. data/bundler.gemspec +30 -0
  11. data/lib/bundler.rb +286 -0
  12. data/lib/bundler/capistrano.rb +11 -0
  13. data/lib/bundler/cli.rb +520 -0
  14. data/lib/bundler/definition.rb +438 -0
  15. data/lib/bundler/dependency.rb +134 -0
  16. data/lib/bundler/deployment.rb +58 -0
  17. data/lib/bundler/dsl.rb +257 -0
  18. data/lib/bundler/environment.rb +47 -0
  19. data/lib/bundler/gem_helper.rb +151 -0
  20. data/lib/bundler/gem_installer.rb +9 -0
  21. data/lib/bundler/gem_tasks.rb +2 -0
  22. data/lib/bundler/graph.rb +130 -0
  23. data/lib/bundler/index.rb +138 -0
  24. data/lib/bundler/installer.rb +97 -0
  25. data/lib/bundler/lazy_specification.rb +74 -0
  26. data/lib/bundler/lockfile_parser.rb +108 -0
  27. data/lib/bundler/remote_specification.rb +59 -0
  28. data/lib/bundler/resolver.rb +464 -0
  29. data/lib/bundler/rubygems_ext.rb +237 -0
  30. data/lib/bundler/rubygems_integration.rb +349 -0
  31. data/lib/bundler/runtime.rb +152 -0
  32. data/lib/bundler/settings.rb +115 -0
  33. data/lib/bundler/setup.rb +23 -0
  34. data/lib/bundler/shared_helpers.rb +71 -0
  35. data/lib/bundler/source.rb +708 -0
  36. data/lib/bundler/spec_set.rb +135 -0
  37. data/lib/bundler/templates/Executable +16 -0
  38. data/lib/bundler/templates/Gemfile +4 -0
  39. data/lib/bundler/templates/newgem/Gemfile.tt +4 -0
  40. data/lib/bundler/templates/newgem/Rakefile.tt +1 -0
  41. data/lib/bundler/templates/newgem/bin/newgem.tt +3 -0
  42. data/lib/bundler/templates/newgem/gitignore.tt +4 -0
  43. data/lib/bundler/templates/newgem/lib/newgem.rb.tt +9 -0
  44. data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +7 -0
  45. data/lib/bundler/templates/newgem/newgem.gemspec.tt +24 -0
  46. data/lib/bundler/ui.rb +73 -0
  47. data/lib/bundler/vendor/thor.rb +358 -0
  48. data/lib/bundler/vendor/thor/actions.rb +314 -0
  49. data/lib/bundler/vendor/thor/actions/create_file.rb +105 -0
  50. data/lib/bundler/vendor/thor/actions/create_link.rb +57 -0
  51. data/lib/bundler/vendor/thor/actions/directory.rb +93 -0
  52. data/lib/bundler/vendor/thor/actions/empty_directory.rb +134 -0
  53. data/lib/bundler/vendor/thor/actions/file_manipulation.rb +270 -0
  54. data/lib/bundler/vendor/thor/actions/inject_into_file.rb +109 -0
  55. data/lib/bundler/vendor/thor/base.rb +576 -0
  56. data/lib/bundler/vendor/thor/core_ext/file_binary_read.rb +9 -0
  57. data/lib/bundler/vendor/thor/core_ext/hash_with_indifferent_access.rb +75 -0
  58. data/lib/bundler/vendor/thor/core_ext/ordered_hash.rb +100 -0
  59. data/lib/bundler/vendor/thor/error.rb +30 -0
  60. data/lib/bundler/vendor/thor/group.rb +273 -0
  61. data/lib/bundler/vendor/thor/invocation.rb +168 -0
  62. data/lib/bundler/vendor/thor/parser.rb +4 -0
  63. data/lib/bundler/vendor/thor/parser/argument.rb +67 -0
  64. data/lib/bundler/vendor/thor/parser/arguments.rb +161 -0
  65. data/lib/bundler/vendor/thor/parser/option.rb +120 -0
  66. data/lib/bundler/vendor/thor/parser/options.rb +175 -0
  67. data/lib/bundler/vendor/thor/rake_compat.rb +66 -0
  68. data/lib/bundler/vendor/thor/runner.rb +309 -0
  69. data/lib/bundler/vendor/thor/shell.rb +88 -0
  70. data/lib/bundler/vendor/thor/shell/basic.rb +302 -0
  71. data/lib/bundler/vendor/thor/shell/color.rb +108 -0
  72. data/lib/bundler/vendor/thor/shell/html.rb +121 -0
  73. data/lib/bundler/vendor/thor/task.rb +113 -0
  74. data/lib/bundler/vendor/thor/util.rb +229 -0
  75. data/lib/bundler/vendor/thor/version.rb +3 -0
  76. data/lib/bundler/vendored_thor.rb +7 -0
  77. data/lib/bundler/version.rb +6 -0
  78. data/lib/bundler/vlad.rb +11 -0
  79. data/man/bundle-config.ronn +90 -0
  80. data/man/bundle-exec.ronn +111 -0
  81. data/man/bundle-install.ronn +317 -0
  82. data/man/bundle-package.ronn +59 -0
  83. data/man/bundle-update.ronn +176 -0
  84. data/man/bundle.ronn +80 -0
  85. data/man/gemfile.5.ronn +284 -0
  86. data/man/index.txt +6 -0
  87. data/spec/bundler/gem_helper_spec.rb +143 -0
  88. data/spec/cache/gems_spec.rb +230 -0
  89. data/spec/cache/git_spec.rb +12 -0
  90. data/spec/cache/path_spec.rb +27 -0
  91. data/spec/cache/platform_spec.rb +57 -0
  92. data/spec/install/deploy_spec.rb +197 -0
  93. data/spec/install/deprecated_spec.rb +37 -0
  94. data/spec/install/gems/c_ext_spec.rb +48 -0
  95. data/spec/install/gems/env_spec.rb +107 -0
  96. data/spec/install/gems/flex_spec.rb +313 -0
  97. data/spec/install/gems/groups_spec.rb +259 -0
  98. data/spec/install/gems/packed_spec.rb +84 -0
  99. data/spec/install/gems/platform_spec.rb +192 -0
  100. data/spec/install/gems/resolving_spec.rb +72 -0
  101. data/spec/install/gems/simple_case_spec.rb +770 -0
  102. data/spec/install/gems/sudo_spec.rb +74 -0
  103. data/spec/install/gems/win32_spec.rb +26 -0
  104. data/spec/install/gemspec_spec.rb +125 -0
  105. data/spec/install/git_spec.rb +570 -0
  106. data/spec/install/invalid_spec.rb +35 -0
  107. data/spec/install/path_spec.rb +405 -0
  108. data/spec/install/upgrade_spec.rb +26 -0
  109. data/spec/lock/git_spec.rb +35 -0
  110. data/spec/lock/lockfile_spec.rb +739 -0
  111. data/spec/other/check_spec.rb +221 -0
  112. data/spec/other/config_spec.rb +40 -0
  113. data/spec/other/console_spec.rb +54 -0
  114. data/spec/other/exec_spec.rb +248 -0
  115. data/spec/other/ext_spec.rb +37 -0
  116. data/spec/other/help_spec.rb +39 -0
  117. data/spec/other/init_spec.rb +40 -0
  118. data/spec/other/newgem_spec.rb +46 -0
  119. data/spec/other/open_spec.rb +35 -0
  120. data/spec/other/show_spec.rb +82 -0
  121. data/spec/quality_spec.rb +62 -0
  122. data/spec/resolver/basic_spec.rb +20 -0
  123. data/spec/resolver/platform_spec.rb +82 -0
  124. data/spec/runtime/executable_spec.rb +110 -0
  125. data/spec/runtime/load_spec.rb +107 -0
  126. data/spec/runtime/platform_spec.rb +90 -0
  127. data/spec/runtime/require_spec.rb +231 -0
  128. data/spec/runtime/setup_spec.rb +730 -0
  129. data/spec/runtime/with_clean_env_spec.rb +15 -0
  130. data/spec/spec_helper.rb +92 -0
  131. data/spec/support/builders.rb +597 -0
  132. data/spec/support/helpers.rb +239 -0
  133. data/spec/support/indexes.rb +112 -0
  134. data/spec/support/matchers.rb +77 -0
  135. data/spec/support/path.rb +71 -0
  136. data/spec/support/platforms.rb +53 -0
  137. data/spec/support/ruby_ext.rb +20 -0
  138. data/spec/support/rubygems_ext.rb +37 -0
  139. data/spec/support/rubygems_hax/platform.rb +11 -0
  140. data/spec/support/sudo.rb +21 -0
  141. data/spec/update/gems_spec.rb +122 -0
  142. data/spec/update/git_spec.rb +196 -0
  143. data/spec/update/source_spec.rb +51 -0
  144. metadata +296 -0
@@ -0,0 +1,51 @@
1
+ require "spec_helper"
2
+
3
+ describe "bundle update" do
4
+ describe "git sources" do
5
+ before :each do
6
+ build_repo2
7
+ @git = build_git "foo", :path => lib_path("foo") do |s|
8
+ s.executables = "foobar"
9
+ end
10
+
11
+ install_gemfile <<-G
12
+ source "file://#{gem_repo2}"
13
+ git "#{lib_path('foo')}" do
14
+ gem 'foo'
15
+ end
16
+ gem 'rack'
17
+ G
18
+ end
19
+
20
+ it "updates the source" do
21
+ update_git "foo", :path => @git.path
22
+
23
+ bundle "update --source foo"
24
+
25
+ in_app_root do
26
+ run <<-RUBY
27
+ require 'foo'
28
+ puts "WIN" if defined?(FOO_PREV_REF)
29
+ RUBY
30
+
31
+ out.should == "WIN"
32
+ end
33
+ end
34
+
35
+ it "unlocks gems that were originally pulled in by the source" do
36
+ update_git "foo", "2.0", :path => @git.path
37
+
38
+ bundle "update --source foo"
39
+ should_be_installed "foo 2.0"
40
+ end
41
+
42
+ it "leaves all other gems frozen" do
43
+ update_repo2
44
+ update_git "foo", :path => @git.path
45
+
46
+ bundle "update --source foo"
47
+ should_be_installed "rack 1.0"
48
+ end
49
+ end
50
+
51
+ end
metadata ADDED
@@ -0,0 +1,296 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bundler-maglev-
3
+ version: !ruby/object:Gem::Version
4
+ hash: 61
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 21
10
+ version: 1.0.21
11
+ platform: ruby
12
+ authors:
13
+ - "Andr\xC3\xA9 Arko"
14
+ - Terence Lee
15
+ - Carl Lerche
16
+ - Yehuda Katz
17
+ autorequire:
18
+ bindir: bin
19
+ cert_chain: []
20
+
21
+ date: 2011-10-14 00:00:00 Z
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ name: ronn
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ hash: 3
32
+ segments:
33
+ - 0
34
+ version: "0"
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: rspec
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :development
50
+ version_requirements: *id002
51
+ description: Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably
52
+ email:
53
+ - andre@arko.net
54
+ executables:
55
+ - bundle
56
+ extensions: []
57
+
58
+ extra_rdoc_files: []
59
+
60
+ files:
61
+ - .gitignore
62
+ - .travis.yml
63
+ - CHANGELOG.md
64
+ - ISSUES.md
65
+ - LICENSE
66
+ - README.md
67
+ - Rakefile
68
+ - UPGRADING.md
69
+ - bin/bundle
70
+ - bundler.gemspec
71
+ - lib/bundler.rb
72
+ - lib/bundler/capistrano.rb
73
+ - lib/bundler/cli.rb
74
+ - lib/bundler/definition.rb
75
+ - lib/bundler/dependency.rb
76
+ - lib/bundler/deployment.rb
77
+ - lib/bundler/dsl.rb
78
+ - lib/bundler/environment.rb
79
+ - lib/bundler/gem_helper.rb
80
+ - lib/bundler/gem_installer.rb
81
+ - lib/bundler/gem_tasks.rb
82
+ - lib/bundler/graph.rb
83
+ - lib/bundler/index.rb
84
+ - lib/bundler/installer.rb
85
+ - lib/bundler/lazy_specification.rb
86
+ - lib/bundler/lockfile_parser.rb
87
+ - lib/bundler/remote_specification.rb
88
+ - lib/bundler/resolver.rb
89
+ - lib/bundler/rubygems_ext.rb
90
+ - lib/bundler/rubygems_integration.rb
91
+ - lib/bundler/runtime.rb
92
+ - lib/bundler/settings.rb
93
+ - lib/bundler/setup.rb
94
+ - lib/bundler/shared_helpers.rb
95
+ - lib/bundler/source.rb
96
+ - lib/bundler/spec_set.rb
97
+ - lib/bundler/templates/Executable
98
+ - lib/bundler/templates/Gemfile
99
+ - lib/bundler/templates/newgem/Gemfile.tt
100
+ - lib/bundler/templates/newgem/Rakefile.tt
101
+ - lib/bundler/templates/newgem/bin/newgem.tt
102
+ - lib/bundler/templates/newgem/gitignore.tt
103
+ - lib/bundler/templates/newgem/lib/newgem.rb.tt
104
+ - lib/bundler/templates/newgem/lib/newgem/version.rb.tt
105
+ - lib/bundler/templates/newgem/newgem.gemspec.tt
106
+ - lib/bundler/ui.rb
107
+ - lib/bundler/vendor/thor.rb
108
+ - lib/bundler/vendor/thor/actions.rb
109
+ - lib/bundler/vendor/thor/actions/create_file.rb
110
+ - lib/bundler/vendor/thor/actions/create_link.rb
111
+ - lib/bundler/vendor/thor/actions/directory.rb
112
+ - lib/bundler/vendor/thor/actions/empty_directory.rb
113
+ - lib/bundler/vendor/thor/actions/file_manipulation.rb
114
+ - lib/bundler/vendor/thor/actions/inject_into_file.rb
115
+ - lib/bundler/vendor/thor/base.rb
116
+ - lib/bundler/vendor/thor/core_ext/file_binary_read.rb
117
+ - lib/bundler/vendor/thor/core_ext/hash_with_indifferent_access.rb
118
+ - lib/bundler/vendor/thor/core_ext/ordered_hash.rb
119
+ - lib/bundler/vendor/thor/error.rb
120
+ - lib/bundler/vendor/thor/group.rb
121
+ - lib/bundler/vendor/thor/invocation.rb
122
+ - lib/bundler/vendor/thor/parser.rb
123
+ - lib/bundler/vendor/thor/parser/argument.rb
124
+ - lib/bundler/vendor/thor/parser/arguments.rb
125
+ - lib/bundler/vendor/thor/parser/option.rb
126
+ - lib/bundler/vendor/thor/parser/options.rb
127
+ - lib/bundler/vendor/thor/rake_compat.rb
128
+ - lib/bundler/vendor/thor/runner.rb
129
+ - lib/bundler/vendor/thor/shell.rb
130
+ - lib/bundler/vendor/thor/shell/basic.rb
131
+ - lib/bundler/vendor/thor/shell/color.rb
132
+ - lib/bundler/vendor/thor/shell/html.rb
133
+ - lib/bundler/vendor/thor/task.rb
134
+ - lib/bundler/vendor/thor/util.rb
135
+ - lib/bundler/vendor/thor/version.rb
136
+ - lib/bundler/vendored_thor.rb
137
+ - lib/bundler/version.rb
138
+ - lib/bundler/vlad.rb
139
+ - man/bundle-config.ronn
140
+ - man/bundle-exec.ronn
141
+ - man/bundle-install.ronn
142
+ - man/bundle-package.ronn
143
+ - man/bundle-update.ronn
144
+ - man/bundle.ronn
145
+ - man/gemfile.5.ronn
146
+ - man/index.txt
147
+ - spec/bundler/gem_helper_spec.rb
148
+ - spec/cache/gems_spec.rb
149
+ - spec/cache/git_spec.rb
150
+ - spec/cache/path_spec.rb
151
+ - spec/cache/platform_spec.rb
152
+ - spec/install/deploy_spec.rb
153
+ - spec/install/deprecated_spec.rb
154
+ - spec/install/gems/c_ext_spec.rb
155
+ - spec/install/gems/env_spec.rb
156
+ - spec/install/gems/flex_spec.rb
157
+ - spec/install/gems/groups_spec.rb
158
+ - spec/install/gems/packed_spec.rb
159
+ - spec/install/gems/platform_spec.rb
160
+ - spec/install/gems/resolving_spec.rb
161
+ - spec/install/gems/simple_case_spec.rb
162
+ - spec/install/gems/sudo_spec.rb
163
+ - spec/install/gems/win32_spec.rb
164
+ - spec/install/gemspec_spec.rb
165
+ - spec/install/git_spec.rb
166
+ - spec/install/invalid_spec.rb
167
+ - spec/install/path_spec.rb
168
+ - spec/install/upgrade_spec.rb
169
+ - spec/lock/git_spec.rb
170
+ - spec/lock/lockfile_spec.rb
171
+ - spec/other/check_spec.rb
172
+ - spec/other/config_spec.rb
173
+ - spec/other/console_spec.rb
174
+ - spec/other/exec_spec.rb
175
+ - spec/other/ext_spec.rb
176
+ - spec/other/help_spec.rb
177
+ - spec/other/init_spec.rb
178
+ - spec/other/newgem_spec.rb
179
+ - spec/other/open_spec.rb
180
+ - spec/other/show_spec.rb
181
+ - spec/quality_spec.rb
182
+ - spec/resolver/basic_spec.rb
183
+ - spec/resolver/platform_spec.rb
184
+ - spec/runtime/executable_spec.rb
185
+ - spec/runtime/load_spec.rb
186
+ - spec/runtime/platform_spec.rb
187
+ - spec/runtime/require_spec.rb
188
+ - spec/runtime/setup_spec.rb
189
+ - spec/runtime/with_clean_env_spec.rb
190
+ - spec/spec_helper.rb
191
+ - spec/support/builders.rb
192
+ - spec/support/helpers.rb
193
+ - spec/support/indexes.rb
194
+ - spec/support/matchers.rb
195
+ - spec/support/path.rb
196
+ - spec/support/platforms.rb
197
+ - spec/support/ruby_ext.rb
198
+ - spec/support/rubygems_ext.rb
199
+ - spec/support/rubygems_hax/platform.rb
200
+ - spec/support/sudo.rb
201
+ - spec/update/gems_spec.rb
202
+ - spec/update/git_spec.rb
203
+ - spec/update/source_spec.rb
204
+ homepage: http://gembundler.com
205
+ licenses: []
206
+
207
+ post_install_message:
208
+ rdoc_options: []
209
+
210
+ require_paths:
211
+ - lib
212
+ required_ruby_version: !ruby/object:Gem::Requirement
213
+ none: false
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ hash: 3
218
+ segments:
219
+ - 0
220
+ version: "0"
221
+ required_rubygems_version: !ruby/object:Gem::Requirement
222
+ none: false
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ hash: 23
227
+ segments:
228
+ - 1
229
+ - 3
230
+ - 6
231
+ version: 1.3.6
232
+ requirements: []
233
+
234
+ rubyforge_project: bundler
235
+ rubygems_version: 1.8.10
236
+ signing_key:
237
+ specification_version: 3
238
+ summary: The best way to manage your application's dependencies
239
+ test_files:
240
+ - spec/bundler/gem_helper_spec.rb
241
+ - spec/cache/gems_spec.rb
242
+ - spec/cache/git_spec.rb
243
+ - spec/cache/path_spec.rb
244
+ - spec/cache/platform_spec.rb
245
+ - spec/install/deploy_spec.rb
246
+ - spec/install/deprecated_spec.rb
247
+ - spec/install/gems/c_ext_spec.rb
248
+ - spec/install/gems/env_spec.rb
249
+ - spec/install/gems/flex_spec.rb
250
+ - spec/install/gems/groups_spec.rb
251
+ - spec/install/gems/packed_spec.rb
252
+ - spec/install/gems/platform_spec.rb
253
+ - spec/install/gems/resolving_spec.rb
254
+ - spec/install/gems/simple_case_spec.rb
255
+ - spec/install/gems/sudo_spec.rb
256
+ - spec/install/gems/win32_spec.rb
257
+ - spec/install/gemspec_spec.rb
258
+ - spec/install/git_spec.rb
259
+ - spec/install/invalid_spec.rb
260
+ - spec/install/path_spec.rb
261
+ - spec/install/upgrade_spec.rb
262
+ - spec/lock/git_spec.rb
263
+ - spec/lock/lockfile_spec.rb
264
+ - spec/other/check_spec.rb
265
+ - spec/other/config_spec.rb
266
+ - spec/other/console_spec.rb
267
+ - spec/other/exec_spec.rb
268
+ - spec/other/ext_spec.rb
269
+ - spec/other/help_spec.rb
270
+ - spec/other/init_spec.rb
271
+ - spec/other/newgem_spec.rb
272
+ - spec/other/open_spec.rb
273
+ - spec/other/show_spec.rb
274
+ - spec/quality_spec.rb
275
+ - spec/resolver/basic_spec.rb
276
+ - spec/resolver/platform_spec.rb
277
+ - spec/runtime/executable_spec.rb
278
+ - spec/runtime/load_spec.rb
279
+ - spec/runtime/platform_spec.rb
280
+ - spec/runtime/require_spec.rb
281
+ - spec/runtime/setup_spec.rb
282
+ - spec/runtime/with_clean_env_spec.rb
283
+ - spec/spec_helper.rb
284
+ - spec/support/builders.rb
285
+ - spec/support/helpers.rb
286
+ - spec/support/indexes.rb
287
+ - spec/support/matchers.rb
288
+ - spec/support/path.rb
289
+ - spec/support/platforms.rb
290
+ - spec/support/ruby_ext.rb
291
+ - spec/support/rubygems_ext.rb
292
+ - spec/support/rubygems_hax/platform.rb
293
+ - spec/support/sudo.rb
294
+ - spec/update/gems_spec.rb
295
+ - spec/update/git_spec.rb
296
+ - spec/update/source_spec.rb