Skip to content

Commit 88606fe

Browse files
committed
Moved file map to a support folder.
1 parent 29c355f commit 88606fe

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

concurrent-ruby-edge.gemspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
$:.push File.join(File.dirname(__FILE__), 'lib')
2+
$:.push File.join(File.dirname(__FILE__), 'support')
23

34
require 'concurrent/version'
4-
require 'concurrent/file_map'
5+
require 'file_map'
56

67
Gem::Specification.new do |s|
78
git_files = `git ls-files`.split("\n")
@@ -15,7 +16,7 @@ Gem::Specification.new do |s|
1516
s.summary = 'Edge features and additions to the concurrent-ruby gem.'
1617
s.license = 'MIT'
1718
s.date = Time.now.strftime('%Y-%m-%d')
18-
s.files = Concurrent::FILE_MAP.fetch :edge
19+
s.files = FileMap::MAP.fetch(:edge)
1920
s.extra_rdoc_files = Dir['README*', 'LICENSE*']
2021
s.require_paths = ['lib']
2122
s.description = <<-TXT

concurrent-ruby.gemspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
$:.push File.join(File.dirname(__FILE__), 'lib')
2+
$:.push File.join(File.dirname(__FILE__), 'support')
23

34
require 'concurrent/version'
4-
require 'concurrent/file_map'
5+
require 'file_map'
56

67
Gem::Specification.new do |s|
78
git_files = `git ls-files`.split("\n")
@@ -15,7 +16,7 @@ Gem::Specification.new do |s|
1516
s.summary = 'Modern concurrency tools for Ruby. Inspired by Erlang, Clojure, Scala, Haskell, F#, C#, Java, and classic concurrency patterns.'
1617
s.license = 'MIT'
1718
s.date = Time.now.strftime('%Y-%m-%d')
18-
s.files = Concurrent::FILE_MAP.fetch :core
19+
s.files = FileMap::MAP.fetch(:core)
1920
s.extra_rdoc_files = Dir['README*', 'LICENSE*', 'CHANGELOG*']
2021
s.require_paths = ['lib']
2122
s.description = <<-EOF

support/file_map.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module FileMap
2+
3+
GIT_FILES = `git ls-files`.split("\n")
4+
ALL_LIB_FILES = Dir['lib/concurrent/**/*.rb'] & GIT_FILES
5+
EDGE_LIB_FILES = Dir['lib/concurrent/actor.rb',
6+
'lib/concurrent/actor/**/*.rb',
7+
'lib/concurrent/channel.rb',
8+
'lib/concurrent/channel/**/*.rb',
9+
'lib/concurrent/agent.rb',
10+
'lib/concurrent/edge/**/*.rb'] & GIT_FILES
11+
CORE_LIB_FILES = ALL_LIB_FILES - EDGE_LIB_FILES
12+
13+
MAP = {
14+
core: CORE_LIB_FILES + %w(lib/concurrent.rb lib/concurrent_ruby.rb),
15+
edge: EDGE_LIB_FILES + %w(lib/concurrent-edge.rb)
16+
}
17+
end

0 commit comments

Comments
 (0)