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 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
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .ruby-gemset
11
+ .ruby-version
12
+
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in fortune_gem.gemspec
4
+ gemspec
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
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -2,4 +2,4 @@
2
2
 
3
3
  require 'fortune_gem'
4
4
  print FortuneGem.give_fortune(:max_length => ARGV.first)
5
- print "\n"
5
+ print "\n"
@@ -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
@@ -0,0 +1,3 @@
1
+ class FortuneGem
2
+ VERSION = "0.0.9"
3
+ 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.8
5
- prerelease:
4
+ version: 0.0.9
6
5
  platform: ruby
7
6
  authors:
8
7
  - nodanaonlyzuul
9
8
  autorequire:
10
- bindir: bin
9
+ bindir: exe
11
10
  cert_chain: []
12
- date: 2013-10-04 00:00:00.000000000 Z
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
- - bin/fortune_gem
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: nowarning
46
- rubygems_version: 1.8.24
80
+ rubyforge_project:
81
+ rubygems_version: 2.4.5
47
82
  signing_key:
48
- specification_version: 3
83
+ specification_version: 4
49
84
  summary: A Ruby gem version of the unix 'fortune' program
50
85
  test_files: []