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
diff --git a/activerecord/lib/active_record/associations/has_many_through_association.rb b/activerecord/lib/active_record/associations/has_many_through_association.rb | |
index da9b125..448e0da 100644 | |
--- a/activerecord/lib/active_record/associations/has_many_through_association.rb | |
+++ b/activerecord/lib/active_record/associations/has_many_through_association.rb | |
@@ -82,7 +82,7 @@ module ActiveRecord | |
@through_records[record.object_id] ||= begin | |
ensure_mutable | |
- through_record = through_association.build through_scope_attributes | |
+ through_record = through_association.build through_scope_attributes, without_protection: true |
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
DEBUG_RESOLVER=1 ruby -Ilib bin/gem install foo-0.0.2.gem --backtrace --explain | |
TRY [[Dependency request foo (= 0.0.2) requested by nil], :toplevel] | |
NEXT5 (0 entries) | |
SPECS (0 entries) | |
ACTIVATE ["foo-0.0.2", 2] | |
POSSIBLE [[APISpecification | |
name: foo | |
version: 0.0.2 |
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
$ ruby -rpp -Ilib test/rubygems/test_gem_resolver_index_set.rb --name test_ignore_prerelease | |
Run options: --name test_ignore_prerelease --seed 40986 | |
# Running tests: | |
F | |
Finished tests in 0.062704s, 15.9479 tests/s, 47.8438 assertions/s. | |
1) Failure: |
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
[[APISpecification | |
name: foo | |
version: 0.0.2 | |
platform: ruby | |
dependencies: | |
[Gem::Dependency.new("activesupport", | |
Gem::Requirement.new([">= 0"]), | |
:runtime)] | |
set uri: https://api.rubygems.org/api/v1/dependencies]] | |
[[APISpecification |
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
DEBUG_RESOLVER=1 ruby -Ilib bin/gem install foo-0.0.2.gem --backtrace --explain | |
TRY [[Dependency request foo (= 0.0.2) requested by nil], :toplevel] | |
NEXT5 (0 entries) | |
SPECS (0 entries) | |
ACTIVATE ["foo-0.0.2", 2] | |
POSSIBLE [[APISpecification | |
name: foo | |
version: 0.0.2 |
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
ruby -Ilib bin/gem install foo-0.0.2.gem --backtrace | |
Fetching: rspec-core-2.14.8.gem (100%) | |
Successfully installed rspec-core-2.14.8 | |
Fetching: diff-lcs-1.2.5.gem (100%) | |
Successfully installed diff-lcs-1.2.5 | |
Fetching: rspec-expectations-2.14.5.gem (100%) | |
Successfully installed rspec-expectations-2.14.5 | |
Fetching: rspec-mocks-2.14.6.gem (100%) | |
Successfully installed rspec-mocks-2.14.6 | |
Fetching: rspec-2.14.1.gem (100%) |
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
DEBUG_RESOLVER=1 ruby -Ilib bin/gem install foo-0.0.2.gem --backtrace --explain | |
TRY [[Dependency request foo (= 0.0.2) requested by nil], :toplevel] | |
NEXT5 (0 entries) | |
SPECS (0 entries) | |
ACTIVATE ["foo-0.0.2", 2] | |
POSSIBLE [[APISpecification | |
name: foo | |
version: 0.0.2 |
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
ruby -Ilib bin/gem install foo-0.0.2.gem --backtrace | |
ERROR: While executing gem ... (Gem::DependencyError) | |
Unresolved dependency found during sorting - rspec (~> 2.14) (requested by foo-0.0.2, have foo-0.0.2, rspec-2.99.0.beta2, rspec-mocks-2.99.0.beta2, rspec-expectations-2.99.0.beta2, rspec-core-2.99.0.beta2, diff-lcs-1.2.5) | |
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:337:in `block in tsort_each_child' | |
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:326:in `each' | |
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:326:in `tsort_each_child' | |
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:411:in `call' | |
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:411:in `each_strongly_connected_component_from' | |
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component' | |
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:322:in `each' |
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
ERROR: While executing gem ... (Gem::DependencyError) | |
Unresolved dependency found during sorting - rspec (~> 2.14) (requested by foo-0.0.2, have foo-0.0.2, rspec-2.99.0.beta2, rspec-mocks-2.99.0.beta2, rspec-expectations-2.99.0.beta2, rspec-core-2.99.0.beta2, diff-lcs-1.2.5) | |
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:337:in `block in tsort_each_child' | |
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:326:in `each' | |
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:326:in `tsort_each_child' | |
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:411:in `call' | |
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:411:in `each_strongly_connected_component_from' | |
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component' | |
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:322:in `each' | |
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:322:in `tsort_each_node' |
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
# ruby 2.2.0dev (2014-02-20 trunk 45059) [x86_64-linux] | |
obj = Object.new | |
100_000.times do |i| | |
obj.respond_to?("sym#{i}".to_sym) | |
end | |
GC.start | |
puts"symbol : #{Symbol.all_symbols.size}" |