Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[ANN] SqlStatement 1.0.0 - hide the syntax of SQL behind familiarruby syntax
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="ara.t.howard, post: 4531024"] here's the gemspec i use. it's for directories named 'libname-x.x.x', but you can ignore that part if you wish. ~: > cat a.rb lib, version = File::basename(File::dirname(File::expand_path(__FILE__))).split %r/-/, 2 require 'rubygems' Gem::Specification::new do |spec| spec.name = lib spec.version = version spec.platform = Gem::Platform::RUBY spec.summary = lib # # the important part # spec.files = Dir::glob "**/**" spec.executables = Dir::glob("bin/*").map{|exe| File::basename exe} spec.require_path = "lib" spec.autorequire = lib spec.has_rdoc = File::exist? "doc" spec.test_suite_file = "test/#{ lib }.rb" if File::directory? "test" spec.author = "Ara T. Howard" spec.email = "[email]ara.t.howard@noaa.gov[/email]" spec.homepage = "[URL]http://codeforpeople.com/lib/ruby/#[/URL]{ lib }/" end so, this just grabs everything. then you can make a dir called samples/, examples/, or whatever and it gets included. regards. -a [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[ANN] SqlStatement 1.0.0 - hide the syntax of SQL behind familiarruby syntax
Top