Skip to content

Commit

Permalink
[ruby/date] No-op gem for JRuby for now
Browse files Browse the repository at this point in the history
Remove all shipped files and require path on JRuby until we can
add JRuby's extension to the gem.

Temporary workaround for #48

ruby/date@94c3becef2
  • Loading branch information
headius authored and matzbot committed Dec 9, 2022
1 parent f25e76f commit e96b64f
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions ext/date/date.gemspec
Expand Up @@ -10,14 +10,21 @@ Gem::Specification.new do |s|
s.summary = "A subclass of Object includes Comparable module for handling dates."
s.description = "A subclass of Object includes Comparable module for handling dates."

s.require_path = %w{lib}
s.files = [
"README.md",
"lib/date.rb", "ext/date/date_core.c", "ext/date/date_parse.c", "ext/date/date_strftime.c",
"ext/date/date_strptime.c", "ext/date/date_tmx.h", "ext/date/extconf.rb", "ext/date/prereq.mk",
"ext/date/zonetab.h", "ext/date/zonetab.list"
]
s.extensions = "ext/date/extconf.rb"
if Gem::Platform === s.platform and s.platform =~ 'java' or RUBY_ENGINE == 'jruby'
s.platform = 'java'
# No files shipped, no require path, no-op for now on JRuby
else
s.require_path = %w{lib}

s.files = [
"README.md",
"lib/date.rb", "ext/date/date_core.c", "ext/date/date_parse.c", "ext/date/date_strftime.c",
"ext/date/date_strptime.c", "ext/date/date_tmx.h", "ext/date/extconf.rb", "ext/date/prereq.mk",
"ext/date/zonetab.h", "ext/date/zonetab.list"
]
s.extensions = "ext/date/extconf.rb"
end

s.required_ruby_version = ">= 2.4.0"

s.authors = ["Tadayoshi Funaba"]
Expand Down

0 comments on commit e96b64f

Please sign in to comment.