pry-theme 0.1.0 → 0.1.1

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/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Pry Theme changelog
2
2
  ===================
3
3
 
4
+ ### v0.1.1 (August 1, 2012)
5
+
6
+ * Fixed bug in `--test` command not displaying current theme name;
7
+ * Added new Pry Theme attributes: `escape`, `inline_delimiter` and `char`;
8
+ * Amended output of `--test` command in order to reflect new attributes.
9
+
4
10
  ### v0.1.0 (July 23, 2012)
5
11
 
6
12
  * **HOT**: Boosted the load speed of the plugin:
data/README.md CHANGED
@@ -87,13 +87,14 @@ I hope it runs on Windows too, but I couldn't find any sane terminal, that
87
87
  would support 256 colors. Sorry, Windows guys. Please, file an issue, if you
88
88
  noticed bugs or something.
89
89
 
90
- ### Ruby versions
90
+ ### Ruby implementations support
91
91
 
92
92
  * MRI 1.9.3
93
93
  * MRI 1.9.2
94
94
  * MRI 1.8.7
95
95
  * REE 1.8.7-2012.02
96
96
  * JRuby 1.6.7
97
+ * Rubinius 1.2.4
97
98
 
98
99
  Under the hood
99
100
  --------------
@@ -24,6 +24,7 @@ module PryTheme
24
24
  pry-theme -t
25
25
 
26
26
  Wiki: https://github.com/kyrylo/pry-theme/wiki/Pry-Theme-CLI
27
+ Cheatsheet: https://github.com/kyrylo/pry-theme/wiki/Pry-Theme-Cheatsheet
27
28
  BANNER
28
29
 
29
30
  def options(opt)
@@ -128,22 +129,22 @@ module PryTheme
128
129
  end
129
130
 
130
131
  def test_theme
131
- example = <<-'TEST'
132
+ example = <<-TEST
132
133
  # "#{ PryTheme.current_theme }" theme.
133
134
  class PryTheme::ThisIsAClass
134
135
  def this_is_a_method
135
136
  THIS_IS_A_CONSTANT = :this_is_a_symbol
136
- this_is_a_local_var = "#{this} is a string.\n"
137
+ this_is_a_local_var = "\#{this} \#@is a string.\\n"
137
138
  this_is_a_float = 10_000.00
138
139
  this_is_an_integer = 10_000
139
140
 
140
141
  # TRUE and FALSE are predefined constants.
141
142
  $this_is_a_global_variable = TRUE or FALSE
142
143
 
143
- @this_is_an_instance_variable = `echo '#{system} call\n'`
144
- @@this_is_a_class_variable = @$ # An error.
144
+ @this_is_an_instance_variable = `echo '\#@hi \#{system} call\\n'`
145
+ @@this_is_a_class_variable = @@@\\\\$ # An error.
145
146
 
146
- /[0-9]{1,3}this #{is} a regexp\w+/xi
147
+ /[0-9]{1,3}this \#{is} a regexp\\w+/xi
147
148
  end
148
149
  end
149
150
  TEST
@@ -187,6 +188,7 @@ theme:
187
188
  error : # black (b) on white
188
189
  float : # (i)
189
190
  global_variable :
191
+ inline_delimiter :
190
192
  instance_variable :
191
193
  integer :
192
194
  keyword :
@@ -194,20 +196,23 @@ theme:
194
196
  predefined_constant :
195
197
  regexp:
196
198
  self :
199
+ char :
197
200
  content :
198
201
  delimiter :
199
202
  modifier :
200
- function :
203
+ escape :
201
204
  shell:
202
205
  self :
206
+ char :
203
207
  content :
204
208
  delimiter :
209
+ escape :
205
210
  string:
206
211
  self :
212
+ char :
207
213
  content :
208
- modifier :
209
- escape :
210
214
  delimiter :
215
+ escape :
211
216
  symbol :
212
217
  TEMPLATE
213
218
 
@@ -1,3 +1,3 @@
1
1
  module PryTheme
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,35 +1,43 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : github
4
- version : 4
4
+ version : 5
5
5
  color-depth : 256
6
6
  description : Based on github theme
7
- author : John Mair
7
+ author : John Mair,
8
+ Kyrylo Silin <kyrylosilin@gmail.com>
8
9
 
9
10
  theme:
