Skip to content

Instantly share code, notes, and snippets.

DEPRECATION WARNING: ActiveSupport::DeprecatedCallbacks has been deprecated in favor of ActiveSupport::Callbacks. (called from included at /home/rubys/git/awdwr/work/depot/vendor/rails/activeresource/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:7)
/home/rubys/git/awdwr/work/depot/vendor/rails/activerecord/lib/../../activemodel/lib/../../activesupport/lib/active_support/dependencies.rb:456:in `load_missing_constant': uninitialized constant ActiveSupport::Testing::Performance (NameError)
from /home/rubys/git/awdwr/work/depot/vendor/rails/activerecord/lib/../../activemodel/lib/../../activesupport/lib/active_support/dependencies.rb:91:in `const_missing'
from /home/rubys/git/awdwr/work/depot/vendor/rails/actionmailer/lib/../../actionpack/lib/action_dispatch/testing/performance_test.rb:12
from /home/rubys/.rvm/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant ActiveSupport::Autoload (NameError)
from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
from /home/rubys/git/awdwr/work/depot/vendor/rails/actionpack/lib/action_controller.rb:4
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /home/rubys/git/gorp/lib/gorp/test.rb:28
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
diff --git a/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb b/railties/lib/rails/generators/test_unit/scaff
index e4bf403..9380aa4 100644
--- a/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb
+++ b/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb
@@ -16,7 +16,7 @@ class <%= controller_class_name %>ControllerTest < ActionController::TestCase
test "should create <%= file_name %>" do
assert_difference('<%= class_name %>.count') do
- post :create, :<%= file_name %> => { }
+ post :create, :<%= file_name %> => <%= table_name %>(:one).attributes
diff --git a/scripts/manage b/scripts/manage
index e528177..a0144b7 100755
--- a/scripts/manage
+++ b/scripts/manage
@@ -515,8 +515,11 @@ __rvm_fetch_ruby() {
# TODO: Check if tag v is valid
rvm_url="${rvm_url:-"$rvm_ruby_repo_url/tags/$(echo $rvm_ruby_tag | sed 's/^t//')"}"
rvm_rev=""
+ elif [[ "$rvm_major_version.$rvm_minor_version" = "8.8" ]] ; then
+ rvm_url="${rvm_url:-"$rvm_ruby_repo_url/branches/ruby_1_${rvm_major_version}"}"
$ rvm install 1.8.6-r24700
Installing Ruby from source to: /home/rubys/.rvm/rubies/ruby-1.8.6-r24700, this may take a while depending on your cpu(s)...
ruby-1.8.6-r24700 - #fetching
Cloning from git://github.com/ruby/ruby.git, this may take a while depending on your connection...
Cloning into /home/rubys/.rvm/repos/ruby-1.8.6-r24700...
remote: Counting objects: 32692, done.
remote: Compressing objects: 100% (15056/15056), done.
remote: Total 32692 (delta 24750), reused 23390 (delta 16857)
Receiving objects: 100% (32692/32692), 22.70 MiB | 1.51 MiB/s, done.
#!/usr/bin/ruby
$SAFE = 1
print "Content-type: text/plain\r\n\r\n"
Dir.chdir ENV['DOCUMENT_ROOT'] do
print ENV['DOCUMENT_ROOT']
end
Index: submit-account-request.rb
===================================================================
--- submit-account-request.rb (revision 800677)
+++ submit-account-request.rb (working copy)
@@ -81,6 +81,9 @@
# add the list of userids that are pending
taken += File.read(REQUESTS).scan(/^(\w.*?);/).flatten
+# add member ids that do not have ICLAs
+taken += %w(andi andrei arved dgaudet pcs rasmus ssb zeev)
Go to http://connect.apple.com
Download and install the latest (January 2013) Command Line Tools for Xcode
for your operating system (OS X Lion or OS X Mountain Lion).
\curl -L https://get.rvm.io | bash
check for, and follow, any Upgrade Notes in the output from that command.
rvm install 2.0.0 --autolibs=3
$ rvm ruby-head-n39832
$ gem list mysql2
*** LOCAL GEMS ***
mysql2 (0.3.11)
$ ruby -r mysql2 -e 0
$
$ rvm ruby-head-n39842
$ gem list mysql2
*** LOCAL GEMS ***
mysql2 (0.3.11)
$ rvm requirements
Installing requirements for ubuntu, might require sudo password.
Running 'apt-get --quiet --yes update' would require sudo.
Cowardly refusing to continue, please read 'rvm autolibs'.
Updating repositories
Missing required packages: libgdbm-dev, libffi-dev.
Cowardly refusing to continue, please read 'rvm autolibs'.
$ sudo rvm requirements
[sudo] password for rubys: