Skip to content

Instantly share code, notes, and snippets.

View jasnow's full-sized avatar
🏠
Working from home

Al Snow jasnow

🏠
Working from home
View GitHub Profile
git-config (p.180, 181, s-2)
Work Flow 1 (p.176)
-- git-clone (p.s-1, s-5)
-- "git-add ." (p.s-2,s-3)
-- git-status (p.s-2)
-- "git-commit -a -v" (p.s-2, s-3)
-- "git-commit --amend" (p.s-3)
git-fetch (Catching Up), patching (p.179)
-- git-apply (p.s-2) ; git-blame (p.s-3)
-- git-format-patch (p.s-6) ; git-send-email (p.s-6)
$ gem list --local
*** LOCAL GEMS ***
actionmailer (2.2.2, 2.0.2)
actionpack (2.2.2, 2.0.2)
activerecord (2.2.2, 2.0.2)
activeresource (2.2.2, 2.0.2)
activesupport (2.2.2, 2.0.2)
builder (2.1.2)
@jasnow
jasnow / rails-rake-dsl-warning
Created July 23, 2011 15:31
Still getting "Rake DSL" warning in 3-1-stable branch
**cd railties**
**ruby -I test -I /Usrs/whitemac/source/rails/activesupport/lib test/application/rake_test.rb**
Loaded suite test/application/rake_test
Started
...WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Class#task called at /Users/whitemac/source/rails-pull-2168/railties/tmp/app/config/application.rb:48:in `block in <class:Application>'
..WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Class#task called at /Users/whitemac/source/rails-pull-2168/railties/tmp/app/config/application.rb:44:in `block in <class:Application>'
@jasnow
jasnow / rails-new-edget-failure
Created July 23, 2011 19:56
"rails new project7 --edge" results in "failure bundler raised an exception, are you offline?
$ rails new project7 --edge
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
@jasnow
jasnow / rails-new-edge-output
Created July 23, 2011 20:38
output of "./rails/bin/rails new projectx --edge"
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
rails depends on
activesupport (= 3.2.0.beta)
coffee-rails (~> 3.1.0.rc) depends on
activesupport (3.1.0.rc1)
@jasnow
jasnow / gist:1101893
Created July 23, 2011 21:17
shell code to check 3.0 to 3.1 upgrade
find ../rt-sample-app -type f \
| egrep -v "\.git|javascripts/" \
| sed -e "s,.*rt-sample-app,," -e "s,public,app/assets," \
| sort -n > /tmp/$$_DIRS
find ../sample_app_3_1 -type f \
| egrep -v "\.git" \
| sed -e "s,.*sample_app_3_1,," -e "s,vendor/assets,app/assets," -e "s,public,app/assets," \
| sort -n > /tmp/$$_NEW_DIRS
@jasnow
jasnow / rails-3-1-stable-branch-setup
Created July 24, 2011 12:46
Rails 3-1-stable branch setup
These are the command I used yesterday to set up my rails environment to use the 3-1-stable branch of Rails:
1. Ran "git clone git://github.com/jasnow/rails.git" to get a copy of rails code. (got version 3.2.0.beta in RAILS_VERSION).
2. Ran "git checkout --track -b 3-1-stable origin/3-1-stable" to move to the 3-1-stable branch. (now version 3.1.0.rc4 in RAILS_VERSION)
3. Ran "cd rails ; bundle install --without db".
@jasnow
jasnow / gist:1102778
Created July 24, 2011 16:17
rspec warning from spork
*****************************************************************
DEPRECATION WARNING: you are using a deprecated constant that will
be removed from a future version of RSpec.
~/.rvm/gems/ruby-1.9.2-p180@rails31/gems/spork-0.9.0.rc9/lib/spork.rb:24:in `prefork'
* Rspec is deprecated.
* RSpec is the new top-level module in RSpec-2
*****************************************************************
OLDAPP="rt-sample-app"
NEWAPP="sample_app_31"
find ../${OLDAPP} -type f \
| egrep -v "\.git|javascripts/" \
| sed -e "s,.*${OLDAPP},," -e "s,public,app/assets," \
| sort -n > /tmp/$$_DIRS
find ../${NEWAPP} -type f \
| egrep -v "\.git" \
| sed -e "s,.*${NEWAPP},," -e "s,vendor/assets,app/assets," -e "s,public,app/assets," \
OTE: Gem.available? is deprecated, use Specification::find_by_name. It will be removed on or after 2011-11-01.
Gem.available? called from /Users/whitemac/.rvm/gems/ruby-1.9.2-p290/gems/jasmine-1.0.2.1/lib/jasmine/base.rb:64.
NOTE: Gem.available? is deprecated, use Specification::find_by_name. It will be removed on or after 2011-11-01.
Gem.available? called from /Users/whitemac/.rvm/gems/ruby-1.9.2-p290/gems/jasmine-1.0.2.1/lib/jasmine/base.rb:64.
Loaded suite /Users/whitemac/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2/lib/rake/rake_test_loader
Started
.........................................................
Finished in 9.300566 seconds.
57 tests, 100 assertions, 0 failures, 0 errors, 0 skips