Sha256: 63be2e9c809258a4d49a88bb045fbd5da2dd0bf58c7efa1ea8d9d6cdc6a194b7
Contents?: true
Size: 614 Bytes
Versions: 2
Compression:
Stored size: 614 Bytes
Contents
require 'core_ext/enumerable/map_slice' module Space module Models class Project class Bundler include Events, Shell commands config: 'bundle config' watch '~/.bundle/config' attr_reader :project def initialize(project) @project = project super() end def config lines = result(:config).split("\n")[2..-1] || [] values = lines.map_slice(3) do |name, value, _| [name, value =~ /: "(.*)"/ && $1] end Hash[*values.compact.flatten] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
space-0.0.5 | lib/space/models/project/bundler.rb |
space-0.0.4 | lib/space/models/project/bundler.rb |