read_remaining 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9a5d737e8ff226692d5abbb4c9ee810955447a6b
4
+ data.tar.gz: d80737a5c85421772678db4e4a158b9009490fdb
5
+ SHA512:
6
+ metadata.gz: 005991811b782cc0af77e8f9075391b81807bba59ce903e85bfa1a345c134a969d60694ddd80320d63a46cdcc3d733020a64d5ff657df9c6a88d7be520ae6632
7
+ data.tar.gz: 80042fc8fe57e7e4bcd36442172db3131c1f53feb89017ed201f5f101fc0b33e8aa1fd41c90f223813fb558f029cec8073c660aac8a4a0304ae6effa747fa1ce
data/.byebug_history ADDED
@@ -0,0 +1,18 @@
1
+ continue
2
+ Time.new(3600).strftime("%S")
3
+ Time.new(3600).strftime("%M")
4
+ Time.new(3600).strftime("%H")
5
+ Time.new(3600).strftime("%h")
6
+ Time.new(3600).strftime("%m")
7
+ Time.new(3600)
8
+ Time.new(3600).to_min
9
+ Time.new(3600).min
10
+ Time.new(3600).sec
11
+ Time.new(60).sec
12
+ Time.new(60).min
13
+ Time.new(60).hour
14
+ Time.new(60).minute
15
+ Time.new(60).minutes
16
+ Time.new(60)
17
+ self.size
18
+ self
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ - 2.1.1
5
+ branches:
6
+ only:
7
+ - master
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in read_remaining.gemspec
4
+ gemspec
5
+
6
+ group :development do
7
+ gem 'byebug'
8
+ end
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # ReadRemaining [![Build Status](https://travis-ci.org/rpossan/read_remaining.svg?branch=master)](https://travis-ci.org/rpossan/read_remaining) [![Code Climate](https://codeclimate.com/github/rpossan/read_remaining/badges/gpa.svg)](https://codeclimate.com/github/rpossan/read_remaining)
2
+
3
+
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/read_remaining`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'read_remaining'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install read_remaining
24
+
25
+ ## Usage
26
+
27
+ TODO: Write usage instructions here
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
32
+
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+
35
+ ## Contributing
36
+
37
+ 1. Fork it ( https://github.com/[my-github-username]/read_remaining/fork )
38
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
39
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
40
+ 4. Push to the branch (`git push origin my-new-feature`)
41
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "read_remaining"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,9 @@
1
+ require "read_remaining/version"
2
+
3
+ require 'read_remaining/core_ext'
4
+
5
+ module ReadRemaining
6
+
7
+
8
+
9
+ end
@@ -0,0 +1,15 @@
1
+ # These methods are all included into the String class.
2
+ require 'byebug'
3
+
4
+ module ReadRemaining
5
+ module PublicInstanceMethods
6
+ def read_remaining
7
+ 100
8
+ end
9
+
10
+ end
11
+ end
12
+
13
+
14
+ String.send :include, ReadRemaining::PublicInstanceMethods
15
+ String.send :extend, ReadRemaining::PublicInstanceMethods
@@ -0,0 +1,3 @@
1
+ module ReadRemaining
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'read_remaining/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "read_remaining"
8
+ spec.version = ReadRemaining::VERSION
9
+ spec.authors = ["rpossan"]
10
+ spec.email = ["ronaldo.possan@gmail.com"]
11
+ spec.summary = %q{ Time remaining of reading texts}
12
+ spec.description = %q{
13
+ How long does it take to be read a text?
14
+ This gem adds methods to calculate the read timing of any text supported by String object and adds helpers to show the time remaining of reading for any text on your pages.
15
+ Proper to be used on blogs, websites and any content that have mass of texts.
16
+ }
17
+ spec.homepage = "https://github.com/rpossan/read_remaining"
18
+ spec.license = "MIT"
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.7"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: read_remaining
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - rpossan
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: "\n How long does it take to be read a text?\n This gem adds methods
42
+ to calculate the read timing of any text supported by String object and adds helpers
43
+ to show the time remaining of reading for any text on your pages.\nProper to be
44
+ used on blogs, websites and any content that have mass of texts.\n "
45
+ email:
46
+ - ronaldo.possan@gmail.com
47
+ executables: []
48
+ extensions: []
49
+ extra_rdoc_files: []
50
+ files:
51
+ - ".byebug_history"
52
+ - ".gitignore"
53
+ - ".travis.yml"
54
+ - CODE_OF_CONDUCT.md
55
+ - Gemfile
56
+ - README.md
57
+ - Rakefile
58
+ - bin/console
59
+ - bin/setup
60
+ - lib/read_remaining.rb
61
+ - lib/read_remaining/core_ext.rb
62
+ - lib/read_remaining/version.rb
63
+ - read_remaining.gemspec
64
+ homepage: https://github.com/rpossan/read_remaining
65
+ licenses:
66
+ - MIT
67
+ metadata: {}
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project:
84
+ rubygems_version: 2.4.6
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: Time remaining of reading texts
88
+ test_files: []