ruco 0.0.15 → 0.0.16

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/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source :rubygems
2
2
 
3
- gem 'clipboard'
3
+ gem 'clipboard', '>=0.9.4'
4
4
 
5
5
  group :dev do # not development <-> would add unneeded development dependencies in gemspec
6
6
  gem 'rake'
data/Gemfile.lock CHANGED
@@ -1,8 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- clipboard (0.9.3)
5
- zucker (>= 8)
4
+ clipboard (0.9.4)
6
5
  diff-lcs (1.1.2)
7
6
  git (1.2.5)
8
7
  jeweler (1.5.2)
@@ -20,13 +19,12 @@ GEM
20
19
  rspec-mocks (2.0.1)
21
20
  rspec-core (~> 2.0.1)
22
21
  rspec-expectations (~> 2.0.1)
23
- zucker (8)
24
22
 
25
23
  PLATFORMS
26
24
  ruby
27
25
 
28
26
  DEPENDENCIES
29
- clipboard
27
+ clipboard (>= 0.9.4)
30
28
  jeweler
31
29
  rake
32
30
  rspec (~> 2)
data/Readme.md CHANGED
@@ -56,17 +56,18 @@ Customize
56
56
 
57
57
  TIPS
58
58
  ====
59
- - Unicode support -> install libncursesw5-dev before installing ruby 1.9 (does not work for 1.8)
59
+ - [Ruby1.9] Unicode support -> install libncursesw5-dev before installing ruby (does not work for 1.8)
60
60
 
61
61
  TODO
62
62
  =====
63
63
  - selecting -> delete / overwrite / copy / cut
64
- - support typing unicode like äöß etc (rework size / make strings utf8-aware)
65
64
  - smart staying at end of line/column when changing line
66
65
  - warnings / messages
67
66
  - syntax highlighting
68
67
  - support more key-combos/codes in keyboard.rb
68
+ - raise when binding to a unsupported key
69
69
  - search & replace
70
+ - 1.8: unicode support <-> already finished but usable due to Curses (see encoding branch)
70
71
 
71
72
  Author
72
73
  ======
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.15
1
+ 0.0.16
data/ruco.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruco}
8
- s.version = "0.0.15"
8
+ s.version = "0.0.16"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
@@ -65,12 +65,12 @@ Gem::Specification.new do |s|
65
65
  s.specification_version = 3
66
66
 
67
67
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
68
- s.add_runtime_dependency(%q<clipboard>, [">= 0"])
68
+ s.add_runtime_dependency(%q<clipboard>, [">= 0.9.4"])
69
69
  else
70
- s.add_dependency(%q<clipboard>, [">= 0"])
70
+ s.add_dependency(%q<clipboard>, [">= 0.9.4"])
71
71
  end
72
72
  else
73
- s.add_dependency(%q<clipboard>, [">= 0"])
73
+ s.add_dependency(%q<clipboard>, [">= 0.9.4"])
74
74
  end
75
75
  end
76
76
 
@@ -1,8 +1,10 @@
1
+ # encoding: UTF-8
1
2
  require File.expand_path('spec/spec_helper')
2
3
 
3
4
  describe Ruco::Application do
4
5
  before do
5
6
  @file = 'spec/temp.txt'
7
+ write('')
6
8
  end
7
9
 
8
10
  def write(content)
@@ -23,7 +25,6 @@ describe Ruco::Application do
23
25
  end
24
26
 
25
27
  it "can enter stuff" do
26
- write("")
27
28
  app.key('2')
28
29
  app.key('2')
29
30
  app.key(:enter)
@@ -70,6 +71,7 @@ describe Ruco::Application do
70
71
 
71
72
  describe 'go to line' do
72
73
  it "goes to the line" do
74
+ write("\n\n\n")
73
75
  app.key(:"Ctrl+g")
74
76
  app.key('2')
75
77
  app.key(:enter)
@@ -77,6 +79,7 @@ describe Ruco::Application do
77
79
  end
78
80
 
79
81
  it "goes to 1 when strange stuff entered" do
82
+ write("\n\n\n")
80
83
  app.key(:"Ctrl+g")
81
84
  app.key('0')
82
85
  app.key(:enter)
@@ -107,7 +110,6 @@ describe Ruco::Application do
107
110
 
108
111
  describe 'indentation' do
109
112
  it "does not extra-indent when pasting" do
110
- write('')
111
113
  Ruco.class_eval "Clipboard.copy('ab\n cd\n ef')"
112
114
  app.key(:tab)
113
115
  app.key(:tab)
@@ -116,7 +118,6 @@ describe Ruco::Application do
116
118
  end
117
119
 
118
120
  it "indents when typing" do
119
- write('')
120
121
  app.key(:tab)
121
122
  app.key(:tab)
122
123
  app.key(:enter)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruco
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 63
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 15
10
- version: 0.0.15
9
+ - 16
10
+ version: 0.0.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Grosser
@@ -24,10 +24,12 @@ dependencies:
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- hash: 3
27
+ hash: 51
28
28
  segments:
29
29
  - 0
30
- version: "0"
30
+ - 9
31
+ - 4
32
+ version: 0.9.4
31
33
  prerelease: false
32
34
  version_requirements: *id001
33
35
  type: :runtime