|
1 | | -$:.push File.join(File.dirname(__FILE__), 'lib') |
2 | | -$:.push File.join(File.dirname(__FILE__), 'support') |
3 | | - |
4 | | -require 'concurrent/version' |
5 | | -require 'file_map' |
| 1 | +require_relative 'lib/concurrent/version' |
| 2 | +require_relative 'lib/concurrent/utility/engine' |
| 3 | +require_relative 'support/file_map' |
6 | 4 |
|
7 | 5 | Gem::Specification.new do |s| |
8 | | - git_files = `git ls-files`.split("\n") |
9 | | - |
10 | 6 | s.name = 'concurrent-ruby' |
11 | 7 | s.version = Concurrent::VERSION |
12 | | - s.platform = Gem::Platform::RUBY |
| 8 | + s.platform = Concurrent.on_jruby? ? Gem::Platform::JAVA : Gem::Platform::RUBY |
13 | 9 | s.authors = ["Jerry D'Antonio", 'Petr Chalupa', 'The Ruby Concurrency Team'] |
14 | 10 | s.email = 'concurrent-ruby@googlegroups.com' |
15 | 11 | s.homepage = 'http://www.concurrent-ruby.com' |
16 | 12 | s.summary = 'Modern concurrency tools for Ruby. Inspired by Erlang, Clojure, Scala, Haskell, F#, C#, Java, and classic concurrency patterns.' |
17 | 13 | s.license = 'MIT' |
18 | 14 | s.date = Time.now.strftime('%Y-%m-%d') |
19 | | - s.files = FileMap::MAP.fetch(:core) |
| 15 | + s.files = [*FileMap::MAP.fetch(:core), |
| 16 | + *FileMap::MAP.fetch(:spec), |
| 17 | + *(Dir['lib/**/*.jar'] if Concurrent.on_jruby?)] |
20 | 18 | s.extra_rdoc_files = Dir['README*', 'LICENSE*', 'CHANGELOG*'] |
21 | 19 | s.require_paths = ['lib'] |
22 | | - s.description = <<-EOF |
23 | | -Modern concurrency tools including agents, futures, promises, thread pools, actors, supervisors, and more. |
24 | | -Inspired by Erlang, Clojure, Go, JavaScript, actors, and classic concurrency patterns. |
25 | | - EOF |
26 | | - |
27 | | - if defined?(JRUBY_VERSION) |
28 | | - s.files += Dir['lib/**/*.jar'] |
29 | | - s.platform = 'java' |
30 | | - end |
| 20 | + s.description = <<-TXT.gsub(/^ +/, '') |
| 21 | + Modern concurrency tools including agents, futures, promises, thread pools, actors, supervisors, and more. |
| 22 | + Inspired by Erlang, Clojure, Go, JavaScript, actors, and classic concurrency patterns. |
| 23 | + TXT |
31 | 24 |
|
32 | 25 | s.required_ruby_version = '>= 1.9.3' |
33 | 26 | end |
0 commit comments