forked from danlucraft/redcar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redcar.gemspec
68 lines (59 loc) · 2.3 KB
/
redcar.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
class RedcarGemspecHelper
def self.remove_gitignored_files(filelist)
gitignore_file = File.expand_path("../.gitignore", __FILE__)
if File.exist?(gitignore_file)
ignores = File.readlines(gitignore_file)
ignores = ignores.select {|ignore| ignore.chomp.strip != "" and ignore !~ /^#/}
ignores = ignores.map {|ignore| Regexp.new(ignore.chomp.gsub(".", "\\.").gsub("*", ".*"))}
r = filelist.select {|fn| not ignores.any? {|ignore| fn =~ ignore }}
r.select {|fn| fn !~ /\.git/ }
else
filelist
end
end
def self.remove_matching_files(list, string)
list.reject {|entry| entry.include?(string)}
end
def self.gem_manifest
r = %w(CHANGES LICENSE Rakefile README.md Gemfile Rakefile redcar.gemspec) +
Dir.glob("bin/redcar") +
Dir.glob("vendor/**/*") +
remove_gitignored_files(Dir.glob("lib/**/*")) +
remove_gitignored_files(Dir.glob("plugins/**/*"))
remove_matching_files(r, "multi-byte")
end
end
Gem::Specification.new do |s|
s.name = "redcar"
s.version = "0.14.0dev" # also change in lib/redcar.rb
s.platform = "ruby"
s.authors = ["Daniel Lucraft"]
s.email = ["[email protected]"]
s.homepage = "http://github.com/danlucraft/redcar"
s.summary = "A pure Ruby text editor"
s.description = ""
s.files = RedcarGemspecHelper.gem_manifest
s.executables = ["redcar"]
s.require_path = 'lib'
s.add_dependency("git")
s.add_dependency("spoon")
s.add_dependency("lucene", "~> 0.5.0.beta.1")
s.add_dependency("bundler")
s.add_dependency("net-ssh")
s.add_dependency("net-sftp")
s.add_dependency("net-ftp-list")
s.add_dependency("jruby-openssl")
s.add_dependency("ruby-blockcache")
s.add_dependency("bouncy-castle-java")
s.add_dependency("swt")
s.add_dependency("plugin_manager", ">= 1.5")
s.add_dependency("redcar-icons")
s.add_dependency("redcar-jruby")
s.add_dependency("redcar-svnkit")
s.add_dependency("redcar-bundles")
s.add_dependency("redcar-javamateview")
s.add_dependency("redcar-xulrunner-win") if s.platform.to_s =~ /win/
s.add_development_dependency("cucumber", "=1.1.2")
s.add_development_dependency("rspec")
s.add_development_dependency("watchr")
end