gemfile_interpreter 0.0.4 → 0.0.5

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: 335bd10b8fd86e148878446ab59b416e04a439e4
4
- data.tar.gz: e99a0736bcf7ab369b03a402923df8b3624509c4
3
+ metadata.gz: 6a529a9378858c6ab1d69a49e9a0a2d9c2ee8092
4
+ data.tar.gz: 924f4814a334e2a97bbe254bef4d1ce04b036f29
5
5
  SHA512:
6
- metadata.gz: a4efe62ace0b8e9e8972eb93af9a5a408a7b142b2868acce73e0fef788d08650f799188271b480d0e9362c09d07b33f3d262ddfe045df337d0550cc24ba5f136
7
- data.tar.gz: 7f7d55b5e8c9060ebeeddf9add41cd02f8c321b564d394484c31a15d64bb6ccc949961b357e6fb38e55d4b3afefe1b755306e077c0641475a6b97b8c8c9d240d
6
+ metadata.gz: 72c8cee37e11b88cef07083dc0be9999e37e38ce80d818005adc45f20f2f1228b467d200abb7d5cfc4f71ed8e5f2d155cbe360735af0cb52c8e890097078fa2b
7
+ data.tar.gz: 4b6155cc9e3c1d1fa8264499b1e858d5c12d0e177305051593b8cfa0831506366125fce71e14c72a59520f70b4ddf29751cd8e4de30653befc127652c85f19cd
@@ -15,7 +15,7 @@ class GemfileInterpreter
15
15
  @default_lockfile = Pathname.new lockfile
16
16
  ensure_file_exists! default_gemfile, GemfileMissingError
17
17
  ensure_file_exists! default_lockfile, GemfileLockMissingError
18
- load
18
+ definition.resolve
19
19
  end
20
20
 
21
21
  def default_gemfile
@@ -1,3 +1,3 @@
1
1
  class GemfileInterpreter
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -9,15 +9,11 @@ class GemfileInterpreter
9
9
  gemfile_path = File.join dir, gemfile
10
10
  lockfile_path = File.join dir, (lockfile || "#{gemfile}.lock")
11
11
  @parsed = nil
12
- @bundler_runtime = ReadonlyBundler.load_gemfile gemfile_path, lockfile_path
12
+ @gems = ReadonlyBundler.load_gemfile gemfile_path, lockfile_path
13
13
  true
14
14
  end
15
15
 
16
- attr_reader :bundler_runtime
17
-
18
- def gems
19
- bundler_runtime.gems
20
- end
16
+ attr_reader :gems
21
17
 
22
18
  def parsed
23
19
  @parsed = Parser.parse gems
@@ -44,7 +44,6 @@ RSpec.describe GemfileInterpreter do
44
44
  rubygems_gem('omniauth', '1.6.1'),
45
45
  rubygems_gem('omniauth-oauth2', '1.3.1'),
46
46
  git_gem('omniauth-keltec', '0.0.1', 'https://github.com/ThunderKey/omniauth-keltec.git', 'd954a55459b48cb56be4dbbcaa1fd2afc113db5b'),
47
- rubygems_gem('bundler', '1.14.3'),
48
47
  ]
49
48
  end
50
49
 
@@ -87,7 +86,6 @@ RSpec.describe GemfileInterpreter do
87
86
  rubygems_gem('omniauth', '1.6.1'),
88
87
  rubygems_gem('omniauth-oauth2', '1.3.1'),
89
88
  git_gem('omniauth-keltec', '0.0.1', 'https://github.com/ThunderKey/omniauth-keltec.git', 'd954a55459b48cb56be4dbbcaa1fd2afc113db5b'),
90
- rubygems_gem('bundler', '1.14.3'),
91
89
  ]
92
90
  end
93
91
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemfile_interpreter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Ganz