rubysl-stringio 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.travis.yml +7 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +25 -0
  6. data/README.md +29 -0
  7. data/Rakefile +1 -0
  8. data/lib/rubysl/stringio.rb +2 -0
  9. data/lib/rubysl/stringio/stringio.rb +611 -0
  10. data/lib/rubysl/stringio/version.rb +5 -0
  11. data/lib/stringio.rb +1 -0
  12. data/rubysl-stringio.gemspec +24 -0
  13. data/spec/append_spec.rb +83 -0
  14. data/spec/binmode_spec.rb +8 -0
  15. data/spec/bytes_spec.rb +12 -0
  16. data/spec/chars_spec.rb +12 -0
  17. data/spec/close_read_spec.rb +30 -0
  18. data/spec/close_spec.rb +22 -0
  19. data/spec/close_write_spec.rb +30 -0
  20. data/spec/closed_read_spec.rb +11 -0
  21. data/spec/closed_spec.rb +15 -0
  22. data/spec/closed_write_spec.rb +11 -0
  23. data/spec/codepoints_spec.rb +11 -0
  24. data/spec/each_byte_spec.rb +10 -0
  25. data/spec/each_char_spec.rb +12 -0
  26. data/spec/each_codepoint_spec.rb +12 -0
  27. data/spec/each_line_spec.rb +14 -0
  28. data/spec/each_spec.rb +14 -0
  29. data/spec/eof_spec.rb +10 -0
  30. data/spec/external_encoding_spec.rb +12 -0
  31. data/spec/fcntl_spec.rb +7 -0
  32. data/spec/fileno_spec.rb +8 -0
  33. data/spec/fixtures/classes.rb +15 -0
  34. data/spec/flush_spec.rb +8 -0
  35. data/spec/fsync_spec.rb +8 -0
  36. data/spec/getbyte_spec.rb +25 -0
  37. data/spec/getc_spec.rb +31 -0
  38. data/spec/gets_spec.rb +245 -0
  39. data/spec/initialize_copy_spec.rb +95 -0
  40. data/spec/initialize_spec.rb +193 -0
  41. data/spec/internal_encoding_spec.rb +12 -0
  42. data/spec/isatty_spec.rb +6 -0
  43. data/spec/length_spec.rb +6 -0
  44. data/spec/lineno_spec.rb +29 -0
  45. data/spec/lines_spec.rb +16 -0
  46. data/spec/open_spec.rb +215 -0
  47. data/spec/path_spec.rb +15 -0
  48. data/spec/pid_spec.rb +7 -0
  49. data/spec/pos_spec.rb +27 -0
  50. data/spec/print_spec.rb +113 -0
  51. data/spec/printf_spec.rb +60 -0
  52. data/spec/putc_spec.rb +105 -0
  53. data/spec/puts_spec.rb +173 -0
  54. data/spec/read_nonblock_spec.rb +29 -0
  55. data/spec/read_spec.rb +62 -0
  56. data/spec/readbyte_spec.rb +21 -0
  57. data/spec/readchar_spec.rb +19 -0
  58. data/spec/readline_spec.rb +127 -0
  59. data/spec/readlines_spec.rb +124 -0
  60. data/spec/readpartial_spec.rb +29 -0
  61. data/spec/reopen_spec.rb +303 -0
  62. data/spec/rewind_spec.rb +23 -0
  63. data/spec/seek_spec.rb +75 -0
  64. data/spec/set_encoding_spec.rb +34 -0
  65. data/spec/shared/codepoints.rb +45 -0
  66. data/spec/shared/each.rb +162 -0
  67. data/spec/shared/each_byte.rb +60 -0
  68. data/spec/shared/each_char.rb +50 -0
  69. data/spec/shared/eof.rb +24 -0
  70. data/spec/shared/getc.rb +43 -0
  71. data/spec/shared/isatty.rb +5 -0
  72. data/spec/shared/length.rb +12 -0
  73. data/spec/shared/read.rb +186 -0
  74. data/spec/shared/readchar.rb +29 -0
  75. data/spec/shared/sysread.rb +27 -0
  76. data/spec/shared/tell.rb +12 -0
  77. data/spec/shared/write.rb +134 -0
  78. data/spec/size_spec.rb +6 -0
  79. data/spec/string_spec.rb +49 -0
  80. data/spec/stringio_spec.rb +8 -0
  81. data/spec/sync_spec.rb +18 -0
  82. data/spec/sysread_spec.rb +27 -0
  83. data/spec/syswrite_spec.rb +18 -0
  84. data/spec/tell_spec.rb +6 -0
  85. data/spec/truncate_spec.rb +69 -0
  86. data/spec/tty_spec.rb +6 -0
  87. data/spec/ungetbyte_spec.rb +88 -0
  88. data/spec/ungetc_spec.rb +98 -0
  89. data/spec/write_nonblock_spec.rb +20 -0
  90. data/spec/write_spec.rb +18 -0
  91. metadata +267 -0
metadata ADDED
@@ -0,0 +1,267 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubysl-stringio
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Brian Shirai
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: redcard
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
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'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.5'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.5'
69
+ description: Ruby standard library stringio.
70
+ email:
71
+ - brixen@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - .gitignore
77
+ - .travis.yml
78
+ - Gemfile
79
+ - LICENSE
80
+ - README.md
81
+ - Rakefile
82
+ - lib/rubysl/stringio.rb
83
+ - lib/rubysl/stringio/stringio.rb
84
+ - lib/rubysl/stringio/version.rb
85
+ - lib/stringio.rb
86
+ - rubysl-stringio.gemspec
87
+ - spec/append_spec.rb
88
+ - spec/binmode_spec.rb
89
+ - spec/bytes_spec.rb
90
+ - spec/chars_spec.rb
91
+ - spec/close_read_spec.rb
92
+ - spec/close_spec.rb
93
+ - spec/close_write_spec.rb
94
+ - spec/closed_read_spec.rb
95
+ - spec/closed_spec.rb
96
+ - spec/closed_write_spec.rb
97
+ - spec/codepoints_spec.rb
98
+ - spec/each_byte_spec.rb
99
+ - spec/each_char_spec.rb
100
+ - spec/each_codepoint_spec.rb
101
+ - spec/each_line_spec.rb
102
+ - spec/each_spec.rb
103
+ - spec/eof_spec.rb
104
+ - spec/external_encoding_spec.rb
105
+ - spec/fcntl_spec.rb
106
+ - spec/fileno_spec.rb
107
+ - spec/fixtures/classes.rb
108
+ - spec/flush_spec.rb
109
+ - spec/fsync_spec.rb
110
+ - spec/getbyte_spec.rb
111
+ - spec/getc_spec.rb
112
+ - spec/gets_spec.rb
113
+ - spec/initialize_copy_spec.rb
114
+ - spec/initialize_spec.rb
115
+ - spec/internal_encoding_spec.rb
116
+ - spec/isatty_spec.rb
117
+ - spec/length_spec.rb
118
+ - spec/lineno_spec.rb
119
+ - spec/lines_spec.rb
120
+ - spec/open_spec.rb
121
+ - spec/path_spec.rb
122
+ - spec/pid_spec.rb
123
+ - spec/pos_spec.rb
124
+ - spec/print_spec.rb
125
+ - spec/printf_spec.rb
126
+ - spec/putc_spec.rb
127
+ - spec/puts_spec.rb
128
+ - spec/read_nonblock_spec.rb
129
+ - spec/read_spec.rb
130
+ - spec/readbyte_spec.rb
131
+ - spec/readchar_spec.rb
132
+ - spec/readline_spec.rb
133
+ - spec/readlines_spec.rb
134
+ - spec/readpartial_spec.rb
135
+ - spec/reopen_spec.rb
136
+ - spec/rewind_spec.rb
137
+ - spec/seek_spec.rb
138
+ - spec/set_encoding_spec.rb
139
+ - spec/shared/codepoints.rb
140
+ - spec/shared/each.rb
141
+ - spec/shared/each_byte.rb
142
+ - spec/shared/each_char.rb
143
+ - spec/shared/eof.rb
144
+ - spec/shared/getc.rb
145
+ - spec/shared/isatty.rb
146
+ - spec/shared/length.rb
147
+ - spec/shared/read.rb
148
+ - spec/shared/readchar.rb
149
+ - spec/shared/sysread.rb
150
+ - spec/shared/tell.rb
151
+ - spec/shared/write.rb
152
+ - spec/size_spec.rb
153
+ - spec/string_spec.rb
154
+ - spec/stringio_spec.rb
155
+ - spec/sync_spec.rb
156
+ - spec/sysread_spec.rb
157
+ - spec/syswrite_spec.rb
158
+ - spec/tell_spec.rb
159
+ - spec/truncate_spec.rb
160
+ - spec/tty_spec.rb
161
+ - spec/ungetbyte_spec.rb
162
+ - spec/ungetc_spec.rb
163
+ - spec/write_nonblock_spec.rb
164
+ - spec/write_spec.rb
165
+ homepage: https://github.com/rubysl/rubysl-stringio
166
+ licenses:
167
+ - BSD
168
+ metadata: {}
169
+ post_install_message:
170
+ rdoc_options: []
171
+ require_paths:
172
+ - lib
173
+ required_ruby_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - '>='
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ required_rubygems_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - '>='
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ requirements: []
184
+ rubyforge_project:
185
+ rubygems_version: 2.0.7
186
+ signing_key:
187
+ specification_version: 4
188
+ summary: Ruby standard library stringio.
189
+ test_files:
190
+ - spec/append_spec.rb
191
+ - spec/binmode_spec.rb
192
+ - spec/bytes_spec.rb
193
+ - spec/chars_spec.rb
194
+ - spec/close_read_spec.rb
195
+ - spec/close_spec.rb
196
+ - spec/close_write_spec.rb
197
+ - spec/closed_read_spec.rb
198
+ - spec/closed_spec.rb
199
+ - spec/closed_write_spec.rb
200
+ - spec/codepoints_spec.rb
201
+ - spec/each_byte_spec.rb
202
+ - spec/each_char_spec.rb
203
+ - spec/each_codepoint_spec.rb
204
+ - spec/each_line_spec.rb
205
+ - spec/each_spec.rb
206
+ - spec/eof_spec.rb
207
+ - spec/external_encoding_spec.rb
208
+ - spec/fcntl_spec.rb
209
+ - spec/fileno_spec.rb
210
+ - spec/fixtures/classes.rb
211
+ - spec/flush_spec.rb
212
+ - spec/fsync_spec.rb
213
+ - spec/getbyte_spec.rb
214
+ - spec/getc_spec.rb
215
+ - spec/gets_spec.rb
216
+ - spec/initialize_copy_spec.rb
217
+ - spec/initialize_spec.rb
218
+ - spec/internal_encoding_spec.rb
219
+ - spec/isatty_spec.rb
220
+ - spec/length_spec.rb
221
+ - spec/lineno_spec.rb
222
+ - spec/lines_spec.rb
223
+ - spec/open_spec.rb
224
+ - spec/path_spec.rb
225
+ - spec/pid_spec.rb
226
+ - spec/pos_spec.rb
227
+ - spec/print_spec.rb
228
+ - spec/printf_spec.rb
229
+ - spec/putc_spec.rb
230
+ - spec/puts_spec.rb
231
+ - spec/read_nonblock_spec.rb
232
+ - spec/read_spec.rb
233
+ - spec/readbyte_spec.rb
234
+ - spec/readchar_spec.rb
235
+ - spec/readline_spec.rb
236
+ - spec/readlines_spec.rb
237
+ - spec/readpartial_spec.rb
238
+ - spec/reopen_spec.rb
239
+ - spec/rewind_spec.rb
240
+ - spec/seek_spec.rb
241
+ - spec/set_encoding_spec.rb
242
+ - spec/shared/codepoints.rb
243
+ - spec/shared/each.rb
244
+ - spec/shared/each_byte.rb
245
+ - spec/shared/each_char.rb
246
+ - spec/shared/eof.rb
247
+ - spec/shared/getc.rb
248
+ - spec/shared/isatty.rb
249
+ - spec/shared/length.rb
250
+ - spec/shared/read.rb
251
+ - spec/shared/readchar.rb
252
+ - spec/shared/sysread.rb
253
+ - spec/shared/tell.rb
254
+ - spec/shared/write.rb
255
+ - spec/size_spec.rb
256
+ - spec/string_spec.rb
257
+ - spec/stringio_spec.rb
258
+ - spec/sync_spec.rb
259
+ - spec/sysread_spec.rb
260
+ - spec/syswrite_spec.rb
261
+ - spec/tell_spec.rb
262
+ - spec/truncate_spec.rb
263
+ - spec/tty_spec.rb
264
+ - spec/ungetbyte_spec.rb
265
+ - spec/ungetc_spec.rb
266
+ - spec/write_nonblock_spec.rb
267
+ - spec/write_spec.rb