diff --git a/compiler/cpp/src/generate/t_rb_generator.cc b/compiler/cpp/src/generate/t_rb_generator.cc index f4cee17890..c40636a91d 100644 --- a/compiler/cpp/src/generate/t_rb_generator.cc +++ b/compiler/cpp/src/generate/t_rb_generator.cc @@ -1228,6 +1228,11 @@ string t_rb_generator::type_name(t_type* ttype) { string t_rb_generator::full_type_name(t_type* ttype) { string prefix = "::"; + + if (ttype->get_program()->is_std_path()) { + prefix += "Thrift::"; + } + vector modules = ruby_modules(ttype->get_program()); for (vector::iterator m_iter = modules.begin(); m_iter != modules.end(); ++m_iter) { prefix += *m_iter + "::"; diff --git a/lib/rb/thrift.gemspec b/lib/rb/thrift.gemspec index 2c02b526b1..356ab344b9 100644 --- a/lib/rb/thrift.gemspec +++ b/lib/rb/thrift.gemspec @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__) Gem::Specification.new do |s| s.name = 'upfluence-thrift' - s.version = '2.5.0' + s.version = `git describe --tag`.chomp[1..] s.authors = ['Thrift Developers'] s.email = ['dev@thrift.apache.org'] s.homepage = 'http://thrift.apache.org' @@ -27,10 +27,10 @@ Gem::Specification.new do |s| s.require_paths = %w[lib ext] - s.add_development_dependency 'rspec', '~> 2.10.0' + s.add_development_dependency 'rspec' s.add_development_dependency "rack" s.add_development_dependency "rack-test" - s.add_development_dependency "thin", "~> 1.5.0" + s.add_development_dependency "thin" s.add_development_dependency "bundler" s.add_development_dependency 'rake' end