This file contains 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
~/Code/playground/rails-3-2-stable $ cat app/models/person.rb | |
class Person | |
attr_accessor :abc | |
end | |
~/Code/playground/rails-3-2-stable $ cat app/models/story.rb | |
class Story < ActiveRecord::Base | |
attr_accessor :abc | |
end |
This file contains 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
diff --git a/test/psych/test_alias_and_anchor.rb b/test/psych/test_alias_and_anchor.rb | |
index 48771d6..ad5fb2d 100644 | |
--- a/test/psych/test_alias_and_anchor.rb | |
+++ b/test/psych/test_alias_and_anchor.rb | |
@@ -1,5 +1,13 @@ | |
require 'psych/helper' | |
+class ObjectWithInstanceVariables | |
+ attr_accessor :var1, :var2 | |
+end |
This file contains 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
1) Backend postgres is killed: | |
03:27:13 ~/Code/rails42edge_app (2.0.0-p576) + be rails c | |
Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance. | |
Loading development environment (Rails 4.2.0.beta2) | |
irb(main):001:0> conn = ActiveRecord::Base.connection; | |
irb(main):002:0* conn.query("SELECT pg_backend_pid()").first.first | |
(0.2ms) SELECT pg_backend_pid() | |
=> "99609" | |
irb(main):003:0> Process.kill("KILL", 99609) |
This file contains 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
checking for pthread_attr_setinheritsched... yes | |
checking for pthread_getattr_np... no | |
checking for pthread_attr_get_np... no | |
checking for pthread_attr_getstack... yes | |
checking for pthread_get_stackaddr_np... yes | |
checking for pthread_get_stacksize_np... yes | |
checking for thr_stksegment... no | |
checking for pthread_stackseg_np... no | |
checking for pthread_getthrds_np... no | |
checking for pthread_cond_init... yes |
This file contains 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
gem install gem-compare | |
gem compare bundler 1.7.4 1.7.5 1.7.6 1.7.7 | |
Fetching: bundler-1.7.4.gem (100%) | |
Fetching: bundler-1.7.5.gem (100%) | |
Fetching: bundler-1.7.6.gem (100%) | |
Fetching: bundler-1.7.7.gem (100%) | |
Compared versions: ["1.7.4", "1.7.5", "1.7.6", "1.7.7"] | |
DIFFERENT date: | |
1.7.4: 2014-10-20 00:00:00 UTC | |
1.7.5: 2014-11-11 00:00:00 UTC |
This file contains 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/sh | |
# | |
# Put this in manageiq/.git/hooks/post-checkout | |
# Make sure you chmod +x !!! | |
# | |
# Swap a Rails 4 Gemfile.lock on checkout of rails4 branch | |
# Put back the master branch Gemfile.lock when checking out a non-"rails4" branch. | |
# | |
branch=$(git symbolic-ref -q --short HEAD) | |
if [ "$branch" = "rails4" ] |
This file contains 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
04:11:57 ~/Code/manageiq/vmdb (master) (2.0.0-p594) + ruby -v; gem --version; bundle --version; time bundle install --without test:metric_fu:development:qpid --jobs 4 | |
ruby 2.0.0p594 (2014-10-27) [x86_64-darwin13.4.0] | |
2.0.14 | |
Bundler version 1.8.0 | |
Fetching source index from https://rubygems.org/ | |
Fetching git://github.com/ManageIQ/rails.git | |
Fetching git://github.com/ManageIQ/actionwebservice.git | |
Fetching git://github.com/ManageIQ/handsoap.git | |
Fetching https://github.com/amatsuda/jquery-rjs.git | |
Fetching git://github.com/ManageIQ/rubyrep.git |
This file contains 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
11:46:04 ~/Code/manageiq/vmdb (master) (2.1.5) - rm -rf ~/.gem/ruby/2.1.5 | |
11:46:12 ~/Code/manageiq/vmdb (master) (2.1.5) + gem install bundler -v1.8.0 | |
Fetching: bundler-1.8.0.gem (100%) | |
Successfully installed bundler-1.8.0 | |
1 gem installed | |
11:46:29 ~/Code/manageiq/vmdb (master) (2.1.5) + gem update --system | |
Updating rubygems-update | |
Fetching: rubygems-update-2.4.5.gem (100%) | |
Successfully installed rubygems-update-2.4.5 | |
Installing RubyGems 2.4.5 |
This file contains 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
Top 200 slowest example groups (by total time): | |
ApiController | |
0.35133 seconds average (33.73 seconds / 96 examples) ./spec/requests/api/policies_assignment_spec.rb:20 | |
VmdbwsController | |
0.44243 seconds average (29.64 seconds / 67 examples) ./spec/apis/vmdbws_inventory_spec.rb:3 | |
MiqAeDatastore | |
0.32243 seconds average (20.31 seconds / 63 examples) ./spec/models/miq_ae_yaml_import_export_spec.rb:4 | |
MiqAeStateMachine | |
2.47 seconds average (19.75 seconds / 8 examples) ./spec/lib/miq_automation_engine/miq_ae_state_machine_spec.rb:5 | |
ApiController |
This file contains 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 | |
# | |
# usage: | |
# Pass the tests/directories you want to tests in random order: | |
# ./test_until_failure.sh spec/models"` | |
# | |
# For example, if you think the connections method is suspect: | |
# ./test_until_failure.sh `git grep -l connections spec/lib spec/models/ spec/controllers/ |grep "_spec.rb"` | |
for i in `seq 1 500`; | |
do |