My gem doesn't work

Lowee's Avatar


12 May, 2011 02:18 PM

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:

-- 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
-- Rakefile
-- 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.' do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true

desc 'Generate documentation for the i18n_gui plugin.' do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'I18nGui'
  rdoc.options << '--line-numbers' << '--inline-source'

spec = do |s| = "I18nGui"
s.version = "0.0.1" = "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

desc 'Turn this plugin into a gem.' do |pkg|
  pkg.gem_spec = spec

My mistake is certainly stupid but I'm still too novice to realize it

Thanks in advance

  1. Support Staff 1 Posted by Nick Quaranto on 27 May, 2011 12:10 AM

    Nick Quaranto's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac