irb-theme-tokyonight 0.1.0

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
+ SHA256:
3
+ metadata.gz: 01751757d99a9927306ba8e9c4c4756016a41858329b9048b915aac8ce0ba826
4
+ data.tar.gz: 359c93eb1d9bba58a6864a806805623c5e612a613df8bd680e6de94c40ae27c9
5
+ SHA512:
6
+ metadata.gz: 5d9a27ce33160a4ad04f71dfaff23830b276a812aabb2742784ab81eab3256eb4906ae6ad13a39b60ddd521d302b697a818f0db488daba81c6434268bd81c565
7
+ data.tar.gz: 62e6bfdcdec378e06617df457a80d9ebee043f1b84543899025da7b80c91540da2266dd66d6cc4b4900b68269ffcb5fb0362ef5248b5aba5478ae9255a11b099
data/.standard.yml ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ ruby_version: 3.2
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.2.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-12-16
4
+
5
+ - Initial release
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Vitaly Slobodin
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,65 @@
1
+ # Irb::Theme::Tokyonight
2
+
3
+ [Tokyo Night colors](https://github.com/folke/tokyonight.nvim) for `Reline` (IRB). This gem is inspired
4
+ by [a similar gem](https://github.com/katsyoshi/irb-theme-dracula) featuring the `Dracula` theme.
5
+
6
+ ## Installation
7
+
8
+ Install the gem and add to the application's Gemfile by executing:
9
+
10
+ $ bundle add require irb-theme-tokyonight
11
+
12
+ If bundler is not being used to manage dependencies, install the gem by executing:
13
+
14
+ $ gem install irb-theme-tokyonight
15
+
16
+ ## Usage
17
+
18
+ Add one of the following `require` statements to your `.irbrc` file:
19
+
20
+ ### Night
21
+
22
+ ```ruby
23
+ require 'irb/theme/tokyonight/night'
24
+ ```
25
+
26
+ ![Screenshot with the activated Tokyo Night theme and Night accent in IRB](doc/images/night.png)
27
+
28
+ ### Storm
29
+
30
+ ```ruby
31
+ require 'irb/theme/tokyonight/storm'
32
+ ```
33
+
34
+ ![Screenshot with the activated Tokyo Night theme and Storm accent in IRB](doc/images/storm.png)
35
+
36
+ ### Moon
37
+
38
+ ```ruby
39
+ require 'irb/theme/tokyonight/moon'
40
+ ```
41
+
42
+ ![Screenshot with the activated Tokyo Night theme and Moon accent in IRB](doc/images/moon.png)
43
+
44
+ ### Day
45
+
46
+ ```ruby
47
+ require 'irb/theme/tokyonight/day'
48
+ ```
49
+
50
+ ![Screenshot with the activated Tokyo Night theme and Day accent in IRB](doc/images/day.png)
51
+
52
+ ## Development
53
+
54
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
55
+
56
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
57
+
58
+ ## Contributing
59
+
60
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/irb-theme-tokyonight. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/irb-theme-tokyonight/blob/master/CODE_OF_CONDUCT.md).
61
+
62
+ ## License
63
+
64
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
65
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "standard/rake"
5
+
6
+ task default: :standard
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/irb/theme/tokyonight/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "irb-theme-tokyonight"
7
+ spec.version = Irb::Theme::Tokyonight::VERSION
8
+ spec.authors = ["Vitaly Slobodin"]
9
+ spec.email = ["vitaliy.slobodin@gmail.com"]
10
+
11
+ spec.summary = "The color scheme for Reline"
12
+ spec.homepage = "https://github.com/vitallium/irb-theme-tokyonight"
13
+ spec.license = "MIT"
14
+ spec.required_ruby_version = ">= 2.6.0"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://github.com/vitallium/irb-theme-tokyonight"
18
+ spec.metadata["changelog_uri"] = "https://github.com/vitallium/irb-theme-tokyonight/blob/main/CHANGELOG.md"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(__dir__) do
23
+ `git ls-files -z`.split("\x0").reject do |f|
24
+ (File.expand_path(f) == __FILE__) ||
25
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_dependency "irb"
33
+ spec.add_dependency "reline", ">= 0.4.0"
34
+
35
+ spec.add_development_dependency "standard", "~> 1.3"
36
+ end
@@ -0,0 +1,5 @@
1
+ Reline::Face.config(:completion_dialog) do |conf|
2
+ conf.define(:default, foreground: "#3760bf", background: "#e1e2e7")
3
+ conf.define(:enhanced, foreground: "#3760bf", background: "#b6bfe2")
4
+ conf.define(:scrollbar, foreground: "#e9e9ec", background: "#2e7de9")
5
+ end
@@ -0,0 +1,5 @@
1
+ Reline::Face.config(:completion_dialog) do |conf|
2
+ conf.define(:default, foreground: "#c8d3f5", background: "#222436")
3
+ conf.define(:enhanced, foreground: "#c8d3f5", background: "#2d3f76")
4
+ conf.define(:scrollbar, foreground: "#1e2030", background: "#82aaff")
5
+ end
@@ -0,0 +1,5 @@
1
+ Reline::Face.config(:completion_dialog) do |conf|
2
+ conf.define(:default, foreground: "#c0caf5", background: "#1a1b26")
3
+ conf.define(:enhanced, foreground: "#c0caf5", background: "#283457")
4
+ conf.define(:scrollbar, foreground: "#16161e", background: "#7aa2f7")
5
+ end
@@ -0,0 +1,5 @@
1
+ Reline::Face.config(:completion_dialog) do |conf|
2
+ conf.define(:default, foreground: "#c0caf5", background: "#24283b")
3
+ conf.define(:enhanced, foreground: "#c0caf5", background: "#2e3c64")
4
+ conf.define(:scrollbar, foreground: "#1f2335", background: "#7aa2f7")
5
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Irb
4
+ module Theme
5
+ module Tokyonight
6
+ VERSION = "0.1.0"
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "tokyonight/version"
4
+
5
+ module Irb
6
+ module Theme
7
+ module Tokyonight
8
+ class Error < StandardError; end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,8 @@
1
+ module Irb
2
+ module Theme
3
+ module Tokyonight
4
+ VERSION: String
5
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
6
+ end
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: irb-theme-tokyonight
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Vitaly Slobodin
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-12-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: irb
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: reline
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.4.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.4.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: standard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ description:
56
+ email:
57
+ - vitaliy.slobodin@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".standard.yml"
63
+ - ".tool-versions"
64
+ - CHANGELOG.md
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - doc/images/day.png
69
+ - doc/images/moon.png
70
+ - doc/images/night.png
71
+ - doc/images/storm.png
72
+ - irb-theme-tokyonight.gemspec
73
+ - lib/irb/theme/tokyonight.rb
74
+ - lib/irb/theme/tokyonight/day.rb
75
+ - lib/irb/theme/tokyonight/moon.rb
76
+ - lib/irb/theme/tokyonight/night.rb
77
+ - lib/irb/theme/tokyonight/storm.rb
78
+ - lib/irb/theme/tokyonight/version.rb
79
+ - sig/irb/theme/tokyonight.rbs
80
+ homepage: https://github.com/vitallium/irb-theme-tokyonight
81
+ licenses:
82
+ - MIT
83
+ metadata:
84
+ homepage_uri: https://github.com/vitallium/irb-theme-tokyonight
85
+ source_code_uri: https://github.com/vitallium/irb-theme-tokyonight
86
+ changelog_uri: https://github.com/vitallium/irb-theme-tokyonight/blob/main/CHANGELOG.md
87
+ post_install_message:
88
+ rdoc_options: []
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: 2.6.0
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubygems_version: 3.5.1
103
+ signing_key:
104
+ specification_version: 4
105
+ summary: The color scheme for Reline
106
+ test_files: []