adjust / nvd3-rails Goto Github PK
View Code? Open in Web Editor NEWnvd3 reusable charts for rails 3
nvd3 reusable charts for rails 3
I am getting this error when using asset_sync with Heroku.
'''
AssetSync: YAML file found /tmp/build_t54dv6ox2ek9/config/asset_sync.yml settings will be merged into the configuration
rake aborted!
Unexpected token: eof (undefined) (line: 3, col: 0, pos: 15)
Error
...........
(in /tmp/build_t54dv6ox2ek9/vendor/bundle/ruby/1.9.1/bundler/gems/nvd3-rails-3897010b8623/vendor/assets/javascripts/nvd3/src/intro.js)/tmp/build_t54dv6ox2ek9/vendor/bundle/ruby/1.9.1/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:68:in `extract_result'
/tmp/build_t54dv6ox2ek9/vendor/bundle/ruby/1.9.1/gems/execjs-1.4.0/lib/execjs
'''
It's due to https://github.com/adeven/nvd3/blob/master/src/intro.js and https://github.com/adeven/nvd3/blob/master/src/outro.js being invalid. Not sure if there's an easy workaround with your repo at the moment because it's using a submodule
I fixed it in my own gem:
https://github.com/NealKemp/nvd3-rails
and also uploaded it to rubygems
https://rubygems.org/gems/nvd3-rails
It looks like this commit adjust/nvd3-old@1f76c02#src/models/scatter.js was cut and pasted from coffeescript or is using one of those exotic JS parsers that doesn't follow ECMA standards (http://forums.udacity.com/questions/7004371/javascript-syntax-no-parentheses-in-an-if-statement).
This now gives a Uncaught SyntaxError: Unexpected identifier
error at line 98.
NVD3 has a dev
option for development environments[1]. This could be set dynamically by the gem to be true if and only if Rails.env == 'development'
.
Is there any reason not to push this gem to rubygems.org?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.