bundler-fixture 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bundler/fixture.rb +9 -1
- data/lib/bundler/fixture/version.rb +1 -1
- 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: d3be7cd486a454d2b2e9c36561d746d4e40c3ca4
|
4
|
+
data.tar.gz: 95b069bee7fcd3b81922511d178395ef707a36c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ee776811381730fddedd64ff23f5c9d10156cacc05845bf935d9cf3beb761f79dc61d057fafd88857c630e70cdc5602a2f006c9a9a829e683e638ea934c627
|
7
|
+
data.tar.gz: ee5307e8b1f128a7dd48a360329d434f941114d1d3a8fd5f1c40221bc30d9068c715ab66c3d0f40b5ecafa86462001ef4de6638e78e5e41db2e9c24b93b9ec06
|
data/lib/bundler/fixture.rb
CHANGED
@@ -25,6 +25,14 @@ class BundlerFixture
|
|
25
25
|
source_specs: [],
|
26
26
|
ensure_sources: true,
|
27
27
|
update_gems: [])
|
28
|
+
defn = create_definition(gem_dependencies: gem_dependencies,
|
29
|
+
source_specs: source_specs,
|
30
|
+
ensure_sources: ensure_sources,
|
31
|
+
update_gems: update_gems)
|
32
|
+
defn.lock(lockfile_filename)
|
33
|
+
end
|
34
|
+
|
35
|
+
def create_definition(gem_dependencies:, source_specs:, ensure_sources:, update_gems:)
|
28
36
|
index = Bundler::Index.new
|
29
37
|
Array(source_specs).each { |s| index << s }
|
30
38
|
|
@@ -38,7 +46,7 @@ class BundlerFixture
|
|
38
46
|
# reading an existing lockfile in will overwrite the hacked up sources with detected
|
39
47
|
# ones from lockfile, so this needs to go here after the constructor is called.
|
40
48
|
source.instance_variable_set('@specs', index)
|
41
|
-
defn
|
49
|
+
defn
|
42
50
|
end
|
43
51
|
|
44
52
|
def lockfile_filename
|