core_classes 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c384c529efe3db18b074461b6400c095759fcaf7
4
+ data.tar.gz: 606ab458e807c4b70d9215ef8293ae377555e859
5
+ SHA512:
6
+ metadata.gz: 546858d2c88769f0c706e230915ef566d6ee4e3aa6c503974a1715aa81253b4c7a5f51330f6ea968a91edc31faa8071e118327e7642192404aa43063480e0368
7
+ data.tar.gz: 3a883ee998402ee068bdf527956b82fbce6374da16de3a923fb28f610570cb58e9b2f866982cd85cbf15744b9b6efbcb3ec52d0ce9fd0b509a5cd88e87375a33
@@ -0,0 +1,6 @@
1
+ Core Classes
2
+ ============
3
+
4
+ ### v0.1.0 (June 21, 2015)
5
+
6
+ * Initial release
@@ -0,0 +1,19 @@
1
+ Copyright (C) 2015 Kyrylo Silin
2
+
3
+ This software is provided 'as-is', without any express or implied
4
+ warranty. In no event will the authors be held liable for any damages
5
+ arising from the use of this software.
6
+
7
+ Permission is granted to anyone to use this software for any purpose,
8
+ including commercial applications, and to alter it and redistribute it
9
+ freely, subject to the following restrictions:
10
+
11
+ 1. The origin of this software must not be misrepresented; you must not
12
+ claim that you wrote the original software. If you use this software
13
+ in a product, an acknowledgment in the product documentation would be
14
+ appreciated but is not required.
15
+
16
+ 2. Altered source versions must be plainly marked as such, and must not be
17
+ misrepresented as being the original software.
18
+
19
+ 3. This notice may not be removed or altered from any source distribution.
@@ -0,0 +1,6 @@
1
+ Core Classes
2
+ ==
3
+
4
+ ```ruby
5
+ CoreClasses.as_set
6
+ ```
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,313 @@
1
+ require 'set'
2
+
3
+ module CoreClasses
4
+ def self.as_set
5
+ suffix = RUBY_VERSION.split('.').join('')
6
+ self.__send__("ruby_#{suffix}")
7
+ end
8
+
9
+ private
10
+
11
+ def self.ruby_222
12
+ Set.new(
13
+ [
14
+ ARGF.class,
15
+ ArgumentError,
16
+ Array,
17
+ BasicObject,
18
+ Bignum,
19
+ Binding,
20
+ Class,
21
+ Comparable,
22
+ Complex,
23
+ Data,
24
+ Dir,
25
+ EOFError,
26
+ Encoding,
27
+ Encoding::CompatibilityError,
28
+ Encoding::Converter,
29
+ Encoding::ConverterNotFoundError,
30
+ Encoding::InvalidByteSequenceError,
31
+ Encoding::UndefinedConversionError,
32
+ EncodingError,
33
+ Enumerable,
34
+ Enumerator,
35
+ Enumerator::Generator,
36
+ Enumerator::Lazy,
37
+ Enumerator::Yielder,
38
+ Errno,
39
+ Errno::E2BIG,
40
+ Errno::EACCES,
41
+ Errno::EADDRINUSE,
42
+ Errno::EADDRNOTAVAIL,
43
+ Errno::EADV,
44
+ Errno::EAFNOSUPPORT,
45
+ Errno::EAGAIN,
46
+ Errno::EALREADY,
47
+ Errno::EBADE,
48
+ Errno::EBADF,
49
+ Errno::EBADFD,
50
+ Errno::EBADMSG,
51
+ Errno::EBADR,
52
+ Errno::EBADRQC,
53
+ Errno::EBADSLT,
54
+ Errno::EBFONT,
55
+ Errno::EBUSY,
56
+ Errno::ECANCELED,
57
+ Errno::ECHILD,
58
+ Errno::ECHRNG,
59
+ Errno::ECOMM,
60
+ Errno::ECONNABORTED,
61
+ Errno::ECONNREFUSED,
62
+ Errno::ECONNRESET,
63
+ Errno::EDEADLK,
64
+ Errno::EDESTADDRREQ,
65
+ Errno::EDOM,
66
+ Errno::EDOTDOT,
67
+ Errno::EDQUOT,
68
+ Errno::EEXIST,
69
+ Errno::EFAULT,
70
+ Errno::EFBIG,
71
+ Errno::EHOSTDOWN,
72
+ Errno::EHOSTUNREACH,
73
+ Errno::EHWPOISON,
74
+ Errno::EIDRM,
75
+ Errno::EILSEQ,
76
+ Errno::EINPROGRESS,
77
+ Errno::EINTR,
78
+ Errno::EINVAL,
79
+ Errno::EIO,
80
+ Errno::EISCONN,
81
+ Errno::EISDIR,
82
+ Errno::EISNAM,
83
+ Errno::EKEYEXPIRED,
84
+ Errno::EKEYREJECTED,
85
+ Errno::EKEYREVOKED,
86
+ Errno::EL2HLT,
87
+ Errno::EL2NSYNC,
88
+ Errno::EL3HLT,
89
+ Errno::EL3RST,
90
+ Errno::ELIBACC,
91
+ Errno::ELIBBAD,
92
+ Errno::ELIBEXEC,
93
+ Errno::ELIBMAX,
94
+ Errno::ELIBSCN,
95
+ Errno::ELNRNG,
96
+ Errno::ELOOP,
97
+ Errno::EMEDIUMTYPE,
98
+ Errno::EMFILE,
99
+ Errno::EMLINK,
100
+ Errno::EMSGSIZE,
101
+ Errno::EMULTIHOP,
102
+ Errno::ENAMETOOLONG,
103
+ Errno::ENAVAIL,
104
+ Errno::ENETDOWN,
105
+ Errno::ENETRESET,
106
+ Errno::ENETUNREACH,
107
+ Errno::ENFILE,
108
+ Errno::ENOANO,
109
+ Errno::ENOBUFS,
110
+ Errno::ENOCSI,
111
+ Errno::ENODATA,
112
+ Errno::ENODEV,
113
+ Errno::ENOENT,
114
+ Errno::ENOEXEC,
115
+ Errno::ENOKEY,
116
+ Errno::ENOLCK,
117
+ Errno::ENOLINK,
118
+ Errno::ENOMEDIUM,
119
+ Errno::ENOMEM,
120
+ Errno::ENOMSG,
121
+ Errno::ENONET,
122
+ Errno::ENOPKG,
123
+ Errno::ENOPROTOOPT,
124
+ Errno::ENOSPC,
125
+ Errno::ENOSR,
126
+ Errno::ENOSTR,
127
+ Errno::ENOSYS,
128
+ Errno::ENOTBLK,
129
+ Errno::ENOTCONN,
130
+ Errno::ENOTDIR,
131
+ Errno::ENOTEMPTY,
132
+ Errno::ENOTNAM,
133
+ Errno::ENOTRECOVERABLE,
134
+ Errno::ENOTSOCK,
135
+ Errno::ENOTTY,
136
+ Errno::ENOTUNIQ,
137
+ Errno::ENXIO,
138
+ Errno::EOPNOTSUPP,
139
+ Errno::EOVERFLOW,
140
+ Errno::EOWNERDEAD,
141
+ Errno::EPERM,
142
+ Errno::EPFNOSUPPORT,
143
+ Errno::EPIPE,
144
+ Errno::EPROTO,
145
+ Errno::EPROTONOSUPPORT,
146
+ Errno::EPROTOTYPE,
147
+ Errno::ERANGE,
148
+ Errno::EREMCHG,
149
+ Errno::EREMOTE,
150
+ Errno::EREMOTEIO,
151
+ Errno::ERESTART,
152
+ Errno::ERFKILL,
153
+ Errno::EROFS,
154
+ Errno::ESHUTDOWN,
155
+ Errno::ESOCKTNOSUPPORT,
156
+ Errno::ESPIPE,
157
+ Errno::ESRCH,
158
+ Errno::ESRMNT,
159
+ Errno::ESTALE,
160
+ Errno::ESTRPIPE,
161
+ Errno::ETIME,
162
+ Errno::ETIMEDOUT,
163
+ Errno::ETOOMANYREFS,
164
+ Errno::ETXTBSY,
165
+ Errno::EUCLEAN,
166
+ Errno::EUNATCH,
167
+ Errno::EUSERS,
168
+ Errno::EXDEV,
169
+ Errno::EXFULL,
170
+ Errno::NOERROR,
171
+ Exception,
172
+ FalseClass,
173
+ Fiber,
174
+ FiberError,
175
+ File,
176
+ File::Constants,
177
+ File::Stat,
178
+ FileTest,
179
+ Fixnum,
180
+ Float,
181
+ FloatDomainError,
182
+ GC,
183
+ GC::Profiler,
184
+ Gem,
185
+ Gem::BasicSpecification,
186
+ Gem::CommandLineError,
187
+ Gem::ConflictError,
188
+ Gem::Dependency,
189
+ Gem::DependencyError,
190
+ Gem::DependencyRemovalException,
191
+ Gem::DependencyResolutionError,
192
+ Gem::Deprecate,
193
+ Gem::DocumentError,
194
+ Gem::EndOfYAMLException,
195
+ Gem::ErrorReason,
196
+ Gem::Exception,
197
+ Gem::FilePermissionError,
198
+ Gem::FormatException,
199
+ Gem::GemNotFoundException,
200
+ Gem::GemNotInHomeException,
201
+ Gem::ImpossibleDependenciesError,
202
+ Gem::InstallError,
203
+ Gem::InvalidSpecificationException,
204
+ Gem::LoadError,
205
+ Gem::OperationNotSupportedError,
206
+ Gem::PathSupport,
207
+ Gem::Platform,
208
+ Gem::PlatformMismatch,
209
+ Gem::RemoteError,
210
+ Gem::RemoteInstallationCancelled,
211
+ Gem::RemoteInstallationSkipped,
212
+ Gem::RemoteSourceException,
213
+ Gem::Requirement,
214
+ Gem::Requirement::BadRequirementError,
215
+ Gem::RubyVersionMismatch,
216
+ Gem::SourceFetchProblem,
217
+ Gem::SpecificGemNotFoundException,
218
+ Gem::Specification,
219
+ Gem::StringSink,
220
+ Gem::StringSource,
221
+ Gem::StubSpecification,
222
+ Gem::StubSpecification::StubLine,
223
+ Gem::SystemExitException,
224
+ Gem::UnsatisfiableDependencyError,
225
+ Gem::VerificationError,
226
+ Gem::Version,
227
+ Hash,
228
+ IO,
229
+ IO::EAGAINWaitReadable,
230
+ IO::EAGAINWaitWritable,
231
+ IO::EINPROGRESSWaitReadable,
232
+ IO::EINPROGRESSWaitWritable,
233
+ IO::WaitReadable,
234
+ IO::WaitWritable,
235
+ IOError,
236
+ IndexError,
237
+ Integer,
238
+ Interrupt,
239
+ Kernel,
240
+ KeyError,
241
+ LoadError,
242
+ LocalJumpError,
243
+ Marshal,
244
+ MatchData,
245
+ Math,
246
+ Math::DomainError,
247
+ Method,
248
+ Module,
249
+ Monitor,
250
+ MonitorMixin,
251
+ MonitorMixin::ConditionVariable,
252
+ MonitorMixin::ConditionVariable::Timeout,
253
+ Mutex,
254
+ NameError,
255
+ NilClass,
256
+ NoMemoryError,
257
+ NoMethodError,
258
+ NotImplementedError,
259
+ Numeric,
260
+ Object,
261
+ ObjectSpace,
262
+ ObjectSpace::WeakMap,
263
+ Proc,
264
+ Process,
265
+ Process::GID,
266
+ Process::Status,
267
+ Process::Sys,
268
+ Process::Tms,
269
+ Process::UID,
270
+ Process::Waiter,
271
+ Random,
272
+ Range,
273
+ RangeError,
274
+ Rational,
275
+ RbConfig,
276
+ Regexp,
277
+ RegexpError,
278
+ RubyVM,
279
+ RubyVM::Env,
280
+ RubyVM::InstructionSequence,
281
+ RuntimeError,
282
+ ScriptError,
283
+ SecurityError,
284
+ Signal,
285
+ SignalException,
286
+ StandardError,
287
+ StopIteration,
288
+ String,
289
+ Struct,
290
+ Symbol,
291
+ SyntaxError,
292
+ SystemCallError,
293
+ SystemExit,
294
+ SystemStackError,
295
+ Thread,
296
+ Thread::Backtrace,
297
+ Thread::Backtrace::Location,
298
+ Thread::ConditionVariable,
299
+ Thread::Queue,
300
+ Thread::SizedQueue,
301
+ ThreadError,
302
+ ThreadGroup,
303
+ Time,
304
+ TracePoint,
305
+ TrueClass,
306
+ TypeError,
307
+ UnboundMethod,
308
+ UncaughtThrowError,
309
+ ZeroDivisionError
310
+ ]
311
+ )
312
+ end
313
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: core_classes
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kyrylo Silin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: silin@kyrylo.org
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - CHANGELOG.md
20
+ - LICENCE.txt
21
+ - README.md
22
+ - VERSION
23
+ - lib/core_classes.rb
24
+ homepage: https://github.com/kyrylo/core_classes
25
+ licenses:
26
+ - Zlib
27
+ metadata: {}
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubyforge_project:
44
+ rubygems_version: 2.4.5
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: An Array of all Ruby core classes
48
+ test_files: []
49
+ has_rdoc: