flipr 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +78 -0
- data/Rakefile +7 -0
- data/bin/console +14 -0
- data/bin/flipr +55 -0
- data/bin/setup +8 -0
- data/examples/basic_example.rb +5 -0
- data/flip_tables_example_config.yaml +30 -0
- data/flipr.gemspec +31 -0
- data/lib/flipr.rb +102 -0
- data/lib/flipr/flip_tables.rb +48 -0
- data/lib/flipr/put_tables.rb +41 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 804ecad8ee9a0d16c6624ab2c93177e3b04802da
|
4
|
+
data.tar.gz: a422bf34ffaf27a7b8b5f445716b9b9a585268e5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1f55e9a379be56106f20b823840f5d208003b0c52392b10ad18c8f479f8dd7005036ce10dbc0b806f29607be1444d75fa7c53f85cc859ef410a7a72ea5aa6559
|
7
|
+
data.tar.gz: 179c6ab3f16508150021960164de6f478dde2ae052d243af299efaae4dfe3ff037115609120e368a7f85aa8ea8e3a005a7ac29f67168475a4e71d7e71a931e7e
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at kgruber1@emich.edu. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Kent Gruber
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# Flipr
|
2
|
+
|
3
|
+
A simple, configurable flip table / put table command-line application with optional rainbows.
|
4
|
+
|
5
|
+
TODO:
|
6
|
+
* Stuff.
|
7
|
+
|
8
|
+
## Screen Shot
|
9
|
+
|
10
|
+
![lolololol](http://i.imgur.com/YdLBtTx.png)
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
### Gemfile
|
15
|
+
|
16
|
+
Add this line to your application's Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'vmstator'
|
20
|
+
```
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
$ bundle
|
25
|
+
|
26
|
+
### Gem Install
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install vmstator
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
```
|
35
|
+
FLIPR [ ╯ ' □']╯︵┻━┻)
|
36
|
+
-f, --flip Flip a table
|
37
|
+
-p, --put Put a table
|
38
|
+
-F, --Flip-config=<s> Flip table configuration
|
39
|
+
-P, --Put-config=<s> Put table configuration
|
40
|
+
-l, --lol Rainbow support, because we need it
|
41
|
+
-h, --help Show this message
|
42
|
+
```
|
43
|
+
|
44
|
+
### Flip Table
|
45
|
+
|
46
|
+
```
|
47
|
+
$ ruby flipr.rb -f
|
48
|
+
````
|
49
|
+
|
50
|
+
### Put Table
|
51
|
+
|
52
|
+
```
|
53
|
+
$ ruby flipr.rb -p
|
54
|
+
```
|
55
|
+
|
56
|
+
### Specify your own Flips
|
57
|
+
|
58
|
+
```
|
59
|
+
$ ruby flipr.rb -f -F flips.yaml
|
60
|
+
```
|
61
|
+
|
62
|
+
### Help
|
63
|
+
|
64
|
+
Program should default to a help menu when no flags are specified.
|
65
|
+
|
66
|
+
```
|
67
|
+
$ ruby flipr.rb
|
68
|
+
```
|
69
|
+
|
70
|
+
You can also ask for help.
|
71
|
+
|
72
|
+
```
|
73
|
+
$ ruby flipr.rb -h
|
74
|
+
```
|
75
|
+
|
76
|
+
## License
|
77
|
+
|
78
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "flipr"
|
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/flipr
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'colorize'
|
4
|
+
require 'yaml'
|
5
|
+
require 'trollop'
|
6
|
+
|
7
|
+
require_relative '../lib/flipr.rb'
|
8
|
+
|
9
|
+
foo = ARGV[0] || ARGV[0] = '-h'
|
10
|
+
|
11
|
+
opts = Trollop::options do
|
12
|
+
banner "FLIPR".blue.bold + " [ ╯ ".green.bold + "'".red.bold + " □".green.bold + "'".red.bold + "]╯︵┻━┻)".green.bold
|
13
|
+
opt :flip, "Flip a table"
|
14
|
+
opt :put, "Put a table"
|
15
|
+
opt :Flip_config, "Flip table configuration", :type => :string
|
16
|
+
opt :Put_config, "Put table configuration", :type => :string
|
17
|
+
opt :lol, "Rainbow support, because we need it"
|
18
|
+
end
|
19
|
+
|
20
|
+
if opts[:lol]
|
21
|
+
require 'lolize'
|
22
|
+
class Lolize::Colorizer
|
23
|
+
def change_freq
|
24
|
+
@freq = "0.#{rand(1..9)}".to_f
|
25
|
+
end
|
26
|
+
def change_spread
|
27
|
+
@spread = "#{rand(1..9)}.0".to_f
|
28
|
+
end
|
29
|
+
end
|
30
|
+
colorizer = Lolize::Colorizer.new
|
31
|
+
colorizer.change_freq
|
32
|
+
colorizer.change_spread
|
33
|
+
end
|
34
|
+
|
35
|
+
opts[:configs] = []
|
36
|
+
opts[:configs] << opts[:Flip_config] if opts[:Flip_config]
|
37
|
+
opts[:configs] << opts[:Put_config] if opts[:Put_config]
|
38
|
+
|
39
|
+
flipr = Flipr.new(opts)
|
40
|
+
|
41
|
+
if opts[:flip]
|
42
|
+
if opts[:lol]
|
43
|
+
colorizer.write flipr.flip_table + "\n"
|
44
|
+
else
|
45
|
+
puts flipr.flip_table
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
if opts[:put]
|
50
|
+
if opts[:lol]
|
51
|
+
colorizer.write flipr.put_table + "\n"
|
52
|
+
else
|
53
|
+
puts flipr.put_table
|
54
|
+
end
|
55
|
+
end
|
data/bin/setup
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
- "[ ╯ '□']╯︵┻━┻)"
|
3
|
+
- "[ ╯ °□°]╯︵┻━┻)"
|
4
|
+
- "[ ╯ಠ益ಠ]╯彡┻━┻)"
|
5
|
+
- "[ ╯ ≧∇≦]╯︵┸━┸)"
|
6
|
+
- "[ ╯´・ω・]╯︵┸━┸)"
|
7
|
+
- "[ ╯ ರ ~ರ]╯︵┻━┻)"
|
8
|
+
- "[ ╯ ✧Д✧]╯︵┻━┻)"
|
9
|
+
- "[ ╯ TДT]╯︵┻━┻)"
|
10
|
+
- "[ ╯ `^´]╯︵┻━┻)"
|
11
|
+
- "[ ╯ '▽ ']╯︵┻━┻)"
|
12
|
+
- "[ ╯ `□´]╯︵┻━┻)"
|
13
|
+
- "[ ╯`皿´]╯︵┻━┻)"
|
14
|
+
- "[ ╯ ՞▃՞]╯︵┻━┻)"
|
15
|
+
- "[ ╯ -▃-]╯︵┻━┻)"
|
16
|
+
- "[ ╯ '▃']╯︵┻━┻)"
|
17
|
+
- "[ ╯ ゚O゚]╯︵┻━┻)"
|
18
|
+
- "[ ╯  ̄^ ̄]╯︵┻━┻)"
|
19
|
+
- "[ ╯ -_-]╯︵┻━┻)"
|
20
|
+
- "[ ╯ '~']╯︵┻━┻)"
|
21
|
+
- "[ ╯ >_<]╯︵┻━┻)"
|
22
|
+
- "[ ╯ ಥ ⌒ಥ]╯︵┻━┻)"
|
23
|
+
- "[ ╯ ゚⊿゚]╯︵┻━┻)"
|
24
|
+
- "[ ╯ `-`]╯︵┻━┻)"
|
25
|
+
- "[ ╯  ̄□ ̄]╯︵┻━┻)"
|
26
|
+
- "[ ╯ ゚▽゚]╯︵┻━┻)"
|
27
|
+
- "[ ╯ ゜-゜]╯︵┻━┻)"
|
28
|
+
- "[ ╯ ຈل͜ຈ]╯︵┻━┻)"
|
29
|
+
- "[ ╯ ・_・]╯︵┻━┻)"
|
30
|
+
- "[ ╯ ツ]╯︵┻━┻)"
|
data/flipr.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'flipr'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "flipr"
|
8
|
+
spec.version = Flipr::VERSION
|
9
|
+
spec.authors = ["Kent Gruber"]
|
10
|
+
spec.email = ["kgruber1@emich.edu"]
|
11
|
+
|
12
|
+
spec.summary = %q{A command-line application for flip tables.}
|
13
|
+
spec.description = %q{A simple, configurable flip table / put table command-line application with optional rainbows.}
|
14
|
+
spec.homepage = "https://github.com/picatz/Flipr"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "bin"
|
19
|
+
#spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.executable = "flipr"
|
21
|
+
spec.require_paths = ["lib"]
|
22
|
+
|
23
|
+
spec.add_dependency "lolize"
|
24
|
+
spec.add_dependency "colorize"
|
25
|
+
spec.add_dependency "trollop"
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
30
|
+
end
|
31
|
+
|
data/lib/flipr.rb
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
# Require Gems
|
2
|
+
require 'colorize'
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
# Require Relative Files
|
6
|
+
require_relative "flipr/put_tables"
|
7
|
+
require_relative "flipr/flip_tables"
|
8
|
+
|
9
|
+
# The Flipr class contains the main logic for this
|
10
|
+
# application which include flipping tables,
|
11
|
+
# putting tables.
|
12
|
+
class Flipr
|
13
|
+
attr_accessor :flips, :puts
|
14
|
+
|
15
|
+
VERSION = "1.0.0"
|
16
|
+
|
17
|
+
# initialize() takes in an optional
|
18
|
+
# opts hash containing the relevant
|
19
|
+
# options for a new Flipr object
|
20
|
+
#
|
21
|
+
# == Examples
|
22
|
+
#
|
23
|
+
# # Typical use case to create a new
|
24
|
+
# # Flipr object
|
25
|
+
# flipr = Flipr.new
|
26
|
+
#
|
27
|
+
def initialize(opts=false)
|
28
|
+
# If that opts hash is provided, then set
|
29
|
+
# that, otherwise, set an empty hash.
|
30
|
+
opts ? @opts = opts : @opts = {}
|
31
|
+
# If configuration files are provided, then
|
32
|
+
# check that each of them are valid configuration
|
33
|
+
# files.
|
34
|
+
if @opts[:configs]
|
35
|
+
@opts[:configs].each do |config|
|
36
|
+
unless valid_config?(config)
|
37
|
+
puts "[ error ]".red + " #{config.white} is not a valid configuraiton file."
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
@flips = Flip_Tables.new(@opts)
|
42
|
+
@puts = Put_Tables.new(@opts)
|
43
|
+
end
|
44
|
+
|
45
|
+
# valid_config?() checks if a config
|
46
|
+
# file is a valid configuration file
|
47
|
+
# which check if the file exists and if
|
48
|
+
# the file extension is a '.yaml' file
|
49
|
+
#
|
50
|
+
# == Examples
|
51
|
+
#
|
52
|
+
# # Typical use case to validate a config
|
53
|
+
# valid_config?(config)
|
54
|
+
# => true
|
55
|
+
#
|
56
|
+
def valid_config?(config)
|
57
|
+
# check if a file exist
|
58
|
+
unless File.file?(config)
|
59
|
+
return false
|
60
|
+
# puts "[error]".red + " File #{config} doesn't exist."
|
61
|
+
# exit 1
|
62
|
+
end
|
63
|
+
# check if the file extension is .yaml
|
64
|
+
unless File.extname(config) == ".yaml"
|
65
|
+
return false
|
66
|
+
# puts "[error]".red + " File #{config} doesn't seem to be a yaml file."
|
67
|
+
# exit 1
|
68
|
+
end
|
69
|
+
true
|
70
|
+
end
|
71
|
+
|
72
|
+
# flip_table() simply flips a random table
|
73
|
+
# from the available tables it can flip from
|
74
|
+
# the configuration files or the defaults
|
75
|
+
#
|
76
|
+
# == Examples
|
77
|
+
#
|
78
|
+
# # Typical use case
|
79
|
+
# flipr = Flipr.new
|
80
|
+
# flipr.flip_table
|
81
|
+
# => [ ╯ಠ益ಠ]╯彡┻━┻)
|
82
|
+
#
|
83
|
+
def flip_table
|
84
|
+
@flips.tables.sample
|
85
|
+
end
|
86
|
+
|
87
|
+
# put_table() simple puts a random table
|
88
|
+
# from the available tables it can put from
|
89
|
+
# the configuration files or the defaults
|
90
|
+
#
|
91
|
+
# == Examples
|
92
|
+
#
|
93
|
+
# # Typical use case
|
94
|
+
# flipr = Flipr.new
|
95
|
+
# flipr.put_table
|
96
|
+
# => ┬──┬ノ['~' ノ ]
|
97
|
+
#
|
98
|
+
def put_table
|
99
|
+
@puts.tables.sample
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Flip_Tables class contains the main
|
2
|
+
# logic for the flipping of tables
|
3
|
+
# for this application.
|
4
|
+
class Flip_Tables
|
5
|
+
attr_accessor :opts, :tables
|
6
|
+
|
7
|
+
# initialize() helps create a new
|
8
|
+
# Flip_Tables object taking in a required
|
9
|
+
# options hash called opts containing
|
10
|
+
# a hash with a key of :Flip_config
|
11
|
+
#
|
12
|
+
# == Examples
|
13
|
+
#
|
14
|
+
# # Typical use case for a new Flip_Tables object
|
15
|
+
# flips = Flip_Tables.new(@opts)
|
16
|
+
#
|
17
|
+
def initialize(opts)
|
18
|
+
@opts = opts
|
19
|
+
@tables = []
|
20
|
+
if @opts[:flip_configs]
|
21
|
+
# If there are flip configs provided
|
22
|
+
@opts[:flip_configs].each do |config|
|
23
|
+
@tables << YAML.load_file(@opts[:flip_config])
|
24
|
+
end
|
25
|
+
end
|
26
|
+
# Ensure there are some tables if the configs are bogus
|
27
|
+
if @tables.empty?
|
28
|
+
default_tables.each { |table| @tables << table }
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# default_tables() contains the default
|
33
|
+
# flip tables for this application
|
34
|
+
#
|
35
|
+
def default_tables
|
36
|
+
["[ ╯ '□']╯︵┻━┻)",
|
37
|
+
"[ ╯ಠ益ಠ]╯彡┻━┻)",
|
38
|
+
"[ ╯´・ω・]╯︵┸━┸)",
|
39
|
+
"[ ╯ `^´]╯︵┻━┻)",
|
40
|
+
"[ ╯ ゚O゚]╯︵┻━┻)",
|
41
|
+
"[ ╯ >_<]╯︵┻━┻)",
|
42
|
+
"[ ╯ ಥ ⌒ಥ]╯︵┻━┻)",
|
43
|
+
"[ ╯ ゚⊿゚]╯︵┻━┻)",
|
44
|
+
"[ ╯ `-`]╯︵┻━┻)",
|
45
|
+
"[ ╯ ゚▽゚]╯︵┻━┻)",
|
46
|
+
"[ ╯ ຈل͜ຈ]╯︵┻━┻)"]
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Put_Tables class contains the main
|
2
|
+
# logic for the putting of tables
|
3
|
+
# for this application.
|
4
|
+
class Put_Tables
|
5
|
+
attr_accessor :opts, :tables
|
6
|
+
|
7
|
+
# initialize() helps create a new
|
8
|
+
# Put_Tables object taking in a required
|
9
|
+
# options hash called opts containing
|
10
|
+
# a hash with a key of :Put_config
|
11
|
+
#
|
12
|
+
# == Examples
|
13
|
+
#
|
14
|
+
# # Typical use case for a new Flip_Tables object
|
15
|
+
# puts = Put_Tables.new(@opts)
|
16
|
+
#
|
17
|
+
def initialize(opts)
|
18
|
+
@opts = opts
|
19
|
+
@tables = []
|
20
|
+
if @opts[:put_configs]
|
21
|
+
# If there are flip configs provided
|
22
|
+
@opts[:put_configs].each do |config|
|
23
|
+
@tables << YAML.load_file(@opts[:put_config])
|
24
|
+
end
|
25
|
+
end
|
26
|
+
# Ensure there are some tables if the configs are bogus
|
27
|
+
if @tables.empty?
|
28
|
+
default_tables.each { |table| @tables << table }
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# default_tables() contains the default
|
33
|
+
# put tables for this application
|
34
|
+
#
|
35
|
+
def default_tables
|
36
|
+
[ "┬──┬ノ['-' ノ ]",
|
37
|
+
"┬──┬ノ[・ω・ ノ ]",
|
38
|
+
"┬──┬ノ['~' ノ ]",
|
39
|
+
"┬──┬ノ[`-` ノ ]" ]
|
40
|
+
end
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: flipr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kent Gruber
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: lolize
|
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: colorize
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: trollop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
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: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.12'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.12'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
description: A simple, configurable flip table / put table command-line application
|
98
|
+
with optional rainbows.
|
99
|
+
email:
|
100
|
+
- kgruber1@emich.edu
|
101
|
+
executables:
|
102
|
+
- flipr
|
103
|
+
extensions: []
|
104
|
+
extra_rdoc_files: []
|
105
|
+
files:
|
106
|
+
- ".gitignore"
|
107
|
+
- ".rspec"
|
108
|
+
- ".travis.yml"
|
109
|
+
- CODE_OF_CONDUCT.md
|
110
|
+
- Gemfile
|
111
|
+
- LICENSE.txt
|
112
|
+
- README.md
|
113
|
+
- Rakefile
|
114
|
+
- bin/console
|
115
|
+
- bin/flipr
|
116
|
+
- bin/setup
|
117
|
+
- examples/basic_example.rb
|
118
|
+
- flip_tables_example_config.yaml
|
119
|
+
- flipr.gemspec
|
120
|
+
- lib/flipr.rb
|
121
|
+
- lib/flipr/flip_tables.rb
|
122
|
+
- lib/flipr/put_tables.rb
|
123
|
+
homepage: https://github.com/picatz/Flipr
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata: {}
|
127
|
+
post_install_message:
|
128
|
+
rdoc_options: []
|
129
|
+
require_paths:
|
130
|
+
- lib
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
requirements: []
|
142
|
+
rubyforge_project:
|
143
|
+
rubygems_version: 2.5.1
|
144
|
+
signing_key:
|
145
|
+
specification_version: 4
|
146
|
+
summary: A command-line application for flip tables.
|
147
|
+
test_files: []
|