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
const choo = require('choo') | |
const html = require('choo/html') | |
const app = choo() | |
app.model({ | |
state: { toggler: true }, | |
reducers: { | |
toggle: (action, state) => ({ toggler: !state.toggler }) | |
} | |
}) |
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
const choo = require('choo') | |
const html = require('choo/html') | |
const app = choo() | |
app.model({ | |
state: { toggler: true }, | |
reducers: { | |
toggle: (action, state) => ({ toggler: !state.toggler }) | |
} | |
}) |
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
const choo = require('choo') | |
const html = require('choo/html') | |
const app = choo() | |
app.model({ | |
state: { toggler: true }, | |
reducers: { | |
toggle: (action, state) => ({ toggler: !state.toggler }) | |
} | |
}) |
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
/root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionview-4.1.10/lib/action_view/helpers.rb:56: [BUG] Segmentation fault at 0x000004 | |
ruby 2.1.5p273 (2014-11-13 revision 48405) [i686-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0030 p:0469 s:0089 e:000087 CLASS /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionview-4.1.10/lib/action_view/helpers.rb:56 | |
c:0029 p:0011 s:0086 e:000085 CLASS /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionview-4.1.10/lib/action_view/helpers.rb:4 | |
c:0028 p:0017 s:0084 e:000083 TOP /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionview-4.1.10/lib/action_view/helpers.rb:3 [FINISH] | |
c:0027 p:0112 s:0082 e:000080 CLASS /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/helper.rb:41 | |
c:0026 p:0011 s:0079 e:000078 CLASS /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.2.4/lib/sprockets/rails/helper.rb:7 | |
c:0025 p:0011 s:0077 e:000076 CLASS /roo |
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
/root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.10/lib/sqlite3.rb:9: [BUG] rb_gc_mark(): 0xb79f0cec is T_NONE | |
ruby 2.1.5p273 (2014-11-13 revision 48405) [i686-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0025 p:---- s:0084 e:000083 CFUNC :require | |
c:0024 p:0040 s:0080 e:000079 TOP /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.10/lib/sqlite3.rb:9 [FINISH] | |
c:0023 p:---- s:0078 e:000077 CFUNC :require | |
c:0022 p:0037 s:0074 e:000073 BLOCK /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:76 [FINISH] | |
c:0021 p:---- s:0071 e:000070 CFUNC :each | |
c:0020 p:0055 s:0068 e:000067 BLOCK /root/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:72 [FINISH] |
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
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'sqlite3' | |
GEMFILE | |
system 'bundle' | |
end |
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
# gem 'activerecord', '3.2.16' # works | |
gem 'activerecord', '4.0.2' # breaks | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) | |
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') | |
ActiveRecord::Base.logger = Logger.new(STDOUT) |
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
(function($) { | |
$.tools = $.tools || {version: '2013-02-15'}; | |
var tool = $.tools.expose = { | |
conf: { | |
maskId: 'exposeMask', | |
loadSpeed: 'slow', | |
closeSpeed: 'fast', | |
zIndex: 9998, | |
opacity: 0.8, | |
startOpacity: 0, |
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
gem 'rails', '3.2.12' # change version to 3.2.11 to see this working, 3.2.12 is broken | |
require 'active_record' | |
ActiveRecord::Base.establish_connection( | |
:adapter => 'sqlite3', | |
:database => ':memory:' | |
) | |
ActiveRecord::Schema.define do | |
create_table :users, :force => true do |t| |
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
<%= javascript_include_tag "application", APP_CONFIG[:javascript_include_options] %> | |
<%= link_to_unless_current "do it", test_path, :data => {:disable_with => 'Please wait...'} %> | |
<br> | |
rails version: <%= Gem.loaded_specs["rails"].version %><br> | |
jquery-rails version: <%= Gem.loaded_specs["jquery-rails"].version %><br> | |
browser: <%= browser %> |