kindle_fortune 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rubocop.yml +99 -0
- data/CODE_OF_CONDUCT.md +46 -0
- data/CONTRIBUTING.md +43 -0
- data/Gemfile +3 -0
- data/ISSUE_TEMPLATE.md +11 -0
- data/LICENSE.md +21 -0
- data/PULL_REQUEST_TEMPLATE.md +12 -0
- data/README.md +76 -0
- data/RELEASE_POLICY.md +20 -0
- data/Rakefile +13 -0
- data/exe/kindle_fortune +4 -0
- data/kindle_fortune.gemspec +32 -0
- data/lib/kindle_fortune.rb +58 -0
- data/lib/kindle_fortune/version.rb +3 -0
- metadata +174 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cd5cccc0f89073b8f906d470cda139f27c2a3e25
|
4
|
+
data.tar.gz: f6d807fdad4c140d5932fcc030292611de5076fa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0f21b4405eec3626e985253607cf87887d3bef9211497ff8a559a8d322a152b0f2bc07ddfe28dacfef2922b8ce5b077be3a03ac13c2abca3b5dd85f5e31f2452
|
7
|
+
data.tar.gz: ae10e2b9c5a6096cb638895a5569ffcb58b381d38ab33246373deda6de615562f8bdada3a371b54ba833b343179d72c495ccc1462f66649b84f8f7125c9b87b0
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
AllCops:
|
2
|
+
Include:
|
3
|
+
- 'lib/**/*'
|
4
|
+
Exclude:
|
5
|
+
- 'vendor/**/*'
|
6
|
+
- 'benchmarks/*'
|
7
|
+
- 'profile/*'
|
8
|
+
- 'lib/yaml/*'
|
9
|
+
- 'lib/**/*.sh'
|
10
|
+
DisplayCopNames: true
|
11
|
+
TargetRubyVersion: 2.1
|
12
|
+
|
13
|
+
# Preferred codebase style ---------------------------------------------
|
14
|
+
|
15
|
+
Layout/ExtraSpacing:
|
16
|
+
AllowForAlignment: true
|
17
|
+
|
18
|
+
Style/FormatString:
|
19
|
+
EnforcedStyle: percent
|
20
|
+
|
21
|
+
Style/AndOr:
|
22
|
+
EnforcedStyle: conditionals
|
23
|
+
|
24
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
25
|
+
EnforcedStyle: no_space
|
26
|
+
|
27
|
+
Layout/SpaceInsideBlockBraces:
|
28
|
+
EnforcedStyle: space
|
29
|
+
|
30
|
+
Layout/SpaceInsideHashLiteralBraces:
|
31
|
+
EnforcedStyle: no_space
|
32
|
+
|
33
|
+
Layout/AlignParameters:
|
34
|
+
EnforcedStyle: with_fixed_indentation
|
35
|
+
|
36
|
+
Style/EmptyElse:
|
37
|
+
EnforcedStyle: empty
|
38
|
+
|
39
|
+
Metrics/BlockLength:
|
40
|
+
Exclude:
|
41
|
+
- 'spec/**/*'
|
42
|
+
|
43
|
+
Metrics/LineLength:
|
44
|
+
Max: 120
|
45
|
+
|
46
|
+
Metrics/ModuleLength:
|
47
|
+
Max: 200
|
48
|
+
|
49
|
+
Metrics/ClassLength:
|
50
|
+
Max: 350
|
51
|
+
|
52
|
+
Metrics/ParameterLists:
|
53
|
+
Max: 15
|
54
|
+
|
55
|
+
Naming/FileName:
|
56
|
+
Enabled: false
|
57
|
+
|
58
|
+
Style/ParallelAssignment:
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
Style/DoubleNegation:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
Style/SingleLineBlockParams:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
Style/PerlBackrefs:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Layout/SpaceAfterComma:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
Layout/SpaceAroundOperators:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Style/EmptyCaseCondition:
|
77
|
+
Enabled: false
|
78
|
+
|
79
|
+
Style/MultilineBlockChain:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
# Current preferred metrics --------------------------------------------
|
83
|
+
# Better values are encouraged, but not required.
|
84
|
+
Metrics/AbcSize:
|
85
|
+
Max: 30
|
86
|
+
|
87
|
+
Metrics/MethodLength:
|
88
|
+
Max: 20
|
89
|
+
|
90
|
+
Metrics/CyclomaticComplexity:
|
91
|
+
Max: 8
|
92
|
+
|
93
|
+
Metrics/PerceivedComplexity:
|
94
|
+
Max: 8
|
95
|
+
|
96
|
+
# TODO -----------------------------------------------------------------
|
97
|
+
|
98
|
+
Style/Documentation:
|
99
|
+
Enabled: false
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
## Our Standards
|
8
|
+
|
9
|
+
Examples of behavior that contributes to creating a positive environment include:
|
10
|
+
|
11
|
+
* Using welcoming and inclusive language
|
12
|
+
* Being respectful of differing viewpoints and experiences
|
13
|
+
* Gracefully accepting constructive criticism
|
14
|
+
* Focusing on what is best for the community
|
15
|
+
* Showing empathy towards other community members
|
16
|
+
|
17
|
+
Examples of unacceptable behavior by participants include:
|
18
|
+
|
19
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
20
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
21
|
+
* Public or private harassment
|
22
|
+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
23
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
24
|
+
|
25
|
+
## Our Responsibilities
|
26
|
+
|
27
|
+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
28
|
+
|
29
|
+
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, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
30
|
+
|
31
|
+
## Scope
|
32
|
+
|
33
|
+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
34
|
+
|
35
|
+
## Enforcement
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at athityakumar@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
|
38
|
+
|
39
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
|
40
|
+
|
41
|
+
## Attribution
|
42
|
+
|
43
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
|
44
|
+
|
45
|
+
[homepage]: http://contributor-covenant.org
|
46
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Contribution guidelines
|
2
|
+
|
3
|
+
First of all, thanks for thinking of contributing to this project. :smile:
|
4
|
+
|
5
|
+
Before sending a Pull Request, please make sure that you're assigned the task on a GitHub issue.
|
6
|
+
|
7
|
+
- If a relevant issue already exists, discuss on the issue and get it assigned to yourself on GitHub.
|
8
|
+
- If no relevant issue exists, open a new issue and get it assigned to yourself on GitHub.
|
9
|
+
|
10
|
+
Please proceed with a Pull Request only after you're assigned. It'd be sad if your Pull Request (and your hardwork) isn't accepted just because it isn't ideologically compatible.
|
11
|
+
|
12
|
+
# Developing the gem
|
13
|
+
|
14
|
+
1. Install with
|
15
|
+
|
16
|
+
```sh
|
17
|
+
git clone https://github.com/athityakumar/kindle_fortune
|
18
|
+
cd kindle_fortune
|
19
|
+
gem install bundler
|
20
|
+
bundle install
|
21
|
+
```
|
22
|
+
|
23
|
+
2. Make your changes in a different git branch (say, `adds-improvement`). These changes can be
|
24
|
+
|
25
|
+
- fixing existing bugs
|
26
|
+
- improving details displayed
|
27
|
+
|
28
|
+
3. (Optional) To test whether `kindle_fortune` executable is working properly, do
|
29
|
+
```sh
|
30
|
+
rake install
|
31
|
+
```
|
32
|
+
Then install the gem file in the folder `pkg`. After that to use the new binary,
|
33
|
+
```sh
|
34
|
+
kindle_fortune # start using kindle_fortune
|
35
|
+
```
|
36
|
+
|
37
|
+
4. Check before pushing
|
38
|
+
|
39
|
+
```sh
|
40
|
+
bundle exec rubocop
|
41
|
+
bundle exec rspec
|
42
|
+
```
|
43
|
+
|
data/Gemfile
ADDED
data/ISSUE_TEMPLATE.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
### Description
|
2
|
+
|
3
|
+
Thanks for opening this issue. Add a brief description of what this issue is, and how to recreate it. Do tag the relevant issue(s) and PR(s) below. If required, add some screenshot(s) to showcase the issue.
|
4
|
+
|
5
|
+
- Relevant Issues : (none)
|
6
|
+
- Relevant PRs : (none)
|
7
|
+
- Type of issue :
|
8
|
+
- [ ] Installation
|
9
|
+
- [ ] Feature request
|
10
|
+
- [ ] Bug in existing feature
|
11
|
+
- [ ] Developer mode : Code quality / Tests / Documentation
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 [Athitya Kumar](https://github.com/athityakumar/)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -0,0 +1,12 @@
|
|
1
|
+
### Description
|
2
|
+
|
3
|
+
Thanks for contributing this Pull Request. Add a brief description of what this Pull Request does. Do tag the relevant issue(s) and PR(s) below. If required, add some screenshot(s) to support your changes.
|
4
|
+
|
5
|
+
- Relevant Issues : (none)
|
6
|
+
- Relevant PRs : (none)
|
7
|
+
- Type of change :
|
8
|
+
- [ ] New feature
|
9
|
+
- [ ] Bug fix for existing feature
|
10
|
+
- [ ] Code quality improvement
|
11
|
+
- [ ] Addition or Improvement of tests
|
12
|
+
- [ ] Addition or Improvement of documentation
|
data/README.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# Kindle Fortune
|
2
|
+
|
3
|
+
[![forthebadge](http://forthebadge.com/images/badges/made-with-ruby.svg)](http://forthebadge.com)
|
4
|
+
[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com)
|
5
|
+
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/colorls.svg)](https://badge.fury.io/rb/colorls)
|
7
|
+
[![Build Status](https://travis-ci.org/athityakumar/colorls.svg?branch=master)](https://travis-ci.org/athityakumar/colorls)
|
8
|
+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=shields)](http://makeapullrequest.com)
|
9
|
+
|
10
|
+
A Ruby CLI gem that provides fortune cookie messages on your Terminal, based on the highlights on your Kindle device.
|
11
|
+
|
12
|
+
# Table of contents
|
13
|
+
|
14
|
+
- [Usage](#usage)
|
15
|
+
- [Installation](#installation)
|
16
|
+
- [Updating](#updating)
|
17
|
+
- [Uninstallation](#uninstallation)
|
18
|
+
- [Contributing](#contributing)
|
19
|
+
- [License](#license)
|
20
|
+
|
21
|
+
# Usage
|
22
|
+
|
23
|
+
[(Back to top)](#table-of-contents)
|
24
|
+
|
25
|
+
1. With default arguments : `kindle_fortune`
|
26
|
+
|
27
|
+
![image](https://user-images.githubusercontent.com/17109060/33320930-ca3235a6-d469-11e7-8595-aa628a88a75e.png)
|
28
|
+
|
29
|
+
2. With path arguments : `kindle_fortune [PATH]`
|
30
|
+
|
31
|
+
`[PATH]` is the absolute path to your `My collections.txt` file of your Kindle device.
|
32
|
+
|
33
|
+
# Installation
|
34
|
+
|
35
|
+
[(Back to top)](#table-of-contents)
|
36
|
+
|
37
|
+
1. Install Ruby (preferably, version > 2.1)
|
38
|
+
|
39
|
+
2. Install the [kindle_fortune](https://rubygems.org/gems/kindle_fortune/) ruby gem with `gem install kindle_fortune`
|
40
|
+
|
41
|
+
3. Preferably, install the `cowsay` CLI.
|
42
|
+
|
43
|
+
4. Start using `kindle_fortune` :tada:
|
44
|
+
|
45
|
+
# Updating
|
46
|
+
|
47
|
+
[(Back to top)](#table-of-contents)
|
48
|
+
|
49
|
+
Want to update to the latest version of `kindle_fortune`?
|
50
|
+
|
51
|
+
```sh
|
52
|
+
gem update kindle_fortune
|
53
|
+
```
|
54
|
+
|
55
|
+
# Uninstallation
|
56
|
+
|
57
|
+
[(Back to top)](#table-of-contents)
|
58
|
+
|
59
|
+
Want to uninstall and revert back to the old style? No issues (sob). Please feel free to open an issue regarding how we can enhance `kindle_fortune`.
|
60
|
+
|
61
|
+
```sh
|
62
|
+
gem uninstall kindle_fortune
|
63
|
+
```
|
64
|
+
|
65
|
+
# Contributing
|
66
|
+
|
67
|
+
[(Back to top)](#table-of-contents)
|
68
|
+
|
69
|
+
Your contributions are always welcome! Please have a look at the [contribution guidelines](CONTRIBUTING.md) first. :tada:
|
70
|
+
|
71
|
+
# License
|
72
|
+
|
73
|
+
[(Back to top)](#table-of-contents)
|
74
|
+
|
75
|
+
|
76
|
+
The MIT License (MIT) 2017 - [Athitya Kumar](https://github.com/athityakumar/). Please have a look at the [LICENSE.md](LICENSE.md) for more details.
|
data/RELEASE_POLICY.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Release Policy
|
2
|
+
|
3
|
+
Applicable from kindle_fortune v0.0.1 onwards
|
4
|
+
|
5
|
+
### Versioning
|
6
|
+
|
7
|
+
KindleFortune follows semantic versioning whereby the version number is always in the form MAJOR.MINOR.PATCH
|
8
|
+
|
9
|
+
- Patch bump : Bug fixes
|
10
|
+
- Minor bump : New features (with backwards compatibility)
|
11
|
+
- Major bump : API breaking changes
|
12
|
+
|
13
|
+
For Major and Minor bumps release candidates should be released around 2 weeks prior to the bump and are indicated by MAJOR.MINOR.0.rc.
|
14
|
+
|
15
|
+
For more information see the full semantic versioning specification at http://semver.org/.
|
16
|
+
|
17
|
+
### Release Timing
|
18
|
+
|
19
|
+
Patch releases should be done after every fix of a major bug (as tagged in the github issue tracker).
|
20
|
+
Major releases should be kept to the minimum.
|
data/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
require 'rubygems/tasks'
|
3
|
+
Gem::Tasks.new
|
4
|
+
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
RSpec::Core::RakeTask.new
|
7
|
+
|
8
|
+
require 'rubocop/rake_task'
|
9
|
+
RuboCop::RakeTask.new do |task|
|
10
|
+
task.requires << 'rubocop-rspec'
|
11
|
+
end
|
12
|
+
|
13
|
+
task default: %w[spec rubocop]
|
data/exe/kindle_fortune
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'kindle_fortune/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'kindle_fortune'
|
7
|
+
spec.version = KindleFortune::VERSION
|
8
|
+
spec.authors = ['Athitya Kumar']
|
9
|
+
spec.email = ['athityakumar@gmail.com']
|
10
|
+
spec.summary = 'A Ruby CLI gem that provides fortune cookie messages on your Terminal, '\
|
11
|
+
'based on the highlights on your Kindle device.'
|
12
|
+
spec.homepage = 'https://github.com/athityakumar/kindle_fortune'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
|
+
f.match(%r{^(test|spec|features)/})
|
17
|
+
end
|
18
|
+
|
19
|
+
spec.bindir = 'exe'
|
20
|
+
spec.executables = 'kindle_fortune'
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
|
23
|
+
spec.add_runtime_dependency 'kindleclippings'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler', '~> 1.15'
|
26
|
+
spec.add_development_dependency 'rake'
|
27
|
+
spec.add_development_dependency 'rspec'
|
28
|
+
spec.add_development_dependency 'rspec-its'
|
29
|
+
spec.add_development_dependency 'rubocop'
|
30
|
+
spec.add_development_dependency 'rubocop-rspec'
|
31
|
+
spec.add_development_dependency 'rubygems-tasks'
|
32
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'kindle_fortune/version'
|
2
|
+
|
3
|
+
require 'json'
|
4
|
+
require 'kindleclippings'
|
5
|
+
|
6
|
+
class KindleFortune
|
7
|
+
USERNAME = `whoami`.strip
|
8
|
+
DEFAULT_UPDATED_DATAFILE = '/Volumes/Kindle/documents/My Clippings.txt'.freeze
|
9
|
+
DEFAULT_CURRENT_DATAFILE = "/Users/#{USERNAME}/.config/kindle_fortune.json".freeze
|
10
|
+
|
11
|
+
def initialize(updated_datafile:, current_datafile:)
|
12
|
+
@current_datafile = current_datafile || DEFAULT_CURRENT_DATAFILE
|
13
|
+
@updated_datafile = updated_datafile || DEFAULT_UPDATED_DATAFILE
|
14
|
+
end
|
15
|
+
|
16
|
+
def fetch_cookie
|
17
|
+
if File.exist?(@updated_datafile) then prepare_extracts
|
18
|
+
else import_extracts
|
19
|
+
end
|
20
|
+
|
21
|
+
raise 'No Kindle highlights detected' unless File.exist?(@current_datafile)
|
22
|
+
fortune_cookie = @extracts[rand(@extracts.count)]
|
23
|
+
pretty_print(fortune_cookie)
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def import_extracts
|
29
|
+
@extracts = JSON.parse(File.read(@current_datafile))
|
30
|
+
end
|
31
|
+
|
32
|
+
def prepare_extracts
|
33
|
+
@extracts =
|
34
|
+
KindleClippings::Parser
|
35
|
+
.new
|
36
|
+
.parse_file(@updated_datafile)
|
37
|
+
.select { |clipping| clipping.type== :Highlight }
|
38
|
+
.map do |clipping|
|
39
|
+
{
|
40
|
+
'book' => clipping.book_title,
|
41
|
+
'author' => clipping.author,
|
42
|
+
'location' => clipping.location,
|
43
|
+
'content' => clipping.content
|
44
|
+
}
|
45
|
+
end
|
46
|
+
store_extracts
|
47
|
+
end
|
48
|
+
|
49
|
+
def pretty_print(cookie)
|
50
|
+
"#{cookie['book']} (#{cookie['author']}) [L#{cookie['location']}] "\
|
51
|
+
"\n\n #{cookie['content']}"
|
52
|
+
end
|
53
|
+
|
54
|
+
def store_extracts
|
55
|
+
File.delete(@current_datafile) if File.exist?(@current_datafile)
|
56
|
+
File.open(@current_datafile, 'a') { |file| file.write(JSON.pretty_generate(@extracts)) }
|
57
|
+
end
|
58
|
+
end
|
metadata
ADDED
@@ -0,0 +1,174 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kindle_fortune
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Athitya Kumar
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: kindleclippings
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.15'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.15'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-its
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubygems-tasks
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description:
|
126
|
+
email:
|
127
|
+
- athityakumar@gmail.com
|
128
|
+
executables:
|
129
|
+
- kindle_fortune
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".rubocop.yml"
|
135
|
+
- CODE_OF_CONDUCT.md
|
136
|
+
- CONTRIBUTING.md
|
137
|
+
- Gemfile
|
138
|
+
- Gemfile.lock
|
139
|
+
- ISSUE_TEMPLATE.md
|
140
|
+
- LICENSE.md
|
141
|
+
- PULL_REQUEST_TEMPLATE.md
|
142
|
+
- README.md
|
143
|
+
- RELEASE_POLICY.md
|
144
|
+
- Rakefile
|
145
|
+
- exe/kindle_fortune
|
146
|
+
- kindle_fortune.gemspec
|
147
|
+
- lib/kindle_fortune.rb
|
148
|
+
- lib/kindle_fortune/version.rb
|
149
|
+
homepage: https://github.com/athityakumar/kindle_fortune
|
150
|
+
licenses:
|
151
|
+
- MIT
|
152
|
+
metadata: {}
|
153
|
+
post_install_message:
|
154
|
+
rdoc_options: []
|
155
|
+
require_paths:
|
156
|
+
- lib
|
157
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
requirements: []
|
168
|
+
rubyforge_project:
|
169
|
+
rubygems_version: 2.6.12
|
170
|
+
signing_key:
|
171
|
+
specification_version: 4
|
172
|
+
summary: A Ruby CLI gem that provides fortune cookie messages on your Terminal, based
|
173
|
+
on the highlights on your Kindle device.
|
174
|
+
test_files: []
|