10
- class : denim02 (b)
11
- class_variable : aquamarine02 (b)
12
- comment : light_grey03
13
- constant : aquamarine02
14
- error : tenne (i)
15
- float : silver01
16
- global_variable : robin_egg_blue02
17
- instance_variable : aquamarine02
18
- integer : aquamarine02
19
- keyword : seashell (b)
20
- method : maroon01
21
- predefined_constant : robin_egg_blue02 (b)
11
+ class : seroburomalinovyj01 (b)
12
+ class_variable : teal01
13
+ comment : gray01
14
+ constant : teal
15
+ error : bismarck_furious on periwinkle
16
+ float : teal01
17
+ global_variable : teal01
18
+ inline_delimiter : cerise01
19
+ instance_variable : teal01
20
+ integer : teal01
21
+ keyword : black (b)
22
+ method : maroon01 (b)
23
+ predefined_constant : teal01
22
24
  regexp:
23
25
  self : toad_in_love01
26
+ char : toad_in_love01
24
27
  content : toad_in_love01
25
28
  delimiter : toad_in_love01
26
29
  modifier : toad_in_love01
30
+ escape : toad_in_love01
27
31
  shell:
28
- self : puce01
29
- content : puce01
30
- delimiter : gray02
32
+ self : cerise01
33
+ char : cerise01
34
+ content : cerise01
35
+ delimiter : cerise01
36
+ escape : cerise01
31
37
  string:
32
- self : alizarin
33
- content : alizarin
34
- delimiter : alizarin
35
- symbol : pale_magenta
38
+ self : cerise01
39
+ char : cerise01
40
+ content : cerise01
41
+ delimiter : cerise01
42
+ escape : cerise01
43
+ symbol : violet_eggplant01
@@ -1,35 +1,42 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : monokai
4
- version : 3
4
+ version : 4
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 : (d)
11
+ class_variable : white
12
12
  comment : pale_mauve01
13
13
  constant : sky01
14
14
  error : crimson (i)
15
- float : amethyst04
16
- global_variable : (d)
17
- instance_variable : (d)
15
+ float : amethyst01
16
+ global_variable : white
17
+ inline_delimiter : white
18
+ instance_variable : white
18
19
  integer : amethyst01
19
20
  keyword : crimson
20
21
  method : lime01
21
22
  predefined_constant : sky01
22
23
  regexp:
23
24
  self : flax
25
+ char : white
24
26
  content : flax
25
27
  delimiter : flax
26
28
  modifier : flax
29
+ escape : white
27
30
  shell:
28
31
  self : flax
32
+ char : white
29
33
  content : flax
30
34
  delimiter : flax
35
+ escape : white
31
36
  string:
32
37
  self : flax
38
+ char : white
33
39
  content : flax
34
40
  delimiter : flax
35
- symbol : old_gold
41
+ escape : white
42
+ symbol : amethyst01
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : pry-classic
4
- version : 5
4
+ version : 6
5
5
  color-depth : 8
6
6
  description : Default Pry theme
7
7
  author : Kyrylo Silin <kyrylosilin@gmail.com>,
@@ -15,6 +15,7 @@ theme:
15
15
  error : yellow (b) on red
16
16
  float : magenta (b)
17
17
  global_variable : on green
18
+ inline_delimiter : (d)
18
19
  instance_variable : (d)
19
20
  integer : blue (b)
20
21
  keyword : red (b)
@@ -22,15 +23,21 @@ theme:
22
23
  predefined_constant : cyan (b)
23
24
  regexp:
24
25
  self : red
26
+ char : (d)
25
27
  content : red
26
28
  delimiter : red (db)
27
29
  modifier : magenta (b)
30
+ escape : (d)
28
31
  shell:
29
32
  self : on green
33
+ char : (d)
30
34
  content : (db)
31
35
  delimiter : white
36
+ escape : (d)
32
37
  string:
33
38
  self : green
39
+ char : (d)
34
40
  content : green
35
41
  delimiter : green (b)
42
+ escape : (d)
36
43
  symbol : green (b)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : pry-cold
4
- version : 3
4
+ version : 4
5
5
  color-depth : 256
6
6
  description : Based on Charcoalblack theme from Emacs
7
7
  author : John Mair,
@@ -15,6 +15,7 @@ theme:
15
15
  error : robin_egg_blue02 (bi)
16
16
  float : silver01
17
17
  global_variable : robin_egg_blue02
