Skip to content

Instantly share code, notes, and snippets.

# Swedish translation, by Johan Lundström ([email protected]), with parts taken
# from http://github.com/daniel/swe_rails
"sv-SE":
number:
# Used in number_with_delimiter()
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
format:
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
separator: ","
#!/usr/bin/env ruby
# TODO: unpack, rename all files. Support for where to save (and unpack) files. Other features?
require 'optparse'
require 'net/http'
require 'rubygems'
require 'hpricot'
class String
namespace :bundler do
task :create_symlink, :roles => :app do
bundle_dir = "#{release_path}/vendor/bundle"
shared_dir = "#{shared_path}/bundle"
run "rm -rf #{bundle_dir}"
run "mkdir -p #{shared_dir} && ln -s #{shared_dir} #{bundle_dir}"
end
task :bundle_new_release, :roles => :app do
@johanlunds
johanlunds / gist:814402
Created February 7, 2011 14:08
Gemfile.lock
GIT
remote: git://github.com/binarylogic/authlogic.git
revision: 66ed79515919fe13016911b10ebe734cf8718dc7
specs:
authlogic (2.1.6)
activesupport
GEM
remote: http://rubygems.org/
specs:
diff --git a/Rakefile b/Rakefile
index b9f0bc4..b2b103c 100755
--- a/Rakefile
+++ b/Rakefile
@@ -7,20 +7,12 @@ begin
gem.email = "[email protected]"
gem.homepage = "http://github.com/kristianmandrup/roles_active_record"
gem.authors = ["Kristian Mandrup"]
+
+ # See Gemfile for regular dependencies
@johanlunds
johanlunds / gist:847144
Created February 28, 2011 09:58
Gemfile.lock diff
diff --git a/Gemfile.lock b/Gemfile.lock
index a9c1528..5d25658 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -48,13 +48,11 @@ GEM
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.0.0)
- colorize (0.5.8)
columnize (0.3.2)
# Put in config/initializers/remote_debugger_in_development.rb:
if Rails.env.development?
require 'ruby-debug'
Debugger.start_remote # connect with "rdebug -c"
Debugger.settings[:autoeval] = true
Rails.logger.info "Remote debugger enabled."
end
diff --git a/lib/spine.js b/lib/spine.js
index c0aa6dc..69821b0 100644
--- a/lib/spine.js
+++ b/lib/spine.js
@@ -625,27 +625,40 @@
};
Model.prototype.bind = function(events, callback) {
- var binder, unbinder,
+ var binder, singleEvent, _fn, _i, _len, _ref,
From 863f316336dae0af7b418d30b40959b5fdd9dcba Mon Sep 17 00:00:00 2001
From: aeischeid <[email protected]>
Date: Wed, 20 Feb 2013 11:42:46 -0600
Subject: [PATCH 01/10] wild stab at a test for instance individual events
unbinding
---
test/specs/model.js | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
it("should receive a successful response", function() {
spyOn($, "ajax").andCallFake(function(e) {
e.success({});
});
var callbacks = {
checkForInformation : jasmine.createSpy(),
displayCorrectMessagesAfterAjaxCallsComplete : jasmine.createSpy(),
retryRequest : jasmine.createSpy()