Skip to content
Browse files

[Specification] `wants_head` attribute.

  • Loading branch information...
1 parent 6654114 commit 0b1a329aa1b7fc25269a8240a19fb0750933e646 @fabiopelosin fabiopelosin committed Aug 1, 2012
Showing with 12 additions and 2 deletions.
  1. +12 −2 lib/cocoapods/specification.rb
View
14 lib/cocoapods/specification.rb
@@ -193,11 +193,21 @@ def available_platforms
top_attr_accessor :summary
top_attr_accessor :documentation
top_attr_accessor :requires_arc
- top_attr_accessor :version, lambda { |v| Version.new(v) }
-
+ top_attr_accessor :wants_head
top_attr_reader :description, lambda { |instance, ivar| ivar || instance.summary }
top_attr_writer :description, lambda { |d| d.strip_heredoc }
+ # @!method version
+ #
+ top_attr_reader :version, lambda { |instance, ivar|
+ ivar.head = true if instance.wants_head
+ ivar
+ }
+
+ # @!method version=
+ #
+ top_attr_writer :version, lambda { |v| Version.new(v) }
+
# @!method license
#
# @abstract

0 comments on commit 0b1a329

Please sign in to comment.
Something went wrong with that request. Please try again.