Re: [Rails] 3.2.13 breaks localized ActiveScaffold assets compilation
I managed to typo that line! For some weird reason it worked, but I noticed an error in a project that uses packaged gems... Of course there should not be a ">=" inside the tag! The correct declaration is:
gem "active_scaffold", :git => "git://github.com/
On Tuesday, 19 March 2013 15:59:07 UTC+9, Yves-Eric wrote:
Hi Jeffrey,Awesome, that fixed it, thanks!
For anyone facing this issue, the fix is not released yet, so "bundle update active_scaffold" won't do. You need this:gem "active_scaffold", :git => "git://github.com/activescaffold/active_ ", :tag => ">= v3.3.0.rc3"scaffold.git Thanks again,Yves-Eric
On Tuesday, 19 March 2013 12:08:33 UTC+9, Jeffrey Jones wrote:Actually after a bit of research it looks like this was fixed in the
below commit
https://github.com/activescaffold/active_ scaffold/commit/ 2536a29a1d21469278c95b7f2a87de ba14040be6
to fix this issue
https://github.com/activescaffold/active_ scaffold/issues/249
Cheers
Jeff
On 19/03/13 11:58, Yves-Eric wrote:
> Hi,
>
>
> I just tried upgrading to 3.2.13 a project that worked fine under 3.2.12,
> but that broke our assets pipeline compilation. It looks like compilation
> now chokes on ActiveScaffold asset 'date_picker_bridge.js.erb'.
> (Full stack trace below).
>
> The first line of that file is:
>
> <%= ActiveScaffold::Bridges[:date_picker].localization %>
>
> And we use Japanese locale.
>
>
>
> How can we fix this?
>
>
> Thank you,
> Yves-Eric
>
>
>
> $ rake --trace assets:precompile
> ** Invoke assets:precompile (first_time)
> ** Execute assets:precompile
> /Users/DEV/.rvm/rubies/ruby-1.9.3-p327-perf/bin/ruby ./bin/rake
> assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
> ** Invoke assets:precompile:all (first_time)
> ** Invoke assets:cache:clean (first_time)
> ** Invoke assets:environment (first_time)
> ** Execute assets:environment
> ** Invoke environment (first_time)>'
> ** Execute environment
> ** Execute assets:cache:clean
> ** Execute assets:precompile:all
> rake aborted!
> invalid byte sequence in US-ASCII
> (in
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/bundler/gems/ active_scaffold-2053b21e43e6/ app/assets/javascripts/jquery/ date_picker_bridge.js.erb)
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/safety_ colons.rb:20:in
> `evaluate'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/tilt-1.3.6/ lib/tilt/template.rb:77:in
> `render'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/context.rb: 193:in
> `block in evaluate'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/context.rb: 190:in
> `each'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/context.rb: 190:in
> `evaluate'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ sprockets/unprocessed_asset. rb:14:in
> `initialize'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:16:in
> `new'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:16:in
> `block in build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:270: in
> `circular_call_protection'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:14:in
> `build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/index.rb:93: in
> `block in build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/caching.rb: 19:in
> `cache_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/index.rb:92: in
> `build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:169: in
> `find_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/index.rb:14:in
> `find_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ sprockets/asset_with_ dependencies.rb:91:in
> `block in build_required_assets'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ sprockets/asset_with_ dependencies.rb:85:in
> `each'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ sprockets/asset_with_ dependencies.rb:85:in
> `build_required_assets'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ sprockets/unprocessed_asset. rb:27:in
> `initialize'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:16:in
> `new'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:16:in
> `block in build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:270: in
> `circular_call_protection'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:14:in
> `build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/index.rb:93: in
> `block in build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/caching.rb: 19:in
> `cache_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/index.rb:92: in
> `build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:169: in
> `find_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/index.rb:14:in
> `find_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ sprockets/asset_with_ dependencies.rb:91:in
> `block in build_required_assets'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ sprockets/asset_with_ dependencies.rb:85:in
> `each'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ sprockets/asset_with_ dependencies.rb:85:in
> `build_required_assets'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ sprockets/unprocessed_asset. rb:27:in
> `initialize'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:16:in
> `new'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:16:in
> `block in build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:270: in
> `circular_call_protection'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:14:in
> `build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/index.rb:93: in
> `block in build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/caching.rb: 19:in
> `cache_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/index.rb:92: in
> `build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:169: in
> `find_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/index.rb:14:in
> `find_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/bundled_asset.rb:12: in
> `initialize'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:22:in
> `new'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/base.rb:22:in
> `build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/index.rb:93: in
> `block in build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/caching.rb: 19:in
> `cache_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/index.rb:92: in
> `build_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:169: in
> `find_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/index.rb:14:in
> `find_asset'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/static_compiler.rb: 32:in
> `block in compile'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:219: in
> `block in each_logical_path'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:206: in
> `block (2 levels) in each_file'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:196: in
> `each'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:196: in
> `each_entry'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:204: in
> `block in each_file'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:203: in
> `each'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:203: in
> `each_file'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/sprockets-2. 2.2/lib/sprockets/base.rb:217: in
> `each_logical_path'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/sprockets_ overrides/static_compiler.rb: 29:in
> `compile'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/tasks/assets. rake:102:in
> `internal_precompile'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf/gems/turbo- sprockets-rails3-0.3.6/lib/ turbo-sprockets/tasks/assets. rake:109:in
> `block (3 levels) in <top (required)>'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake- 10.0.3/lib/rake/task.rb:228:in
> `call'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake- 10.0.3/lib/rake/task.rb:228:in
> `block in execute'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake- 10.0.3/lib/rake/task.rb:223:in
> `each'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake- 10.0.3/lib/rake/task.rb:223:in
> `execute'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake- 10.0.3/lib/rake/task.rb:166:in
> `block in invoke_with_call_chain'
> /Users/DEV/.rvm/rubies/ruby-1.9.3-p327-perf/lib/ruby/1.9.1/ monitor.rb:211:in
> `mon_synchronize'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake- 10.0.3/lib/rake/task.rb:159:in
> `invoke_with_call_chain'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake- 10.0.3/lib/rake/task.rb:152:in
> `invoke'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake- 10.0.3/lib/rake/application. rb:143:in
> `invoke_task'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake- 10.0.3/lib/rake/application. rb:101:in
> `block (2 levels) in top_level'
> /Users/DEV/.rvm/gems/ruby-1.9.3-p327-perf@global/gems/rake-