ruco 0.2.11 → 0.2.12
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/.gitignore +2 -0
- data/Gemfile +5 -11
- data/Gemfile.lock +11 -11
- data/Rakefile +19 -72
- data/lib/ruco/version.rb +2 -2
- data/ruco.gemspec +15 -98
- metadata +12 -9
- data/VERSION +0 -1
data/.gitignore
ADDED
data/Gemfile
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
source :rubygems
|
2
|
+
gemspec
|
2
3
|
|
3
|
-
gem '
|
4
|
-
gem '
|
5
|
-
gem '
|
6
|
-
|
7
|
-
group :dev do # not development <-> would add unneeded development dependencies in gemspec
|
8
|
-
gem 'oniguruma', :platform => :ruby_18
|
9
|
-
gem 'ffi', :platform => [:mingw]
|
10
|
-
gem 'rake'
|
11
|
-
gem 'rspec', '~>2'
|
12
|
-
gem 'jeweler'
|
13
|
-
end
|
4
|
+
gem 'oniguruma', :platform => :ruby_18
|
5
|
+
gem 'ffi', :platform => [:mingw]
|
6
|
+
gem 'rake'
|
7
|
+
gem 'rspec', '~>2'
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,17 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ruco (0.2.12)
|
5
|
+
clipboard (>= 0.9.8)
|
6
|
+
language_sniffer
|
7
|
+
textpow1x (>= 1.2.5)
|
8
|
+
|
1
9
|
GEM
|
2
10
|
remote: http://rubygems.org/
|
3
11
|
specs:
|
4
|
-
clipboard (0.
|
12
|
+
clipboard (1.0.1)
|
5
13
|
diff-lcs (1.1.2)
|
6
|
-
|
7
|
-
jeweler (1.6.4)
|
8
|
-
bundler (~> 1.0)
|
9
|
-
git (>= 1.2.5)
|
10
|
-
rake
|
11
|
-
language_sniffer (1.0.0)
|
14
|
+
language_sniffer (1.0.1)
|
12
15
|
oniguruma (1.1.0)
|
13
16
|
plist (3.1.0)
|
14
17
|
rake (0.9.2.2)
|
@@ -27,11 +30,8 @@ PLATFORMS
|
|
27
30
|
ruby
|
28
31
|
|
29
32
|
DEPENDENCIES
|
30
|
-
clipboard (>= 0.9.8)
|
31
33
|
ffi
|
32
|
-
jeweler
|
33
|
-
language_sniffer
|
34
34
|
oniguruma
|
35
35
|
rake
|
36
36
|
rspec (~> 2)
|
37
|
-
|
37
|
+
ruco!
|
data/Rakefile
CHANGED
@@ -1,47 +1,11 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
+
require 'bundler/gem_tasks'
|
2
3
|
|
3
|
-
task :default
|
4
|
-
|
5
|
-
RSpec::Core::RakeTask.new(:spec) do |t|
|
6
|
-
t.rspec_opts = '--backtrace --color'
|
7
|
-
end
|
8
|
-
|
9
|
-
task :run do
|
10
|
-
file = 'spec/temp.txt'
|
11
|
-
File.open(file, 'wb'){|f|f.write("12345\n1234\n#{'abcdefg'*20}\n123")}
|
12
|
-
exec "./bin/ruco #{file}"
|
13
|
-
end
|
14
|
-
|
15
|
-
task :try do
|
16
|
-
require 'curses'
|
17
|
-
Curses.setpos(0,0)
|
18
|
-
Curses.addstr("xxxxxxxx\nyyyyyyy");
|
19
|
-
Curses.getch
|
20
|
-
end
|
21
|
-
|
22
|
-
task :try_color do
|
23
|
-
require 'curses'
|
24
|
-
# fix colors for xterm...
|
25
|
-
#if Curses::has_colors?
|
26
|
-
ENV['TERM'] += '-256color' if ENV['TERM'] == 'xterm'
|
27
|
-
Curses::start_color
|
28
|
-
# initialize every color we want to use
|
29
|
-
# id, foreground, background
|
30
|
-
#Curses.use_default_colors if defined? Curses.use_default_colors # 1.9 only, maybe helps to get real white...
|
31
|
-
Curses::init_pair( 32, 253, 39 )
|
32
|
-
#Curses::init_pair( 32, -1, -1 )
|
33
|
-
#Curses::init_pair( Curses::COLOR_RED, Curses::COLOR_RED, Curses::COLOR_BLACK )
|
34
|
-
#Curses::init_pair( Curses::COLOR_GREEN, Curses::COLOR_GREEN, Curses::COLOR_BLACK )
|
35
|
-
#end
|
36
|
-
|
37
|
-
Curses.setpos(0,0)
|
38
|
-
Curses.attrset(Curses::color_pair( 32 )) # fetch color pair with the id xxx
|
39
|
-
Curses.addstr("xxxxxxxx\nyyyyyyy");
|
40
|
-
Curses.attrset(Curses::color_pair( 32 ))
|
41
|
-
Curses.addstr("xxxxxxxx\nyyyyyyy");
|
42
|
-
Curses.getch
|
4
|
+
task :default do
|
5
|
+
sh "rspec spec/"
|
43
6
|
end
|
44
7
|
|
8
|
+
desc "Show key-codes you are typing"
|
45
9
|
task :key do
|
46
10
|
require 'curses'
|
47
11
|
|
@@ -65,36 +29,19 @@ task :key do
|
|
65
29
|
end
|
66
30
|
end
|
67
31
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
Jeweler::Tasks.new do |gem|
|
84
|
-
gem.name = 'ruco'
|
85
|
-
gem.summary = "Commandline editor written in ruby"
|
86
|
-
gem.email = "michael@grosser.it"
|
87
|
-
gem.homepage = "http://github.com/grosser/#{gem.name}"
|
88
|
-
gem.authors = ["Michael Grosser"]
|
89
|
-
gem.post_install_message = <<-TEXT
|
90
|
-
|
91
|
-
Mac: shift/ctrl + arrow-keys only work in iterm (not Terminal.app)
|
92
|
-
Ubuntu: sudo apt-get install xclip # to use the clipboard
|
93
|
-
|
94
|
-
TEXT
|
95
|
-
end
|
96
|
-
|
97
|
-
Jeweler::GemcutterTasks.new
|
98
|
-
rescue LoadError
|
99
|
-
puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
|
32
|
+
# extracted from https://github.com/grosser/project_template
|
33
|
+
rule /^version:bump:.*/ do |t|
|
34
|
+
sh "git status | grep 'nothing to commit'" # ensure we are not dirty
|
35
|
+
index = ['major', 'minor','patch'].index(t.name.split(':').last)
|
36
|
+
file = 'lib/ruco/version.rb'
|
37
|
+
|
38
|
+
version_file = File.read(file)
|
39
|
+
old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a
|
40
|
+
version_parts[index] = version_parts[index].to_i + 1
|
41
|
+
version_parts[2] = 0 if index < 2 # remove patch for minor
|
42
|
+
version_parts[1] = 0 if index < 1 # remove minor for major
|
43
|
+
new_version = version_parts * '.'
|
44
|
+
File.open(file,'w'){|f| f.write(version_file.sub(old_version, new_version)) }
|
45
|
+
|
46
|
+
sh "bundle && git add #{file} Gemfile.lock && git commit -m 'bump version to #{new_version}'"
|
100
47
|
end
|
data/lib/ruco/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Ruco
|
2
|
-
VERSION =
|
3
|
-
end
|
2
|
+
VERSION = Version = "0.2.12"
|
3
|
+
end
|
data/ruco.gemspec
CHANGED
@@ -1,104 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
#
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
2
|
+
name = "ruco"
|
3
|
+
require "#{name}/version"
|
5
4
|
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.
|
8
|
-
s.version = "0.2.11"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
5
|
+
Gem::Specification.new name, Ruco::VERSION do |s|
|
6
|
+
s.summary = "Commandline editor written in ruby"
|
11
7
|
s.authors = ["Michael Grosser"]
|
12
|
-
s.date = "2012-05-05"
|
13
8
|
s.email = "michael@grosser.it"
|
14
|
-
s.
|
15
|
-
s.files =
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
"VERSION",
|
22
|
-
"bin/ruco",
|
23
|
-
"lib/ruco.rb",
|
24
|
-
"lib/ruco/application.rb",
|
25
|
-
"lib/ruco/array_processor.rb",
|
26
|
-
"lib/ruco/command_bar.rb",
|
27
|
-
"lib/ruco/core_ext/array.rb",
|
28
|
-
"lib/ruco/core_ext/file.rb",
|
29
|
-
"lib/ruco/core_ext/hash.rb",
|
30
|
-
"lib/ruco/core_ext/object.rb",
|
31
|
-
"lib/ruco/core_ext/range.rb",
|
32
|
-
"lib/ruco/core_ext/string.rb",
|
33
|
-
"lib/ruco/editor.rb",
|
34
|
-
"lib/ruco/editor/colors.rb",
|
35
|
-
"lib/ruco/editor/history.rb",
|
36
|
-
"lib/ruco/editor/line_numbers.rb",
|
37
|
-
"lib/ruco/editor_area.rb",
|
38
|
-
"lib/ruco/file_store.rb",
|
39
|
-
"lib/ruco/form.rb",
|
40
|
-
"lib/ruco/history.rb",
|
41
|
-
"lib/ruco/keyboard.rb",
|
42
|
-
"lib/ruco/option_accessor.rb",
|
43
|
-
"lib/ruco/position.rb",
|
44
|
-
"lib/ruco/screen.rb",
|
45
|
-
"lib/ruco/status_bar.rb",
|
46
|
-
"lib/ruco/style_map.rb",
|
47
|
-
"lib/ruco/syntax_parser.rb",
|
48
|
-
"lib/ruco/text_area.rb",
|
49
|
-
"lib/ruco/text_field.rb",
|
50
|
-
"lib/ruco/tm_theme.rb",
|
51
|
-
"lib/ruco/version.rb",
|
52
|
-
"lib/ruco/window.rb",
|
53
|
-
"playground/benchmark_syntax_parser.rb",
|
54
|
-
"ruco.gemspec",
|
55
|
-
"spec/fixtures/railscasts.tmTheme",
|
56
|
-
"spec/fixtures/slow.js",
|
57
|
-
"spec/fixtures/test.tmTheme",
|
58
|
-
"spec/ruco/application_spec.rb",
|
59
|
-
"spec/ruco/array_processor_spec.rb",
|
60
|
-
"spec/ruco/command_bar_spec.rb",
|
61
|
-
"spec/ruco/core_ext/array_spec.rb",
|
62
|
-
"spec/ruco/core_ext/range_spec.rb",
|
63
|
-
"spec/ruco/core_ext/string_spec.rb",
|
64
|
-
"spec/ruco/editor_spec.rb",
|
65
|
-
"spec/ruco/file_store_spec.rb",
|
66
|
-
"spec/ruco/form_spec.rb",
|
67
|
-
"spec/ruco/history_spec.rb",
|
68
|
-
"spec/ruco/keyboard_spec.rb",
|
69
|
-
"spec/ruco/option_accessor_spec.rb",
|
70
|
-
"spec/ruco/screen_spec.rb",
|
71
|
-
"spec/ruco/status_bar_spec.rb",
|
72
|
-
"spec/ruco/style_map_spec.rb",
|
73
|
-
"spec/ruco/syntax_parser_spec.rb",
|
74
|
-
"spec/ruco/text_area_spec.rb",
|
75
|
-
"spec/ruco/tm_theme_spec.rb",
|
76
|
-
"spec/ruco/window_spec.rb",
|
77
|
-
"spec/ruco_spec.rb",
|
78
|
-
"spec/spec_helper.rb"
|
79
|
-
]
|
80
|
-
s.homepage = "http://github.com/grosser/ruco"
|
81
|
-
s.post_install_message = "\n Mac: shift/ctrl + arrow-keys only work in iterm (not Terminal.app)\n Ubuntu: sudo apt-get install xclip # to use the clipboard\n\n"
|
82
|
-
s.require_paths = ["lib"]
|
83
|
-
s.rubygems_version = "1.8.24"
|
84
|
-
s.summary = "Commandline editor written in ruby"
|
9
|
+
s.homepage = "http://github.com/grosser/#{name}"
|
10
|
+
s.files = `git ls-files`.split("\n")
|
11
|
+
s.license = 'MIT'
|
12
|
+
s.add_runtime_dependency "clipboard", ">= 0.9.8"
|
13
|
+
s.add_runtime_dependency "textpow1x", ">= 1.2.5"
|
14
|
+
s.add_runtime_dependency "language_sniffer"
|
15
|
+
s.post_install_message = <<-TEXT
|
85
16
|
|
86
|
-
|
87
|
-
|
17
|
+
Mac: shift/ctrl + arrow-keys only work in iterm (not Terminal.app)
|
18
|
+
Ubuntu: sudo apt-get install xclip # to use the clipboard
|
88
19
|
|
89
|
-
|
90
|
-
s.add_runtime_dependency(%q<clipboard>, [">= 0.9.8"])
|
91
|
-
s.add_runtime_dependency(%q<textpow1x>, [">= 1.2.5"])
|
92
|
-
s.add_runtime_dependency(%q<language_sniffer>, [">= 0"])
|
93
|
-
else
|
94
|
-
s.add_dependency(%q<clipboard>, [">= 0.9.8"])
|
95
|
-
s.add_dependency(%q<textpow1x>, [">= 1.2.5"])
|
96
|
-
s.add_dependency(%q<language_sniffer>, [">= 0"])
|
97
|
-
end
|
98
|
-
else
|
99
|
-
s.add_dependency(%q<clipboard>, [">= 0.9.8"])
|
100
|
-
s.add_dependency(%q<textpow1x>, [">= 1.2.5"])
|
101
|
-
s.add_dependency(%q<language_sniffer>, [">= 0"])
|
102
|
-
end
|
20
|
+
TEXT
|
103
21
|
end
|
104
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
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-05-
|
12
|
+
date: 2012-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clipboard
|
@@ -61,17 +61,16 @@ dependencies:
|
|
61
61
|
version: '0'
|
62
62
|
description:
|
63
63
|
email: michael@grosser.it
|
64
|
-
executables:
|
65
|
-
- ruco
|
64
|
+
executables: []
|
66
65
|
extensions: []
|
67
66
|
extra_rdoc_files: []
|
68
67
|
files:
|
68
|
+
- .gitignore
|
69
69
|
- .travis.yml
|
70
70
|
- Gemfile
|
71
71
|
- Gemfile.lock
|
72
72
|
- Rakefile
|
73
73
|
- Readme.md
|
74
|
-
- VERSION
|
75
74
|
- bin/ruco
|
76
75
|
- lib/ruco.rb
|
77
76
|
- lib/ruco/application.rb
|
@@ -130,9 +129,10 @@ files:
|
|
130
129
|
- spec/ruco_spec.rb
|
131
130
|
- spec/spec_helper.rb
|
132
131
|
homepage: http://github.com/grosser/ruco
|
133
|
-
licenses:
|
134
|
-
|
135
|
-
|
132
|
+
licenses:
|
133
|
+
- MIT
|
134
|
+
post_install_message: ! "\n Mac: shift/ctrl + arrow-keys only work in iterm (not
|
135
|
+
Terminal.app)\n Ubuntu: sudo apt-get install xclip # to use the clipboard\n\n"
|
136
136
|
rdoc_options: []
|
137
137
|
require_paths:
|
138
138
|
- lib
|
@@ -144,13 +144,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
segments:
|
146
146
|
- 0
|
147
|
-
hash:
|
147
|
+
hash: -1038646721571340969
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
|
+
segments:
|
155
|
+
- 0
|
156
|
+
hash: -1038646721571340969
|
154
157
|
requirements: []
|
155
158
|
rubyforge_project:
|
156
159
|
rubygems_version: 1.8.24
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.2.11
|