pry-theme 0.0.10 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.travis.yml +12 -0
- data/CHANGELOG.md +42 -0
- data/Gemfile +2 -0
- data/README.md +4 -1
- data/Rakefile +6 -0
- data/lib/pry-theme/color_converter.rb +55 -0
- data/lib/pry-theme/commands.rb +153 -46
- data/lib/pry-theme/helper.rb +39 -0
- data/lib/pry-theme/palette.rb +2 -2
- data/lib/pry-theme/rgb.rb +24 -0
- data/lib/pry-theme/term_notation.rb +17 -0
- data/lib/pry-theme/theme.rb +1 -1
- data/lib/pry-theme/version.rb +1 -1
- data/lib/pry-theme/when_started_hook.rb +3 -2
- data/lib/pry-theme.rb +8 -5
- data/lib/rubygems_plugin.rb +1 -2
- data/pry-theme.gemspec +8 -2
- data/test/fixtures/pry-classic.prytheme +38 -0
- data/test/helper.rb +56 -0
- data/test/test_color_converter.rb +38 -0
- data/test/test_commands.rb +55 -0
- data/test/test_helper.rb +45 -0
- data/test/test_palette.rb +11 -0
- data/themes/github.prytheme +1 -4
- data/themes/monokai.prytheme +4 -7
- data/themes/pry-classic.prytheme +3 -5
- data/themes/pry-cold.prytheme +3 -6
- data/themes/pry-modern.prytheme +1 -4
- data/themes/railscasts.prytheme +1 -4
- data/themes/saturday.prytheme +4 -7
- data/themes/solarized.prytheme +4 -7
- data/themes/tomorrow.prytheme +2 -5
- data/themes/twilight.prytheme +1 -4
- data/themes/vim-default.prytheme +35 -0
- data/themes/vim-detailed.prytheme +35 -0
- data/themes/zenburn.prytheme +4 -7
- metadata +55 -9
data/themes/monokai.prytheme
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
3
|
theme-name : monokai
|
4
|
-
version :
|
4
|
+
version : 3
|
5
5
|
color-depth : 256
|
6
6
|
description : Based on Wimer Hazenberg's theme
|
7
7
|
author : Kyrylo Silin <kyrylosilin@gmail.com>
|
8
8
|
|
9
9
|
theme:
|
10
10
|
class : sky01
|
11
|
-
class_variable :
|
11
|
+
class_variable : (d)
|
12
12
|
comment : pale_mauve01
|
13
13
|
constant : sky01
|
14
14
|
error : crimson (i)
|
15
15
|
float : amethyst04
|
16
|
-
global_variable :
|
17
|
-
instance_variable :
|
16
|
+
global_variable : (d)
|
17
|
+
instance_variable : (d)
|
18
18
|
integer : amethyst01
|
19
19
|
keyword : crimson
|
20
20
|
method : lime01
|
@@ -24,7 +24,6 @@ theme:
|
|
24
24
|
content : flax
|
25
25
|
delimiter : flax
|
26
26
|
modifier : flax
|
27
|
-
function : flax
|
28
27
|
shell:
|
29
28
|
self : flax
|
30
29
|
content : flax
|
@@ -32,7 +31,5 @@ theme:
|
|
32
31
|
string:
|
33
32
|
self : flax
|
34
33
|
content : flax
|
35
|
-
modifier : flax
|
36
|
-
escape : flax
|
37
34
|
delimiter : flax
|
38
35
|
symbol : old_gold
|
data/themes/pry-classic.prytheme
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
3
|
theme-name : pry-classic
|
4
|
-
version :
|
4
|
+
version : 5
|
5
5
|
color-depth : 8
|
6
6
|
description : Default Pry theme
|
7
|
-
author : Kyrylo Silin <kyrylosilin@gmail.com>,
|
7
|
+
author : Kyrylo Silin <kyrylosilin@gmail.com>,
|
8
|
+
Kornelius Kalnbach
|
8
9
|
|
9
10
|
theme:
|
10
11
|
class : magenta (b)
|
@@ -24,7 +25,6 @@ theme:
|
|
24
25
|
content : red
|
25
26
|
delimiter : red (db)
|
26
27
|
modifier : magenta (b)
|
27
|
-
function : (db)
|
28
28
|
shell:
|
29
29
|
self : on green
|
30
30
|
content : (db)
|
@@ -32,7 +32,5 @@ theme:
|
|
32
32
|
string:
|
33
33
|
self : green
|
34
34
|
content : green
|
35
|
-
modifier : green (b)
|
36
|
-
escape : cyan (b)
|
37
35
|
delimiter : green (b)
|
38
36
|
symbol : green (b)
|
data/themes/pry-cold.prytheme
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
3
|
theme-name : pry-cold
|
4
|
-
version :
|
4
|
+
version : 3
|
5
5
|
color-depth : 256
|
6
6
|
description : Based on Charcoalblack theme from Emacs
|
7
7
|
author : John Mair,
|
@@ -21,19 +21,16 @@ theme:
|
|
21
21
|
method : royal_blue05
|
22
22
|
predefined_constant : robin_egg_blue02 (b)
|
23
23
|
regexp:
|
24
|
-
self :
|
24
|
+
self : gray02
|
25
25
|
content : bluish03
|
26
26
|
delimiter : gray02
|
27
27
|
modifier : gray02
|
28
|
-
function : gray02
|
29
28
|
shell:
|
30
|
-
self :
|
29
|
+
self : gray02
|
31
30
|
content : puce01
|
32
31
|
delimiter : gray02
|
33
32
|
string:
|
34
33
|
self : bluish03
|
35
34
|
content : bluish03
|
36
|
-
modifier : bluish03
|
37
|
-
escape : bluish03
|
38
35
|
delimiter : bluish03
|
39
36
|
symbol : bluish03
|
data/themes/pry-modern.prytheme
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
3
|
theme-name : pry-modern
|
4
|
-
version :
|
4
|
+
version : 4
|
5
5
|
color-depth : 256
|
6
6
|
description : Nifty version of pry-classic
|
7
7
|
author : Kyrylo Silin <kyrylosilin@gmail.com>
|
@@ -24,7 +24,6 @@ theme:
|
|
24
24
|
content : violaceous03
|
25
25
|
delimiter : tangerine (db)
|
26
26
|
modifier : dark_pink01 (b)
|
27
|
-
function : (db)
|
28
27
|
shell:
|
29
28
|
self : on green
|
30
29
|
content : grass01
|
@@ -32,7 +31,5 @@ theme:
|
|
32
31
|
string:
|
33
32
|
self : malachite01
|
34
33
|
content : malachite01
|
35
|
-
modifier : malachite01 (b)
|
36
|
-
escape : cyan (b)
|
37
34
|
delimiter : malachite01 (b)
|
38
35
|
symbol : malachite02 (b)
|
data/themes/railscasts.prytheme
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
3
|
theme-name : railscasts
|
4
|
-
version :
|
4
|
+
version : 7
|
5
5
|
color-depth : 256
|
6
6
|
description : RailsCasts theme
|
7
7
|
author : Ryan Fitzgerald,
|
@@ -26,7 +26,6 @@ theme:
|
|
26
26
|
content : asparagus
|
27
27
|
delimiter : asparagus
|
28
28
|
modifier : asparagus
|
29
|
-
function : asparagus
|
30
29
|
shell:
|
31
30
|
self : asparagus
|
32
31
|
content : asparagus
|
@@ -34,7 +33,5 @@ theme:
|
|
34
33
|
string:
|
35
34
|
self : asparagus
|
36
35
|
content : asparagus
|
37
|
-
modifier : asparagus
|
38
|
-
escape : asparagus
|
39
36
|
delimiter : asparagus
|
40
37
|
symbol : cornflower_blue01
|
data/themes/saturday.prytheme
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
|
-
theme-name : saturday
|
4
|
-
version :
|
3
|
+
theme-name : saturday
|
4
|
+
version : 7
|
5
5
|
color-depth : 256
|
6
6
|
description : A modification of "tommorow night"
|
7
7
|
author : John Mair (banisterfiend)
|
@@ -24,15 +24,12 @@ theme:
|
|
24
24
|
content : alizarin
|
25
25
|
delimiter : alizarin
|
26
26
|
modifier : lilac01
|
27
|
-
function : alizarin
|
28
27
|
shell:
|
29
|
-
self :
|
30
|
-
content :
|
28
|
+
self : green
|
29
|
+
content : toad_in_love
|
31
30
|
delimiter : green
|
32
31
|
string:
|
33
32
|
self : old_gold
|
34
33
|
content : old_gold
|
35
|
-
modifier : old_gold
|
36
|
-
escape : old_gold
|
37
34
|
delimiter : old_gold
|
38
35
|
symbol : old_gold (b)
|
data/themes/solarized.prytheme
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
3
|
theme-name : solarized
|
4
|
-
version :
|
4
|
+
version : 6
|
5
5
|
color-depth : 256
|
6
6
|
description : Precision colors for machines and people
|
7
7
|
author : Kyrylo Silin <kyrylosilin@gmail.com>,
|
@@ -21,19 +21,16 @@ theme:
|
|
21
21
|
method : azure01
|
22
22
|
predefined_constant : azure01
|
23
23
|
regexp:
|
24
|
-
self :
|
24
|
+
self : titian
|
25
25
|
content : olive_drab
|
26
26
|
delimiter : titian
|
27
27
|
modifier : titian
|
28
|
-
function : black
|
29
28
|
shell:
|
30
|
-
self :
|
29
|
+
self : titian
|
31
30
|
content : robin_egg_blue01
|
32
31
|
delimiter : titian
|
33
32
|
string:
|
34
|
-
self :
|
33
|
+
self : titian
|
35
34
|
content : robin_egg_blue01
|
36
|
-
modifier : robin_egg_blue01
|
37
|
-
escape : robin_egg_blue01
|
38
35
|
delimiter : titian
|
39
36
|
symbol : robin_egg_blue01
|
data/themes/tomorrow.prytheme
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
3
|
theme-name : tomorrow
|
4
|
-
version :
|
4
|
+
version : 6
|
5
5
|
color-depth : 256
|
6
6
|
description : A theme should not get in your way
|
7
7
|
author : John Mair,
|
@@ -25,15 +25,12 @@ theme:
|
|
25
25
|
content : old_gold
|
26
26
|
delimiter : alizarin
|
27
27
|
modifier : old_gold
|
28
|
-
function : old_gold
|
29
28
|
shell:
|
30
|
-
self :
|
29
|
+
self : gray02
|
31
30
|
content : puce01
|
32
31
|
delimiter : gray02
|
33
32
|
string:
|
34
33
|
self : old_gold
|
35
34
|
content : old_gold
|
36
|
-
modifier : old_gold
|
37
|
-
escape : old_gold
|
38
35
|
delimiter : old_gold
|
39
36
|
symbol : old_gold
|
data/themes/twilight.prytheme
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
3
|
theme-name : twilight
|
4
|
-
version :
|
4
|
+
version : 3
|
5
5
|
color-depth : 256
|
6
6
|
description : Based on Twilight from Emacs color-theme package
|
7
7
|
author : John Mair
|
@@ -24,7 +24,6 @@ theme:
|
|
24
24
|
content : moss_green
|
25
25
|
delimiter : moss_green
|
26
26
|
modifier : pale_cornflower_blue
|
27
|
-
function : moss_green
|
28
27
|
shell:
|
29
28
|
self : moss_green
|
30
29
|
content : moss_green
|
@@ -32,7 +31,5 @@ theme:
|
|
32
31
|
string:
|
33
32
|
self : moss_green
|
34
33
|
content : moss_green
|
35
|
-
modifier : pale_cornflower_blue
|
36
|
-
escape : moss_green
|
37
34
|
delimiter : moss_green
|
38
35
|
symbol : chestnut01
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
meta:
|
3
|
+
theme-name : vim-default
|
4
|
+
version : 5
|
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
|
+
instance_variable : cyan
|
18
|
+
integer : red
|
19
|
+
keyword : magenta # some should be yellow. CodeRay's limited.
|
20
|
+
method : cyan
|
21
|
+
predefined_constant : cyan
|
22
|
+
regexp:
|
23
|
+
self : magenta
|
24
|
+
content : red
|
25
|
+
delimiter : magenta
|
26
|
+
modifier : magenta
|
27
|
+
shell:
|
28
|
+
self : magenta
|
29
|
+
content : red
|
30
|
+
delimiter : magenta
|
31
|
+
string:
|
32
|
+
self : magenta
|
33
|
+
content : red
|
34
|
+
delimiter : magenta
|
35
|
+
symbol : red
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
meta:
|
3
|
+
theme-name : vim-detailed
|
4
|
+
version : 4
|
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
|
+
keyword : violet_eggplant # (originally: magenta)
|
11
|
+
class : toad_in_love # (originally: green)
|
12
|
+
class_variable : mint_green01 # (originally: cyan)
|
13
|
+
global_variable : robin_egg_blue03 # (originally: cyan)
|
14
|
+
instance_variable : turquoise # (originally: cyan)
|
15
|
+
predefined_constant : robin_egg_blue02 # (originally: cyan)
|
16
|
+
constant : toad_in_love01 # (originally: green)
|
17
|
+
method : pale_cornflower_blue # (originally: cyan)
|
18
|
+
float : titian # (originally: red)
|
19
|
+
integer : cerise01 # (originally: red)
|
20
|
+
comment : navy_blue # (originally: blue)
|
21
|
+
error : black on bismarck_furious # (originally: white on red)
|
22
|
+
regexp:
|
23
|
+
self : bright_violet # (originally: magenta)
|
24
|
+
content : red # (originally: red)
|
25
|
+
delimiter : orchid01 # (originally: magenta)
|
26
|
+
modifier : lilac01 # (originally: magenta)
|
27
|
+
shell:
|
28
|
+
self : pale_mauve02 # (originally: red)
|
29
|
+
content : eggplant02 # (originally: red)
|
30
|
+
delimiter : bright_violet # (originally: magenta)
|
31
|
+
string:
|
32
|
+
self : eggplant01 # (originally: red)
|
33
|
+
content : maroon01
|
34
|
+
delimiter : bright_violet # (originally: magenta)
|
35
|
+
symbol : ochre # (originally: red)
|
data/themes/zenburn.prytheme
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
meta:
|
3
3
|
theme-name : zenburn
|
4
|
-
version :
|
4
|
+
version : 6
|
5
5
|
color-depth : 256
|
6
6
|
description : A low-contrast color scheme
|
7
7
|
author : Kyrylo Silin <kyrylosilin@gmail.com>,
|
@@ -21,19 +21,16 @@ theme:
|
|
21
21
|
method : corn02
|
22
22
|
predefined_constant : dark_peach
|
23
23
|
regexp:
|
24
|
-
self :
|
24
|
+
self : gray02
|
25
25
|
content : puce01
|
26
26
|
delimiter : gray02
|
27
27
|
modifier : gray02
|
28
|
-
function : gray02
|
29
28
|
shell:
|
30
|
-
self :
|
29
|
+
self : gray02
|
31
30
|
content : puce01
|
32
31
|
delimiter : gray02
|
33
32
|
string:
|
34
|
-
self :
|
33
|
+
self : gray02
|
35
34
|
content : puce01
|
36
|
-
modifier : puce01
|
37
|
-
escape : puce01
|
38
35
|
delimiter : gray02
|
39
36
|
symbol : puce01 (b)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,33 +9,65 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: json
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0
|
21
|
+
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0
|
29
|
+
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: bacon
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: '0'
|
38
|
-
type: :
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: pry
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
39
71
|
prerelease: false
|
40
72
|
version_requirements: !ruby/object:Gem::Requirement
|
41
73
|
none: false
|
@@ -50,13 +82,19 @@ extensions: []
|
|
50
82
|
extra_rdoc_files: []
|
51
83
|
files:
|
52
84
|
- .gitignore
|
85
|
+
- .travis.yml
|
53
86
|
- CHANGELOG.md
|
87
|
+
- Gemfile
|
54
88
|
- LICENSE
|
55
89
|
- README.md
|
90
|
+
- Rakefile
|
56
91
|
- lib/pry-theme.rb
|
92
|
+
- lib/pry-theme/color_converter.rb
|
57
93
|
- lib/pry-theme/commands.rb
|
58
94
|
- lib/pry-theme/helper.rb
|
59
95
|
- lib/pry-theme/palette.rb
|
96
|
+
- lib/pry-theme/rgb.rb
|
97
|
+
- lib/pry-theme/term_notation.rb
|
60
98
|
- lib/pry-theme/theme.rb
|
61
99
|
- lib/pry-theme/uninstaller.rb
|
62
100
|
- lib/pry-theme/version.rb
|
@@ -67,6 +105,12 @@ files:
|
|
67
105
|
- screenshots/solarized.png
|
68
106
|
- screenshots/tomorrow.png
|
69
107
|
- screenshots/zenburn.png
|
108
|
+
- test/fixtures/pry-classic.prytheme
|
109
|
+
- test/helper.rb
|
110
|
+
- test/test_color_converter.rb
|
111
|
+
- test/test_commands.rb
|
112
|
+
- test/test_helper.rb
|
113
|
+
- test/test_palette.rb
|
70
114
|
- themes/github.prytheme
|
71
115
|
- themes/monokai.prytheme
|
72
116
|
- themes/pry-classic.prytheme
|
@@ -77,6 +121,8 @@ files:
|
|
77
121
|
- themes/solarized.prytheme
|
78
122
|
- themes/tomorrow.prytheme
|
79
123
|
- themes/twilight.prytheme
|
124
|
+
- themes/vim-default.prytheme
|
125
|
+
- themes/vim-detailed.prytheme
|
80
126
|
- themes/zenburn.prytheme
|
81
127
|
homepage: https://github.com/kyrylo/pry-theme
|
82
128
|
licenses:
|