Code Monkey home page Code Monkey logo

localeapp's People

Contributors

aaronjensen avatar bartlomiejdanek avatar ben-m avatar cannikin avatar chrismcg avatar fabn avatar full-of-foo avatar futhr avatar grozen avatar holli avatar jonyesno avatar leonhooijer avatar martindell avatar martoche avatar maximerety avatar michaelbaudino avatar oriolgual avatar rkushnir avatar rmehner avatar ryanb avatar spilin avatar tenderlove avatar thibaultdalban avatar tigrish avatar vayan avatar xijo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

localeapp's Issues

localeapp crashes

heinrich@roma-2:~/iqlab/cs$ bundle exec localeapp install yzrK7sodQ2ckmOLi14xbII35Qk363hh4v42juBkclI9HqSHK7P
Localeapp Install

Checking API key: yzrK7sodQ2ckmOLi14xbII35Qk363hh4v42juBkclI9HqSHK7P
/Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]

-- Control frame information -----------------------------------------------
c:0027 p:---- s:0146 b:0146 l:000145 d:000145 CFUNC :connect
c:0026 p:0011 s:0143 b:0143 l:0001e0 d:000142 BLOCK /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799
c:0025 p:0031 s:0141 b:0141 l:000140 d:000140 METHOD /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:54
c:0024 p:0026 s:0129 b:0129 l:000128 d:000128 METHOD /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:99
c:0023 p:0485 s:0123 b:0123 l:0001e0 d:0001e0 METHOD /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799
c:0022 p:0011 s:0115 b:0115 l:000114 d:000114 METHOD /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:755
c:0021 p:0048 s:0112 b:0112 l:000111 d:000111 METHOD /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:744
c:0020 p:0361 s:0109 b:0109 l:000108 d:000108 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/request.rb:172
c:0019 p:0075 s:0101 b:0101 l:000100 d:000100 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/request.rb:64
c:0018 p:0021 s:0096 b:0096 l:000095 d:000095 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/request.rb:33
c:0017 p:0300 s:0091 b:0091 l:000090 d:000090 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/api_caller.rb:62
c:0016 p:0112 s:0083 b:0083 l:000082 d:000082 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/api_caller.rb:27
c:0015 p:0040 s:0074 b:0074 l:000073 d:000073 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/api_call.rb:6
c:0014 p:0151 s:0068 b:0068 l:000067 d:000067 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/key_checker.rb:15
c:0013 p:0027 s:0064 b:0064 l:000063 d:000063 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/cli/install.rb:33
c:0012 p:0094 s:0060 b:0060 l:000059 d:000059 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/cli/install.rb:12
c:0011 p:0050 s:0051 b:0051 l:000068 d:000050 BLOCK /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/bin/localeapp:35
c:0010 p:---- s:0044 b:0044 l:000043 d:000043 FINISH
c:0009 p:---- s:0042 b:0042 l:000041 d:000041 CFUNC :call
c:0008 p:0019 s:0036 b:0036 l:000035 d:000035 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/command.rb:121
c:0007 p:0255 s:0030 b:0030 l:000029 d:000029 METHOD /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli.rb:237
c:0006 p:0427 s:0018 b:0017 l:000068 d:000068 TOP /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/bin/localeapp:134
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :load
c:0003 p:0127 s:0007 b:0007 l:002128 d:0014c0 EVAL /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/bin/localeapp:19
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002128 d:002128 TOP

