Giter Site home page Giter Site logo

readingtime's People

Contributors

bravosimone avatar garethrees avatar henggana avatar igorkasyanchuk avatar jenkoian avatar maxehmookau avatar walidvb 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

Watchers

 avatar  avatar

readingtime's Issues

How to get Readingtime to work with Action Text?

Disclaimer: I am a newbie to Rails.

I am wondering how to get readingtime to work with Action Text. I have had readingtime set up and running but once I have implemented the Action Text I am getting the following error:

NoMethodError at /articles/how-are-things
undefined method `reading_time' for #<ActionText::RichText:0x00007fb5a7be63b0>

Different words per minute for faster/slower readers

Random idea. Might be nice to pass in the 200 average words per minute as an option?

Average readers

@article.body.reading_time :format => :basic, :wpm 200

For fast readers

@article.body.reading_time :format => :basic, :wpm 300

Less accurate time

This is tops but I only really want reading time to be displayed in minutes, a reading time of 4 minutes 58 seconds is too accurate, particularly as reading time will vary by person.

Would very much like something like:

input.reading_time :format => :approx

or similar if possible, I will try and do a PR if I get chance...

Pluralize based on time

Wanted to implement this in #2 but I had some problems (due to my awful ruby) so left it out. Would be useful to run the results through a pluralize method though to minute(s) and second(s) is displayed accurately.

Am using this for my blog, and the it's extremely unlikely that a post will be less than 1 minute so not urgent, but would be nice to have :)

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.