Skip to content

undefined local variable or method `settings' for Sinatra::R18n:Module #108

Open
infoman opened this Issue Jun 29, 2012 · 0 comments

1 participant

@infoman
infoman commented Jun 29, 2012

I just installed the latest rubycas-server from git and ran into this issue.

Also the Gemfile.lock file was changed when running bundle install:

diff --git a/Gemfile.lock b/Gemfile.lock
index fa1de7a..1e55812 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,7 +1,7 @@
 PATH
   remote: .
   specs:
-    rubycas-server (1.1.0)
+    rubycas-server (1.1.1)
       activerecord (>= 2.3.12, < 3.1)
       activesupport (>= 2.3.12, < 3.1)
       crypt-isaac (~> 0.9.1)
@@ -46,7 +46,7 @@ GEM
     multi_json (1.3.2)
     net-ldap (0.1.1)
     nokogiri (1.5.2)
-    r18n-core (0.4.14)
+    r18n-core (1.0.0)
     rack (1.4.1)
     rack-protection (1.2.0)
       rack
@@ -69,11 +69,11 @@ GEM
       multi_json (~> 1.0)
       rubyzip
     sinatra (1.3.2)
-      rack (>= 1.3.6, ~> 1.3)
+      rack (~> 1.3, >= 1.3.6)
       rack-protection (~> 1.2)
-      tilt (>= 1.3.3, ~> 1.3)
-    sinatra-r18n (0.4.14)
-      r18n-core (= 0.4.14)
+      tilt (~> 1.3, >= 1.3.3)
+    sinatra-r18n (1.0.0)
+      r18n-core (= 1.0.0)
       sinatra (>= 1.3)
     sqlite3 (1.3.6)
     tilt (1.3.3)
@@ -85,7 +85,7 @@ PLATFORMS
   ruby

 DEPENDENCIES
-  activeresource (< 3.1, >= 2.3.12)
+  activeresource (>= 2.3.12, < 3.1)
   capybara (= 1.1.2)
   net-ldap (~> 0.1.1)
   rack-test

When running it from webrick the backtrace looks like:

NameError - undefined local variable or method `settings' for Sinatra::R18n:Module:
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-r18n-1.0.0/lib/sinatra/r18n.rb:31:in `registered'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/r18n-core-1.0.0/lib/r18n-core.rb:130:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/r18n-core-1.0.0/lib/r18n-core.rb:130:in `default_places'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/r18n-core-1.0.0/lib/r18n-core.rb:46:in `set'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-r18n-1.0.0/lib/sinatra/r18n.rb:34:in `before (?-mix:)'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `compile!'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `[]'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `process_route'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:777:in `filter!'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:777:in `each'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:777:in `filter!'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:885:in `dispatch!'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/showexceptions.rb:21:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in `service'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
        /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
        /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
        /path/to/workdir/vendor/bundle/ruby/1.8/gems/rack-1.4.1/lib/rack/handler/webrick.rb:13:in `run'
        ./bin/../lib/casserver/server.rb:76:in `run!'
        ./bin/rubycas-server:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.