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
# create in config/initializers | |
class BraintreeTestApp | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
@env = env | |
config = Braintree::Configuration.instantiate |
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
#!/usr/bin/ruby | |
require 'RMagick' | |
require 'pathname' | |
@directory = Pathname(File.expand_path(ARGV[0])) | |
@size = ARGV.fetch(1) { 1025 } | |
def resize_image(file) | |
img = Magick::Image.read(file).first |
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
source 'https://rubygems.org' | |
gem 'activerecord', '>= 4.2.0' | |
gem 'sqlite4' |
OlderNewer