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
| # Big Endian RubySpec Example | |
| # PPC G5/MRI 1.8.7 | |
| ruby 1.8.7 (2009-06-12 patchlevel 174) [powerpc-darwin8] | |
| ........................................................................................................................................................................................................................................................................................................................................................................................................F...............F...............F.............F.............F...............F................................................................................ | |
| 1) | |
| Array#pack with format 'f' accepts a NaN FAILED | |
| Expected "\177\300\000\000" | |
| to match /\xFF(?:[\x81-\xFF]..|\x80[\x01-\xFF].|\x80.[\x01-\xFF])/n |
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 -e" p [1.0/0.0].pack('f') " | |
| # Jruby 1.3.1 + TMM1 patch: | |
| #=> "\177\200\000\000" | |
| # MRI 1.8.7 | |
| #=> "\177\200\000\000" | |
| # Jruby 1.3.1 unpatched | |
| Schrodinger:~/ruby/rubyspec danieldeleo$ which jruby | |
| /Users/danieldeleo/jruby-1.3.1/bin/jruby | |
| Schrodinger:~/ruby/rubyspec danieldeleo$ jruby -e" p [1.0/0.0].pack('f') " | |
| "\177\200\000\000" |
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/chef$ ack-grep -C 3 "find_provider_for_node|provider_class.new|provider_klass.new" | |
| ... | |
| chef/lib/chef/provider/package.rb | |
| 140- remote_file.source(@new_resource.response_file) | |
| 141- remote_file.backup(false) | |
| 142- | |
| 143: rf_provider_class = Chef::Platform.find_provider_for_node(@node, remote_file) | |
| 144: rf_provider = rf_provider_class.new(@node, remote_file) | |
| 145- rf_provider.load_current_resource | |
| 146- rf_provider.action_create |
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
| 1) | |
| 'Chef::Node::Attribute each_key should yield each top level key, post merge rules' FAILED | |
| expected: "one", | |
| got: "snack" (using ==) | |
| ./spec/unit/node/attribute_spec.rb:587: | |
| 2) | |
| 'Chef::Node::Attribute each_value should yield each value, post merge rules' FAILED | |
| expected "cookies" to include "six" | |
| ./spec/unit/node/attribute_spec.rb:657: |
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
| class << self | |
| def resource_has_a_string_attribute(attr_name) | |
| it "has a String attribute for #{attr_name.to_s}" do | |
| @resource.send(attr_name, "this is a string") | |
| @resource.send(attr_name).should eql("this is a string") | |
| lambda {@resource.send(attr_name, 8675309)}.should raise_error(ArgumentError) | |
| end | |
| end | |
| def resource_has_a_boolean_attribute(attr_name, opts={:defaults_to=>false}) |
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/chef/chef$ sudo chef-solo -j /etc/chef/solo.json | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.7.11/lib/chef/provider/git.rb:29: warning: already initialized constant SHA_HASH | |
| [Mon, 07 Sep 2009 02:37:33 -0600] INFO: Starting Chef Solo Run | |
| [Mon, 07 Sep 2009 02:37:38 -0600] INFO: Creating directory[/srv/radiant/shared/config] at /srv/radiant/shared/config | |
| [Mon, 07 Sep 2009 02:37:38 -0600] INFO: Setting owner to 1001 for directory[/srv/radiant/shared/config] | |
| [Mon, 07 Sep 2009 02:37:38 -0600] INFO: Setting group to 1001 for directory[/srv/radiant/shared/config] | |
| [Mon, 07 Sep 2009 02:37:38 -0600] INFO: Setting mode to 775 for directory[/srv/radiant/shared/config] | |
| [Mon, 07 Sep 2009 02:37:38 -0600] INFO: Creating directory[/srv/radiant/shared/log] at /srv/radiant/shared/log | |
| [Mon, 07 Sep 2009 02:37:38 -0600] INFO: Setting owner to 1001 for directory[/srv/radiant/shared/log] | |
| [Mon, 07 Sep 2009 02:37:38 -0600] INFO: Setting group to 1001 for directory[/srv/radiant/shared/log] |
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/chef/chef$ cat /etc/chef/solo.json | |
| { | |
| "radiant": { | |
| "migrate": true, | |
| "migrate_command": "rake db:migrate", | |
| "revision": "HEAD", | |
| "action": "rollback", | |
| "environment": "production" | |
| }, | |
| "recipes": ["radiant"] |
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/chef/chef$ sudo chef-solo -j /etc/chef/solo.json | |
| [Mon, 07 Sep 2009 12:42:35 -0600] INFO: Starting Chef Solo Run | |
| [Mon, 07 Sep 2009 12:42:37 -0600] INFO: checking out http://svn.apache.org/repos/asf/couchdb/trunk at revision HEAD to /opt/couchdb-src | |
| [Mon, 07 Sep 2009 12:43:07 -0600] INFO: Ran execute[bootstrap couchdb source] successfully | |
| [Mon, 07 Sep 2009 12:43:16 -0600] INFO: Ran execute[configure couchdb] successfully | |
| [Mon, 07 Sep 2009 12:43:36 -0600] INFO: Ran execute[make couchdb] successfully | |
| [Mon, 07 Sep 2009 12:43:40 -0600] INFO: Ran execute[make couchdb] successfully | |
| [Mon, 07 Sep 2009 12:43:40 -0600] INFO: Chef Run complete in 65.311791 seconds |
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
| ddeleo@hansolo:~/ruby/chef/chef$ sudo chef-solo -j /etc/chef/solo.json | |
| [Tue, 08 Sep 2009 02:06:26 -0600] INFO: Starting Chef Solo Run | |
| [Tue, 08 Sep 2009 02:06:28 -0600] INFO: Setting RAILS_ENV, RACK_ENV, and MERB_ENV to `production' | |
| [Tue, 08 Sep 2009 02:06:28 -0600] WARN: [DEPRECATED] please modify your deploy recipe or attributes to set the environment using a hash | |
| [Tue, 08 Sep 2009 02:06:31 -0600] INFO: deploying branch: 52 | |
| [Tue, 08 Sep 2009 02:06:31 -0600] INFO: ensuring proper ownership | |
| [Tue, 08 Sep 2009 02:06:31 -0600] INFO: updating the cached checkout | |
| [Tue, 08 Sep 2009 02:06:31 -0600] INFO: Updating working copy /srv/radiant/shared/cached-copy/ to revision 52 | |
| [Tue, 08 Sep 2009 02:06:32 -0600] INFO: copying the cached checkout to /srv/radiant/releases/20090908080631 | |
| [Tue, 08 Sep 2009 02:06:32 -0600] INFO: ensuring proper ownership |
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
| merb : worker (port 4000) ~ Started request handling: Wed Sep 09 22:13:09 -0600 2009 | |
| merb : worker (port 4000) ~ Routed to: {"format"=>nil, "action"=>"show", "id"=>"eigenstate_local", "controller"=>"chef_server_slice/nodes"} | |
| merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"eigenstate_local", "controller"=>"chef_server_slice/nodes"} | |
| ~ Sending HTTP Request via GET to /chef_integration/node_eigenstate_local | |
| merb : worker (port 4000) ~ Cannot load node eigenstate.local - (Merb::ControllerExceptions::NotFound) | |
| /opt/local/lib/ruby/gems/1.8/gems/chef-server-slice-0.7.11/app/controllers/nodes.rb:39:in `show' | |
| /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in `send' | |
| /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in `_call_action' | |
| /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:289:in `_dispatch' | |
| /opt/local/lib/ruby/gems/1.8/gems/m |