Skip to content

Instantly share code, notes, and snippets.

View rubystar's full-sized avatar

Venkata Reddy Bhavanam rubystar

View GitHub Profile
@rubystar
rubystar / gist:2959374
Created June 20, 2012 11:05
RZ-3193 -- audit logs ruby-1.9.3 rails-3.0.10
audit log when i update from console and browser
[2012-06-20 13:22:43] [UNKNOWN][MASSMOD][Receivable][[49, 348, 698, 827, 7, 17898, 17, 86, 222, 301, 388, 443, 498, 643, 18, 100, 262, 313, 402, 459, 524, 629, 781, 946, 533, 615, 750, 882, 52, 248, 544, 48, 203, 342, 368, 420, 23, 90, 228, 303, 394, 448, 504, 592, 733, 875, 115, 117, 113, 326, 119, 47, 139, 205, 284, 122, 317, 1763, 17148, 577, 17309, 56, 74, 208, 286, 423, 477, 641, 17348, 78, 288, 27, 94, 306, 53, 217, 378, 429, 485, 638, 761, 889, 15762, 16076, 17384, 102, 266, 391, 445, 499, 109, 335, 70, 88, 226, 447, 501, 603, 360, 8, 75, 210, 350, 373, 426, 481, 620, 753, 50, 91, 229, 304, 395, 450, 511, 595, 138, 329, 38, 106, 242, 321, 407, 466, 672, 778, 903, 132, 330, 418, 474, 36, 105, 319, 502, 621, 767, 104, 318, 93, 42, 110, 244, 324, 410, 470, 532, 660, 772, 898, 19, 224, 363, 58, 207, 135, 270, 323, 409, 469, 671, 777, 902, 11548, 97, 308, 79, 29, 99, 236, 311, 401, 457, 521, 637, 792, 947, 95, 28, 141, 235, 309, 85, 300, 76, 662, 774, 449, 5
@rubystar
rubystar / auditlogs with 3.2.6
Created June 19, 2012 14:38
auditlogs with 3.2.6(log/development_audit.log)
[2012-06-19 19:37:59] [arear][MOD][Campaign][4261]:{"id"=>4261, "name"=>"2/9 da", "advertiser_id"=>678, "created_at"=>Wed, 08 Feb 2012 22:04:18 CST -06:00, "updated_at"=>Wed, 14 Mar 2012 03:23:04 CDT -05:00, "start_date"=>Sat, 14 Jan 2012, "end_date"=>Sun, 13 May 2012, "media_buyer_id"=>nil, "delta"=>true, "department_id"=>8, "premium_volume"=>"premium", "order_name"=>"Areographically-29dace-2012-02", "custom_dimensions"=>"---\n- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\n name: ! 'Custom #1'\n- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\n name: ! 'Custom #2'\n- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\n name: ! 'Custom #3'\n", "geo_targeting_strategy"=>"dart", "slug"=>nil, "override_department_id"=>8, "hourly_rate"=>nil, "push_paymo_changes"=>false, "paymo_project_id"=>nil, "account_manager_id"=>1773, "billing_basis"=>"", "ad_server"=>""}; CHANGED: {"billing_basis"=>["Ree", ""], "name"=>["2/9 damn ", "2/9 da"], "custom_dimensions"=>["--- \n- !map:ActiveSupport::HashWithIndiff
@rubystar
rubystar / upagrading rails to 3.2.6
Created June 18, 2012 07:26
problem with validation_reflection gem
-sh-4.2$ rails s
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.
=> Booting Thin
=> Rails 3.2.6 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/actionpack-3.2.6/lib/action_dispatch/http/mime_type.rb:102: warning: already initialized constant PDF
Resolved collector.newrelic.com to 204.93.223.153
Exiting
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activerecord-3.2.6/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `versioned' for #<Class:0x00000005d4c510> (NoMethodError)
@rubystar
rubystar / deprecation warnings
Created June 4, 2012 06:56
upgrading to 1.9.3
sh-4.2$ bundle exec cucumber > /home/local/PENNYWISE/venkatab/Desktop/cucumber_tests.txt
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block in require': iconv will be deprecated in the future, use String#encode instead.
NOTE: Gem.latest_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.latest_load_paths called from /usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/spork-0.8.5/lib/spork.rb:112.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:603.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/si
@rubystar
rubystar / error while running the specs with 1.9.3
Created May 30, 2012 07:05
migrating to ruby 1.9.3 from 1.8.7
-sh-4.2$ bundle exec rspec spec/ > /home/local/PENNYWISE/venkatab/Desktop/specs_193.txt
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block in require': iconv will be deprecated in the future, use String#encode instead.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:68: warning: encoding option is ignored - u
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:69: warning: encoding option is ignored - u
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:70: warning: encoding option is ignored - u
DEPRECATION WARNING: Base#before_validation has been deprecated, please use Base.before_validatio
@rubystar
rubystar / spec status with 187
Created May 30, 2012 06:49
migrating to ruby 1.9.3 from 1.8.7
...........................................................F......................................FF..*.............................................................................................................F.......................................................................................F.............................................................................................FFF...................................................................................................................................................................................................F..F...........................FF.F....F.............................................................................................................................F..FFFFFFFFFF...........................................................................................................................................................................................F......................FFFFF.......................................
@rubystar
rubystar / error in installing soap4r gem
Created May 29, 2012 07:32
migrating to ruby 1.9.3 from 1.8.7
[root@pnwsdes053 redzone-latest-updated]# rails s
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block in require': iconv will be deprecated in the future, use String#encode instead.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:68: warning: encoding option is ignored - u
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:69: warning: encoding option is ignored - u
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:70: warning: encoding option is ignored - u
=> Booting WEBrick
=> Rails 3.0.10 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
-sh-4.2$ rails s
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block in require': iconv will be deprecated in the future, use String#encode instead.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:68: warning: encoding option is ignored - u
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:69: warning: encoding option is ignored - u
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:70: warning: encoding option is ignored - u
=> Booting WEBrick
=> Rails 3.0.10 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
-sh-4.2$ rails s
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block in require': iconv will be deprecated in the future, use String#encode instead.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:68: warning: encoding option is ignored - u
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:69: warning: encoding option is ignored - u
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/soap/property.rb:70: warning: encoding option is ignored - u
=> Booting WEBrick
=> Rails 3.0.10 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
@rubystar
rubystar / error in adwords4r gem
Created May 28, 2012 10:59
migrating to ruby 1.9.3 from 1.8.7
-sh-4.2$ rails s
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block in require': iconv will be deprecated in the future, use String#encode instead.
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError)
from /usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block in require'
from /usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225:in `block in lo