fortune_gem 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/Gemfile +4 -0
- data/README.md +27 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/{bin → exe}/fortune_gem +1 -1
- data/fortune_gem.gemspec +24 -0
- data/lib/fortune_gem/version.rb +3 -0
- metadata +49 -14
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6baeae1d0ede3d94b04ed9a5bdd8e0a8e4bbabea
|
4
|
+
data.tar.gz: 1d6861c42d03f6c408237b9c74ce5083f31c3de0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bc8d3c7c7b84b5cac3aefb9ad24754a8cacc8177ec2ebc98d14809048bcb044f47bbbc8ff7f9a7203eb830457be2d1ee8564f0b2c8e67faa31c42bae54eb2d0f
|
7
|
+
data.tar.gz: c90bdf27d9a9211b60eec0edd35aab5a03b4da54f72a78d790e3a8deacf547bb954d3ea82600e5fb676115149e70cb125e6e66405b67e3d28365ea5262abe498
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
A Ruby version of of the popular unix 'fortune' program.
|
2
|
+
All the fortunes are from the fortune application you can install
|
3
|
+
in via apt-get install fortune
|
4
|
+
|
5
|
+
## Usage From an Application
|
6
|
+
|
7
|
+
`require 'fortune_gem'`
|
8
|
+
`FortuneGem.give_fortune`
|
9
|
+
|
10
|
+
or if you want to limit it to fortunes <= 100...
|
11
|
+
|
12
|
+
`FortuneGem.give_fortune({:max_length => 100})`
|
13
|
+
|
14
|
+
## Usage From the Command Line
|
15
|
+
|
16
|
+
The gem comes with an executable.
|
17
|
+
You can run `fortune_gem` from the command line!
|
18
|
+
|
19
|
+
```
|
20
|
+
$ fortune_gem
|
21
|
+
|
22
|
+
Q: How many Marxists does it take to screw in a light bulb?
|
23
|
+
A: None: The light bulb contains the seeds of its own revolution.
|
24
|
+
|
25
|
+
$ fortune_gem 40
|
26
|
+
You're at the end of the road again.
|
27
|
+
```
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "fortune_gem"
|
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
data/{bin → exe}/fortune_gem
RENAMED
data/fortune_gem.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'fortune_gem/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "fortune_gem"
|
8
|
+
spec.version = FortuneGem::VERSION
|
9
|
+
spec.authors = ["nodanaonlyzuul"]
|
10
|
+
spec.email = ["beholdthepanda@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "A Ruby gem version of the unix 'fortune' program"
|
13
|
+
spec.description = "The unix 'fortune' program - implemented as a ruby gem"
|
14
|
+
spec.homepage = "https://github.com/nodanaonlyzuul/fortune_gem"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
|
19
|
+
spec.executables << 'fortune_gem'
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
spec.license = 'MIT'
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
end
|
metadata
CHANGED
@@ -1,16 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fortune_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- nodanaonlyzuul
|
9
8
|
autorequire:
|
10
|
-
bindir:
|
9
|
+
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
11
|
+
date: 2016-10-06 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.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
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'
|
14
41
|
description: The unix 'fortune' program - implemented as a ruby gem
|
15
42
|
email:
|
16
43
|
- beholdthepanda@gmail.com
|
@@ -19,32 +46,40 @@ executables:
|
|
19
46
|
extensions: []
|
20
47
|
extra_rdoc_files: []
|
21
48
|
files:
|
22
|
-
-
|
49
|
+
- ".gitignore"
|
50
|
+
- Gemfile
|
51
|
+
- Gemfile.lock
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- bin/console
|
55
|
+
- bin/setup
|
56
|
+
- exe/fortune_gem
|
57
|
+
- fortune_gem.gemspec
|
23
58
|
- lib/fortune_gem.rb
|
59
|
+
- lib/fortune_gem/version.rb
|
24
60
|
- lib/fortunes
|
25
|
-
homepage: https://github.com/nodanaonlyzuul
|
61
|
+
homepage: https://github.com/nodanaonlyzuul/fortune_gem
|
26
62
|
licenses:
|
27
63
|
- MIT
|
64
|
+
metadata: {}
|
28
65
|
post_install_message:
|
29
66
|
rdoc_options: []
|
30
67
|
require_paths:
|
31
68
|
- lib
|
32
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
70
|
requirements:
|
35
|
-
- -
|
71
|
+
- - ">="
|
36
72
|
- !ruby/object:Gem::Version
|
37
73
|
version: '0'
|
38
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
75
|
requirements:
|
41
|
-
- -
|
76
|
+
- - ">="
|
42
77
|
- !ruby/object:Gem::Version
|
43
78
|
version: '0'
|
44
79
|
requirements: []
|
45
|
-
rubyforge_project:
|
46
|
-
rubygems_version:
|
80
|
+
rubyforge_project:
|
81
|
+
rubygems_version: 2.4.5
|
47
82
|
signing_key:
|
48
|
-
specification_version:
|
83
|
+
specification_version: 4
|
49
84
|
summary: A Ruby gem version of the unix 'fortune' program
|
50
85
|
test_files: []
|