<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="pre-to-mruby.js"></script>
<script src="http://qiezi.me/projects/mruby-web-irb/mruby.js"></script>
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
| # nslcd configuration file. See nslcd.conf(5) | |
| # for details. | |
| # The user and group nslcd should run as. | |
| uid nslcd | |
| gid nslcd | |
| # The location at which the LDAP server(s) should be reachable. | |
| uri ldaps://ldap1.example.jp:636/ | |
| uri ldaps://ldap2.example.jp:636/ |
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
| # -*- coding: utf-8 -*- | |
| create_file "config/locales/foo.yml", <<-'YAML' | |
| ja: | |
| foo: "foo" | |
| YAML | |
| gsub_file "config/locales/foo.yml", /"foo"/, '"bar"' | |
| create_file "config/locales/hoge.yml", <<-'YAML' | |
| ja: | |
| hoge: "ほげ" | |
| YAML |
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
| diff --git a/lib/capybara/poltergeist/browser.rb b/lib/capybara/poltergeist/browser.rb | |
| index c4100c2..97d790f 100644 | |
| --- a/lib/capybara/poltergeist/browser.rb | |
| +++ b/lib/capybara/poltergeist/browser.rb | |
| @@ -170,6 +170,18 @@ module Capybara::Poltergeist | |
| command 'remove_cookie', name | |
| end | |
| + def js_alert_messages | |
| + command 'js_alert_messages' |
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
| do ($ = jQuery) -> | |
| jQuery.fn.autogrow = (options) -> | |
| settings = $.extend { | |
| extraLineHeight: 15 | |
| timeoutBuffer: 100 | |
| }, options | |
| self = this | |
| timerId = self.removeData('timerId') | |
| if timerId | |
| clearTimeout timerId |
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
| au BufNewFileBufRead *.rb syn keyword rubyInclude prepend | |
| au BufNewFileBufRead *.rb syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(prepend\)\>" |
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
| # -*- coding: utf-8 -*- | |
| # config/initializers/date_time_selector.rb | |
| # based on actionpack-3.2.11/lib/action_view/helpers/date_helper.rb | |
| require "action_view/helpers/date_helper" | |
| class ActionView::Helpers::DateTimeSelector | |
| undef select_day | |
| def select_day | |
| if @options[:use_hidden] || @options[:discard_day] | |
| build_hidden(:day, day || 1) | |
| else |
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
| # -*- coding: utf-8 -*- | |
| # alias_method_chain problem demo | |
| # checked with rails 3.2.11 | |
| # | |
| # usage: | |
| # rails new /tmp/amc-problem-demo --skip-bundle --skip-active-record --skip-test-unit -m amc-problem-demo.rb | |
| # cd /tmp/amc-problem-demo | |
| # bundle install | |
| # bundle exec rails server | |
| # open http://localhost:3000/ |
Installing rmagick (2.13.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/kazu/.rbenv/versions/1.9.3-p327/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes