My gem doesn't work

Lowee's Avatar

Lowee

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:

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

  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

Generic

? 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

Recent Discussions

23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM
18 Oct, 2014 08:39 PM
16 Oct, 2014 12:41 PM
06 Oct, 2014 02:30 PM