View upgrade.diff
1 2 3 4 5 6 7 8 9 10
diff --git a/Gemfile b/Gemfile
index 71f3511..6746bc9 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,7 +3,7 @@ source "https://rubygems.org"
ruby "2.2.0"
 
# Bundle edge Rails instead: gem "rails", github: "rails/rails"
-gem "rails", "4.1.9"
+gem "rails", "~> 4.2.0"
View gist:c64767b82e56a9c01c35
1 2 3 4 5
$ brew install mongodb
==> Downloading http://downloads.mongodb.org/src/mongodb-src-r2.6.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/mongodb-2.6.3.tar.gz
==> /usr/local/opt/scons/bin/scons install --prefix=/usr/local/Cellar/mongodb/2.6.3 -j8 --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --osx-version-
/usr/bin/clang++ -o build/darwin/64/cc__usr_bin_clang/cxx__usr_bin_clang++/osx-version-min_10.9/third_party/s2/s2edgeindex.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -Werror -O3 -m64 -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -mmacosx-version-min=10.9 -Isrc/third_party/s2 -DDEBUG_MODE=false -Wno-mismatched-tags -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D_FILE_OFFSET_BITS=64 -DMONGO_HAVE___THREAD -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BA
View gist:3207577ecedaea547605
1 2 3 4 5 6 7
DEPRECATION WARNING: The following options in your Gallery.has_many :gallery_images declaration are deprecated: :order. Please use a scope block instead. For example, the following:
 
has_many :spam_comments, conditions: { spam: true }, class_name: 'Comment'
 
should be rewritten as the following:
 
has_many :spam_comments, -> { where spam: true }, class_name: 'Comment'
View gist:11381872
1 2 3 4 5 6 7 8 9 10
### RAILS 4.1
 
# Doesn't work, due to the error:
# Asset filtered out and will not be served: add
# `Rails.application.config.assets.precompile += %w( refinery/refinery.css )`
# to `config/initializers/assets.rb` and restart your server
 
class MyEngine < Rails::Engine
# set the manifests and assets to be precompiled
initializer "refinery.assets.precompile" do |app|
View projects
1 2
#!/bin/bash
echo "dir1 dir2 dir3 dir4"
View group_job.rb
1 2 3 4 5 6 7 8 9 10
class GroupJob
def initialize(attributes = {})
#do stuff
end
 
def perform
# do stuff
end
 
def success(job)
View active.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Sat, 17 Nov 2012 22:21:52 GMT till Sun, 17 Nov 2013 22:21:52 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
  .filter((user) -> user.followers > 200)
View gist:6587838
1 2 3 4 5 6 7 8 9 10
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export TERM=xterm-color
export MANPATH=/usr/local/git/man:$MANPATH
export EDITOR="$HOME/bin/editor.sh"
# Set the base PS1
export PS1="\t: \w$ "
# Rails 2, 3 and 4 console
function rc {
if [ -e "./script/console" ]; then
View gist:6368987
1 2 3 4 5 6 7 8 9 10
gem 'refinerycms', github: 'refinery/refinerycms', branch: 'rails4'
gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n', branch: 'master'
 
gem 'friendly_id', github: 'norman/friendly_id', branch: 'master'
gem 'friendly_id-globalize', github: 'norman/friendly_id-globalize', branch: 'master'
 
# Add support for refinerycms-acts-as-indexed
gem 'refinerycms-acts-as-indexed', github: 'refinery/refinerycms-acts-as-indexed'
 
gem 'protected_attributes'
View gist:6002993

What’s new, changed and removed in version 2.1.0

This guide will provide a list of bullet points of the stuff that has been added, changed and removed in version 2.1.0.

endprologue.

Changes in behaviour

WARNING. Starting from 2.1.0 we dropped support for Ruby 1.8.x and now Ruby 1.9.3 is the lowest version of
Ruby that is accepted with Ruby 2.0.0 encouraged. We strongly recommend upgrading if you’re still on 1.8.×.

Something went wrong with that request. Please try again.