Make sass property depend on txt file or env var
This commit is contained in:
committed by
Jorge Manrubia
parent
e1e9a01720
commit
6134407f5e
@@ -76,6 +76,9 @@ group :test do
|
|||||||
gem "mocha"
|
gem "mocha"
|
||||||
end
|
end
|
||||||
|
|
||||||
group :saas do
|
require_relative "lib/fizzy"
|
||||||
|
if Fizzy.saas?
|
||||||
|
gem "activeresource", require: "active_resource"
|
||||||
|
gem "queenbee", git: "https://github.com/basecamp/queenbee-plugin"
|
||||||
gem "fizzy-saas", path: "gems/fizzy-saas"
|
gem "fizzy-saas", path: "gems/fizzy-saas"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -122,14 +122,6 @@ GIT
|
|||||||
tsort (>= 0.2)
|
tsort (>= 0.2)
|
||||||
zeitwerk (~> 2.6)
|
zeitwerk (~> 2.6)
|
||||||
|
|
||||||
PATH
|
|
||||||
remote: gems/fizzy-saas
|
|
||||||
specs:
|
|
||||||
fizzy-saas (0.1.0)
|
|
||||||
queenbee
|
|
||||||
rails (>= 8.1.0.beta1)
|
|
||||||
rails_structured_logging
|
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
@@ -377,8 +369,6 @@ GEM
|
|||||||
public_suffix (7.0.0)
|
public_suffix (7.0.0)
|
||||||
puma (7.1.0)
|
puma (7.1.0)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
queenbee (1.5.1)
|
|
||||||
json (> 1.8)
|
|
||||||
raabro (1.4.0)
|
raabro (1.4.0)
|
||||||
racc (1.8.1)
|
racc (1.8.1)
|
||||||
rack (3.2.4)
|
rack (3.2.4)
|
||||||
@@ -587,7 +577,6 @@ DEPENDENCIES
|
|||||||
capybara
|
capybara
|
||||||
debug
|
debug
|
||||||
faker
|
faker
|
||||||
fizzy-saas!
|
|
||||||
geared_pagination (~> 1.2)
|
geared_pagination (~> 1.2)
|
||||||
image_processing (~> 1.14)
|
image_processing (~> 1.14)
|
||||||
importmap-rails
|
importmap-rails
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
module Fizzy
|
module Fizzy
|
||||||
def self.saas?
|
def self.saas?
|
||||||
defined?(Fizzy::Saas::Engine)
|
return @saas if defined?(@saas)
|
||||||
|
@saas = !!(ENV["SAAS"] || File.exist?(File.expand_path("../../tmp/saas.txt", __dir__)))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user