Bugs: Browse | Submit New | Admin

[#21490] main 2.8.2 breaks punch (maybe more)

Date:
2008-08-08 14:46
Priority:
3
Submitted By:
Yossef Mendelssohn (ymendel)
Assigned To:
ara howard (ahoward)
Category:
None
State:
Open
Summary:
main 2.8.2 breaks punch (maybe more)

Detailed description
Cassady:~ yossef$ punch st
--- 
rip: 
  out: 2008-07-22T19:12:40.00-05:00
hr: 
  out: 2008-07-17T17:40:27.00-05:00
Cassady:~ yossef$ sudo gem update main
Password:
Updating installed gems
Updating main
Successfully installed main-2.8.2
Gems updated: main
Cassady:~ yossef$ punch st
/Library/Ruby/Gems/1.8/gems/punch-0.0.2/bin/punch:231: undefined method `attribute' for #<Class:0x1178d78>
(NoMethodError)
	from /Library/Ruby/Gems/1.8/gems/main-2.8.2/lib/main/base.rb:246:in `module_eval'
	from /Library/Ruby/Gems/1.8/gems/main-2.8.2/lib/main/base.rb:246:in `mixin'
	from /Library/Ruby/Gems/1.8/gems/main-2.8.2/lib/main/base.rb:245:in `each'
	from /Library/Ruby/Gems/1.8/gems/main-2.8.2/lib/main/base.rb:245:in `mixin'
	from /Library/Ruby/Gems/1.8/gems/punch-0.0.2/bin/punch:36
	from /Library/Ruby/Gems/1.8/gems/main-2.8.2/lib/main/base.rb:123:in `module_eval'
	from /Library/Ruby/Gems/1.8/gems/main-2.8.2/lib/main/base.rb:123:in `create'
	from /Library/Ruby/Gems/1.8/gems/main-2.8.2/lib/main/base.rb:116:in `class_eval'
	 ... 17 levels...
	from /Library/Ruby/Gems/1.8/gems/main-2.8.2/lib/main/factories.rb:16:in `Main'
	from /Library/Ruby/Gems/1.8/gems/punch-0.0.2/bin/punch:3
	from /usr/bin/punch:19:in `load'
	from /usr/bin/punch:19
$ sudo gem uninstall main
Select gem to uninstall:
 1. main-2.8.0
 2. main-2.8.2
 3. All versions
> 2
Successfully uninstalled main-2.8.2
Cassady:~ yossef$ punch st
--- 
rip: 
  out: 2008-07-22T19:12:40.00-05:00
hr: 
  out: 2008-07-17T17:40:27.00-05:00



The line in question is in this section:

  mixin :optional_now do
    argument(:now){
      optional
      desc 'consider this time as the current time'
      arity -2
      default Time::Now
    }
    attribute(:now){ Time.parse param['now'].values.join(' ') }  # this is the one
  end

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
assigned_tonone2008-08-18 11:35ymendel