Hey,
Still no joy.
I thought I'd follow 7stud's example and recreate the gem structure to
see if I could load it after any reasonable modifications...
/lib
zipcode.rb -- require 'zipcode/config.rb'
/zipcode
version.rb
config.rb
cityandstate.rb
...where lib/zipcode.rb is...
require "zipcode/config.rb"
module Zipcode
# Your code goes here...
end
I'll leave my gemspec farther below -- in case someone sees something
above right away -- but I still get the kind kind of error when this gem
is installed in my Rails 3.0.7 app...
gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in
`require': no such file to load -- zipcode/config.rb (LoadError)
...
ruby-1.9.2-p290/gems/zipcode-0.0.1/lib/zipcode.rb:1:in `<top
(required)>'
I'm using rvm 1.9.2 and Bundler in my attempt to create my first working
gem...now here's the gemspec...
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "zipcode/version"
Gem::Specification.new do |s|
s.name = "zipcode"
s.version = Zipcode::VERSION
s.authors = ["Grar"]
s.email = ["[email protected]"]
s.homepage = ""
s.summary = %q{Provides city and state pair and zip data, and vice
versa}
s.description = %q{Cities in states and their zip codes}
s.rubyforge_project = "zipcode"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f|
File.basename(f) }
s.require_paths = ["lib"]
end
Thanks,
G
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.