forked from enspirit/wlang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wlang.gemspec
196 lines (162 loc) · 6.74 KB
/
wlang.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# We require your library, mainly to have access to the VERSION number.
# Feel free to set $version manually.
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require "wlang/version"
$version = WLang::Version.to_s
#
# This is your Gem specification. Default values are provided so that your library
# should be correctly packaged given what you have described in the .noespec file.
#
Gem::Specification.new do |s|
################################################################### ABOUT YOUR GEM
# Gem name (required)
s.name = "wlang"
# Gem version (required)
s.version = $version
# A short summary of this gem
#
# This is displayed in `gem list -d`.
s.summary = "WLang is a powerful code generation and templating engine"
# A long description of this gem (required)
#
# The description should be more detailed than the summary. For example,
# you might wish to copy the entire README into the description.
s.description = "WLang is a general-purpose *code generation*/*templating engine*. It's main aim is to help you generating\nweb pages, sql queries, ruby code (that is, generating code in general) without having to worry too much \nabout html entities encoding, sql back quoting, string escaping and the like. WLang proposes a generic \nengine that you can extend to fit your needs. It also proposes standard instantiations of this engine \nfor common tasks such as creating SQL queries, instantiating web pages, and so on."
# The URL of this gem home page (optional)
s.homepage = "http://github.com/blambeau/wlang"
# Gem publication date (required but auto)
#
# Today is automatically used by default, uncomment only if
# you know what you do!
#
# s.date = Time.now.strftime('%Y-%m-%d')
# The license(s) for the library. Each license must be a short name, no
# more than 64 characters.
#
# s.licences = %w{}
# The rubyforge project this gem lives under (optional)
#
# s.rubyforge_project = nil
################################################################### ABOUT THE AUTHORS
# The list of author names who wrote this gem.
#
# If you are providing multiple authors and multiple emails they should be
# in the same order.
#
s.authors = ["Bernard Lambeau", "Louis Lambeau"]
# Contact emails for this gem
#
# If you are providing multiple authors and multiple emails they should be
# in the same order.
#
# NOTE: Somewhat strangly this attribute is always singular!
# Don't replace by s.emails = ...
s.email = ["[email protected]", "[email protected]"]
################################################################### PATHS, FILES, BINARIES
# Paths in the gem to add to $LOAD_PATH when this gem is
# activated (required).
#
# The default 'lib' is typically sufficient.
s.require_paths = ["lib"]
# Files included in this gem.
#
# By default, we take all files included in the Manifest.txt file on root
# of the project. Entries of the manifest are interpreted as Dir[...]
# patterns so that lazy people may use wilcards like lib/**/*
#
here = File.expand_path(File.dirname(__FILE__))
s.files = File.readlines(File.join(here, 'Manifest.txt')).
inject([]){|files, pattern| files + Dir[File.join(here, pattern.strip)]}.
collect{|x| x[(1+here.size)..-1]}
# Test files included in this gem.
#
s.test_files = Dir["test/**/*"] + Dir["spec/**/*"]
# The path in the gem for executable scripts (optional)
#
s.bindir = "bin"
# Executables included in the gem.
#
s.executables = (Dir["bin/*"]).collect{|f| File.basename(f)}
################################################################### REQUIREMENTS & INSTALL
# Remember the gem version requirements operators and schemes:
# = Equals version
# != Not equal to version
# > Greater than version
# < Less than version
# >= Greater than or equal to
# <= Less than or equal to
# ~> Approximately greater than
#
# Don't forget to have a look at http://lmgtfy.com/?q=Ruby+Versioning+Policies
# for setting your gem version.
#
# For your requirements to other gems, remember that
# ">= 2.2.0" (optimistic: specify minimal version)
# ">= 2.2.0", "< 3.0" (pessimistic: not greater than the next major)
# "~> 2.2" (shortcut for ">= 2.2.0", "< 3.0")
# "~> 2.2.0" (shortcut for ">= 2.2.0", "< 2.3.0")
#
#
# One call to add_dependency('gem_name', 'gem version requirement') for each
# runtime dependency. These gems will be installed with your gem.
# One call to add_development_dependency('gem_name', 'gem version requirement')
# for each development dependency. These gems are required for developers
#
s.add_development_dependency("ruby-prof", "~> 0.11.2")
s.add_development_dependency("mustache", "~> 0.99.4")
s.add_development_dependency("rake", "~> 0.9.2")
s.add_development_dependency("bundler", "~> 1.0")
s.add_development_dependency("rspec", "~> 2.10.0")
s.add_development_dependency("epath", "~> 0.1.0")
s.add_development_dependency("yard", "~> 0.8.1")
s.add_development_dependency("bluecloth", "~> 2.2.0")
s.add_dependency("citrus", "~> 2.4.1")
s.add_dependency("temple", "~> 0.4.0")
s.add_dependency("backports", "~> 2.6.1")
s.add_dependency("quickl", "~> 0.4.3")
s.add_dependency("awesome_print", "~> 1.0.2")
# The version of ruby required by this gem
#
# Uncomment and set this if your gem requires specific ruby versions.
#
# s.required_ruby_version = ">= 0"
# The RubyGems version required by this gem
#
# s.required_rubygems_version = ">= 0"
# The platform this gem runs on. See Gem::Platform for details.
#
# s.platform = nil
# Extensions to build when installing the gem.
#
# Valid types of extensions are extconf.rb files, configure scripts
# and rakefiles or mkrf_conf files.
#
s.extensions = []
# External (to RubyGems) requirements that must be met for this gem to work.
# It’s simply information for the user.
#
s.requirements = nil
# A message that gets displayed after the gem is installed
#
# Uncomment and set this if you want to say something to the user
# after gem installation
#
s.post_install_message = nil
################################################################### SECURITY
# The key used to sign this gem. See Gem::Security for details.
#
# s.signing_key = nil
# The certificate chain used to sign this gem. See Gem::Security for
# details.
#
# s.cert_chain = []
################################################################### RDOC
# An ARGV style array of options to RDoc
#
# See 'rdoc --help' about this
#
s.rdoc_options = []
# Extra files to add to RDoc such as README
#
s.extra_rdoc_files = Dir["README.md"] + Dir["CHANGELOG.md"] + Dir["LICENCE.md"]
end