Permalink
Browse files

updated gemspec that works with safelevel

  • Loading branch information...
1 parent 843effc commit 41d96e34e301ca76282f289ce4adebfcb312fb63 @moorage moorage committed Aug 20, 2008
Showing with 3 additions and 6 deletions.
  1. +3 −6 chronic.gemspec
View
@@ -1,5 +1,3 @@
-require 'rubygems'
-
SPEC = Gem::Specification.new do |s|
s.name = 'chronic'
s.version = '0.3.0'
@@ -8,10 +6,9 @@ SPEC = Gem::Specification.new do |s|
s.homepage = 'http://chronic.rubyforge.org'
s.platform = Gem::Platform::RUBY
s.summary = "A natural language date parser with timezone support"
- candidates = Dir["{lib,test}/**/*"]
- s.files = candidates.delete_if do |item|
- item.include?('.svn')
- end
+ # Explicitly list all files because Dir[] is incompatible with safelevel 3
+ # Just run irb >> Dir["{lib,test}/**/*"] to get the newest array of files
+ s.files = ["lib/chronic", "lib/chronic/chronic.rb", "lib/chronic/grabber.rb", "lib/chronic/handlers.rb", "lib/chronic/ordinal.rb", "lib/chronic/pointer.rb", "lib/chronic/repeater.rb", "lib/chronic/repeaters", "lib/chronic/repeaters/repeater_day.rb", "lib/chronic/repeaters/repeater_day_name.rb", "lib/chronic/repeaters/repeater_day_portion.rb", "lib/chronic/repeaters/repeater_fortnight.rb", "lib/chronic/repeaters/repeater_hour.rb", "lib/chronic/repeaters/repeater_minute.rb", "lib/chronic/repeaters/repeater_month.rb", "lib/chronic/repeaters/repeater_month_name.rb", "lib/chronic/repeaters/repeater_season.rb", "lib/chronic/repeaters/repeater_season_name.rb", "lib/chronic/repeaters/repeater_second.rb", "lib/chronic/repeaters/repeater_time.rb", "lib/chronic/repeaters/repeater_week.rb", "lib/chronic/repeaters/repeater_weekday.rb", "lib/chronic/repeaters/repeater_weekend.rb", "lib/chronic/repeaters/repeater_year.rb", "lib/chronic/scalar.rb", "lib/chronic/separator.rb", "lib/chronic/time_zone.rb", "lib/chronic.rb", "lib/numerizer", "lib/numerizer/numerizer.rb", "test/suite.rb", "test/test_Chronic.rb", "test/test_Handler.rb", "test/test_Numerizer.rb", "test/test_parsing.rb", "test/test_RepeaterDayName.rb", "test/test_RepeaterFortnight.rb", "test/test_RepeaterHour.rb", "test/test_RepeaterMonth.rb", "test/test_RepeaterMonthName.rb", "test/test_RepeaterTime.rb", "test/test_RepeaterWeek.rb", "test/test_RepeaterWeekday.rb", "test/test_RepeaterWeekend.rb", "test/test_RepeaterYear.rb", "test/test_Span.rb", "test/test_Time.rb", "test/test_Token.rb"]
s.require_path = "lib"
s.autorequire = "chronic"
s.test_file = "test/suite.rb"

0 comments on commit 41d96e3

Please sign in to comment.