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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4de5012f76a9beb59465ad858c91f2524b288205
4
- data.tar.gz: 0438035f46d094646ee1985d6f1212aeb6e2aa2d
3
+ metadata.gz: d3be7cd486a454d2b2e9c36561d746d4e40c3ca4
4
+ data.tar.gz: 95b069bee7fcd3b81922511d178395ef707a36c2
5
5
  SHA512:
6
- metadata.gz: 0e3d2cb21736d93693e575831dbff354b869f237e75c1dac870144f478d8934fbde92ea12c7ddc5fa8dd8dbb343384a9ca76e5f1936ab1b76c78a22ef599c78b
7
- data.tar.gz: bcce9fc82f7222964dd106bb920b38451893b3e632b262e36806f0ddefc279b2db399dc50ff186260e4ed29473f030347d026d3dfcd7d7addf0a6a37e64283d3
6
+ metadata.gz: 18ee776811381730fddedd64ff23f5c9d10156cacc05845bf935d9cf3beb761f79dc61d057fafd88857c630e70cdc5602a2f006c9a9a829e683e638ea934c627
7
+ data.tar.gz: ee5307e8b1f128a7dd48a360329d434f941114d1d3a8fd5f1c40221bc30d9068c715ab66c3d0f40b5ecafa86462001ef4de6638e78e5e41db2e9c24b93b9ec06
@@ -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.lock(lockfile_filename)
49
+ defn
42
50
  end
43
51
 
44
52
  def lockfile_filename
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Fixture
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-fixture
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrismo