|
16 | 16 | build_lib "foo" |
17 | 17 |
|
18 | 18 | install_gemfile <<-G |
19 | | - source "https://gem.repo1" |
20 | 19 | path "#{lib_path("foo-1.0")}" do |
21 | 20 | gem 'foo' |
22 | 21 | end |
|
29 | 28 | build_lib "foo" |
30 | 29 |
|
31 | 30 | install_gemfile <<-G |
32 | | - source "https://gem.repo1" |
33 | 31 | gem 'foo', :path => "#{lib_path("foo-1.0")}" |
34 | 32 | G |
35 | 33 |
|
|
42 | 40 | relative_path = lib_path("foo-1.0").relative_path_from(bundled_app) |
43 | 41 |
|
44 | 42 | install_gemfile <<-G |
45 | | - source "https://gem.repo1" |
46 | 43 | gem 'foo', :path => "#{relative_path}" |
47 | 44 | G |
48 | 45 |
|
|
55 | 52 | relative_path = lib_path("foo-1.0").relative_path_from(Pathname.new("~").expand_path) |
56 | 53 |
|
57 | 54 | install_gemfile <<-G |
58 | | - source "https://gem.repo1" |
59 | 55 | gem 'foo', :path => "~/#{relative_path}" |
60 | 56 | G |
61 | 57 |
|
|
70 | 66 | relative_path = lib_path("foo-1.0").relative_path_from(Pathname.new("/home/#{username}").expand_path) |
71 | 67 |
|
72 | 68 | install_gemfile <<-G, raise_on_error: false |
73 | | - source "https://gem.repo1" |
74 | 69 | gem 'foo', :path => "~#{username}/#{relative_path}" |
75 | 70 | G |
76 | 71 | expect(err).to match("There was an error while trying to use the path `~#{username}/#{relative_path}`.") |
|
81 | 76 | build_lib "foo", path: bundled_app("foo-1.0") |
82 | 77 |
|
83 | 78 | install_gemfile <<-G |
84 | | - source "https://gem.repo1" |
85 | 79 | gem 'foo', :path => "./foo-1.0" |
86 | 80 | G |
87 | 81 |
|
|
139 | 133 | build_lib "foo", path: bundled_app("foo-1.0") |
140 | 134 |
|
141 | 135 | install_gemfile <<-G |
142 | | - source "https://gem.repo1" |
143 | 136 | gem 'foo', :path => File.expand_path("foo-1.0", __dir__) |
144 | 137 | G |
145 | 138 |
|
|
159 | 152 | end |
160 | 153 |
|
161 | 154 | install_gemfile <<-G |
162 | | - source "https://gem.repo1" |
163 | 155 | gem "foo", :path => "#{lib_path("nested")}" |
164 | 156 | G |
165 | 157 |
|
|
179 | 171 | build_lib "foo", "1.0.0", path: lib_path("omg/foo") |
180 | 172 |
|
181 | 173 | install_gemfile <<-G |
182 | | - source "https://gem.repo1" |
183 | 174 | gem "omg", :path => "#{lib_path("omg")}" |
184 | 175 | G |
185 | 176 |
|
|
256 | 247 | build_lib "omg", "2.0", path: lib_path("omg") |
257 | 248 |
|
258 | 249 | install_gemfile <<-G |
259 | | - source "https://gem.repo1" |
260 | 250 | gem "omg", :path => "#{lib_path("omg")}" |
261 | 251 | G |
262 | 252 |
|
|
280 | 270 | end |
281 | 271 |
|
282 | 272 | install_gemfile <<-G |
283 | | - source "https://gem.repo1" |
284 | 273 | gem "premailer", :path => "#{lib_path("premailer")}" |
285 | 274 | G |
286 | 275 |
|
|
302 | 291 | end |
303 | 292 |
|
304 | 293 | install_gemfile <<-G, raise_on_error: false |
305 | | - source "https://gem.repo1" |
306 | 294 | gem "foo", :path => "#{lib_path("foo-1.0")}" |
307 | 295 | G |
308 | 296 |
|
|
439 | 427 | end |
440 | 428 |
|
441 | 429 | install_gemfile <<-G, raise_on_error: false |
442 | | - source "https://gem.repo1" |
443 | 430 | gemspec :path => "#{lib_path("foo")}" |
444 | 431 | G |
445 | 432 |
|
|
453 | 440 | end |
454 | 441 |
|
455 | 442 | install_gemfile <<-G |
456 | | - source "https://gem.repo1" |
457 | 443 | gemspec :path => "#{lib_path("foo")}", :name => "foo" |
458 | 444 | G |
459 | 445 |
|
|
466 | 452 | end |
467 | 453 |
|
468 | 454 | install_gemfile <<-G, verbose: true |
469 | | - source "https://gem.repo1" |
470 | 455 | path "#{lib_path("foo-1.0")}" do |
471 | 456 | gem 'foo' |
472 | 457 | end |
|
484 | 469 | lib_path("foo-1.0").join("bin/performance").mkpath |
485 | 470 |
|
486 | 471 | install_gemfile <<-G |
487 | | - source "https://gem.repo1" |
488 | 472 | gem 'foo', '1.0', :path => "#{lib_path("foo-1.0")}" |
489 | 473 | G |
490 | 474 | expect(err).to be_empty |
|
494 | 478 | build_lib "foo" |
495 | 479 |
|
496 | 480 | install_gemfile <<-G |
497 | | - source "https://gem.repo1" |
498 | 481 | gem 'foo', :path => "#{lib_path("foo-1.0")}" |
499 | 482 | G |
500 | 483 |
|
|
507 | 490 | build_lib "hi2u" |
508 | 491 |
|
509 | 492 | install_gemfile <<-G |
510 | | - source "https://gem.repo1" |
511 | 493 | path "#{lib_path}" do |
512 | 494 | gem "omg" |
513 | 495 | gem "hi2u" |
|
526 | 508 | end |
527 | 509 |
|
528 | 510 | install_gemfile <<-G |
529 | | - source "https://gem.repo1" |
530 | 511 | gem "foo", :path => "#{lib_path("foo")}" |
531 | 512 | gem "omg", :path => "#{lib_path("omg")}" |
532 | 513 | G |
|
538 | 519 | build_lib "foo", gemspec: false |
539 | 520 |
|
540 | 521 | gemfile <<-G |
541 | | - source "https://gem.repo1" |
542 | 522 | gem "foo", "1.0", :path => "#{lib_path("foo-1.0")}" |
543 | 523 | G |
544 | 524 |
|
|
552 | 532 | PATH |
553 | 533 | remote: vendor/bar |
554 | 534 | specs: |
555 | | -
|
556 | | - GEM |
557 | | - remote: http://rubygems.org/ |
558 | 535 | L |
559 | 536 |
|
560 | 537 | FileUtils.mkdir_p(bundled_app("vendor/bar")) |
561 | 538 |
|
562 | 539 | install_gemfile <<-G |
563 | | - source "http://rubygems.org" |
564 | 540 | gem "bar", "1.0.0", path: "vendor/bar", require: "bar/nyard" |
565 | 541 | G |
566 | 542 | end |
|
605 | 581 | end |
606 | 582 |
|
607 | 583 | install_gemfile <<-G |
608 | | - source "https://gem.repo1" |
609 | 584 | gem "foo", :path => "#{lib_path("foo-1.0")}" |
610 | 585 | G |
611 | 586 |
|
|
621 | 596 | build_lib "bar", "1.0", path: lib_path("foo/bar") |
622 | 597 |
|
623 | 598 | install_gemfile <<-G |
624 | | - source "https://gem.repo1" |
625 | 599 | gem "foo", :path => "#{lib_path("foo")}" |
626 | 600 | G |
627 | 601 | end |
|
868 | 842 | end |
869 | 843 |
|
870 | 844 | install_gemfile <<-G |
871 | | - source "https://gem.repo1" |
872 | 845 | gem "bar", :git => "#{lib_path("bar")}" |
873 | 846 | G |
874 | 847 |
|
875 | 848 | install_gemfile <<-G |
876 | | - source "https://gem.repo1" |
877 | 849 | gem "bar", :path => "#{lib_path("bar")}" |
878 | 850 | G |
879 | 851 |
|
|
928 | 900 | it "runs pre-install hooks" do |
929 | 901 | build_git "foo" |
930 | 902 | gemfile <<-G |
931 | | - source "https://gem.repo1" |
932 | 903 | gem "foo", :git => "#{lib_path("foo-1.0")}" |
933 | 904 | G |
934 | 905 |
|
|
948 | 919 | it "runs post-install hooks" do |
949 | 920 | build_git "foo" |
950 | 921 | gemfile <<-G |
951 | | - source "https://gem.repo1" |
952 | 922 | gem "foo", :git => "#{lib_path("foo-1.0")}" |
953 | 923 | G |
954 | 924 |
|
|
968 | 938 | it "complains if the install hook fails" do |
969 | 939 | build_git "foo" |
970 | 940 | gemfile <<-G |
971 | | - source "https://gem.repo1" |
972 | 941 | gem "foo", :git => "#{lib_path("foo-1.0")}" |
973 | 942 | G |
974 | 943 |
|
|
999 | 968 | end |
1000 | 969 |
|
1001 | 970 | install_gemfile <<-G |
1002 | | - source "https://gem.repo1" |
1003 | 971 | gem "foo", :path => "#{lib_path("foo-1.0")}" |
1004 | 972 | gem "bar", :path => "#{lib_path("bar-1.0")}" |
1005 | 973 | G |
|
0 commit comments