text_editor 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +33 -0
  5. data/.ruby-version +1 -0
  6. data/.text_editor.rb +9 -0
  7. data/Gemfile +6 -0
  8. data/Gemfile.lock +58 -0
  9. data/LICENSE +20 -0
  10. data/README.org +29 -0
  11. data/bin/console +9 -0
  12. data/bin/te +3 -0
  13. data/lib/core_ext/hash.rb +12 -0
  14. data/lib/core_ext/pathname.rb +9 -0
  15. data/lib/text_editor/buffer.rb +85 -0
  16. data/lib/text_editor/clipboard/cygwin.rb +20 -0
  17. data/lib/text_editor/clipboard/linux.rb +17 -0
  18. data/lib/text_editor/clipboard/mac.rb +18 -0
  19. data/lib/text_editor/clipboard/unknown.rb +17 -0
  20. data/lib/text_editor/clipboard/windows.rb +17 -0
  21. data/lib/text_editor/clipboard.rb +18 -0
  22. data/lib/text_editor/command/backspace.rb +26 -0
  23. data/lib/text_editor/command/cursor_down.rb +14 -0
  24. data/lib/text_editor/command/cursor_end.rb +10 -0
  25. data/lib/text_editor/command/cursor_left.rb +16 -0
  26. data/lib/text_editor/command/cursor_right.rb +19 -0
  27. data/lib/text_editor/command/cursor_start.rb +10 -0
  28. data/lib/text_editor/command/cursor_up.rb +13 -0
  29. data/lib/text_editor/command/insert_char.rb +11 -0
  30. data/lib/text_editor/command/insert_line.rb +16 -0
  31. data/lib/text_editor/command/insert_tab.rb +9 -0
  32. data/lib/text_editor/command/quit.rb +9 -0
  33. data/lib/text_editor/command/resolver.rb +36 -0
  34. data/lib/text_editor/command/write_file.rb +13 -0
  35. data/lib/text_editor/command.rb +26 -0
  36. data/lib/text_editor/component.rb +13 -0
  37. data/lib/text_editor/configuration/bootstrap.rb +43 -0
  38. data/lib/text_editor/configuration/dsl.rb +11 -0
  39. data/lib/text_editor/configuration/resolver.rb +45 -0
  40. data/lib/text_editor/configuration.rb +15 -0
  41. data/lib/text_editor/cursor.rb +42 -0
  42. data/lib/text_editor/keyboard.rb +54 -0
  43. data/lib/text_editor/mode/nano.rb +30 -0
  44. data/lib/text_editor/mode.rb +23 -0
  45. data/lib/text_editor/operating_system.rb +19 -0
  46. data/lib/text_editor/reactor.rb +38 -0
  47. data/lib/text_editor/state.rb +10 -0
  48. data/lib/text_editor/terminal.rb +57 -0
  49. data/lib/text_editor/window.rb +44 -0
  50. data/lib/text_editor.rb +121 -0
  51. data/log/.keep +0 -0
  52. data/spec/core_ext/hash_spec.rb +15 -0
  53. data/spec/core_ext/pathname_spec.rb +26 -0
  54. data/spec/spec_helper.rb +15 -0
  55. data/spec/text_editor/buffer_spec.rb +181 -0
  56. data/spec/text_editor/clipboard_spec.rb +28 -0
  57. data/spec/text_editor/command/quit_spec.rb +14 -0
  58. data/spec/text_editor/command/resolver_spec.rb +56 -0
  59. data/spec/text_editor/command_spec.rb +85 -0
  60. data/spec/text_editor/component_spec.rb +40 -0
  61. data/spec/text_editor/configuration_spec.rb +25 -0
  62. data/spec/text_editor/cursor_spec.rb +93 -0
  63. data/spec/text_editor/operating_system_spec.rb +55 -0
  64. data/spec/text_editor/reactor_spec.rb +34 -0
  65. data/spec/text_editor/state_spec.rb +20 -0
  66. data/text_editor.gemspec +18 -0
  67. metadata +143 -0
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: text_editor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Sean Huber
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: curses
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.2
27
+ description:
28
+ email: sean@shuber.io
29
+ executables:
30
+ - te
31
+ extensions: []
32
+ extra_rdoc_files:
33
+ - LICENSE
34
+ files:
35
+ - ".gitignore"
36
+ - ".rspec"
37
+ - ".rubocop.yml"
38
+ - ".ruby-version"
39
+ - ".text_editor.rb"
40
+ - Gemfile
41
+ - Gemfile.lock
42
+ - LICENSE
43
+ - README.org
44
+ - bin/console
45
+ - bin/te
46
+ - lib/core_ext/hash.rb
47
+ - lib/core_ext/pathname.rb
48
+ - lib/text_editor.rb
49
+ - lib/text_editor/buffer.rb
50
+ - lib/text_editor/clipboard.rb
51
+ - lib/text_editor/clipboard/cygwin.rb
52
+ - lib/text_editor/clipboard/linux.rb
53
+ - lib/text_editor/clipboard/mac.rb
54
+ - lib/text_editor/clipboard/unknown.rb
55
+ - lib/text_editor/clipboard/windows.rb
56
+ - lib/text_editor/command.rb
57
+ - lib/text_editor/command/backspace.rb
58
+ - lib/text_editor/command/cursor_down.rb
59
+ - lib/text_editor/command/cursor_end.rb
60
+ - lib/text_editor/command/cursor_left.rb
61
+ - lib/text_editor/command/cursor_right.rb
62
+ - lib/text_editor/command/cursor_start.rb
63
+ - lib/text_editor/command/cursor_up.rb
64
+ - lib/text_editor/command/insert_char.rb
65
+ - lib/text_editor/command/insert_line.rb
66
+ - lib/text_editor/command/insert_tab.rb
67
+ - lib/text_editor/command/quit.rb
68
+ - lib/text_editor/command/resolver.rb
69
+ - lib/text_editor/command/write_file.rb
70
+ - lib/text_editor/component.rb
71
+ - lib/text_editor/configuration.rb
72
+ - lib/text_editor/configuration/bootstrap.rb
73
+ - lib/text_editor/configuration/dsl.rb
74
+ - lib/text_editor/configuration/resolver.rb
75
+ - lib/text_editor/cursor.rb
76
+ - lib/text_editor/keyboard.rb
77
+ - lib/text_editor/mode.rb
78
+ - lib/text_editor/mode/nano.rb
79
+ - lib/text_editor/operating_system.rb
80
+ - lib/text_editor/reactor.rb
81
+ - lib/text_editor/state.rb
82
+ - lib/text_editor/terminal.rb
83
+ - lib/text_editor/window.rb
84
+ - log/.keep
85
+ - spec/core_ext/hash_spec.rb
86
+ - spec/core_ext/pathname_spec.rb
87
+ - spec/spec_helper.rb
88
+ - spec/text_editor/buffer_spec.rb
89
+ - spec/text_editor/clipboard_spec.rb
90
+ - spec/text_editor/command/quit_spec.rb
91
+ - spec/text_editor/command/resolver_spec.rb
92
+ - spec/text_editor/command_spec.rb
93
+ - spec/text_editor/component_spec.rb
94
+ - spec/text_editor/configuration_spec.rb
95
+ - spec/text_editor/cursor_spec.rb
96
+ - spec/text_editor/operating_system_spec.rb
97
+ - spec/text_editor/reactor_spec.rb
98
+ - spec/text_editor/state_spec.rb
99
+ - text_editor.gemspec
100
+ homepage: https://github.com/shuber/text_editor
101
+ licenses:
102
+ - MIT
103
+ metadata: {}
104
+ post_install_message:
105
+ rdoc_options:
106
+ - "--charset=UTF-8"
107
+ - "--inline-source"
108
+ - "--line-numbers"
109
+ - "--main"
110
+ - README.org
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 2.0.0
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubyforge_project:
125
+ rubygems_version: 2.5.1
126
+ signing_key:
127
+ specification_version: 4
128
+ summary: Text editor
129
+ test_files:
130
+ - spec/core_ext/hash_spec.rb
131
+ - spec/core_ext/pathname_spec.rb
132
+ - spec/spec_helper.rb
133
+ - spec/text_editor/buffer_spec.rb
134
+ - spec/text_editor/clipboard_spec.rb
135
+ - spec/text_editor/command/quit_spec.rb
136
+ - spec/text_editor/command/resolver_spec.rb
137
+ - spec/text_editor/command_spec.rb
138
+ - spec/text_editor/component_spec.rb
139
+ - spec/text_editor/configuration_spec.rb
140
+ - spec/text_editor/cursor_spec.rb
141
+ - spec/text_editor/operating_system_spec.rb
142
+ - spec/text_editor/reactor_spec.rb
143
+ - spec/text_editor/state_spec.rb