Permalink
Browse files

Making code a bit more Rubyish

Signed-off-by: mwotton <mwotton@gmail.com>
  • Loading branch information...
1 parent 4c504ee commit fff7c32fe1edadcaa58b8278417e5d54aff30821 @Neurogami Neurogami committed with Aug 10, 2009
View
@@ -4,18 +4,11 @@ PostInstall.txt
README
README.rdoc
Rakefile
-bin/jhc_builder.sh
-foo.hs
-lib/Hubris.rb
+bin/jhc_builder
+lib/hubris.rb
sample/Makefile
sample/Test.hs
sample/hsload.rb
script/console
script/destroy
script/generate
-spec/Hubris_spec.rb
-spec/spec.opts
-spec/spec_helper.rb
-tasks/rspec.rake
-test/test_Hubris.rb
-test/test_helper.rb
View
@@ -1,7 +1,4 @@
-For more information on Hubris, see http://Hubris.rubyforge.org
-
-NOTE: Change this information in PostInstall.txt
-You can also delete it if you don't want it.
-
+For more information on Hubris, see http://hubris.rubyforge.org
+You should now have a bin file names jhc_builder that you can use to compile Haskell files into .so files
View
@@ -33,7 +33,7 @@ if all else fails, mail mwotton@gmail.com with tales of woe.
== INSTALL:
-* sudo gem install Hubris
+* sudo gem install hubris
== LICENSE:
@@ -58,4 +58,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,26 +1,25 @@
-require 'rubygems'
-gem 'hoe', '>= 2.1.0'
-require 'hoe'
-require 'fileutils'
-require './lib/Hubris'
-
-Hoe.plugin :newgem
-# Hoe.plugin :website
-# Hoe.plugin :cucumberfeatures
-
-# Generate all the Rake tasks
-# Run 'rake -T' to see list of generated tasks (from gem root directory)
-$hoe = Hoe.spec 'Hubris' do
- self.developer 'FIXME full name', 'FIXME email'
- self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
- self.rubyforge_name = self.name # TODO this is default value
- # self.extra_deps = [['activesupport','>= 2.0.2']]
-
-end
-
-require 'newgem/tasks'
-Dir['tasks/**/*.rake'].each { |t| load t }
-
-# TODO - want other tests/tasks run by default? Add them to the list
-# remove_task :default
-# task :default => [:spec, :features]
+require 'rubygems'
+gem 'hoe', '>= 2.1.0'
+require 'hoe'
+require 'fileutils'
+require './lib/hubris'
+
+Hoe.plugin :newgem
+# Hoe.plugin :website
+# Hoe.plugin :cucumberfeatures
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+$hoe = Hoe.spec 'Hubris' do
+ self.developer 'Mark Wotton, with some fixes here by James Britt', 'james@neurogami.com'
+ self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
+ self.rubyforge_name = "hubris"
+ self.summary = 'tool to help build .so files from haskel code for use in Ruby via dl'
+end
+
+require 'newgem/tasks'
+Dir['tasks/**/*.rake'].each { |t| load t }
+
+# TODO - want other tests/tasks run by default? Add them to the list
+# remove_task :default
+# task :default => [:spec, :features]
File renamed without changes.
View
@@ -1,6 +0,0 @@
-$:.unshift(File.dirname(__FILE__)) unless
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
-
-module Hubris
- VERSION = '0.0.1'
-end
View
@@ -5,6 +5,6 @@ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
libs = " -r irb/completion"
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
-libs << " -r #{File.dirname(__FILE__) + '/../lib/Hubris.rb'}"
+libs << " -r #{File.dirname(__FILE__) + '/../lib/hubris.rb'}"
puts "Loading Hubris gem"
-exec "#{irb} #{libs} --simple-prompt"
+exec "#{irb} #{libs} --simple-prompt"
File renamed without changes.
View
@@ -7,4 +7,4 @@
end
$:.unshift(File.dirname(__FILE__) + '/../lib')
-require 'Hubris'
+require 'hubris'

0 comments on commit fff7c32

Please sign in to comment.