luikore-cici 0.1.1 → 0.1.2

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/README.rdoc CHANGED
@@ -6,18 +6,18 @@ No other prepared libraries needed, that is -- No Qt, Gtk, Mfc ...
6
6
 
7
7
  Light and small with nice efficiency.
8
8
 
9
- == download
9
+ == install
10
10
 
11
- require:
12
- Ruby-1.9.1-mswin32-90 || Ruby-1.9.1-mingw32
11
+ Require ruby 1.9.1, either ruby-1.9.1-mswin32_90 or ruby-1.9.1-mingw32 is OK.
13
12
 
14
- Either can be obtained at:
15
- http://github.com/LuiKore/Cici/downloads
13
+ You can get one from
14
+ http://github.com/luikore/cici/downloads
16
15
 
17
- then: (mswin32-90 binary)
18
- gem install luikore-cici
16
+ Or download from
17
+ http://rubyinstaller.org/downloads
19
18
 
20
- or build from source ~ ~
19
+ then:
20
+ gem install luikore-cici --source=http://gems.github.com
21
21
 
22
22
  Currently the mingw32 version does not support images.
23
23
 
@@ -21,7 +21,9 @@ view [cx, cy], title: 'Scintilla', layout: :zoom do |v|
21
21
  @s.text = File.read(__FILE__).encode 'utf-8' # read in self
22
22
  @s.indent = 2 # auto indent 2 chars when needed
23
23
  @s.onstyle = proc do |sci, startp, endp|
24
- puts startp, endp
25
24
  sci.set_styling endp - startp, 1
26
25
  end
26
+ @s.oncharadded = proc do |sci, c|
27
+ puts c
28
+ end
27
29
  end
Binary file
Binary file
Binary file
@@ -6,7 +6,6 @@ module Cici
6
6
  style_set_default_font f
7
7
  @font = f
8
8
  end
9
-
10
9
  attr_reader :font
11
10
 
12
11
  # ------------------------------------------------------------------------------
@@ -17,7 +16,7 @@ module Cici
17
16
  # scn = Cici::Scintilla.scn lparam
18
17
  # puts scn.ch.chr 'utf-8'
19
18
  # end
20
- attr_accessor :onchar, :onstyle
19
+ attr_accessor :onstyle
21
20
 
22
21
  # called when an indentation is needed
23
22
  # lineno: current line number
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luikore-cici
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - luikore