brewer 0.0.50 → 0.0.52

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/brewer +1 -2
  3. data/brewer.gemspec +1 -1
  4. data/lib/settings.rb +7 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b64a285ed132424529cae2bee9cefe0acac647a
4
- data.tar.gz: 11a20637683536d2072822de7e56a7e674c6d92b
3
+ metadata.gz: 0be538002970a4a2fd01924ac72f96504db23b19
4
+ data.tar.gz: 7d41860bdd7ab5c395bffb6f6ecdf57cc4552b25
5
5
  SHA512:
6
- metadata.gz: 081b6a644613fa2465b651351fc3fec63fbe767c4da00186ef353ea499714a6a0eca1f19a70d0bf2d976e8e7b72eed402c075ed9b9698616ec5c1effe1dd1adc
7
- data.tar.gz: 17526d90dfeb30d86a548f2e911eec030cad868c0ea5e24a3b9dcd2f241f31220699fe742f391db86b196a26bc50c789d691a8f3f94663243a5513c6a40f2a92
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
@@ -2,7 +2,7 @@ require 'rake'
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "brewer"
5
- s.version = "0.0.50"
5
+ s.version = "0.0.52"
6
6
  s.default_executable = "brewer"
7
7
 
8
8
  s.authors = ["Luke Sweeney"]
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.50
4
+ version: 0.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Sweeney