~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to lib/rss/image.rb

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
      end
143
143
 
144
144
      AVAILABLE_SIZES = %w(small medium large)
145
 
      alias_method :_size=, :size=
146
 
      private :_size=
 
145
      alias_method :set_size, :size=
 
146
      private :set_size
147
147
      def size=(new_value)
148
148
        if @do_validate and !new_value.nil?
149
149
          new_value = new_value.strip
152
152
            raise NotAvailableValueError.new(full_name, new_value, attr_name)
153
153
          end
154
154
        end
155
 
        __send!(:_size=, new_value)
 
155
        set_size(new_value)
156
156
      end
157
157
      
158
158
      alias image_size= size=