18
+ inline_delimiter : puce01
18
19
  instance_variable : pale_blue03
19
20
  integer : seroburomalinovyj01
20
21
  keyword : pale_blue03 (b)
@@ -22,15 +23,21 @@ theme:
22
23
  predefined_constant : robin_egg_blue02 (b)
23
24
  regexp:
24
25
  self : gray02
26
+ char : white
25
27
  content : bluish03
26
28
  delimiter : gray02
27
29
  modifier : gray02
30
+ escape : puce01
28
31
  shell:
29
32
  self : gray02
33
+ char : white
30
34
  content : puce01
31
35
  delimiter : gray02
36
+ escape : puce01
32
37
  string:
33
38
  self : bluish03
39
+ char : white
34
40
  content : bluish03
35
41
  delimiter : bluish03
42
+ escape : puce01
36
43
  symbol : bluish03
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : pry-modern
4
- version : 4
4
+ version : 5
5
5
  color-depth : 256
6
6
  description : Nifty version of pry-classic
7
7
  author : Kyrylo Silin <kyrylosilin@gmail.com>
@@ -14,6 +14,7 @@ theme:
14
14
  error : cerulean_grey02
15
15
  float : dark_pink01 (b)
16
16
  global_variable : gold
17
+ inline_delimiter : malachite01 (b)
17
18
  instance_variable : (d)
18
19
  integer : robin_egg_blue01 (b)
19
20
  keyword : chestnut01 (b)
@@ -21,15 +22,21 @@ theme:
21
22
  predefined_constant : cyan (b)
22
23
  regexp:
23
24
  self : tangerine
25
+ char : tangerine
24
26
  content : violaceous03
25
27
  delimiter : tangerine (db)
26
28
  modifier : dark_pink01 (b)
29
+ escape : malachite01 (b)
27
30
  shell:
28
- self : on green
31
+ self : grass01
32
+ char : grass01
29
33
  content : grass01
30
34
  delimiter : white
35
+ escape : malachite01 (b)
31
36
  string:
32
37
  self : malachite01
38
+ char : malachite01
33
39
  content : malachite01
34
40
  delimiter : malachite01 (b)
41
+ escape : malachite01 (b)
35
42
  symbol : malachite02 (b)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : railscasts
4
- version : 7
4
+ version : 8
5
5
  color-depth : 256
6
6
  description : RailsCasts theme
7
7
  author : Ryan Fitzgerald,
@@ -9,29 +9,36 @@ meta:
9
9
  Kyrylo Silin <kyrylosilin@gmail.com>
10
10
 
11
11
  theme:
12
- class : (d)
12
+ class : white
13
13
  class_variable : robin_egg_blue03
14
14
  comment : tan
15
- constant : (d)
15
+ constant : white
16
16
  error : white on maroon
17
17
  float : asparagus
18
18
  global_variable : robin_egg_blue03
19
+ inline_delimiter : emerald02
19
20
  instance_variable : robin_egg_blue03
20
21
  integer : asparagus
21
22
  keyword : international_orange
22
23
  method : mustard02
23
24
  predefined_constant : robin_egg_blue03
24
25
  regexp:
25
- self : orange
26
+ self : asparagus
27
+ char : orange
26
28
  content : asparagus
27
29
  delimiter : asparagus
28
30
  modifier : asparagus
31
+ escape : emerald02
29
32
  shell:
30
33
  self : asparagus
34
+ char : orange
31
35
  content : asparagus
32
36
  delimiter : asparagus
37
+ escape : emerald02
33
38
  string:
34
39
  self : asparagus
40
+ char : orange
35
41
  content : asparagus
36
42
  delimiter : asparagus
43
+ escape : emerald02
37
44
  symbol : cornflower_blue01
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : saturday
4
- version : 7
4
+ version : 8
5
5
  color-depth : 256
6
6
  description : A modification of "tommorow night"
7
7
  author : John Mair (banisterfiend)
@@ -14,6 +14,7 @@ theme:
14
14
  error : black (u) on maroon
15
15
  float : lilac01
16
16
  global_variable : red
17
+ inline_delimiter : old_gold
17
18
  instance_variable : gray05
18
19
  integer : cornflower_blue03
19
20
  keyword : alizarin
@@ -21,15 +22,21 @@ theme:
21
22
  predefined_constant : cyan
22
23
  regexp:
23
24
  self : alizarin
25
+ char : old_gold
24
26
  content : alizarin
25
27
  delimiter : alizarin
26
28
  modifier : lilac01
29
+ escape : old_gold (b)
27
30
  shell:
28
31
  self : green
32
+ char : old_gold
29
33
  content : toad_in_love
30
34
  delimiter : green
35
+ escape : old_gold (b)
31
36
  string:
32
37
  self : old_gold
38
+ char : old_gold (b)
33
39
  content : old_gold
34
40
  delimiter : old_gold
41
+ escape : old_gold
35
42
  symbol : old_gold (b)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : solarized
4
- version : 6
4
+ version : 7
5
5
  color-depth : 256
6
6
  description : Precision colors for machines and people
7
7
  author : Kyrylo Silin <kyrylosilin@gmail.com>,
@@ -15,22 +15,29 @@ theme:
15
15
  error : abdel_kerims_beard04
16
16
  float : robin_egg_blue01
17
17
  global_variable : azure01
18
+ inline_delimiter : titian
18
19
  instance_variable : azure01
19
20
  integer : robin_egg_blue01
20
21
  keyword : gray03 (b)
21
22
  method : azure01
22
23
  predefined_constant : azure01
23
24
  regexp:
24
- self : titian
25
+ self : olive_drab
26
+ char : titian
25
27
  content : olive_drab
26
28
  delimiter : titian
27
29
  modifier : titian
30
+ escape : titian
28
31
  shell:
29
32
  self : titian
33
+ char : titian
30
34
  content : robin_egg_blue01
31
35
  delimiter : titian
36
+ escape : titian
32
37
  string:
33
38
  self : titian
39
+ char : titian
34
40
  content : robin_egg_blue01
35
41
  delimiter : titian
42
+ escape : titian
36
43
  symbol : robin_egg_blue01
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : tomorrow
4
- version : 6
4
+ version : 7
5
5
  color-depth : 256
6
6
  description : A theme should not get in your way
7
7
  author : John Mair,
@@ -15,6 +15,7 @@ theme:
15
15
  error : tangerine (i)
16
16
  float : tangerine
17
17
  global_variable : alizarin
18
+ inline_delimiter : heliotrope01
18
19
  instance_variable : alizarin
19
20
  integer : tangerine
20
21
  keyword : heliotrope03
@@ -22,15 +23,21 @@ theme:
22
23
  predefined_constant : tangerine
23
24
  regexp:
24
25
  self : alizarin
26
+ char : heliotrope01
25
27
  content : old_gold
26
28
  delimiter : alizarin
27
29
  modifier : old_gold
30
+ escape : heliotrope01
28
31
  shell:
29
32
  self : gray02
33
+ char : heliotrope01
30
34
  content : puce01
31
35
  delimiter : gray02
36
+ escape : heliotrope01
32
37
  string:
33
38
  self : old_gold
39
+ char : heliotrope01
34
40
  content : old_gold
35
41
  delimiter : old_gold
42
+ escape : heliotrope01
36
43
  symbol : old_gold
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : twilight
4
- version : 3
4
+ version : 4
5
5
  color-depth : 256
6
6
  description : Based on Twilight from Emacs color-theme package
7
7
  author : John Mair
@@ -14,6 +14,7 @@ theme:
14
14
  error : tenne (i)
15
15
  float : silver01
16
16
  global_variable : pale_cornflower_blue
17
+ inline_delimiter : pistachio01
17
18
  instance_variable : cornflower_blue02
18
19
  integer : pale_blue01
19
20
  keyword : brass02 (b)
@@ -21,15 +22,21 @@ theme:
21
22
  predefined_constant : pale_cornflower_blue
22
23
  regexp:
23
24
  self : moss_green
25
+ char : pistachio01
24
26
  content : moss_green
25
27
  delimiter : moss_green
26
28
  modifier : pale_cornflower_blue
29
+ escape : pistachio01
27
30
  shell:
28
31
  self : moss_green
32
+ char : pistachio01
29
33
  content : moss_green
30
34
  delimiter : moss_green
35
+ escape : pistachio01
31
36
  string:
32
37
  self : moss_green
38
+ char : pistachio01
33
39
  content : moss_green
34
40
  delimiter : moss_green