-- Ruby level backtrace information ----------------------------------------
/Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/bin/localeapp:19:in <main>' /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/bin/localeapp:19:inload'
/Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/bin/localeapp:134:in <top (required)>' /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli.rb:237:inrun'
/Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/command.rb:121:in execute' /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/command.rb:121:incall'
/Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/bin/localeapp:35:in block (2 levels) in <top (required)>' /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/cli/install.rb:12:inexecute'
/Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/cli/install.rb:33:in check_key' /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/key_checker.rb:15:incheck'
/Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/api_call.rb:6:in api_call' /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/api_caller.rb:27:incall'
/Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/api_caller.rb:62:in make_call' /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/request.rb:33:inexecute'
/Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in execute' /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/request.rb:172:intransmit'
/Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:744:in start' /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:755:indo_start'
/Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in connect' /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:99:intimeout'
/Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb:54:in timeout' /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:inblock in connect'
/Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799:in `connect'

-- C level backtrace information -------------------------------------------

See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.

-- Other runtime information -----------------------------------------------

  • Loaded script: /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/bin/localeapp

  • Loaded features:

    0 enumerator.so
    1 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle
    2 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/trans/transdb.bundle
    3 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
    4 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/rbconfig.rb
    5 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
    6 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
    7 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
    8 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb
    9 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/pathname.bundle
    10 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/pathname.rb
    11 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
    12 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/etc.bundle
    13 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb
    14 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
    15 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
    16 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
    17 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
    18 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
    19 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/psych.bundle
    20 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/stringio.bundle
    21 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/nodes/node.rb
    22 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/nodes/stream.rb
    23 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/nodes/document.rb
    24 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/nodes/sequence.rb
    25 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/nodes/scalar.rb
    26 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/nodes/mapping.rb
    27 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/nodes/alias.rb
    28 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/nodes.rb
    29 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/streaming.rb
    30 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/visitor.rb
    31 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/strscan.bundle
    32 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/scalar_scanner.rb
    33 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb
    34 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/emitter.rb
    35 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb
    36 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/json/ruby_events.rb
    37 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/json_tree.rb
    38 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/depth_first.rb
    39 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors.rb
    40 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/handler.rb
    41 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/tree_builder.rb
    42 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/parser.rb
    43 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/omap.rb
    44 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/set.rb
    45 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/coder.rb
    46 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/core_ext.rb
    47 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/date_core.bundle
    48 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/date/format.rb
    49 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/date.rb
    50 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/deprecated.rb
    51 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/json.rb
    52 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb
    53 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/yaml.rb
    54 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/syck_hack.rb
    55 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/rubygems_integration.rb
    56 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/shared_helpers.rb
    57 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb
    58 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/rubygems_ext.rb
    59 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/version.rb
    60 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler.rb
    61 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/digest.bundle
    62 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/digest.rb
    63 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/digest/sha1.bundle
    64 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/environment.rb
    65 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/runtime.rb
    66 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/settings.rb
    67 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/definition.rb
    68 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/dependency.rb
    69 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/dsl.rb
    70 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/uri/common.rb
    71 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/uri/generic.rb
    72 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/uri/ftp.rb
    73 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/uri/http.rb
    74 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/uri/https.rb
    75 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/uri/ldap.rb
    76 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/uri/ldaps.rb
    77 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/uri/mailto.rb
    78 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/uri.rb
    79 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/user_interaction.rb
    80 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/f_sync_dir.rb
    81 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_header.rb
    82 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/iso_8859_1.bundle
    83 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/zlib.bundle
    84 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb
    85 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_output.rb
    86 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader/entry.rb
    87 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader.rb
    88 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_writer.rb
    89 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/package.rb
    90 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/format.rb
    91 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb
    92 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/ext/configure_builder.rb
    93 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/optparse.rb
    94 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/command.rb
    95 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/ext/ext_conf_builder.rb
    96 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/ext/rake_builder.rb
    97 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/ext.rb
    98 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/require_paths_builder.rb
    99 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb
    100 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb
    101 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/errors.rb
    102 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/text.rb
    103 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb
    104 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/open3.rb
    105 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/gem_installer.rb
    106 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/source.rb
    107 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/lockfile_parser.rb
    108 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/lazy_specification.rb
    109 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/tsort.rb
    110 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/forwardable.rb
    111 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/spec_set.rb
    112 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/index.rb
    113 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/bundler/gems/date_validator-f33ed64186c9/lib/date_validator/version.rb
    114 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/bundler/gems/questionnaire-8fe4a73a4049/lib/questionnaire/version.rb
    115 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/set.rb
    116 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/resolver.rb
    117 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/remote_specification.rb
    118 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb
    119 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/bundler-1.0.21/lib/bundler/setup.rb
    120 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/i18n-0.6.0/lib/i18n/version.rb
    121 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/i18n-0.6.0/lib/i18n/exceptions.rb
    122 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/i18n-0.6.0/lib/i18n/interpolate/ruby.rb
    123 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/i18n-0.6.0/lib/i18n.rb
    124 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/i18n-0.6.0/lib/i18n/core_ext/hash.rb
    125 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/i18n_shim.rb
    126 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/version.rb
    127 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/configuration.rb
    128 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/routes.rb
    129 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/api_call.rb
    130 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/api_caller.rb
    131 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/socket.bundle
    132 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/socket.rb
    133 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/timeout.rb
    134 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/protocol.rb
    135 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb
    136 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/openssl.bundle
    137 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/openssl/bn.rb
    138 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/openssl/cipher.rb
    139 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/openssl/config.rb
    140 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/openssl/digest.rb
    141 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/openssl/buffering.rb
    142 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/fcntl.bundle
    143 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/openssl/ssl-internal.rb
    144 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/openssl/x509-internal.rb
    145 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/openssl.rb
    146 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/https.rb
    147 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/exceptions.rb
    148 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/delegate.rb
    149 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/tmpdir.rb
    150 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/thread.rb
    151 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/tempfile.rb
    152 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/mime-types-1.17.2/lib/mime/types.rb
    153 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/cgi/core.rb
    154 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/cgi/cookie.rb
    155 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/cgi/util.rb
    156 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/cgi.rb
    157 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/request.rb
    158 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb
    159 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/response.rb
    160 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/raw_response.rb
    161 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/resource.rb
    162 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/payload.rb
    163 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb
    164 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/restclient.rb
    165 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/rest-client-1.6.7/lib/rest-client.rb
    166 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@global/gems/json-1.6.5/lib/json/version.rb
    167 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@global/gems/json-1.6.5/lib/json/common.rb
    168 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/utf_16be.bundle
    169 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/utf_16le.bundle
    170 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/utf_32be.bundle
    171 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/utf_32le.bundle
    172 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@global/gems/json-1.6.5/ext/json/ext/json/ext/parser.bundle
    173 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@global/gems/json-1.6.5/ext/json/ext/json/ext/generator.bundle
    174 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@global/gems/json-1.6.5/lib/json/ext.rb
    175 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@global/gems/json-1.6.5/lib/json.rb
    176 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/sender.rb
    177 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/time.rb
    178 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/poller.rb
    179 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/updater.rb
    180 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/key_checker.rb
    181 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/missing_translations.rb
    182 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/cli/install.rb
    183 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/cli/pull.rb
    184 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/cli/push.rb
    185 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/cli/update.rb
    186 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp/cli/add.rb
    187 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/bundler/gems/ya2yaml-20c306c9d486/lib/ya2yaml.rb
    188 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/localeapp-0.3.2/lib/localeapp.rb
    189 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/command_line_token.rb
    190 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/copy_options_to_aliases.rb
    191 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/command.rb
    192 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/exceptions.rb
    193 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/switch.rb
    194 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/flag.rb
    195 /Users/heinrich/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/ostruct.rb
    196 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/options.rb
    197 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli_version.rb
    198 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli/terminal.rb
    199 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/support/help.rb
    200 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/support/rdoc.rb
    201 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/support/initconfig.rb
    202 /Users/heinrich/.rvm/gems/ruby-1.9.3-p0@cs/gems/gli-1.5.1/lib/gli.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap

Moving translations due to refactorings

Currently it is quite a pain to move translations around when translation paths for relative translation lookups change due to refactorings.

Example:

file users/_xyz.html.haml:

t('.translation_key)    # translation is in users:xyz:translation_key
t('.another_translation_key)
...  more translation lookups ...

When I now move the file for example to a subfolder users/partials/_xyz.html.haml
I need to move all translations to keys that look like: users:partials:xyz:...

Potential memory leak in daemon

Just startet the localeapp-daemon (v0.6.9) with "-b" on our staging-server yesterday. It seems that there's an memory leak, because today the process takes about 1,5gig of ram. In my opinion a daemon that fetches a few bytes of text-data shouldn't take that much ram in that short time :)

Problem during bundle install

Hello, i just wanted to install your gem but i got message error when i try to bundle install.

Invalid gemspec in [/home/soixantecircuits/.rvm/gems/ree-1.8.7-2011.03@xxxxxx/specifications/localeapp-0.1.0.gemspec]: Illformed requirement ["#YAML::Syck::DefaultKey:0x9651360 2.5.0"]

"localeapp pull" fails in rails 3.2.1

hi,

i'm running rails 3.2.1 on ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

when i do a
$ localeapp pull

i get
Localeapp Pull
Fetching translations:
Success!
Updating backend:
error: undefined method `dump' for Psych:Module

and nothing is updated.
any ideas?

thank you
kai

SystemStackError in development

In development, rails crashes with following error:

Started GET "/users/1/edit" for 127.0.0.1 at 2012-03-18 19:23:11 +0100
Processing by UsersController#edit as HTML
  Parameters: {"id"=>"1"}
** [Localeapp] 1332094992-- Handling translation updates
** [Localeapp] 1332094992 - polling
** [Localeapp] API CALL: get https://api.localeapp.com/v1/projects/*my API Key*/translations.yml?updated_at=1332094110
** [Localeapp] ATTEMPT 1
** [Localeapp] RESPONSE: 304
  User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
   (0.2ms)  BEGIN
   (0.7ms)  UPDATE "users" SET "last_request_at" = '2012-03-18 18:23:12.976171', "perishable_token" = 'brFVk5XoWW5tnWGoGTKx', "updated_at" = '2012-03-18 18:23:12.977849' WHERE "users"."id" = 1
[paperclip] Saving attachments.
   (1.6ms)  COMMIT
  Role Load (1.2ms)  SELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles"."id" = "roles_users"."role_id" WHERE "roles_users"."user_id" = 1 AND "roles"."name" = 'admin' LIMIT 1
  User Load (2.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", "1"]]
  User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
  CACHE (0.0ms)  SELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles"."id" = "roles_users"."role_id" WHERE "roles_users"."user_id" = 1 AND "roles"."name" = 'admin' LIMIT 1
  Rendered shared/_error_messages.html.haml (2.4ms)
** [Localeapp] translation missing: nl.activerecord.errors.models.user.attributes.avatar.block
** [Localeapp] Detected missing translation for key(s) :"activerecord.errors.models.user.attributes.avatar.block"
  Rendered users/_admin_fields.html.haml (60.4ms)
  Rendered users/edit.html.haml within layouts/application (72.0ms)
  CACHE (0.0ms)  SELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles"."id" = "roles_users"."role_id" WHERE "roles_users"."user_id" = 1 AND "roles"."name" = 'admin' LIMIT 1
  Rendered layouts/_header.html.haml (9.8ms)
Completed 500 Internal Server Error in 1250ms

SystemStackError (stack level too deep):
  actionpack (3.2.1) lib/action_dispatch/middleware/reloader.rb:70


  Rendered /Users/protowouter/.rvm/gems/ruby-1.9.3-p0@kronos/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
  Rendered /Users/protowouter/.rvm/gems/ruby-1.9.3-p0@kronos/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
  Rendered /Users/protowouter/.rvm/gems/ruby-1.9.3-p0@kronos/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (4.3ms)

I can prevent this error from happening by either setting config.sending_environments = []
or disabling client_side_validations.

I am using client_side_validations DavyJonesLocker/client_side_validations@fa9aa7f
and localeapp d700024

Does localeapp use config.i18n.load_path

Hi,

Does localeapp user config.i18n.load_path so I can change the locale dir.
After change the config.i18n.load_path the localeapp pull still downloads the files to config/locales. Or do I have to set a parameter in localeapp.

Kind Regards
Marcel

Special characters are not allowed

Hi again :)

I'm trying to translate my web app with special characters like š đ č ć ž and unfortunately I get this error when trying to run daemon:

Localeapp update: checking for translations since 1344524736
error: special characters are not allowed

After the error daemon stops.

It happens when using jruby-1.6.7.2 or jruby-1.7.0.preview2

Thanks!
Luís

[feature] Task to scan all views to send missing translations

Hi !

I use localeapp on several Rails projects. The current only automatic "way" to send missing translations is by using the MissingTranslation backend from localeapp that makes a call to the localeapp API. This solution works but has some drawbacks : it really slows down the sending environments, if the views or Ruby code contains logic tests (if / else / etc), the sending env may never run through the code and miss translations, etc.

One other way would be to create a task that would just scan all the views for translations calls. I think it would be easy to reach good results without a complex parser or evaluating ruby code. A simple task would just read all the views from the app/views path, catch "t" and "l" calls, test translations and make the API call. Advantages : no slow down of dev env at all, would catch keys inside logic. Disadvantages : impossible to parse I18n calls that have interpolation or dynamic variable(s) in the key.

What do you think of this feature ?

How to use under ssl? Cant get daemon to run

Hi,

I have been trying for a few days now to get localeapp running under ssl.

I have used the settings in your wiki and pointed to the ssl_ca_file:

config.api_key = 'blahsdsafd'
config.polling_environments = []
config.sending_environments = []
config.reloading_environments = [:production]
config.poll_interval = 60
config.ssl_verify = true
config.ssl_ca_file = '/usr/lib/ssl/certs/ca-certificates.crt' 

#have also tried this directory

config.ssl_ca_file = '/etc/ssl/certs/cacert.pem'

Every time I try to start the daemon on the server I get this error:

/home/deployer/.rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/net/http.rb:799: warning: exception in verify_callback is ignored
error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

Any ideas on where i'm going wrong? is this a bug in localapp

My server is running Ubuntu 12.04, Rails 3.2.8 and Ruby 1.9.3-p125 under rbenv

Thanks in advance

invalid tags pushed into yml

Seeing this once in a while on travis-ci - currently running four locales.

Seems that the value coming down from the UI is null in some cases and writes to the locale yml as follows:

- !ruby/object:Syck::PrivateType
  type_id: 'null'
  value: !str
    str: ''
    taguri: x-private:null

`config.polling_environments = []` not working

I've tried to use the

config.polling_environments = []

as described [here](https://github.com/Locale/localeapp/wiki/Configure-the-Locale-Ruby-Gem here), inside my localeapp initializer.
This config should prevent the LocaleApp gem to poll the translations server for any environment.
Unfortunately, even after the server restart, LocaleApp gem keeps polling translations server on page loading.

This slow down our development.

We need the gem only to upload new keys to server on development env from CLI, but we don't want the polling feature.

Is there a way to accomplish this?

Bug: Can't `update`

$ localeapp update
Localeapp update: checking for translations since 1344621846
error: undefined class/module ActiveSupport::

A way to remove/rename keys

It would be nice if we could do

localeapp remove errors.name

and

localeapp rename errors.name errors.first_name

Should be possible on any level of namespacing

A way to clean unused translations

Let's say que have an updated en.yml file and old es.yml.

The es.yml is missing a lot of keys from the recent en.yml. However in addition to that, the es.yml has some old keys that are not used anymore.

With this scenario Localeapp shows that the English locale has incomplete all the old keys that the es.yml still have.

Is there someway to clean the English file so it doesn't show the incomplete keys and to remove those keys from the Spanish file?

If there is no way to do that it would be nice to have it! :)

GLI warning

When I run bundle exec localeapp install API_KEY I get:

You should include GLI::App instead
GLI.run no longer works for GLI-2, you must just call `run(ARGV)' instead
either fix your app, or use the latest GLI in the 1.x family

config/initializers/localeapp.rb is not created.

undefined class/module ActiveSupport::

When I do a bundle exec localeapp pull I have this error :

undefined class/module ActiveSupport::

After the backend update. After investigating on the code, I found this exception is raise during the Psych::Load because your API return some ActiveSupport::HashWithIndifferentAccess ruby/hash in the yaml.

So to avoid this issue. There are 2 solutions. require 'active_support/hash_with_indifferent_access' or avoid returning this Object from your API.

To avoid this issue I launch the commandline like :

RUBYOPT='-ractive_support/hash_with_indifferent_access' bundle exec localeapp pull

Interfering with Heroku logger?

If I add:

Enable logging on Heroku

config.logger = Logger.new(STDOUT)

See everything in the log (default is :info)

config.log_level = :debug
to config/environments/production.rb I get this crash when the app starts on Heroku Cedar:
from /app/vendor/bundle/ruby/1.9.1/gems/localeapp-0.4.3/lib/localeapp/rails.rb:40:in open' from /app/vendor/bundle/ruby/1.9.1/gems/localeapp-0.4.3/lib/localeapp/rails.rb:40:ininitialize_synchronization_data_file'
/app/vendor/bundle/ruby/1.9.1/gems/localeapp-0.4.3/lib/localeapp/rails.rb:40:in initialize': No such file or directory - /app/log/localeapp.yml (Errno::ENOENT) from /app/vendor/bundle/ruby/1.9.1/gems/localeapp-0.4.3/lib/localeapp/rails.rb:51:in<top (required)>'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in require' from /app/vendor/bundle/ruby/1.9.1/gems/localeapp-0.4.3/lib/localeapp/rails.rb:35:ininitialize'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in block in require' from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225:inload_dependency'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in require' from /app/config/initializers/localeapp.rb:1:in<top (required)>'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in load' from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:inblock in load'
from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225:in load_dependency' from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:inload'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/engine.rb:555:in each' from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:30:inrun'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:30:in instance_exec' from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/engine.rb:555:inblock in class:Engine'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/engine.rb:556:in block (2 levels) in <class:Engine>' from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:55:inblock in run_initializers'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:54:in each' from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:54:inrun_initializers'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/application.rb:96:in initialize!' from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:inmethod_missing'
from /app/config/environment.rb:5:in <top (required)>' from config.ru:3:inrequire'
from config.ru:3:in block in <main>' from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:ininstance_eval'
from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in initialize' from config.ru:1:innew'
from config.ru:1:in <main>' from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:inload'
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:181:in load_rackup_config' from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:ineval'
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:71:in start' from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:inrun_command'
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:in run!' from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/bin/thin:6:in<top (required)>'
from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in load' from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in

'

It was recommended to set the logger here http://stackoverflow.com/questions/8098429/heroku-logging-not-working

Is localeapp doing something speical with the logs?

Localeapp fails to get rails 3 translations in other than english locale

I've added rails 3 library in en and ru locales.

Here is translations for 'date.order'
Untitled.png

Rails console:

1.9.3p327 :001 > I18n.locale = :ru
 => :ru
1.9.3p327 :002 > I18n.t(:'date.order')
 => "ru, date.order" 
1.9.3p327 :003 > 

Log:

** [Localeapp] translation missing: ru.date.order
** [Localeapp] Detected missing translation for key(s) "date.order"

Why it does not work?

getting No such file or directory error after switching to unicorn on Heroku

2012-05-10T22:09:31+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bundler/gems/localeapp-afb6f2e8b7bd/lib/localeapp/rails.rb:40:in `initialize': No such file or directory - /app/log/localeapp.yml (Errno::ENOENT)

Note the ruby/1.9.1/bundler/gems/....shouldn't this be 1.9.3?

Ruby 1.9.3, works fine on the local machine and is tracking the latest gem in the repo. Any ideas? I looked through and saw an earlier ticket about a similar issue that looked like it was patched by @tenderlove.

Note: I have tried manually adding the log file back to the repo and deploying, but nada...thanks.

How to handle changes to default existing text

The scenario: I have the key/value "about: Some text about my application" in my en.yml file, which is marked as the default locale. It gets translated to 3 languages (es, fr, de).

A month later, a developer changes the text to "about: Some more in depth text about my application"

When this change gets pushed to the server, the online app does not indicate to the translators that this needs to be retranslated, so unless the translators regularly review all of the translations to make sure they are still accurate, the "about" text will be different for the other languages.

The only way I see around this is to create a new key each time, but that doesn't seem reasonable for a large and regularly updated application.

Feature request for left hand side folder tree: file symbol for translations

I was suggesting this small but highly valuable feature a while ago:

It would be great if translation leaf keys would use the file symbol rather than a folder symbol on the lefthand side translation key tree. That way one could easily distinguish between "folders" (=nested translations) or keys that directly hold a translations (the yaml trees leaf nodes). A useful ordering would then be "folders" first then "files".

Opinions?

Would be great to see this added ;-)

Heroku with ruby 1.9.1 requires Psych gem as a dependency

I was seeing this error on my logs in Heroku that avoided the app to boot:

