savio 0.1.4 → 0.1.7
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.
- checksums.yaml +4 -4
- data/.gitignore +8 -8
- data/Gemfile +6 -6
- data/LICENSE.txt +21 -21
- data/README.md +261 -261
- data/Rakefile +2 -2
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/lib/savio/Button.rb +253 -253
- data/lib/savio/ButtonManager.rb +106 -106
- data/lib/savio/ColorSlider.rb +224 -224
- data/lib/savio/Colors.rb +13 -13
- data/lib/savio/IORenderable.rb +126 -127
- data/lib/savio/InputBox.rb +196 -163
- data/lib/savio/Scene.rb +55 -55
- data/lib/savio/Slider.rb +195 -195
- data/lib/savio/hsv2rgb.rb +78 -78
- data/lib/savio/io.rb +250 -250
- data/lib/savio/version.rb +3 -3
- data/lib/savio.rb +82 -82
- data/savio.gemspec +26 -26
- data/test.rb +9 -9
- metadata +8 -8
data/savio.gemspec
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
require_relative 'lib/savio/version'
|
2
|
-
|
3
|
-
Gem::Specification.new do |spec|
|
4
|
-
spec.name = "savio"
|
5
|
-
spec.version = Savio::VERSION
|
6
|
-
spec.authors = ["TheRealSavi"]
|
7
|
-
spec.email = ["JohnGibbons167@gmail.com"]
|
8
|
-
|
9
|
-
spec.summary = %q{Adds IO Elements to Ruby2D}
|
10
|
-
spec.description = %q{Allows you to easily ask for user input through sliders, buttons, text boxs, etc}
|
11
|
-
spec.homepage = "http://www.gibbonsiv.com"
|
12
|
-
spec.license = "MIT"
|
13
|
-
spec.metadata = { "source_code_uri" => "https://github.com/TheRealSavi/savio" }
|
14
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
15
|
-
|
16
|
-
|
17
|
-
# Specify which files should be added to the gem when it is released.
|
18
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
-
end
|
22
|
-
spec.bindir = "exe"
|
23
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
-
spec.require_paths = ["lib"]
|
25
|
-
spec.add_dependency "ruby2d", "
|
26
|
-
end
|
1
|
+
require_relative 'lib/savio/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "savio"
|
5
|
+
spec.version = Savio::VERSION
|
6
|
+
spec.authors = ["TheRealSavi"]
|
7
|
+
spec.email = ["JohnGibbons167@gmail.com"]
|
8
|
+
|
9
|
+
spec.summary = %q{Adds IO Elements to Ruby2D}
|
10
|
+
spec.description = %q{Allows you to easily ask for user input through sliders, buttons, text boxs, etc}
|
11
|
+
spec.homepage = "http://www.gibbonsiv.com"
|
12
|
+
spec.license = "MIT"
|
13
|
+
spec.metadata = { "source_code_uri" => "https://github.com/TheRealSavi/savio" }
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
15
|
+
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
spec.add_dependency "ruby2d", ">= 0.9.2"
|
26
|
+
end
|
data/test.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require 'savio'
|
2
|
-
|
3
|
-
$colorSlider = ColorSlider.new(x: 200, y:200)
|
4
|
-
|
5
|
-
update do
|
6
|
-
puts $colorSlider.hsv
|
7
|
-
end
|
8
|
-
|
9
|
-
show()
|
1
|
+
require 'savio'
|
2
|
+
|
3
|
+
$colorSlider = ColorSlider.new(x: 200, y:200)
|
4
|
+
|
5
|
+
update do
|
6
|
+
puts $colorSlider.hsv
|
7
|
+
end
|
8
|
+
|
9
|
+
show()
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: savio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TheRealSavi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby2d
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.9.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.9.2
|
27
27
|
description: Allows you to easily ask for user input through sliders, buttons, text
|
@@ -60,7 +60,7 @@ licenses:
|
|
60
60
|
- MIT
|
61
61
|
metadata:
|
62
62
|
source_code_uri: https://github.com/TheRealSavi/savio
|
63
|
-
post_install_message:
|
63
|
+
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
66
66
|
- lib
|
@@ -75,8 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
79
|
-
signing_key:
|
78
|
+
rubygems_version: 3.1.4
|
79
|
+
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Adds IO Elements to Ruby2D
|
82
82
|
test_files: []
|