forked from smalruby/smalruby-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmalruby-editor.gemspec
80 lines (73 loc) · 2.41 KB
/
smalruby-editor.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
68
69
70
71
72
73
74
75
76
77
78
79
80
# coding: utf-8
require 'English'
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'smalruby_editor/version'
Gem::Specification.new do |spec|
platform = ENV['GEM_PLATFORM'] || Gem::Platform.local.to_s
is_windows = /windows|mingw|cygwin/i.match(platform)
spec.name = 'smalruby-editor'
spec.platform = platform if is_windows
spec.version = SmalrubyEditor::VERSION
spec.authors = ['Kouji Takao']
spec.email = ['[email protected]']
spec.description =
'The smalruby-editor is a visual programming editor that can create a' \
'Ruby script by combining individual blocks similar to Scratch. It can' \
' also enter the program as better than Scratch.'
spec.summary = %q{A visual programming editor.}
spec.homepage = 'https://github.com/smalruby/smalruby-editor'
spec.license = 'MIT'
spec.files = []
if File.exist?(File.expand_path('../.git', __FILE__))
spec.files += `git ls-files`.split($INPUT_RECORD_SEPARATOR)
spec.files -= ['Gemfile', 'Gemfile.lock']
end
spec.files += Dir.glob('public/assets/**/*')
spec.default_executable = 'smalruby-editor'
spec.executables = ['smalruby-editor']
spec.extra_rdoc_files = ['README.rdoc', 'LICENSE']
spec.test_files = spec.files.grep(/^(test|spec|features)\//)
spec.require_paths = ['lib']
spec.rdoc_options = %(
--title Smalruby\ Editor\ --\ A\ visual\ programming\ editor
--line-numbers
--main README
--exclude app
--exclude bin
--exclude config
--exclude db
--exclude features
--exclude lib
--exclude log
--exclude pkg
--exclude public
--exclude script
--exclude spec
--exclude test
--exclude tmp
--exclude vendor
)
runtime_dependencies =
[
['rails', '4.0.3'],
['sqlite3'],
['sass-rails', '~> 4.0.0'],
['uglifier', '>= 1.3.0'],
['coffee-rails', '~> 4.0.0'],
['turbolinks'],
['jbuilder', '~> 2.0'],
['flatstrap-sass'],
['shared-mime-info'],
['launchy'],
['mime-types', '~> 1.16'],
['haml-rails'],
['smalruby', '~> 0.0.25'],
]
runtime_dependencies << ['therubyracer'] unless is_windows
runtime_dependencies.each do |args|
spec.add_runtime_dependency(*args)
end
spec.add_development_dependency 'bundler', '~> 1.3'
spec.add_development_dependency 'rake'
end