pry-theme 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +1 -0
- data/.travis.yml +8 -1
- data/CHANGELOG.md +40 -0
- data/Gemfile +1 -1
- data/README.md +26 -48
- data/Rakefile +10 -1
- data/VERSION +1 -0
- data/lib/pry-theme/basic_editor.rb +116 -0
- data/lib/pry-theme/color.rb +431 -0
- data/lib/pry-theme/color_table.rb +39 -0
- data/lib/pry-theme/colors/color16.rb +35 -0
- data/lib/pry-theme/colors/color256.rb +30 -0
- data/lib/pry-theme/colors/color8.rb +31 -0
- data/lib/pry-theme/commands.rb +237 -275
- data/lib/pry-theme/declaration.rb +120 -0
- data/lib/pry-theme/definition.rb +111 -0
- data/lib/pry-theme/formattable.rb +26 -0
- data/lib/pry-theme/hex.rb +76 -0
- data/lib/pry-theme/preview.rb +74 -0
- data/lib/pry-theme/rgb.rb +238 -13
- data/lib/pry-theme/term.rb +66 -0
- data/lib/pry-theme/theme.rb +116 -26
- data/lib/pry-theme/theme_list.rb +52 -0
- data/lib/pry-theme/when_started_hook.rb +25 -27
- data/lib/pry-theme.rb +84 -158
- data/pry-theme.gemspec +14 -18
- data/spec/color_table.rb +53 -0
- data/spec/colors/color16_spec.rb +255 -0
- data/spec/colors/color256_spec.rb +323 -0
- data/spec/colors/color8_spec.rb +254 -0
- data/spec/commands_spec.rb +203 -0
- data/spec/helper.rb +16 -0
- data/spec/hex_spec.rb +52 -0
- data/spec/rgb_spec.rb +81 -0
- data/spec/term_spec.rb +23 -0
- data/spec/theme_spec.rb +486 -0
- data/themes/github.prytheme.rb +49 -0
- data/themes/monokai.prytheme.rb +48 -0
- data/themes/pry-classic-16.prytheme.rb +48 -0
- data/themes/pry-classic-256.prytheme.rb +48 -0
- data/themes/pry-classic-8.prytheme.rb +48 -0
- data/themes/pry-cold.prytheme.rb +49 -0
- data/themes/pry-love-16.prytheme.rb +48 -0
- data/themes/pry-love-8.prytheme.rb +48 -0
- data/themes/pry-modern-16.prytheme.rb +48 -0
- data/themes/pry-modern-256.prytheme.rb +48 -0
- data/themes/pry-modern-8.prytheme.rb +48 -0
- data/themes/pry-monochrome.prytheme.rb +32 -0
- data/themes/pry-siberia-16.prytheme.rb +48 -0
- data/themes/pry-siberia-8.prytheme.rb +48 -0
- data/themes/pry-tepid-16.prytheme.rb +48 -0
- data/themes/pry-tepid-8.prytheme.rb +48 -0
- data/themes/pry-zealand-16.prytheme.rb +48 -0
- data/themes/pry-zealand-8.prytheme.rb +49 -0
- data/themes/railscasts.prytheme.rb +50 -0
- data/themes/solarized.prytheme.rb +48 -0
- data/themes/tomorrow.prytheme.rb +48 -0
- data/themes/twilight.prytheme.rb +48 -0
- data/themes/vim-default.prytheme.rb +50 -0
- data/themes/vim-detailed.prytheme.rb +50 -0
- data/themes/zenburn.prytheme.rb +48 -0
- metadata +56 -41
- data/lib/pry-theme/color_converter.rb +0 -55
- data/lib/pry-theme/helper.rb +0 -87
- data/lib/pry-theme/palette.rb +0 -85
- data/lib/pry-theme/term_notation.rb +0 -17
- data/lib/pry-theme/version.rb +0 -3
- data/test/fixtures/pry-classic.prytheme +0 -38
- data/test/helper.rb +0 -56
- data/test/test_color_converter.rb +0 -38
- data/test/test_commands.rb +0 -55
- data/test/test_helper.rb +0 -45
- data/test/test_palette.rb +0 -11
- data/themes/github.prytheme +0 -43
- data/themes/monokai.prytheme +0 -42
- data/themes/pry-classic.prytheme +0 -43
- data/themes/pry-cold.prytheme +0 -43
- data/themes/pry-modern.prytheme +0 -42
- data/themes/railscasts.prytheme +0 -44
- data/themes/saturday.prytheme +0 -42
- data/themes/solarized.prytheme +0 -43
- data/themes/tomorrow.prytheme +0 -43
- data/themes/twilight.prytheme +0 -42
- data/themes/vim-default.prytheme +0 -42
- data/themes/vim-detailed.prytheme +0 -42
- data/themes/zenburn.prytheme +0 -43
data/themes/solarized.prytheme
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
meta:
|
3
|
-
theme-name : solarized
|
4
|
-
version : 7
|
5
|
-
color-depth : 256
|
6
|
-
description : Precision colors for machines and people
|
7
|
-
author : Kyrylo Silin <kyrylosilin@gmail.com>,
|
8
|
-
Ethan Schoonover
|
9
|
-
|
10
|
-
theme:
|
11
|
-
class : dark_goldenrod
|
12
|
-
class_variable : azure01
|
13
|
-
comment : wet_asphalt05
|
14
|
-
constant : dark_goldenrod
|
15
|
-
error : abdel_kerims_beard04
|
16
|
-
float : robin_egg_blue01
|
17
|
-
global_variable : azure01
|
18
|
-
inline_delimiter : titian
|
19
|
-
instance_variable : azure01
|
20
|
-
integer : robin_egg_blue01
|
21
|
-
keyword : gray03 (b)
|
22
|
-
method : azure01
|
23
|
-
predefined_constant : azure01
|
24
|
-
regexp:
|
25
|
-
self : olive_drab
|
26
|
-
char : titian
|
27
|
-
content : olive_drab
|
28
|
-
delimiter : titian
|
29
|
-
modifier : titian
|
30
|
-
escape : titian
|
31
|
-
shell:
|
32
|
-
self : titian
|
33
|
-
char : titian
|
34
|
-
content : robin_egg_blue01
|
35
|
-
delimiter : titian
|
36
|
-
escape : titian
|
37
|
-
string:
|
38
|
-
self : titian
|
39
|
-
char : titian
|
40
|
-
content : robin_egg_blue01
|
41
|
-
delimiter : titian
|
42
|
-
escape : titian
|
43
|
-
symbol : robin_egg_blue01
|
data/themes/tomorrow.prytheme
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
meta:
|
3
|
-
theme-name : tomorrow
|
4
|
-
version : 7
|
5
|
-
color-depth : 256
|
6
|
-
description : A theme should not get in your way
|
7
|
-
author : John Mair,
|
8
|
-
Chris Kempson
|
9
|
-
|
10
|
-
theme:
|
11
|
-
class : gold
|
12
|
-
class_variable : alizarin
|
13
|
-
comment : gray03
|
14
|
-
constant : gold
|
15
|
-
error : tangerine (i)
|
16
|
-
float : tangerine
|
17
|
-
global_variable : alizarin
|
18
|
-
inline_delimiter : heliotrope01
|
19
|
-
instance_variable : alizarin
|
20
|
-
integer : tangerine
|
21
|
-
keyword : heliotrope03
|
22
|
-
method : royal_blue05
|
23
|
-
predefined_constant : tangerine
|
24
|
-
regexp:
|
25
|
-
self : alizarin
|
26
|
-
char : heliotrope01
|
27
|
-
content : old_gold
|
28
|
-
delimiter : alizarin
|
29
|
-
modifier : old_gold
|
30
|
-
escape : heliotrope01
|
31
|
-
shell:
|
32
|
-
self : gray02
|
33
|
-
char : heliotrope01
|
34
|
-
content : puce01
|
35
|
-
delimiter : gray02
|
36
|
-
escape : heliotrope01
|
37
|
-
string:
|
38
|
-
self : old_gold
|
39
|
-
char : heliotrope01
|
40
|
-
content : old_gold
|
41
|
-
delimiter : old_gold
|
42
|
-
escape : heliotrope01
|
43
|
-
symbol : old_gold
|
data/themes/twilight.prytheme
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
---
|
2
|
-
meta:
|
3
|
-
theme-name : twilight
|
4
|
-
version : 4
|
5
|
-
color-depth : 256
|
6
|
-
description : Based on Twilight from Emacs color-theme package
|
7
|
-
author : John Mair
|
8
|
-
|
9
|
-
theme:
|
10
|
-
class : vert_de_peche
|
11
|
-
class_variable : pale_cornflower_blue (b)
|
12
|
-
comment : gray03
|
13
|
-
constant : vert_de_peche
|
14
|
-
error : tenne (i)
|
15
|
-
float : silver01
|
16
|
-
global_variable : pale_cornflower_blue
|
17
|
-
inline_delimiter : pistachio01
|
18
|
-
instance_variable : cornflower_blue02
|
19
|
-
integer : pale_blue01
|
20
|
-
keyword : brass02 (b)
|
21
|
-
method : ochre (b)
|
22
|
-
predefined_constant : pale_cornflower_blue
|
23
|
-
regexp:
|
24
|
-
self : moss_green
|
25
|
-
char : pistachio01
|
26
|
-
content : moss_green
|
27
|
-
delimiter : moss_green
|
28
|
-
modifier : pale_cornflower_blue
|
29
|
-
escape : pistachio01
|
30
|
-
shell:
|
31
|
-
self : moss_green
|
32
|
-
char : pistachio01
|
33
|
-
content : moss_green
|
34
|
-
delimiter : moss_green
|
35
|
-
escape : pistachio01
|
36
|
-
string:
|
37
|
-
self : moss_green
|
38
|
-
char : pistachio01
|
39
|
-
content : moss_green
|
40
|
-
delimiter : moss_green
|
41
|
-
escape : pistachio01
|
42
|
-
symbol : chestnut01
|
data/themes/vim-default.prytheme
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
---
|
2
|
-
meta:
|
3
|
-
theme-name : vim-default
|
4
|
-
version : 6
|
5
|
-
color-depth : 8
|
6
|
-
description : For those familiar with the default vim colorscheme.
|
7
|
-
author : ☈king <rking-pry-vimscheme@sharpsaw.org>
|
8
|
-
|
9
|
-
theme:
|
10
|
-
class : green
|
11
|
-
class_variable : cyan
|
12
|
-
comment : blue
|
13
|
-
constant : green
|
14
|
-
error : white on red
|
15
|
-
float : red
|
16
|
-
global_variable : cyan
|
17
|
-
inline_delimiter : red
|
18
|
-
instance_variable : cyan
|
19
|
-
integer : red
|
20
|
-
keyword : magenta # some should be yellow. CodeRay's limited.
|
21
|
-
method : cyan
|
22
|
-
predefined_constant : cyan
|
23
|
-
regexp:
|
24
|
-
self : magenta
|
25
|
-
char : red
|
26
|
-
content : red
|
27
|
-
delimiter : magenta
|
28
|
-
modifier : magenta
|
29
|
-
escape : red
|
30
|
-
shell:
|
31
|
-
self : magenta
|
32
|
-
char : red
|
33
|
-
content : red
|
34
|
-
delimiter : magenta
|
35
|
-
escape : red
|
36
|
-
string:
|
37
|
-
self : magenta
|
38
|
-
char : red
|
39
|
-
content : red
|
40
|
-
delimiter : magenta
|
41
|
-
escape : red
|
42
|
-
symbol : red
|
@@ -1,42 +0,0 @@
|
|
1
|
-
---
|
2
|
-
meta:
|
3
|
-
theme-name : vim-detailed
|
4
|
-
version : 5
|
5
|
-
color-depth : 256
|
6
|
-
description : Like vim-default, but uses more colors.
|
7
|
-
author : ☈king <rking-pry-vim256scheme@sharpsaw.org>
|
8
|
-
|
9
|
-
theme:
|
10
|
-
class : toad_in_love # (originally: green)
|
11
|
-
class_variable : mint_green01 # (originally: cyan)
|
12
|
-
comment : navy_blue # (originally: blue)
|
13
|
-
constant : toad_in_love01 # (originally: green)
|
14
|
-
error : black on bismarck_furious # (originally: white on red)
|
15
|
-
float : titian # (originally: red)
|
16
|
-
global_variable : robin_egg_blue03 # (originally: cyan)
|
17
|
-
inline_delimiter : pale_mauve02
|
18
|
-
instance_variable : turquoise # (originally: cyan)
|
19
|
-
integer : cerise01 # (originally: red)
|
20
|
-
predefined_constant : robin_egg_blue02 # (originally: cyan)
|
21
|
-
keyword : violet_eggplant # (originally: magenta)
|
22
|
-
method : pale_cornflower_blue # (originally: cyan)
|
23
|
-
regexp:
|
24
|
-
self : bright_violet # (originally: magenta)
|
25
|
-
char : red
|
26
|
-
content : red # (originally: red)
|
27
|
-
delimiter : orchid01 # (originally: magenta)
|
28
|
-
modifier : lilac01 # (originally: magenta)
|
29
|
-
escape : red
|
30
|
-
shell:
|
31
|
-
self : pale_mauve02 # (originally: red)
|
32
|
-
char : eggplant02
|
33
|
-
content : eggplant02 # (originally: red)
|
34
|
-
delimiter : bright_violet # (originally: magenta)
|
35
|
-
escape : eggplant02
|
36
|
-
string:
|
37
|
-
self : eggplant01 # (originally: red)
|
38
|
-
char : maroon01
|
39
|
-
content : maroon01
|
40
|
-
delimiter : bright_violet # (originally: magenta)
|
41
|
-
escape : maroon01
|
42
|
-
symbol : ochre # (originally: red)
|
data/themes/zenburn.prytheme
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
meta:
|
3
|
-
theme-name : zenburn
|
4
|
-
version : 7
|
5
|
-
color-depth : 256
|
6
|
-
description : A low-contrast color scheme
|
7
|
-
author : Kyrylo Silin <kyrylosilin@gmail.com>,
|
8
|
-
Jani Nurminen
|
9
|
-
|
10
|
-
theme:
|
11
|
-
class : dark_peach (b)
|
12
|
-
class_variable : dark_peach
|
13
|
-
comment : swamp_green01
|
14
|
-
constant : dark_peach (b)
|
15
|
-
error : tenne (i)
|
16
|
-
float : silver01
|
17
|
-
global_variable : dark_peach
|
18
|
-
inline_delimiter : gray02
|
19
|
-
instance_variable : dark_peach
|
20
|
-
integer : pale_blue01
|
21
|
-
keyword : dark_salmon (b)
|
22
|
-
method : corn02
|
23
|
-
predefined_constant : dark_peach
|
24
|
-
regexp:
|
25
|
-
self : gray02
|
26
|
-
char : gray02
|
27
|
-
content : puce01
|
28
|
-
delimiter : gray02
|
29
|
-
modifier : gray02
|
30
|
-
escape : gray02
|
31
|
-
shell:
|
32
|
-
self : gray02
|
33
|
-
char : gray02
|
34
|
-
content : puce01
|
35
|
-
delimiter : gray02
|
36
|
-
escape : gray02
|
37
|
-
string:
|
38
|
-
self : gray02
|
39
|
-
char : gray02
|
40
|
-
content : puce01
|
41
|
-
delimiter : gray02
|
42
|
-
escape : gray02
|
43
|
-
symbol : puce01 (b)
|