This file contains 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
diff --git i/build_config.rb w/build_config.rb | |
index 7f52b5ee..c20be4c0 100644 | |
--- i/build_config.rb | |
+++ w/build_config.rb | |
@@ -22,6 +22,9 @@ MRuby::Build.new do |conf| | |
# conf.gem :github => 'iij/mruby-io' | |
# conf.gem :git => '[email protected]:iij/mruby-io.git', :branch => 'master', :options => '-v' | |
+ conf.gem :github => 'iij/mruby-env' | |
+ conf.gem :github => 'mattn/mruby-curl' |
This file contains 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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'fog-aws' |
This file contains 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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails' |
This file contains 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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails' |
This file contains 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
<body> | |
<div class="box">Hello</div> | |
<p> | |
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ratione officiis nemo, est quo commodi eos nam quibusdam, ipsa ad natus optio reiciendis quasi enim, aut eum facilis! Similique, accusantium, ullam? | |
</p> | |
<p> | |
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. | |
</p> | |
</body> |
This file contains 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
module Human | |
def hello | |
p 'Hello' | |
end | |
end | |
class Cat | |
include Human | |
def mew |
This file contains 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
class Record | |
def save | |
p 'saved!' | |
end | |
end | |
module Validation | |
def save | |
p 'validated!' | |
super |
This file contains 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 'active_support/all' | |
class Record | |
def save | |
p 'saved!' | |
end | |
def save_with_validation | |
p 'validated!' | |
save_without_validation |
This file contains 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/env ruby | |
require 'rubygems' | |
require 'time_diff' | |
require 'twilio-ruby' | |
TWILIO_SID = 'twilio_sid' | |
TWILIO_TOKEN = 'twilio_token' | |
TWILIO_PHONE_NUMBER = '+447903570595' |
This file contains 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
class Alpha < WorkerCommand | |
@queue = :alpha | |
def self.work | |
sleep(5) | |
puts "Alpha" | |
end | |
end |
NewerOlder