Merge pull request #6681 from luisramos0/css

[Rails 5] Make the app work in rails 5
This commit is contained in:
Pau Pérez Fabregat
2021-01-27 12:08:27 +01:00
committed by GitHub
5 changed files with 13 additions and 8 deletions

View File

@@ -21,6 +21,7 @@ if ENV['DEPENDENCIES_NEXT']
gem 'responders'
gem 'sass', '<= 4.7.1'
gem 'sass-rails', '< 6.0.0'
gem 'libv8', '< 8'
else
gem 'rails', '~> 4.2'
@@ -34,6 +35,10 @@ else
gem 'db2fog'
gem 'unicorn'
group :test do
gem 'test_after_commit' # needed to test Devise callbacks
end
end
gem 'i18n'
@@ -160,7 +165,6 @@ end
group :test do
gem 'simplecov', require: false
gem 'test-prof'
gem 'test_after_commit' # needed to test Devise callbacks
gem 'webmock'
# See spec/spec_helper.rb for instructions
# gem 'perftools.rb'

View File

@@ -270,7 +270,7 @@ GEM
addressable (~> 2.3)
letter_opener (1.7.0)
launchy (~> 2.2)
libv8 (8.4.255.0)
libv8 (7.3.492.27.1)
loofah (2.7.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
@@ -502,8 +502,6 @@ GEM
test-prof (0.7.5)
test-unit (3.3.7)
power_assert
test_after_commit (1.1.0)
activerecord (>= 3.2)
thor (0.20.3)
thread_safe (0.3.6)
tilt (2.0.10)
@@ -608,6 +606,7 @@ DEPENDENCIES
kaminari (~> 1.2.1)
knapsack
letter_opener (>= 1.4.1)
libv8 (< 8)
mini_racer (= 0.2.15)
monetize (~> 1.1)
oauth2 (~> 1.4.4)
@@ -649,7 +648,6 @@ DEPENDENCIES
stripe
test-prof
test-unit (~> 3.3)
test_after_commit
timecop
uglifier (>= 1.0.3)
unicorn-rails

View File

@@ -3,9 +3,9 @@
// See https://github.com/zurb/foundation/issues/3855#issuecomment-30372252
@import "variables";
@import "components/global";
@import "components/buttons";
@import "components/panels";
@import "foundation/components/global";
@import "foundation/components/buttons";
@import "foundation/components/panels";
#sidebar {
margin-top: 1.875em;

View File

@@ -0,0 +1,2 @@
require 'compass'
Sass.load_paths << Compass::Frameworks['compass'].stylesheets_directory

View File

@@ -6,6 +6,7 @@ require 'spree/i18n/base'
module Spree
extend ActionView::Helpers::TranslationHelper
extend ActionView::Helpers::TagHelper if ENV['DEPENDENCIES_NEXT']
class << self
# Add spree namespace and delegate to Rails TranslationHelper for some nice