bundle-locker 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module Bundle
2
2
  module Locker
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
data/lib/bundle-locker.rb CHANGED
@@ -11,7 +11,10 @@ module Bundle
11
11
  def call
12
12
  gem_dictionary = {}
13
13
  File.readlines(@gemfile_name).each do |line|
14
- if /\A(?<prefix>\s*gem\s+['"])(?<gem_name>[^'"]+)(?<suffix>['"])/ =~ line
14
+ if /\A(\s*gem\s+['"])([^'"]+)(['"])/ =~ line
15
+ prefix = $1
16
+ gem_name = $2
17
+ suffix = $3
15
18
  gem_dictionary[gem_name] = {prefix: prefix, original: line, suffix: suffix, gem_name: gem_name}
16
19
  end
17
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundle-locker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-14 00:00:00.000000000 Z
12
+ date: 2012-12-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Lock Gemfile gem declarations to specific Gemfile.lock versions
15
15
  email: