Skip to content

Commit 64a22b0

Browse files
committed
Update gemspec, gemfile, support files
1 parent aeed449 commit 64a22b0

File tree

7 files changed

+20
-50
lines changed

7 files changed

+20
-50
lines changed

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ group :development do
1010
gem 'rake-compiler-dock', '~> 0.6.0'
1111
gem 'gem-compiler', '~> 0.3.0'
1212
gem 'benchmark-ips', '~> 2.7'
13+
end
1314

14-
# documentation
15+
group :documentation do
1516
gem 'countloc', '~> 0.4.0', :platforms => :mri, :require => false
1617
# TODO (pitr-ch 04-May-2018): update to remove: [DEPRECATION] `last_comment` is deprecated. Please use `last_description` instead.
1718
gem 'yard', '~> 0.8.0', :require => false

concurrent-ruby-edge.gemspec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
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 'support/file_map'
63

74
Gem::Specification.new do |s|
85
git_files = `git ls-files`.split("\n")

concurrent-ruby-ext.gemspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
$:.push File.join(File.dirname(__FILE__), 'lib')
2-
3-
require 'concurrent/version'
1+
require_relative 'lib/concurrent/version'
42

53
Gem::Specification.new do |s|
64
s.name = 'concurrent-ruby-ext'

concurrent-ruby.gemspec

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
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'
64

75
Gem::Specification.new do |s|
8-
git_files = `git ls-files`.split("\n")
9-
106
s.name = 'concurrent-ruby'
117
s.version = Concurrent::VERSION
12-
s.platform = Gem::Platform::RUBY
8+
s.platform = Concurrent.on_jruby? ? Gem::Platform::JAVA : Gem::Platform::RUBY
139
s.authors = ["Jerry D'Antonio", 'Petr Chalupa', 'The Ruby Concurrency Team']
1410
s.email = '[email protected]'
1511
s.homepage = 'http://www.concurrent-ruby.com'
1612
s.summary = 'Modern concurrency tools for Ruby. Inspired by Erlang, Clojure, Scala, Haskell, F#, C#, Java, and classic concurrency patterns.'
1713
s.license = 'MIT'
1814
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?)]
2018
s.extra_rdoc_files = Dir['README*', 'LICENSE*', 'CHANGELOG*']
2119
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
3124

3225
s.required_ruby_version = '>= 1.9.3'
3326
end

support/file_map.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module FileMap
1111

1212
MAP = {
1313
core: CORE_LIB_FILES + %w(lib/concurrent.rb),
14-
edge: EDGE_LIB_FILES + %w(lib/concurrent-edge.rb)
14+
edge: EDGE_LIB_FILES + %w(lib/concurrent-edge.rb),
15+
spec: (Dir['spec/**/*'] + ['Gemfile', 'Rakefile']) & GIT_FILES
1516
}
1617
end

support/publish-concurrent-ruby.rb

Lines changed: 0 additions & 20 deletions
This file was deleted.

support/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ log "prerelease: $prerelease"
2222

2323
set -x
2424

25-
mriVersion="2.4.0"
26-
jrubyVersion="jruby-9.1.7.0"
25+
mriVersion="2.4.3"
26+
jrubyVersion="jruby-9.1.17.0"
2727

2828
if [[ "$@" =~ 'build' || $@ =~ 'all' ]]
2929
then

0 commit comments

Comments
 (0)