This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_package_reconfigure() { | |
test -f configure || autoconf | |
} | |
build_package_patch_ruby_railsexpress() { | |
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master | |
for p in rvm-patchsets/patches/ruby/2.1.4/railsexpress/* ; do | |
patch -p1 < $p | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rmagick' | |
module ImageGenerator | |
class KununuRatingImage | |
include Magick | |
include CorporatePages::ReviewsHelper | |
IMAGES_PATH = "#{Rails.root}/public/assets/companies/img/kununu_ratings" | |
BACKGROUND_COLOR = '#189898' | |
FONT = 'Helvetica' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'singleton' | |
module Xing | |
module Industries | |
class Mapping | |
include Singleton | |
JSON_PATH = '../../../../industries/mapping.json' | |
OLD_DEFAULT = 77 | |
NEW_DEFAULT = 230_000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'minitest/autorun' | |
class CustomFlattenTest < MiniTest::Test | |
def test_custom_flatten | |
assert_equal [1,2,3,4], [[1,2,[3]],4].custom_flatten | |
end | |
end | |
module ArrayExtensions | |
def custom_flatten |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<hmtl> |