undefined method `dump' for Psych:Module

I managed to fix the error and now I don't know how to get earlier in the logs to paste the detailed information. Then I found this issue elsewhere ice-cube-ruby/ice_cube#56 and I tried adding psych to my Gemfile and that fixed the issue.

Unless I'm missing some important point, you should either make the psych gem a dependency of localepp gem or mention it in the documentation.

Localeapp on jruby-1.7.0.preview2

Hi,

I just tried the localeapp with jruby-1.7.0.preview2 and pull command are not working:

$ localeapp pull
Localeapp Pull

Fetching translations:
error: Resource temporarily unavailable - errno backtraces disabled; run with -Xerrno.backtrace=true to enable

I checked daemon command and it's not working also.

In my previous version of jruby (jruby 1.6.7) it was working.

Thanks,
Luís

Daemon is not pulling new changes

Hi,

I'm trying to put localeapp working on my jruby application and the automatic pulling by request is working great!

However, when I try to put the automatic working with the daemon it doesn't recognize the changes.

$ localeapp daemon
Localeapp update: checking for translations since 1344012408
No new translations
Localeapp update: checking for translations since 1344012408
No new translations
Localeapp update: checking for translations since 1344012408
No new translations

My localeapp.rb has the following:

# coding: UTF-8

require 'localeapp/rails'

Localeapp.configure do |config|
  config.api_key = 'something really weird :)'
  config.polling_environments = []
end

Shouldn't this work?

Anyway, if I enable polling_environments by removing config.polling_environments = []
daemon works but it does both automatic and on request and this is not what I want.
Suggestion?

Thanks!

phusion passanger and rails 2.3

hello,
i was just typing this question on stackoverflow but while writing i solved it by myself:

...

i use rails 2.3.12 and i am trying to install the gem called localeapp.
this is no problem when i start rails with "script/server".
but when i start rails with phusion passenger the Localeapp Module seems to not get initialized and configured via config/environments.rb

Rails::Initializer.run do |config|
  config.gem 'localeapp'
end

it does not matter if this config.gem 'localeapp' statement is in the block or not it brings the same error no matter what:

enger::ClassicRails::ApplicationSpawner (undefined method `configure' for Localeapp:Module) (process 14621, thread #<Thread:0x7fa9dc4a1360>):
from /usr/lib/ruby/gems/1.8/gems/localeapp-0.4.3/lib/localeapp/rails.rb:28:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/localeapp-0.4.3/lib/localeapp/rails.rb:52
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/dependencies.rb:184:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/dependencies.rb:184:in `require'
from /var/www/karmap/config/initializers/localeapp.rb:1
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/dependencies.rb:173:in `load_without_new_constant_marking'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/dependencies.rb:173:in `load'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.12/lib/initializer.rb:622:in `load_application_initializers'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.12/lib/initializer.rb:621:in `each'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.12/lib/initializer.rb:621:in `load_application_initializers'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.12/lib/initializer.rb:176:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.12/lib/initializer.rb:113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.12/lib/initializer.rb:113:in `run'
from /var/www/karmap/config/environment.rb:8 
...

this is very strange since it works perfectly when i start it with "script/server".
I also have 2 other config.gem statements in there:

  config.gem 'paypal_adaptive'
  config.gem 'facebooker2'

if i remove them the server complains about not initializing facebooker2. So the conclusion is that it has to do with the phusion passenger not picking up the config.gem 'localeapp' statement somehow.

script/server -e production or only script/server #works

i have the following configuration:

Apache/2.2.9 (Debian) Phusion_Passenger/3.0.7 mod_ssl/2.2.9 OpenSSL/0.9.8g

this question i somehow related to: http://stackoverflow.com/questions/2361199/getting-rmagick-to-work-with-phusion-passenger


i solved this problem because the config/initializers/localeapp.rb looks like this now:

require 'localeapp'
require 'localeapp/rails'

Localeapp.configure do |config|
config.api_key = 'xxxxxx'
end

translation YML files permission problem

we have a lot of problems with the localized yml files' permissions on our servers.
we use capistrano for deploying the poject, and after finalizing the source, we call "localeapp pull" for updating ymls. after it, we set the correct permissions "0664" on the files.
but during the syncronization process sometimes localeapp deletes (?) all the yml files, and creates new ones with wrong permissions! why? only the contents of the yml files should change

thanks,
Tamas

Bad export of string keys

When using string keys, the import works fine, but the export does not work (see example below)

Input

de:
  fixed:
    "yes": "Ja"
    "no": "Nein"

Output

de:
  fixed:
    ? "no"
    : Nein
    ? "yes"
    : Ja

Is there any way (besides changing the key names) to make string keys work like expected when exporting?

Add an option for the api_key in the CLI

For some projects (libraries for example), creating a config/initializers/localeapp.rb is overkill.

I'd love to be able to push locale files like this :

localeapp push conig/locales --k API_KEY

Could not load config file

> localeapp push file.yml

always return

Could not load config file
error: exit

I tried with a zip and a folder also with the same result. Please advise. Thanks

pulling is not working

here is the backtrace:

Started GET "/" for 127.0.0.1 at 2012-10-11 17:15:50 +0200
Processing by MainController#index as HTML
** [Localeapp] 1349968550-- Handling translation updates
** [Localeapp] 1349968550 - polling
** [Localeapp] API CALL: get https://api.localeapp.com/v1/projects/7F4Kw3W3lsvVjFvBU7s04UsRAHYHzCX4YunZz0eCt7R09XPgQn/translations.yml?updated_at=1347369386
** [Localeapp] ATTEMPT 1
** [Localeapp] RESPONSE: 200
** [Localeapp] CALLING SUCCESS HANDLER: handle_success
Completed 500 Internal Server Error in 7059ms

NoMethodError (undefined method []' for false:FalseClass): localeapp (0.6.1) lib/localeapp/updater.rb:26:inblock in update'
localeapp (0.6.1) lib/localeapp/updater.rb:7:in each' localeapp (0.6.1) lib/localeapp/updater.rb:7:inupdate'
localeapp (0.6.1) lib/localeapp/poller.rb:53:in handle_success' localeapp (0.6.1) lib/localeapp/api_caller.rb:37:incall'
localeapp (0.6.1) lib/localeapp/api_call.rb:6:in api_call' localeapp (0.6.1) lib/localeapp/poller.rb:43:inpoll!'
localeapp (0.6.1) lib/localeapp/rails/controller.rb:14:in handle_translation_updates' activesupport (3.2.8) lib/active_support/callbacks.rb:418:in_run__728415690837075340__process_action__3336206709062311700__callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.8) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:inprocess_action'
actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action'
activesupport (3.2.8) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.8) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:inprocess_action'
actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.8) lib/active_record/railties/controller_runtime.rb:18:inprocess_action'
actionpack (3.2.8) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:inprocess'
actionpack (3.2.8) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:indispatch'
actionpack (3.2.8) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:incall'
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:incall'
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:incall'
sass (3.2.1) lib/sass/plugin/rack.rb:54:in call' /Users/ramigg/.rvm/gems/ruby-1.9.3-p194@payments/bundler/gems/simple-captcha-91376d0d1178/lib/simple_captcha/middleware.rb:20:incall'
warden (1.2.1) lib/warden/manager.rb:35:in block in call' warden (1.2.1) lib/warden/manager.rb:34:incatch'
warden (1.2.1) lib/warden/manager.rb:34:in call' actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
rack (1.4.1) lib/rack/etag.rb:23:in call' rack (1.4.1) lib/rack/conditionalget.rb:25:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:incontext'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in call' actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:incall'
activerecord (3.2.8) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in_run__2479981907912121608__call__3903888757847996143__callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.8) lib/active_support/callbacks.rb:385:in_run_call_callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in call' actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
railties (3.2.8) lib/rails/rack/logger.rb:26:in call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.1) lib/rack/methodoverride.rb:21:incall'
rack (1.4.1) lib/rack/runtime.rb:17:in call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:incall'
rack (1.4.1) lib/rack/lock.rb:15:in call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:incall'
railties (3.2.8) lib/rails/engine.rb:479:in call' railties (3.2.8) lib/rails/application.rb:223:incall'
rack (1.4.1) lib/rack/content_length.rb:14:in call' railties (3.2.8) lib/rails/rack/log_tailer.rb:17:incall'
thin (1.4.1) lib/thin/connection.rb:80:in block in pre_process' thin (1.4.1) lib/thin/connection.rb:78:incatch'
thin (1.4.1) lib/thin/connection.rb:78:in pre_process' thin (1.4.1) lib/thin/connection.rb:53:inprocess'
thin (1.4.1) lib/thin/connection.rb:38:in receive_data' eventmachine (0.12.10) lib/eventmachine.rb:256:inrun_machine'
eventmachine (0.12.10) lib/eventmachine.rb:256:in run' thin (1.4.1) lib/thin/backends/base.rb:63:instart'
thin (1.4.1) lib/thin/server.rb:159:in start' rack (1.4.1) lib/rack/handler/thin.rb:13:inrun'
rack (1.4.1) lib/rack/server.rb:265:in start' railties (3.2.8) lib/rails/commands/server.rb:70:instart'
railties (3.2.8) lib/rails/commands.rb:55:in block in <top (required)>' railties (3.2.8) lib/rails/commands.rb:50:intap'
railties (3.2.8) lib/rails/commands.rb:50:in <top (required)>' script/rails:6:inrequire'
script/rails:6:in <top (required)>' ruby-debug-ide (0.4.17.beta14) lib/ruby-debug-ide.rb:127:indebug_load'
ruby-debug-ide (0.4.17.beta14) lib/ruby-debug-ide.rb:127:in debug_program' ruby-debug-ide (0.4.17.beta14) bin/rdebug-ide:118:in<top (required)>'
-e:1:in load' -e:1:in

'

Psych syntax error

I upgraded recently to 0.4 . and now i get this when launching server:

https://gist.github.com/1917430

My initializer seems normal.

require 'localeapp/rails'

Localeapp.configure do |config|
  config.api_key = 'xxx'
end

I even commented out the translation file themselves in case it was a yml error in these. But no chance, i still got the error.
If i remove the code from the initalizer its working fine.

I'm on ruby 1.9.2 and rubygems 1.8.9 (ps: i already tried to switch back to 1.6.2 and 1.7.1 already with no success)

Any help would be greatly appreciated :)

localeapp export

Exporting multiline empty translation returns

en-gb:
  translations_key: {} 

but this key should not be exported.

Mishandling of YAML lists

Localeapp seems to have some problems with YAML lists.

In my case the following date translation construct (in German) doesn't appear in the web app:

de:  
  date: 
    abbr_day_names: 
      - So
      - Mo
      - Di
      - Mi
      - Do
      - Fr
      - Sa
    abbr_month_names: 
      - ~
      - Jan
      - Feb
      - Mär
      - Apr
      - Mai
      - Jun
      - Jul
      - Aug
      - Sep
      - Okt
      - Nov
      - Dez
    day_names: 
      - Sonntag
      - Montag
      - Dienstag
      - Mittwoch
      - Donnerstag
      - Freitag
      - Samstag
    formats: 
      default: "%d.%m.%Y"
      long: "%e. %B %Y"
      only_day: "%e"
      short: "%e. %b"
    month_names: 
      - ~
      - Januar
      - Februar
      - März
      - April
      - Mai
      - Juni
      - Juli
      - August
      - September
      - Oktober
      - November
      - Dezember
    order: 
      - :day
      - :month
      - :year

The only thing I see in the web app is TRANSLATIONS -> date -> order with order having the value ["day", "month", "year"].
When I do a localeapp pull, the pulled locale file contains the above listed construct. The only exception is that the list items in order are strings and not symbols, as they need to be to work properly with the datetime_select form helper.

    order:
      - day
      - month
      - year

cannot remove old key

I try

localeapp rm edit_album
Localeapp rm

Remove key: edit_album
Success!

I don't see it in the webinterface but after some time it appears again

SystemStackError

not sure why, but i'm getting this error after installing the gem:

  SystemStackError in DashboardsController#show
  stack level too deep

the log files show some success messages:

[Localeapp] API CALL: post https://api.localeapp.com/v1/projects/****/translations.yml
[Localeapp] ATTEMPT 1
[Localeapp] RESPONSE: 200
[Localeapp] CALLING SUCCESS HANDLER: handle_single_translation_success

SystemStackError (stack level too deep):
actionpack (3.2.2) lib/action_dispatch/middleware/reloader.rb:70

rails 3.2, ruby 1.9.3p194, localeapp (0.5.2)

adding ’config.sending_environments = []’ to the config removes the problem, i guess too many requests for initial setup ?

Live reloading not working on Heroku

I followed the instructions on:

https://github.com/Locale/localeapp/wiki/Deploy-a-Locale-Backed-Application-to-Heroku

my localeapp.rb looks like this:

require 'localeapp/rails'

Localeapp.configure do |config|
    config.api_key = 'VBtorCFIgTojHSegXP1phHJRNGb5J2CpbAW36mz83zztwY3pnz'
    # allow localeapp to check for new translations in production
    config.polling_environments << :production
    # the number of seconds to wait between checking for new translations
    # enter `0` to check on every request
    config.poll_interval = 60
    # when new translations have been downloaded, reload I18n
    config.reloading_environments << :production
    # send missing translations to Locale in production
    config.sending_environments << :production
end

Heroku Stack: cedar
Ruby 1.9.1

Gems:

source 'https://rubygems.org'

gem 'rails', '3.2.7'
gem 'pg'
gem 'backbone-on-rails'


group :development do
    gem 'debugger'
end

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'compass-rails', '~> 1.0.3'
  gem 'zurb-foundation', '3.0.8'
  gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'

gem 'i18n-js'
gem 'hamlbars'

gem 'devise'
gem 'haml'
gem 'cancan'
gem 'paperclip'
gem 'aws-s3'
gem 'aws-sdk'
gem 'heroku'
gem 'vimeo'
gem 'remotipart'
gem 'psych'
gem 'localeapp'

I used both i18n in rails views and in JS filed using I18n-js. I thought the issue was related to JS translations not being recompiles, but running on the heroku console:

I18n.t 'activerecord.attributes.user.password', :locale => 'en'

Returns the value at the time of the last push, and not the updated value on localeapp.

Is this possible to be made on Heroku? What am I doing wrong? I gave some thought to it and supposedly Heroku FS isn't writable on runtime, so how is this possible?

Thanks. You have a great app.

`post_translation` ignores `:scope`

they actual key is scope + key, so just deleting scope will lead to ignoring scope and conflicting keys whenever post_translation is used.

Values change by them self ?

Hi guys

First Thank you for your jobs it save me a lot of time with my customers who doesn't know how to edit a .yml file :D
But I have a strange problem :(

I do nothing special except changing a value throught your web app :

http://www.localeapp.com/projects/2617/translations?in_locale=8315&search=search

  1. I change the value of the key Search, replacing it by Rechercher in french.
  2. Then I go back and fuck yeah I see the change on my project, cool !
  3. But after a few seconds I get an other update and Rechercher is back to the previous value ?

So may be I missing something in the README may be not, any idea ?

Add new key with cli

Since we're used to edit our YML files with an editor (an d this causes some problems with LocaleApp), it would be nice to be able to add new keys with the clie, something like this:

$ localeapp add en.simple_form.labels.something "My cool label"

This would add the key to the YML and push it to the server. I've looked at the code and have an idea of how to do it, but not I'm 100% sure. If you could explain how you would do it I'd gladly try and send a pull request with this :)

localeapp pull or update issue

Hi!

When I try to run

$ localeapp pull or
$ localeapp update 

it fails with:

Localeapp update: checking for translations since 1342091488
error: syntax error in "<reader>", line 23, column 9:
          AZ: Azerbaijan
            ^

someone knows what can be wrong?

log/localeapp.yml load issue on production server: no such file to load -- --- (LoadError)

Our production app crashes with localeapp:

2012-03-16T10:50:44+00:00 app[web.2]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:245:in `load': no such file to load -- ---  (LoadError)
2012-03-16T10:50:44+00:00 app[web.2]: :polled_at: 1331895025
2012-03-16T10:50:44+00:00 app[web.2]: :updated_at: 1331895025
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:245:in `block in load'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:245:in `load'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bundler/gems/localeapp-2e13aa7fe855/lib/localeapp.rb:115:in `load_yaml'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bundler/gems/localeapp-2e13aa7fe855/lib/localeapp/poller.rb:16:in `initialize'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bundler/gems/localeapp-2e13aa7fe855/lib/localeapp.rb:92:in `new'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bundler/gems/localeapp-2e13aa7fe855/lib/localeapp/poller.rb:22:in `synchronization_data'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bundler/gems/localeapp-2e13aa7fe855/lib/localeapp.rb:92:in `configure'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bundler/gems/localeapp-2e13aa7fe855/lib/localeapp.rb:122:in `load_yaml_file'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bundler/gems/localeapp-2e13aa7fe855/lib/localeapp/rails.rb:28:in `initialize'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251:in `require'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251:in `block in require'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bundler/gems/localeapp-2e13aa7fe855/lib/localeapp/rails.rb:51:in `<top (required)>'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251:in `require'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/config/initializers/localeapp.rb:1:in `<top (required)>'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:245:in `load'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:245:in `block in load'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:245:in `load'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/engine.rb:587:in `each'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/engine.rb:587:in `block in <class:Engine>'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:30:in `instance_exec'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:30:in `run'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:54:in `each'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/initializable.rb:54:in `run_initializers'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/application.rb:136:in `initialize!'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/config/environment.rb:11:in `<top (required)>'
2012-03-16T10:50:44+00:00 app[web.2]:   from config.ru:4:in `require'
2012-03-16T10:50:44+00:00 app[web.2]:   from config.ru:4:in `block in <main>'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-03-16T10:50:44+00:00 app[web.2]:   from config.ru:1:in `new'
2012-03-16T10:50:44+00:00 app[web.2]:   from config.ru:1:in `<main>'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn.rb:44:in `eval'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn.rb:44:in `block in builder'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:688:in `call'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:688:in `build_app!'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:583:in `worker_loop'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:565:in `init_worker_process'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:485:in `spawn_missing_workers'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:496:in `maintain_worker_count'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:270:in `join'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/bin/unicorn:121:in `<top (required)>'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bin/unicorn:19:in `load'
2012-03-16T10:50:44+00:00 app[web.2]:   from /app/vendor/bundle/ruby/1.9.1/bin/unicorn:19:in `<main>'

Locally it works fine...

Same issue on our staging server.

This is the log/localeapp.yml:


:polled_at: 1331897558
:updated_at: 1331897546

It seems our live servers on heroku choke trying to load that yaml...

Compatibility with the Shoulda gem?

I can't get LocaleApp to work when I also use Shoulda.

Take for instance this spec spiced up with Should:

describe MyModel do
  it { should validate_presence_of(:foo) }
end

Normally this passes fine, but when enabling LocaleApp, I now get the following error:

1) MyModel validation 
     Failure/Error: it { should validate_presence_of(:foo) }
       Expected errors to include "en, activerecord.errors.messages.blank" when foo is set to nil, got errors: ["attr_a can't be blank (nil)", "attr_b is not a number (nil)", "attr_c is not a number (nil)", "foo can't be blank (nil)"]
     # ./spec/models/my_model_spec.rb:2:in `block (3 levels) in <top (required)>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.