brewer 0.0.50 → 0.0.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/brewer +1 -2
- data/brewer.gemspec +1 -1
- data/lib/settings.rb +7 -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: 0be538002970a4a2fd01924ac72f96504db23b19
|
4
|
+
data.tar.gz: 7d41860bdd7ab5c395bffb6f6ecdf57cc4552b25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b9bff0df0b119114f79cf4dd0932ef9b33acada1b9fe14238a73e822d39851887e715bb26905ecb5944be559eae2792ad1b596d81d66f90f0f48adcb4c74cbb
|
7
|
+
data.tar.gz: 4bb1b11d31ea5ba19c645799fe70f0bddad1e390336e63b453134d9219a9531444fa243ebc11662d4ab98b47bcf4020e33bcacab0a4cc4192e04f70a95963c0d
|
data/bin/brewer
CHANGED
@@ -4,8 +4,6 @@
|
|
4
4
|
require 'ripl'
|
5
5
|
|
6
6
|
require_relative "../lib/adaptibrew"
|
7
|
-
adaptibrew = Adaptibrew.new.refresh
|
8
|
-
# This is a bit out of order. I need the adaptibrew repo *before* i require `lib/brewer`, since it requires settings.py
|
9
7
|
require_relative "../lib/brewer"
|
10
8
|
require_relative "../lib/helpers"
|
11
9
|
|
@@ -13,6 +11,7 @@ include Helpers
|
|
13
11
|
|
14
12
|
# Refresh to make sure we have the lastest version of adaptibrew
|
15
13
|
brewer = Brewer.new
|
14
|
+
adaptibrew = Adaptibrew.new.refresh
|
16
15
|
|
17
16
|
puts "🍺 have fun 🍺"
|
18
17
|
Ripl.start :binding => binding
|
data/brewer.gemspec
CHANGED
data/lib/settings.rb
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
# This just parses the adaptibrew/settings.py
|
2
|
+
require 'adaptibrew'
|
3
|
+
|
4
|
+
if !adaptibrew.present?
|
5
|
+
adaptibrew.clone
|
6
|
+
end
|
7
|
+
|
2
8
|
$settings = {}
|
3
9
|
|
4
|
-
File.open(Dir.home + '/adaptibrew/settings.py') do |file|
|
10
|
+
File.open(Dir.home + '/.brewer/adaptibrew/settings.py') do |file|
|
5
11
|
file.each_line do |line|
|
6
12
|
if line.match(/=/) == nil
|
7
13
|
next
|