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 a/configure.in b/configure.in | |
index 732dd5d..8f5b364 100644 | |
--- a/configure.in | |
+++ b/configure.in | |
@@ -172,6 +172,7 @@ RUBY_PROGRAM_VERSION=`sed -n 's/^#define RUBY_VERSION "\(.*\)"/\1/p' $srcdir/ver | |
AC_SUBST(RUBY_PROGRAM_VERSION) | |
RUBY_RELEASE_DATE=`sed -n 's/^#define RUBY_RELEASE_DATE "\(.*\)"/\1/p' $srcdir/version.h` | |
AC_SUBST(RUBY_RELEASE_DATE) | |
+RUBY_PATCHLEVEL=`sed -n 's/^#define RUBY_PATCHLEVEL //p' $srcdir/version.h` | |
AC_DEFINE(CANONICALIZATION_FOR_MATHN) |
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
window.namespace = -> | |
args = arguments[0] | |
target = global || window | |
loop | |
for subpackage, obj of args | |
target = target[subpackage] or= {} | |
args = obj | |
break unless typeof args is 'object' | |
Class = args |
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
$(document).ready(function(){ | |
var lastId, topMenu = $("#navbar-scroll"), | |
topMenuHeight = topMenu.outerHeight() + 150, | |
menuItems = topMenu.find("a"), | |
scrollItems = menuItems.map(function() { | |
var item = $($(this).attr("href")); | |
if (item.length) { | |
return item; | |
} | |
}); |
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
# Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
describe 'Modal' do | |
should 'display login errors' do | |
visit root_path | |
click_link 'My HomeMarks' | |
within '#login_area' do | |
fill_in 'email', with: 'will@not.work' | |
fill_in 'password', with: 'test' |
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
INSTALL | |
======= | |
$ gem install rspec | |
RSPEC-RAILS | |
=========== | |
RAILS-3 | |
======= |
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
var Namespace, Namespaces, Task, namespace, task; | |
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
Namespaces = { | |
names: [], | |
descriptions: [], | |
tasks: [], | |
injectMethods: function(ins) { | |
var nspaces; | |
nspaces = this; | |
ins.fqn = function() { |
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
Namespaces = | |
names: [] | |
descriptions: [] | |
tasks: [] | |
injectMethods: (ins) -> | |
nspaces = @ | |
ins.fqn = -> | |
@_nameChain().join ':' | |
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
var testObj = { | |
_version: '0.1', | |
setVersion: function(ver) { | |
this._version = ver; | |
return this; | |
}, | |
getVersion: function() { | |
return this._version; |
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
125a126,131 | |
> | |
> hidden.bind('uploadcare-success', function() { | |
> UploadCare.FileData.fetch(hidden.val(), function(data) { | |
> UploadCare.Line.showFileData(data); | |
> }); | |
> }); | |
206a213,229 | |
> }, | |
> |
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
# -*- encoding: utf-8 -*- | |
$KCODE = 'u' | |
require 'i18n' | |
###### | |
# I18n.i('мир', 'рд') => "мира" | |
# i('мир', 'рд') => "мира" | |
if I18n.locale == :ru |