41
+ escape : pistachio01
35
42
  symbol : chestnut01
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : vim-default
4
- version : 5
4
+ version : 6
5
5
  color-depth : 8
6
6
  description : For those familiar with the default vim colorscheme.
7
7
  author : ☈king <rking-pry-vimscheme@sharpsaw.org>
@@ -14,6 +14,7 @@ theme:
14
14
  error : white on red
15
15
  float : red
16
16
  global_variable : cyan
17
+ inline_delimiter : red
17
18
  instance_variable : cyan
18
19
  integer : red
19
20
  keyword : magenta # some should be yellow. CodeRay's limited.
@@ -21,15 +22,21 @@ theme:
21
22
  predefined_constant : cyan
22
23
  regexp:
23
24
  self : magenta
25
+ char : red
24
26
  content : red
25
27
  delimiter : magenta
26
28
  modifier : magenta
29
+ escape : red
27
30
  shell:
28
31
  self : magenta
32
+ char : red
29
33
  content : red
30
34
  delimiter : magenta
35
+ escape : red
31
36
  string:
32
37
  self : magenta
38
+ char : red
33
39
  content : red
34
40
  delimiter : magenta
41
+ escape : red
35
42
  symbol : red
@@ -1,35 +1,42 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : vim-detailed
4
- version : 4
4
+ version : 5
5
5
  color-depth : 256
6
6
  description : Like vim-default, but uses more colors.
7
7
  author : ☈king <rking-pry-vim256scheme@sharpsaw.org>
8
8
 
9
9
  theme:
10
- keyword : violet_eggplant # (originally: magenta)
11
10
  class : toad_in_love # (originally: green)
12
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)
13
16
  global_variable : robin_egg_blue03 # (originally: cyan)
17
+ inline_delimiter : pale_mauve02
14
18
  instance_variable : turquoise # (originally: cyan)
19
+ integer : cerise01 # (originally: red)
15
20
  predefined_constant : robin_egg_blue02 # (originally: cyan)
16
- constant : toad_in_love01 # (originally: green)
21
+ keyword : violet_eggplant # (originally: magenta)
17
22
  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
23
  regexp:
23
24
  self : bright_violet # (originally: magenta)
25
+ char : red
24
26
  content : red # (originally: red)
25
27
  delimiter : orchid01 # (originally: magenta)
26
28
  modifier : lilac01 # (originally: magenta)
29
+ escape : red
27
30
  shell:
28
31
  self : pale_mauve02 # (originally: red)
32
+ char : eggplant02
29
33
  content : eggplant02 # (originally: red)
30
34
  delimiter : bright_violet # (originally: magenta)
35
+ escape : eggplant02
31
36
  string:
32
37
  self : eggplant01 # (originally: red)
38
+ char : maroon01
33
39
  content : maroon01
34
40
  delimiter : bright_violet # (originally: magenta)
41
+ escape : maroon01
35
42
  symbol : ochre # (originally: red)
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  meta:
3
3
  theme-name : zenburn
4
- version : 6
4
+ version : 7
5
5
  color-depth : 256
6
6
  description : A low-contrast color scheme
7
7
  author : Kyrylo Silin <kyrylosilin@gmail.com>,
@@ -15,6 +15,7 @@ theme:
15
15
  error : tenne (i)
16
16
  float : silver01
17
17
  global_variable : dark_peach
18
+ inline_delimiter : gray02
18
19
  instance_variable : dark_peach
19
20
  integer : pale_blue01
20
21
  keyword : dark_salmon (b)
@@ -22,15 +23,21 @@ theme:
22
23
  predefined_constant : dark_peach
23
24
  regexp:
24
25
  self : gray02
26
+ char : gray02
25
27
  content : puce01
26
28
  delimiter : gray02
27
29
  modifier : gray02
30
+ escape : gray02
28
31
  shell:
29
32
  self : gray02
33
+ char : gray02
30
34
  content : puce01
31
35
  delimiter : gray02
36
+ escape : gray02
32
37
  string:
33
38
  self : gray02
39
+ char : gray02
34
40
  content : puce01
35
41
  delimiter : gray02
42
+ escape : gray02
36
43
  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.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-23 00:00:00.000000000 Z
12
+ date: 2012-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -150,3 +150,4 @@ signing_key:
150
150
  specification_version: 3
151
151
  summary: Easy way to customize your Pry colors
152
152
  test_files: []
153
+ has_rdoc: