mirror of
https://github.com/bitwarden/help
synced 2025-12-22 19:23:19 +00:00
* initial commit
* adding quotes for the array error
* Create Gemfile
* Create Gemfile.lock
* add .nvmrc and .node-version
* removed /article from URL
* update links to work with netlify
* more fixed links
* link fixes
* update bad links
* Update netlify.toml
toml test for redirects
* article redirect
* link fixes
* Update index.html
* Update netlify.toml
* Update _config.yml
* Update netlify.toml
* Update netlify.toml
* Update netlify.toml
* Update netlify.toml
* Update netlify.toml
* add article back into URL for launch
* Update netlify.toml
* Update netlify.toml
* add order to categories front matter
* Update netlify.toml
* update
* sidemenu update
* Revert "sidemenu update"
This reverts commit 5441c3d35c.
* update order prop
* Navbar updates per Gary and compiler warnings
* font/style tweaks
* Update sidebar.html
* Stage Release Documentation (#739)
* initial drafts
* rewrite Custom Fields article to prioritize new context-menu option & better organize ancillary information
* edit
* edit
* Custom Field Context Menu & CAPTCHA item in release notes
* SSO relink event
* update rn
* small edits
* improve release notes titles
* fix side menu
* Edits courtest of mportune!
* update order
* link fixes
* link cleanup
* image updates and a link
* fix trailing slash
Co-authored-by: DanHillesheim <79476558+DanHillesheim@users.noreply.github.com>
52 lines
1.7 KiB
Ruby
52 lines
1.7 KiB
Ruby
require 'bundler/gem_tasks'
|
|
|
|
task default: :test
|
|
|
|
require 'rake/extensiontask'
|
|
gem_spec = Gem::Specification.load("sassc.gemspec")
|
|
|
|
# HACK: Prevent rake-compiler from overriding required_ruby_version,
|
|
# because the shared library here is Ruby-agnostic.
|
|
# See https://github.com/rake-compiler/rake-compiler/issues/153
|
|
module FixRequiredRubyVersion
|
|
def required_ruby_version=(*); end
|
|
end
|
|
Gem::Specification.send(:prepend, FixRequiredRubyVersion)
|
|
|
|
Rake::ExtensionTask.new('libsass', gem_spec) do |ext|
|
|
ext.name = 'libsass'
|
|
ext.ext_dir = 'ext'
|
|
ext.lib_dir = 'lib/sassc'
|
|
ext.cross_compile = true
|
|
ext.cross_platform = %w[x86-mingw32 x64-mingw32]
|
|
|
|
# Link C++ stdlib statically when building binary gems.
|
|
ext.cross_config_options << '--enable-static-stdlib'
|
|
|
|
ext.cross_config_options << '--disable-march-tune-native'
|
|
|
|
ext.cross_compiling do |spec|
|
|
spec.files.reject! { |path| File.fnmatch?('ext/*', path) }
|
|
end
|
|
end
|
|
|
|
desc 'Compile all native gems via rake-compiler-dock (Docker)'
|
|
task 'gem:native' do
|
|
require 'rake_compiler_dock'
|
|
|
|
# The RUBY_CC_VERSION here doesn't matter for the final package.
|
|
# Only one version should be specified, as the shared library is Ruby-agnostic.
|
|
RakeCompilerDock.sh "gem i rake bundler --no-document && bundle && "\
|
|
"rake clean && rake cross native gem MAKE='nice make -j`nproc`' "\
|
|
"RUBY_CC_VERSION=2.6.0 CLEAN=1"
|
|
end
|
|
|
|
CLEAN.include 'tmp', 'pkg', 'lib/sassc/libsass.{so,bundle}', 'ext/libsass/VERSION',
|
|
'ext/*.{o,so,bundle}', 'ext/Makefile'
|
|
|
|
desc "Run all tests"
|
|
task test: 'compile:libsass' do
|
|
$LOAD_PATH.unshift('lib', 'test')
|
|
Dir.glob('./test/**/*_test.rb') { |f| require f }
|
|
end
|