bundler_package_git 1.1.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. data/.gitignore +22 -0
  2. data/.rvmrc +1 -0
  3. data/CHANGELOG.md +659 -0
  4. data/ISSUES.md +47 -0
  5. data/LICENSE +23 -0
  6. data/README.md +29 -0
  7. data/Rakefile +167 -0
  8. data/UPGRADING.md +103 -0
  9. data/bin/bundle +22 -0
  10. data/bundler.gemspec +30 -0
  11. data/lib/bundler.rb +283 -0
  12. data/lib/bundler/capistrano.rb +11 -0
  13. data/lib/bundler/cli.rb +490 -0
  14. data/lib/bundler/definition.rb +429 -0
  15. data/lib/bundler/dependency.rb +130 -0
  16. data/lib/bundler/deployment.rb +53 -0
  17. data/lib/bundler/dsl.rb +243 -0
  18. data/lib/bundler/environment.rb +47 -0
  19. data/lib/bundler/fetcher.rb +101 -0
  20. data/lib/bundler/gem_helper.rb +146 -0
  21. data/lib/bundler/graph.rb +130 -0
  22. data/lib/bundler/index.rb +131 -0
  23. data/lib/bundler/installer.rb +117 -0
  24. data/lib/bundler/lazy_specification.rb +71 -0
  25. data/lib/bundler/lockfile_parser.rb +108 -0
  26. data/lib/bundler/remote_specification.rb +57 -0
  27. data/lib/bundler/resolver.rb +470 -0
  28. data/lib/bundler/rubygems_ext.rb +226 -0
  29. data/lib/bundler/runtime.rb +201 -0
  30. data/lib/bundler/settings.rb +117 -0
  31. data/lib/bundler/setup.rb +16 -0
  32. data/lib/bundler/shared_helpers.rb +167 -0
  33. data/lib/bundler/source.rb +675 -0
  34. data/lib/bundler/spec_set.rb +134 -0
  35. data/lib/bundler/templates/Executable +16 -0
  36. data/lib/bundler/templates/Gemfile +4 -0
  37. data/lib/bundler/templates/newgem/Gemfile.tt +4 -0
  38. data/lib/bundler/templates/newgem/Rakefile.tt +2 -0
  39. data/lib/bundler/templates/newgem/bin/newgem.tt +3 -0
  40. data/lib/bundler/templates/newgem/gitignore.tt +4 -0
  41. data/lib/bundler/templates/newgem/lib/newgem.rb.tt +7 -0
  42. data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +7 -0
  43. data/lib/bundler/templates/newgem/newgem.gemspec.tt +21 -0
  44. data/lib/bundler/ui.rb +73 -0
  45. data/lib/bundler/vendor/net/http/faster.rb +27 -0
  46. data/lib/bundler/vendor/net/http/persistent.rb +464 -0
  47. data/lib/bundler/vendor/thor.rb +319 -0
  48. data/lib/bundler/vendor/thor/actions.rb +297 -0
  49. data/lib/bundler/vendor/thor/actions/create_file.rb +105 -0
  50. data/lib/bundler/vendor/thor/actions/directory.rb +93 -0
  51. data/lib/bundler/vendor/thor/actions/empty_directory.rb +134 -0
  52. data/lib/bundler/vendor/thor/actions/file_manipulation.rb +229 -0
  53. data/lib/bundler/vendor/thor/actions/inject_into_file.rb +104 -0
  54. data/lib/bundler/vendor/thor/base.rb +556 -0
  55. data/lib/bundler/vendor/thor/core_ext/file_binary_read.rb +9 -0
  56. data/lib/bundler/vendor/thor/core_ext/hash_with_indifferent_access.rb +75 -0
  57. data/lib/bundler/vendor/thor/core_ext/ordered_hash.rb +100 -0
  58. data/lib/bundler/vendor/thor/error.rb +30 -0
  59. data/lib/bundler/vendor/thor/invocation.rb +168 -0
  60. data/lib/bundler/vendor/thor/parser.rb +4 -0
  61. data/lib/bundler/vendor/thor/parser/argument.rb +67 -0
  62. data/lib/bundler/vendor/thor/parser/arguments.rb +161 -0
  63. data/lib/bundler/vendor/thor/parser/option.rb +120 -0
  64. data/lib/bundler/vendor/thor/parser/options.rb +174 -0
  65. data/lib/bundler/vendor/thor/shell.rb +88 -0
  66. data/lib/bundler/vendor/thor/shell/basic.rb +275 -0
  67. data/lib/bundler/vendor/thor/shell/color.rb +108 -0
  68. data/lib/bundler/vendor/thor/shell/html.rb +121 -0
  69. data/lib/bundler/vendor/thor/task.rb +114 -0
  70. data/lib/bundler/vendor/thor/util.rb +229 -0
  71. data/lib/bundler/vendor/thor/version.rb +3 -0
  72. data/lib/bundler/version.rb +6 -0
  73. data/lib/bundler/vlad.rb +9 -0
  74. data/man/bundle-config.ronn +90 -0
  75. data/man/bundle-exec.ronn +111 -0
  76. data/man/bundle-install.ronn +314 -0
  77. data/man/bundle-package.ronn +59 -0
  78. data/man/bundle-update.ronn +176 -0
  79. data/man/bundle.ronn +80 -0
  80. data/man/gemfile.5.ronn +279 -0
  81. data/man/index.txt +6 -0
  82. data/spec/cache/gems_spec.rb +219 -0
  83. data/spec/cache/git_spec.rb +9 -0
  84. data/spec/cache/path_spec.rb +27 -0
  85. data/spec/cache/platform_spec.rb +57 -0
  86. data/spec/install/deploy_spec.rb +197 -0
  87. data/spec/install/deprecated_spec.rb +37 -0
  88. data/spec/install/gems/c_ext_spec.rb +48 -0
  89. data/spec/install/gems/dependency_api_spec.rb +85 -0
  90. data/spec/install/gems/env_spec.rb +107 -0
  91. data/spec/install/gems/flex_spec.rb +313 -0
  92. data/spec/install/gems/groups_spec.rb +245 -0
  93. data/spec/install/gems/packed_spec.rb +84 -0
  94. data/spec/install/gems/platform_spec.rb +208 -0
  95. data/spec/install/gems/resolving_spec.rb +72 -0
  96. data/spec/install/gems/simple_case_spec.rb +715 -0
  97. data/spec/install/gems/standalone_spec.rb +162 -0
  98. data/spec/install/gems/sudo_spec.rb +73 -0
  99. data/spec/install/gems/win32_spec.rb +26 -0
  100. data/spec/install/gemspec_spec.rb +108 -0
  101. data/spec/install/git_spec.rb +571 -0
  102. data/spec/install/invalid_spec.rb +17 -0
  103. data/spec/install/path_spec.rb +353 -0
  104. data/spec/install/upgrade_spec.rb +26 -0
  105. data/spec/lock/git_spec.rb +35 -0
  106. data/spec/lock/lockfile_spec.rb +683 -0
  107. data/spec/other/check_spec.rb +221 -0
  108. data/spec/other/clean_spec.rb +202 -0
  109. data/spec/other/config_spec.rb +40 -0
  110. data/spec/other/console_spec.rb +54 -0
  111. data/spec/other/exec_spec.rb +241 -0
  112. data/spec/other/ext_spec.rb +16 -0
  113. data/spec/other/gem_helper_spec.rb +128 -0
  114. data/spec/other/help_spec.rb +38 -0
  115. data/spec/other/init_spec.rb +40 -0
  116. data/spec/other/newgem_spec.rb +24 -0
  117. data/spec/other/open_spec.rb +35 -0
  118. data/spec/other/show_spec.rb +82 -0
  119. data/spec/pack/gems_spec.rb +54 -0
  120. data/spec/quality_spec.rb +58 -0
  121. data/spec/resolver/basic_spec.rb +20 -0
  122. data/spec/resolver/platform_spec.rb +82 -0
  123. data/spec/runtime/executable_spec.rb +110 -0
  124. data/spec/runtime/load_spec.rb +107 -0
  125. data/spec/runtime/platform_spec.rb +90 -0
  126. data/spec/runtime/require_spec.rb +231 -0
  127. data/spec/runtime/setup_spec.rb +688 -0
  128. data/spec/runtime/with_clean_env_spec.rb +15 -0
  129. data/spec/spec_helper.rb +85 -0
  130. data/spec/support/artifice/endpoint.rb +50 -0
  131. data/spec/support/artifice/endpoint_fallback.rb +22 -0
  132. data/spec/support/artifice/endpoint_marshal_fail.rb +11 -0
  133. data/spec/support/artifice/endpoint_redirect.rb +11 -0
  134. data/spec/support/builders.rb +574 -0
  135. data/spec/support/fakeweb/rack-1.0.0.marshal +2 -0
  136. data/spec/support/fakeweb/windows.rb +23 -0
  137. data/spec/support/helpers.rb +246 -0
  138. data/spec/support/indexes.rb +112 -0
  139. data/spec/support/matchers.rb +89 -0
  140. data/spec/support/path.rb +73 -0
  141. data/spec/support/platforms.rb +53 -0
  142. data/spec/support/ruby_ext.rb +20 -0
  143. data/spec/support/rubygems_ext.rb +35 -0
  144. data/spec/support/rubygems_hax/platform.rb +11 -0
  145. data/spec/support/sudo.rb +21 -0
  146. data/spec/update/gems_spec.rb +121 -0
  147. data/spec/update/git_spec.rb +196 -0
  148. data/spec/update/source_spec.rb +51 -0
  149. metadata +294 -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,294 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bundler_package_git
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: 4
5
+ version: 1.1.pre.1
6
+ platform: ruby
7
+ authors:
8
+ - Carl Lerche
9
+ - Yehuda Katz
10
+ - "Andr\xC3\xA9 Arko"
11
+ - Terence Lee
12
+ autorequire:
13
+ bindir: bin
14
+ cert_chain: []
15
+
16
+ date: 2011-03-30 00:00:00 +01:00
17
+ default_executable: bundle
18
+ dependencies:
19
+ - !ruby/object:Gem::Dependency
20
+ name: ronn
21
+ prerelease: false
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: "0"
28
+ type: :development
29
+ version_requirements: *id001
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec
32
+ prerelease: false
33
+ requirement: &id002 !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - "="
37
+ - !ruby/object:Gem::Version
38
+ version: 2.0.0.rc
39
+ type: :development
40
+ version_requirements: *id002
41
+ description: "Bundler with support for packaging git sources - See https://github.com/carlhuda/bundler/issues/labels/git#issue/67 "
42
+ email:
43
+ - andrew.nesbitt@forward.co.uk
44
+ executables:
45
+ - bundle
46
+ extensions: []
47
+
48
+ extra_rdoc_files: []
49
+
50
+ files:
51
+ - .gitignore
52
+ - .rvmrc
53
+ - CHANGELOG.md
54
+ - ISSUES.md
55
+ - LICENSE
56
+ - README.md
57
+ - Rakefile
58
+ - UPGRADING.md
59
+ - bin/bundle
60
+ - bundler.gemspec
61
+ - lib/bundler.rb
62
+ - lib/bundler/capistrano.rb
63
+ - lib/bundler/cli.rb
64
+ - lib/bundler/definition.rb
65
+ - lib/bundler/dependency.rb
66
+ - lib/bundler/deployment.rb
67
+ - lib/bundler/dsl.rb
68
+ - lib/bundler/environment.rb
69
+ - lib/bundler/fetcher.rb
70
+ - lib/bundler/gem_helper.rb
71
+ - lib/bundler/graph.rb
72
+ - lib/bundler/index.rb
73
+ - lib/bundler/installer.rb
74
+ - lib/bundler/lazy_specification.rb
75
+ - lib/bundler/lockfile_parser.rb
76
+ - lib/bundler/remote_specification.rb
77
+ - lib/bundler/resolver.rb
78
+ - lib/bundler/rubygems_ext.rb
79
+ - lib/bundler/runtime.rb
80
+ - lib/bundler/settings.rb
81
+ - lib/bundler/setup.rb
82
+ - lib/bundler/shared_helpers.rb
83
+ - lib/bundler/source.rb
84
+ - lib/bundler/spec_set.rb
85
+ - lib/bundler/templates/Executable
86
+ - lib/bundler/templates/Gemfile
87
+ - lib/bundler/templates/newgem/Gemfile.tt
88
+ - lib/bundler/templates/newgem/Rakefile.tt
89
+ - lib/bundler/templates/newgem/bin/newgem.tt
90
+ - lib/bundler/templates/newgem/gitignore.tt
91
+ - lib/bundler/templates/newgem/lib/newgem.rb.tt
92
+ - lib/bundler/templates/newgem/lib/newgem/version.rb.tt
93
+ - lib/bundler/templates/newgem/newgem.gemspec.tt
94
+ - lib/bundler/ui.rb
95
+ - lib/bundler/vendor/net/http/faster.rb
96
+ - lib/bundler/vendor/net/http/persistent.rb
97
+ - lib/bundler/vendor/thor.rb
98
+ - lib/bundler/vendor/thor/actions.rb
99
+ - lib/bundler/vendor/thor/actions/create_file.rb
100
+ - lib/bundler/vendor/thor/actions/directory.rb
101
+ - lib/bundler/vendor/thor/actions/empty_directory.rb
102
+ - lib/bundler/vendor/thor/actions/file_manipulation.rb
103
+ - lib/bundler/vendor/thor/actions/inject_into_file.rb
104
+ - lib/bundler/vendor/thor/base.rb
105
+ - lib/bundler/vendor/thor/core_ext/file_binary_read.rb
106
+ - lib/bundler/vendor/thor/core_ext/hash_with_indifferent_access.rb
107
+ - lib/bundler/vendor/thor/core_ext/ordered_hash.rb
108
+ - lib/bundler/vendor/thor/error.rb
109
+ - lib/bundler/vendor/thor/invocation.rb
110
+ - lib/bundler/vendor/thor/parser.rb
111
+ - lib/bundler/vendor/thor/parser/argument.rb
112
+ - lib/bundler/vendor/thor/parser/arguments.rb
113
+ - lib/bundler/vendor/thor/parser/option.rb
114
+ - lib/bundler/vendor/thor/parser/options.rb
115
+ - lib/bundler/vendor/thor/shell.rb
116
+ - lib/bundler/vendor/thor/shell/basic.rb
117
+ - lib/bundler/vendor/thor/shell/color.rb
118
+ - lib/bundler/vendor/thor/shell/html.rb
119
+ - lib/bundler/vendor/thor/task.rb
120
+ - lib/bundler/vendor/thor/util.rb
121
+ - lib/bundler/vendor/thor/version.rb
122
+ - lib/bundler/version.rb
123
+ - lib/bundler/vlad.rb
124
+ - man/bundle-config.ronn
125
+ - man/bundle-exec.ronn
126
+ - man/bundle-install.ronn
127
+ - man/bundle-package.ronn
128
+ - man/bundle-update.ronn
129
+ - man/bundle.ronn
130
+ - man/gemfile.5.ronn
131
+ - man/index.txt
132
+ - spec/cache/gems_spec.rb
133
+ - spec/cache/git_spec.rb
134
+ - spec/cache/path_spec.rb
135
+ - spec/cache/platform_spec.rb
136
+ - spec/install/deploy_spec.rb
137
+ - spec/install/deprecated_spec.rb
138
+ - spec/install/gems/c_ext_spec.rb
139
+ - spec/install/gems/dependency_api_spec.rb
140
+ - spec/install/gems/env_spec.rb
141
+ - spec/install/gems/flex_spec.rb
142
+ - spec/install/gems/groups_spec.rb
143
+ - spec/install/gems/packed_spec.rb
144
+ - spec/install/gems/platform_spec.rb
145
+ - spec/install/gems/resolving_spec.rb
146
+ - spec/install/gems/simple_case_spec.rb
147
+ - spec/install/gems/standalone_spec.rb
148
+ - spec/install/gems/sudo_spec.rb
149
+ - spec/install/gems/win32_spec.rb
150
+ - spec/install/gemspec_spec.rb
151
+ - spec/install/git_spec.rb
152
+ - spec/install/invalid_spec.rb
153
+ - spec/install/path_spec.rb
154
+ - spec/install/upgrade_spec.rb
155
+ - spec/lock/git_spec.rb
156
+ - spec/lock/lockfile_spec.rb
157
+ - spec/other/check_spec.rb
158
+ - spec/other/clean_spec.rb
159
+ - spec/other/config_spec.rb
160
+ - spec/other/console_spec.rb
161
+ - spec/other/exec_spec.rb
162
+ - spec/other/ext_spec.rb
163
+ - spec/other/gem_helper_spec.rb
164
+ - spec/other/help_spec.rb
165
+ - spec/other/init_spec.rb
166
+ - spec/other/newgem_spec.rb
167
+ - spec/other/open_spec.rb
168
+ - spec/other/show_spec.rb
169
+ - spec/pack/gems_spec.rb
170
+ - spec/quality_spec.rb
171
+ - spec/resolver/basic_spec.rb
172
+ - spec/resolver/platform_spec.rb
173
+ - spec/runtime/executable_spec.rb
174
+ - spec/runtime/load_spec.rb
175
+ - spec/runtime/platform_spec.rb
176
+ - spec/runtime/require_spec.rb
177
+ - spec/runtime/setup_spec.rb
178
+ - spec/runtime/with_clean_env_spec.rb
179
+ - spec/spec_helper.rb
180
+ - spec/support/artifice/endpoint.rb
181
+ - spec/support/artifice/endpoint_fallback.rb
182
+ - spec/support/artifice/endpoint_marshal_fail.rb
183
+ - spec/support/artifice/endpoint_redirect.rb
184
+ - spec/support/builders.rb
185
+ - spec/support/fakeweb/rack-1.0.0.marshal
186
+ - spec/support/fakeweb/windows.rb
187
+ - spec/support/helpers.rb
188
+ - spec/support/indexes.rb
189
+ - spec/support/matchers.rb
190
+ - spec/support/path.rb
191
+ - spec/support/platforms.rb
192
+ - spec/support/ruby_ext.rb
193
+ - spec/support/rubygems_ext.rb
194
+ - spec/support/rubygems_hax/platform.rb
195
+ - spec/support/sudo.rb
196
+ - spec/update/gems_spec.rb
197
+ - spec/update/git_spec.rb
198
+ - spec/update/source_spec.rb
199
+ has_rdoc: true
200
+ homepage: http://gembundler.com
201
+ licenses: []
202
+
203
+ post_install_message:
204
+ rdoc_options: []
205
+
206
+ require_paths:
207
+ - lib
208
+ required_ruby_version: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: "0"
214
+ required_rubygems_version: !ruby/object:Gem::Requirement
215
+ none: false
216
+ requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ version: 1.3.6
220
+ requirements: []
221
+
222
+ rubyforge_project: bundler
223
+ rubygems_version: 1.6.2
224
+ signing_key:
225
+ specification_version: 3
226
+ summary: Bundler with support for packaging git sources
227
+ test_files:
228
+ - spec/cache/gems_spec.rb
229
+ - spec/cache/git_spec.rb
230
+ - spec/cache/path_spec.rb
231
+ - spec/cache/platform_spec.rb
232
+ - spec/install/deploy_spec.rb
233
+ - spec/install/deprecated_spec.rb
234
+ - spec/install/gems/c_ext_spec.rb
235
+ - spec/install/gems/dependency_api_spec.rb
236
+ - spec/install/gems/env_spec.rb
237
+ - spec/install/gems/flex_spec.rb
238
+ - spec/install/gems/groups_spec.rb
239
+ - spec/install/gems/packed_spec.rb
240
+ - spec/install/gems/platform_spec.rb
241
+ - spec/install/gems/resolving_spec.rb
242
+ - spec/install/gems/simple_case_spec.rb
243
+ - spec/install/gems/standalone_spec.rb
244
+ - spec/install/gems/sudo_spec.rb
245
+ - spec/install/gems/win32_spec.rb
246
+ - spec/install/gemspec_spec.rb
247
+ - spec/install/git_spec.rb
248
+ - spec/install/invalid_spec.rb
249
+ - spec/install/path_spec.rb
250
+ - spec/install/upgrade_spec.rb
251
+ - spec/lock/git_spec.rb
252
+ - spec/lock/lockfile_spec.rb
253
+ - spec/other/check_spec.rb
254
+ - spec/other/clean_spec.rb
255
+ - spec/other/config_spec.rb
256
+ - spec/other/console_spec.rb
257
+ - spec/other/exec_spec.rb
258
+ - spec/other/ext_spec.rb
259
+ - spec/other/gem_helper_spec.rb
260
+ - spec/other/help_spec.rb
261
+ - spec/other/init_spec.rb
262
+ - spec/other/newgem_spec.rb
263
+ - spec/other/open_spec.rb
264
+ - spec/other/show_spec.rb
265
+ - spec/pack/gems_spec.rb
266
+ - spec/quality_spec.rb
267
+ - spec/resolver/basic_spec.rb
268
+ - spec/resolver/platform_spec.rb
269
+ - spec/runtime/executable_spec.rb
270
+ - spec/runtime/load_spec.rb
271
+ - spec/runtime/platform_spec.rb
272
+ - spec/runtime/require_spec.rb
273
+ - spec/runtime/setup_spec.rb
274
+ - spec/runtime/with_clean_env_spec.rb
275
+ - spec/spec_helper.rb
276
+ - spec/support/artifice/endpoint.rb
277
+ - spec/support/artifice/endpoint_fallback.rb
278
+ - spec/support/artifice/endpoint_marshal_fail.rb
279
+ - spec/support/artifice/endpoint_redirect.rb
280
+ - spec/support/builders.rb
281
+ - spec/support/fakeweb/rack-1.0.0.marshal
282
+ - spec/support/fakeweb/windows.rb
283
+ - spec/support/helpers.rb
284
+ - spec/support/indexes.rb
285
+ - spec/support/matchers.rb
286
+ - spec/support/path.rb
287
+ - spec/support/platforms.rb
288
+ - spec/support/ruby_ext.rb
289
+ - spec/support/rubygems_ext.rb
290
+ - spec/support/rubygems_hax/platform.rb
291
+ - spec/support/sudo.rb
292
+ - spec/update/gems_spec.rb
293
+ - spec/update/git_spec.rb
294
+ - spec/update/source_spec.rb