My gem doesn't work
By means of RailsCast and others sources I've made a plugin ho allows the management of i18n with a graphic interface. I tried to create a gem with this plugin and I published it on Rubygems but it doesn't work and I don't know why.
Here is the arborescence of the plugin:
i18n_gui
-- app
---- controllers
------ translations_controller.rb
---- helpers
---- models
---- views
------ translations
-------- index.html.erb
-- config
---- routes.rb
-- lib
---- i18n_gui.rb
-- pkg
---- I18nGUI-0.0.1.gem
-- test
---- i18n_gui_test.rb
---- test_helper.rb
-- init.rb
-- install.rb
-- MIT-LICENSE
-- Rakefile
-- README
-- uninstall.rb
And here is the content of the Rakefile:
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the i18n_gui plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the i18n_gui plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'I18nGui'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
spec = Gem::Specification.new do |s|
s.name = "I18nGui"
s.version = "0.0.1"
s.author = "Louis Wrobel"
s.platform = Gem::Platform::RUBY
s.summary = "Graphic interface for i18n"
s.files = FileList['[a-zA-Z]*', 'lib/**/*', 'app/**/*', 'config/**/*', 'test/**/*'].to_a
s.require_path = 'lib'
s.has_rdoc = false
s.add_dependency('redis')
end
desc 'Turn this plugin into a gem.'
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
My mistake is certainly stupid but I'm still too novice to realize it
Thanks in advance
Support Staff 2 Posted by Nick Quaranto on 27 May, 2011 12:10 AM
Hi there,
If you could provide a link to a github repo or something that would help! No idea what your error is and you've provided no error/stack traces. Also, you might find stackoverflow or ruby-talk mailing list a little more responsive than us.