robathedtek / jquery-sparkline-rails Goto Github PK
View Code? Open in Web Editor NEWPackages jquery.sparklines library as a Gem for Ruby on Rails
License: BSD 3-Clause "New" or "Revised" License
Packages jquery.sparklines library as a Gem for Ruby on Rails
License: BSD 3-Clause "New" or "Revised" License
Due to the string comparison in engine.rb, version checking will always fail when using Rails 3.2.1x or higher.
[4] pry(main)> ::Rails.version
=> "3.2.11"
[5] pry(main)> ::Rails.version >= "3.2.2"
=> false
Best fix I could find is something like this:
Gem::Version.new(::Rails.version) >= Gem::Version.new("3.2.2")
Following the instructions in the readme, but somehow this isn't adding to my Rails project.
As mentioned in the readme, I added the gem to the Gemfile with the reference to the github link, followed with a 'bundle install', added "//= require 'sparklines'" to my application.js file in the asset pipeline, but any page requested returns with an error saying "couldn't find file 'sparklines'". Running 'gem list' showed that the gem was not included in my gems (although the 'bundle install' showed that the files were indeed being fetched from this repo).
If I do another 'bundle install', I see the line
"Using jquery-sparkline-rails (2.0.0) from https://github.com/RobAtHedtek/jquery-sparkline-rails.git (at master)"
After tweaking a few things, I couldn't get it to work, so I defaulted to the manual "gem install jquery-sparkline-rails", which returned with the following error
"ERROR: Could not find a valid gem 'jquery-sparkline-rails' (>= 0) in any repository"
I really would like to see some sparklines on my page!
Thanks in advance,
-Max
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.