impulse-cube 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +17 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +0 -0
- data/README.md +12 -0
- data/Rakefile +1 -0
- data/bin/cube +11 -0
- data/impulse-cube.gemspec +20 -0
- data/lib/impulse-cube.rb +44 -0
- data/lib/impulse-cube/version.rb +5 -0
- metadata +56 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
File without changes
|
data/README.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
cube
|
2
|
+
====
|
3
|
+
Low and behold
|
4
|
+
|
5
|
+
__________
|
6
|
+
/| /| v1.5
|
7
|
+
/ | / |
|
8
|
+
/__|______/ | - 50% more mass distribution
|
9
|
+
| |______|__| - Increased right angle support
|
10
|
+
| / | / - Enhanced plane subspace
|
11
|
+
| / | / - 27% more transparency
|
12
|
+
|/________|/ - Holiday cheer
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/cube
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'impulse-cube/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "impulse-cube"
|
8
|
+
gem.version = Impulse::Cube::VERSION
|
9
|
+
gem.executables << 'cube'
|
10
|
+
gem.authors = ["dphase"]
|
11
|
+
gem.email = ["joshua.deere@gmail.com"]
|
12
|
+
gem.description = %q{Lo and behold}
|
13
|
+
gem.summary = %q{Right angle compliant}
|
14
|
+
gem.homepage = "http://github.com/dphase/impulse-cube"
|
15
|
+
|
16
|
+
gem.files = `git ls-files`.split($/)
|
17
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
|
+
gem.require_paths = ["lib"]
|
20
|
+
end
|
data/lib/impulse-cube.rb
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
require "impulse-cube/version"
|
2
|
+
require "colorize"
|
3
|
+
|
4
|
+
module Impulse
|
5
|
+
module Cube
|
6
|
+
Cube = %Q{
|
7
|
+
MERRY CHRISTMAS
|
8
|
+
__________
|
9
|
+
/| /|
|
10
|
+
/ | / |
|
11
|
+
/__|______/ |
|
12
|
+
| |______|__|
|
13
|
+
| / | /
|
14
|
+
| / | /
|
15
|
+
|/________|/
|
16
|
+
#iMPULSE
|
17
|
+
}.split("\n")
|
18
|
+
|
19
|
+
def self.clear
|
20
|
+
puts "\e[2J\e[f"
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.run
|
24
|
+
offset, mode = 0, 1
|
25
|
+
speed = [0.0275, 0.04, 0.032, 0.02, 0.08, 0.095]
|
26
|
+
|
27
|
+
loop do
|
28
|
+
self.clear
|
29
|
+
|
30
|
+
mode = 0 if offset == 55
|
31
|
+
mode = 1 if offset == 0
|
32
|
+
|
33
|
+
offset = mode == 1 ? offset + 1 : offset - 1
|
34
|
+
|
35
|
+
cube = Cube.map do |c|
|
36
|
+
' ' * offset + c
|
37
|
+
end
|
38
|
+
|
39
|
+
puts cube.join("\n").colorize(String.colors.shuffle.sample)
|
40
|
+
sleep speed.shuffle.sample
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
metadata
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: impulse-cube
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.5
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- dphase
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-12-19 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Lo and behold
|
15
|
+
email:
|
16
|
+
- joshua.deere@gmail.com
|
17
|
+
executables:
|
18
|
+
- cube
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- .gitignore
|
23
|
+
- Gemfile
|
24
|
+
- LICENSE.txt
|
25
|
+
- README.md
|
26
|
+
- Rakefile
|
27
|
+
- bin/cube
|
28
|
+
- impulse-cube.gemspec
|
29
|
+
- lib/impulse-cube.rb
|
30
|
+
- lib/impulse-cube/version.rb
|
31
|
+
homepage: http://github.com/dphase/impulse-cube
|
32
|
+
licenses: []
|
33
|
+
post_install_message:
|
34
|
+
rdoc_options: []
|
35
|
+
require_paths:
|
36
|
+
- lib
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
requirements: []
|
50
|
+
rubyforge_project:
|
51
|
+
rubygems_version: 1.8.24
|
52
|
+
signing_key:
|
53
|
+
specification_version: 3
|
54
|
+
summary: Right angle compliant
|
55
|
+
test_files: []
|
56
|
+
has_rdoc:
|