Check-in [14cc1c0420]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | - monkeypatch String#start_with? becuase ruby <=1.8.6 doesn't have it. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
14cc1c0420d9c4f76908e08f07cc814b |
User & Date: | jls@semicomplete.com 2011-03-30 22:53:17 |
Context
2011-03-30
| ||
22:53 | Merge branch 'master' of github.com:jordansissel/fpm check-in: 2fc34b217a user: jls@semicomplete.com tags: trunk | |
22:53 | - monkeypatch String#start_with? becuase ruby <=1.8.6 doesn't have it. check-in: 14cc1c0420 user: jls@semicomplete.com tags: trunk | |
2011-03-21
| ||
18:48 | - version bump for dependency fix check-in: beae8d3a63 user: jls@semicomplete.com tags: trunk | |
Changes
Added lib/fpm/rubyfixes.rb.
> > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 | # Ruby 1.8.7 added String#start_with? - monkeypatch the # String class if it isn't supported (<= ruby 1.8.6) if !String.instance_methods.include?("start_with?") class String public def start_with?(str) return self[0 .. (str.length-1)] == str end end end |
Changes to lib/fpm/source/dir.rb.
1 2 3 4 5 6 7 8 9 | require "fpm/source" require "fileutils" class FPM::Source::Dir < FPM::Source def get_metadata self[:name] = File.basename(File.expand_path(root)) end def make_tarball!(tar_path, builddir) | > | 1 2 3 4 5 6 7 8 9 10 | require "fpm/source" require "fileutils" require "fpm/rubyfixes" class FPM::Source::Dir < FPM::Source def get_metadata self[:name] = File.basename(File.expand_path(root)) end def make_tarball!(tar_path, builddir) |
︙ | ︙ |