-
The -j option of the application generator accepts an arbitrary string. If passed "foo", the gem "foo-rails" is added to the Gemfile, and the application JavaScript manifest requires "foo" and "foo_ujs". As of this writing "prototype-rails" and "jquery-rails" exist and provide those files via the asset pipeline. Default is "jquery". [fxn]
-
jQuery is no longer vendored, it is provided from now on by the jquery-rails gem. [fxn]
-
Prototype and Scriptaculous are no longer vendored, they are provided from now on by the prototype-rails gem. [fxn]
-
The scaffold controller will now produce SCSS file if Sass is available [Prem Sichanugrist]
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
| #!/bin/bash | |
| # Объявляется функция func, которя обходит | |
| # католог, который передан в качестве аргумента, | |
| # и показывает все файлы в нем и в его подкаталогах | |
| func(){ | |
| for fn in `ls $1` # цикл по значениям которые возвращает комманда ls, $1 - это аргумент ф-и | |
| do | |
| if [ "$fn" != "." ] # Условие: если $fn не текущий каталог | |
| then |
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
| :⌉ | |
| =⌉ | |
| ¦-) as opposed to | | |
| ☺ | |
| ☹ | |
| ☻ | |
| ⍣ | |
| ⍤ | |
| ⍥ om nom nom | |
| ⍨ |
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
| Original Source: https://github.com/chneukirchen/styleguide | |
| = Christian Neukirchen's Ruby Style Guide | |
| You may not like all rules presented here, but they work very well for | |
| me and have helped producing high quality code. Everyone is free to | |
| code however they want, write and follow their own style guides, but | |
| when you contribute to my code, please follow these rules: | |
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
| #!/usr/bin/env ruby | |
| require "find" | |
| def file_list(dir, parent_dir=nil) | |
| list = [] | |
| Find.find("./#{dir}").map do |file| | |
| unless File.directory? file | |
| list << file | |
| end | |
| end |
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
| # Run this file with `RAILS_ENV=production rackup -p 3000 -s thin` | |
| # Be sure to have rails and thin installed. | |
| require "rubygems" | |
| # We are not loading Active Record, nor the Assets Pipeline, etc. | |
| # This could also be in your Gemfile. | |
| gem "actionpack", "~> 3.2" | |
| gem "railties", "~> 3.2" | |
| require "rails" |
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
| require 'httparty' | |
| require 'eventmachine' | |
| class Request | |
| include EM::Deferrable | |
| @@requests = [] | |
| attr_reader :method, :params |
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
| #!/bin/bash | |
| filename=$(basename $TM_FILEPATH) | |
| filename=${filename%.*} | |
| ${TM_COFFEE:=coffee} -sc | cat > "$TM_DIRECTORY/$filename.js" | |
| echo "Compiled" | |
| /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin |
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
| export CLICOLOR=1 | |
| export LSCOLORS=GxFxCxDxBxegedabagaced | |
| if [ -x /usr/libexec/path_helper ]; then | |
| eval `/usr/libexec/path_helper -s` | |
| fi | |
| if [ "${BASH-no}" != "no" ]; then | |
| [ -r /etc/bashrc ] && . /etc/bashrc |
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
| actionmailer (2.0.2) | |
| actionpack (2.0.2) | |
| activerecord (2.0.2) | |
| activeresource (2.0.2) | |
| activesupport (2.0.2) | |
| aws-s3 (0.6.3) | |
| builder (3.0.0) | |
| bundler (1.2.0) | |
| geoip (1.1.2) | |
| haml (2.2.23) |
OlderNewer