english 0.7.2 → 0.8.1
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.
- checksums.yaml +4 -4
- data/.document +4 -0
- data/.rdoc_options +2 -0
- data/{LICENSE.txt → BSDL} +3 -3
- data/COPYING +56 -0
- data/README.md +66 -4
- data/lib/English.rb +46 -64
- metadata +7 -14
- data/.gitignore +0 -8
- data/English.gemspec +0 -22
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -21
- data/Rakefile +0 -10
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28d0dbbf0894c747e99514c5a2e6d63600fdf4714dedfb0fc5c756f8f73082f7
|
|
4
|
+
data.tar.gz: 4317b00e8c4fa01a9b6d0b576a8b9a13ed009b84bc1d17ace7579696aee71054
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 742331277d6ec3aa12428eaf3c3ecfcd8b453308b6213bf8075c1e8d46e237000f79e9737f0d95edf46ac3488165707d2de73090200e84fdea6f078ac99208ed
|
|
7
|
+
data.tar.gz: 983551be028a49bac06a1b43f5903144f1f7d698377439ee8e2b2785c1b990343bb8e31f20830ffe4d057281ef49a03894fa9481295c2a32ba607aec19249bfb
|
data/.document
ADDED
data/.rdoc_options
ADDED
data/{LICENSE.txt → BSDL}
RENAMED
|
@@ -4,10 +4,10 @@ Redistribution and use in source and binary forms, with or without
|
|
|
4
4
|
modification, are permitted provided that the following conditions
|
|
5
5
|
are met:
|
|
6
6
|
1. Redistributions of source code must retain the above copyright
|
|
7
|
-
notice, this list of conditions and the following disclaimer.
|
|
7
|
+
notice, this list of conditions and the following disclaimer.
|
|
8
8
|
2. Redistributions in binary form must reproduce the above copyright
|
|
9
|
-
notice, this list of conditions and the following disclaimer in the
|
|
10
|
-
documentation and/or other materials provided with the distribution.
|
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
|
10
|
+
documentation and/or other materials provided with the distribution.
|
|
11
11
|
|
|
12
12
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
13
13
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
data/COPYING
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
|
|
2
|
+
You can redistribute it and/or modify it under either the terms of the
|
|
3
|
+
2-clause BSDL (see the file BSDL), or the conditions below:
|
|
4
|
+
|
|
5
|
+
1. You may make and give away verbatim copies of the source form of the
|
|
6
|
+
software without restriction, provided that you duplicate all of the
|
|
7
|
+
original copyright notices and associated disclaimers.
|
|
8
|
+
|
|
9
|
+
2. You may modify your copy of the software in any way, provided that
|
|
10
|
+
you do at least ONE of the following:
|
|
11
|
+
|
|
12
|
+
a. place your modifications in the Public Domain or otherwise
|
|
13
|
+
make them Freely Available, such as by posting said
|
|
14
|
+
modifications to Usenet or an equivalent medium, or by allowing
|
|
15
|
+
the author to include your modifications in the software.
|
|
16
|
+
|
|
17
|
+
b. use the modified software only within your corporation or
|
|
18
|
+
organization.
|
|
19
|
+
|
|
20
|
+
c. give non-standard binaries non-standard names, with
|
|
21
|
+
instructions on where to get the original software distribution.
|
|
22
|
+
|
|
23
|
+
d. make other distribution arrangements with the author.
|
|
24
|
+
|
|
25
|
+
3. You may distribute the software in object code or binary form,
|
|
26
|
+
provided that you do at least ONE of the following:
|
|
27
|
+
|
|
28
|
+
a. distribute the binaries and library files of the software,
|
|
29
|
+
together with instructions (in the manual page or equivalent)
|
|
30
|
+
on where to get the original distribution.
|
|
31
|
+
|
|
32
|
+
b. accompany the distribution with the machine-readable source of
|
|
33
|
+
the software.
|
|
34
|
+
|
|
35
|
+
c. give non-standard binaries non-standard names, with
|
|
36
|
+
instructions on where to get the original software distribution.
|
|
37
|
+
|
|
38
|
+
d. make other distribution arrangements with the author.
|
|
39
|
+
|
|
40
|
+
4. You may modify and include the part of the software into any other
|
|
41
|
+
software (possibly commercial). But some files in the distribution
|
|
42
|
+
are not written by the author, so that they are not under these terms.
|
|
43
|
+
|
|
44
|
+
For the list of those files and their copying conditions, see the
|
|
45
|
+
file LEGAL.
|
|
46
|
+
|
|
47
|
+
5. The scripts and library files supplied as input to or produced as
|
|
48
|
+
output from the software do not automatically fall under the
|
|
49
|
+
copyright of the software, but belong to whomever generated them,
|
|
50
|
+
and may be sold commercially, and may be aggregated with this
|
|
51
|
+
software.
|
|
52
|
+
|
|
53
|
+
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
|
54
|
+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
55
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
56
|
+
PURPOSE.
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# English
|
|
2
2
|
|
|
3
3
|
Include the English library file in a Ruby script, and you can
|
|
4
|
-
reference the global variables such as <
|
|
4
|
+
reference the global variables such as <code>$_</code> using less
|
|
5
5
|
cryptic names, listed below.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
@@ -9,7 +9,7 @@ cryptic names, listed below.
|
|
|
9
9
|
Add this line to your application's Gemfile:
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
gem '
|
|
12
|
+
gem 'english'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
And then execute:
|
|
@@ -18,7 +18,7 @@ And then execute:
|
|
|
18
18
|
|
|
19
19
|
Or install it yourself as:
|
|
20
20
|
|
|
21
|
-
$ gem install
|
|
21
|
+
$ gem install english
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ $\ = ' -- '
|
|
|
30
30
|
print $', $$, "\n"
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
With English:
|
|
33
|
+
With 'English':
|
|
34
34
|
|
|
35
35
|
```ruby
|
|
36
36
|
require "English"
|
|
@@ -40,6 +40,68 @@ $OUTPUT_FIELD_SEPARATOR = ' -- '
|
|
|
40
40
|
print $POSTMATCH, $PID, "\n"
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
The aliases are defined in [English.rb](lib/English.rb), and are as follows, first alias to builtin, then builtin to alias:
|
|
44
|
+
|
|
45
|
+
### Builtin to Alias Table
|
|
46
|
+
|
|
47
|
+
| Builtin | Alias |
|
|
48
|
+
| :------: | -------------------------- |
|
|
49
|
+
| `` $! `` | `$ERROR_INFO` |
|
|
50
|
+
| `` $$ `` | `$PID` |
|
|
51
|
+
| `` $$ `` | `$PROCESS_ID` |
|
|
52
|
+
| `` $& `` | `$MATCH` |
|
|
53
|
+
| `` $' `` | `$POSTMATCH` |
|
|
54
|
+
| `` $* `` | `$ARGV` |
|
|
55
|
+
| `` $+ `` | `$LAST_PAREN_MATCH` |
|
|
56
|
+
| `` $, `` | `$OFS` |
|
|
57
|
+
| `` $, `` | `$OUTPUT_FIELD_SEPARATOR` |
|
|
58
|
+
| `` $. `` | `$INPUT_LINE_NUMBER` |
|
|
59
|
+
| `` $. `` | `$NR` |
|
|
60
|
+
| `` $/ `` | `$INPUT_RECORD_SEPARATOR` |
|
|
61
|
+
| `` $/ `` | `$RS` |
|
|
62
|
+
| `` $; `` | `$FIELD_SEPARATOR` |
|
|
63
|
+
| `` $; `` | `$FS` |
|
|
64
|
+
| `` $< `` | `$DEFAULT_INPUT` |
|
|
65
|
+
| `` $> `` | `$DEFAULT_OUTPUT` |
|
|
66
|
+
| `` $? `` | `$CHILD_STATUS` |
|
|
67
|
+
| `` $@ `` | `$ERROR_POSITION` |
|
|
68
|
+
| `` $\ `` | `$ORS` |
|
|
69
|
+
| `` $\ `` | `$OUTPUT_RECORD_SEPARATOR` |
|
|
70
|
+
| `` $_ `` | `$LAST_READ_LINE` |
|
|
71
|
+
| `` $` `` | `$PREMATCH` |
|
|
72
|
+
| `` $~ `` | `$LAST_MATCH_INFO` |
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Alias to Builtin Table
|
|
76
|
+
|
|
77
|
+
| Alias | Builtin |
|
|
78
|
+
| -------------------------- | :------: |
|
|
79
|
+
| `$ARGV` | `` $* `` |
|
|
80
|
+
| `$CHILD_STATUS` | `` $? `` |
|
|
81
|
+
| `$DEFAULT_INPUT` | `` $< `` |
|
|
82
|
+
| `$DEFAULT_OUTPUT` | `` $> `` |
|
|
83
|
+
| `$ERROR_INFO` | `` $! `` |
|
|
84
|
+
| `$ERROR_POSITION` | `` $@ `` |
|
|
85
|
+
| `$FIELD_SEPARATOR` | `` $; `` |
|
|
86
|
+
| `$FS` | `` $; `` |
|
|
87
|
+
| `$INPUT_LINE_NUMBER` | `` $. `` |
|
|
88
|
+
| `$INPUT_RECORD_SEPARATOR` | `` $/ `` |
|
|
89
|
+
| `$LAST_MATCH_INFO` | `` $~ `` |
|
|
90
|
+
| `$LAST_PAREN_MATCH` | `` $+ `` |
|
|
91
|
+
| `$LAST_READ_LINE` | `` $_ `` |
|
|
92
|
+
| `$MATCH` | `` $& `` |
|
|
93
|
+
| `$NR` | `` $. `` |
|
|
94
|
+
| `$OFS` | `` $, `` |
|
|
95
|
+
| `$ORS` | `` $\ `` |
|
|
96
|
+
| `$OUTPUT_FIELD_SEPARATOR` | `` $, `` |
|
|
97
|
+
| `$OUTPUT_RECORD_SEPARATOR` | `` $\ `` |
|
|
98
|
+
| `$PID` | `` $$ `` |
|
|
99
|
+
| `$POSTMATCH` | `` $' `` |
|
|
100
|
+
| `$PREMATCH` | `` $` `` |
|
|
101
|
+
| `$PROCESS_ID` | `` $$ `` |
|
|
102
|
+
| `$RS` | `` $/ `` |
|
|
103
|
+
|
|
104
|
+
|
|
43
105
|
## Development
|
|
44
106
|
|
|
45
107
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/English.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
# Include the English library file in a Ruby script, and you can
|
|
3
|
-
# reference the global variables such as <
|
|
3
|
+
# reference the global variables such as <code>$_</code> using less
|
|
4
4
|
# cryptic names, listed below.
|
|
5
5
|
#
|
|
6
6
|
# Without 'English':
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# "waterbuffalo" =~ /buff/
|
|
10
10
|
# print $', $$, "\n"
|
|
11
11
|
#
|
|
12
|
-
# With English:
|
|
12
|
+
# With 'English':
|
|
13
13
|
#
|
|
14
14
|
# require "English"
|
|
15
15
|
#
|
|
@@ -20,31 +20,30 @@
|
|
|
20
20
|
# Below is a full list of descriptive aliases and their associated global
|
|
21
21
|
# variable:
|
|
22
22
|
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
# $LAST_PAREN_MATCH:: $+
|
|
23
|
+
# <tt>$ERROR_INFO</tt>:: <tt>$!</tt>
|
|
24
|
+
# <tt>$ERROR_POSITION</tt>:: <tt>$@</tt>
|
|
25
|
+
# <tt>$FS</tt>:: <tt>$;</tt>
|
|
26
|
+
# <tt>$FIELD_SEPARATOR</tt>:: <tt>$;</tt>
|
|
27
|
+
# <tt>$OFS</tt>:: <tt>$,</tt>
|
|
28
|
+
# <tt>$OUTPUT_FIELD_SEPARATOR</tt>:: <tt>$,</tt>
|
|
29
|
+
# <tt>$RS</tt>:: <tt>$/</tt>
|
|
30
|
+
# <tt>$INPUT_RECORD_SEPARATOR</tt>:: <tt>$/</tt>
|
|
31
|
+
# <tt>$ORS</tt>:: <tt>$\</tt>
|
|
32
|
+
# <tt>$OUTPUT_RECORD_SEPARATOR</tt>:: <tt>$\</tt>
|
|
33
|
+
# <tt>$NR</tt>:: <tt>$.</tt>
|
|
34
|
+
# <tt>$INPUT_LINE_NUMBER</tt>:: <tt>$.</tt>
|
|
35
|
+
# <tt>$LAST_READ_LINE</tt>:: <tt>$_</tt>
|
|
36
|
+
# <tt>$DEFAULT_OUTPUT</tt>:: <tt>$></tt>
|
|
37
|
+
# <tt>$DEFAULT_INPUT</tt>:: <tt>$<</tt>
|
|
38
|
+
# <tt>$PID</tt>:: <tt>$$</tt>
|
|
39
|
+
# <tt>$PROCESS_ID</tt>:: <tt>$$</tt>
|
|
40
|
+
# <tt>$CHILD_STATUS</tt>:: <tt>$?</tt>
|
|
41
|
+
# <tt>$LAST_MATCH_INFO</tt>:: <tt>$~</tt>
|
|
42
|
+
# <tt>$ARGV</tt>:: <tt>$*</tt>
|
|
43
|
+
# <tt>$MATCH</tt>:: <tt>$&</tt>
|
|
44
|
+
# <tt>$PREMATCH</tt>:: <tt>$`</tt>
|
|
45
|
+
# <tt>$POSTMATCH</tt>:: <tt>$'</tt>
|
|
46
|
+
# <tt>$LAST_PAREN_MATCH</tt>:: <tt>$+</tt>
|
|
48
47
|
#
|
|
49
48
|
module English end if false
|
|
50
49
|
|
|
@@ -56,87 +55,73 @@ alias $ERROR_INFO $!
|
|
|
56
55
|
alias $ERROR_POSITION $@
|
|
57
56
|
|
|
58
57
|
# The default separator pattern used by String#split. May be set from
|
|
59
|
-
# the command line using the <
|
|
58
|
+
# the command line using the <code>-F</code> flag.
|
|
60
59
|
alias $FS $;
|
|
61
|
-
|
|
62
|
-
# The default separator pattern used by String#split. May be set from
|
|
63
|
-
# the command line using the <tt>-F</tt> flag.
|
|
64
60
|
alias $FIELD_SEPARATOR $;
|
|
65
61
|
|
|
66
62
|
# The separator string output between the parameters to methods such
|
|
67
63
|
# as Kernel#print and Array#join. Defaults to +nil+, which adds no
|
|
68
64
|
# text.
|
|
69
|
-
alias $OFS $,
|
|
70
65
|
|
|
71
66
|
# The separator string output between the parameters to methods such
|
|
72
67
|
# as Kernel#print and Array#join. Defaults to +nil+, which adds no
|
|
73
68
|
# text.
|
|
69
|
+
alias $OFS $,
|
|
74
70
|
alias $OUTPUT_FIELD_SEPARATOR $,
|
|
75
71
|
|
|
76
72
|
# The input record separator (newline by default). This is the value
|
|
77
73
|
# that routines such as Kernel#gets use to determine record
|
|
78
74
|
# boundaries. If set to +nil+, +gets+ will read the entire file.
|
|
79
75
|
alias $RS $/
|
|
80
|
-
|
|
81
|
-
# The input record separator (newline by default). This is the value
|
|
82
|
-
# that routines such as Kernel#gets use to determine record
|
|
83
|
-
# boundaries. If set to +nil+, +gets+ will read the entire file.
|
|
84
76
|
alias $INPUT_RECORD_SEPARATOR $/
|
|
85
77
|
|
|
86
78
|
# The string appended to the output of every call to methods such as
|
|
87
79
|
# Kernel#print and IO#write. The default value is +nil+.
|
|
88
80
|
alias $ORS $\
|
|
89
|
-
|
|
90
|
-
# The string appended to the output of every call to methods such as
|
|
91
|
-
# Kernel#print and IO#write. The default value is +nil+.
|
|
92
81
|
alias $OUTPUT_RECORD_SEPARATOR $\
|
|
93
82
|
|
|
94
|
-
# The number of the last line read from the current input file.
|
|
95
|
-
alias $INPUT_LINE_NUMBER $.
|
|
96
|
-
|
|
97
83
|
# The number of the last line read from the current input file.
|
|
98
84
|
alias $NR $.
|
|
85
|
+
alias $INPUT_LINE_NUMBER $.
|
|
99
86
|
|
|
100
87
|
# The last line read by Kernel#gets or
|
|
101
88
|
# Kernel#readline. Many string-related functions in the
|
|
102
|
-
# Kernel module operate on <
|
|
89
|
+
# Kernel module operate on <code>$_</code> by default. The variable is
|
|
103
90
|
# local to the current scope. Thread local.
|
|
104
91
|
alias $LAST_READ_LINE $_
|
|
105
92
|
|
|
106
93
|
# The destination of output for Kernel#print
|
|
107
94
|
# and Kernel#printf. The default value is
|
|
108
|
-
# <
|
|
95
|
+
# <code>$stdout</code>.
|
|
109
96
|
alias $DEFAULT_OUTPUT $>
|
|
110
97
|
|
|
111
98
|
# An object that provides access to the concatenation
|
|
112
99
|
# of the contents of all the files
|
|
113
|
-
# given as command-line arguments, or <
|
|
100
|
+
# given as command-line arguments, or <code>$stdin</code>
|
|
114
101
|
# (in the case where there are no
|
|
115
|
-
# arguments). <
|
|
102
|
+
# arguments). <code>$<</code> supports methods similar to a
|
|
116
103
|
# File object:
|
|
117
104
|
# +inmode+, +close+,
|
|
118
|
-
# <
|
|
119
|
-
# <
|
|
120
|
-
# +eof+, <
|
|
105
|
+
# <code>closed?</code>, +each+,
|
|
106
|
+
# <code>each_byte</code>, <code>each_line</code>,
|
|
107
|
+
# +eof+, <code>eof?</code>, +file+,
|
|
121
108
|
# +filename+, +fileno+,
|
|
122
109
|
# +getc+, +gets+, +lineno+,
|
|
123
|
-
# <
|
|
124
|
-
# +pos+, <
|
|
110
|
+
# <code>lineno=</code>, +path+,
|
|
111
|
+
# +pos+, <code>pos=</code>,
|
|
125
112
|
# +read+, +readchar+,
|
|
126
113
|
# +readline+, +readlines+,
|
|
127
114
|
# +rewind+, +seek+, +skip+,
|
|
128
|
-
# +tell+, <
|
|
129
|
-
# <
|
|
115
|
+
# +tell+, <code>to_a</code>, <code>to_i</code>,
|
|
116
|
+
# <code>to_io</code>, <code>to_s</code>, along with the
|
|
130
117
|
# methods in Enumerable. The method +file+
|
|
131
118
|
# returns a File object for the file currently
|
|
132
|
-
# being read. This may change as <
|
|
119
|
+
# being read. This may change as <code>$<</code> reads
|
|
133
120
|
# through the files on the command line. Read only.
|
|
134
121
|
alias $DEFAULT_INPUT $<
|
|
135
122
|
|
|
136
123
|
# The process number of the program being executed. Read only.
|
|
137
124
|
alias $PID $$
|
|
138
|
-
|
|
139
|
-
# The process number of the program being executed. Read only.
|
|
140
125
|
alias $PROCESS_ID $$
|
|
141
126
|
|
|
142
127
|
# The exit status of the last child process to terminate. Read
|
|
@@ -144,16 +129,13 @@ alias $PROCESS_ID $$
|
|
|
144
129
|
alias $CHILD_STATUS $?
|
|
145
130
|
|
|
146
131
|
# A +MatchData+ object that encapsulates the results of a successful
|
|
147
|
-
# pattern match. The variables <
|
|
148
|
-
# and <
|
|
149
|
-
# <
|
|
132
|
+
# pattern match. The variables <code>$&</code>, <code>$`</code>, <code>$'</code>,
|
|
133
|
+
# and <code>$1</code> to <code>$9</code> are all derived from
|
|
134
|
+
# <code>$~</code>. Assigning to <code>$~</code> changes the values of these
|
|
150
135
|
# derived variables. This variable is local to the current
|
|
151
136
|
# scope.
|
|
152
137
|
alias $LAST_MATCH_INFO $~
|
|
153
138
|
|
|
154
|
-
# This variable is no longer effective. Deprecated.
|
|
155
|
-
alias $IGNORECASE $=
|
|
156
|
-
|
|
157
139
|
# An array of strings containing the command-line
|
|
158
140
|
# options from the invocation of the program. Options
|
|
159
141
|
# used by the Ruby interpreter will have been
|
|
@@ -176,7 +158,7 @@ alias $PREMATCH $`
|
|
|
176
158
|
alias $POSTMATCH $'
|
|
177
159
|
|
|
178
160
|
# The contents of the highest-numbered group matched in the last
|
|
179
|
-
# successful pattern match. Thus, in <
|
|
180
|
-
# <
|
|
161
|
+
# successful pattern match. Thus, in <code>"cat" =~ /(c|a)(t|z)/</code>,
|
|
162
|
+
# <code>$+</code> will be set to "t". This variable is local to the
|
|
181
163
|
# current scope. Read only.
|
|
182
164
|
alias $LAST_PAREN_MATCH $+
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: english
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yukihiro Matsumoto
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: Require 'English.rb' to reference global variables with less cryptic
|
|
14
13
|
names.
|
|
@@ -18,15 +17,11 @@ executables: []
|
|
|
18
17
|
extensions: []
|
|
19
18
|
extra_rdoc_files: []
|
|
20
19
|
files:
|
|
21
|
-
- ".
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
- LICENSE.txt
|
|
20
|
+
- ".document"
|
|
21
|
+
- ".rdoc_options"
|
|
22
|
+
- BSDL
|
|
23
|
+
- COPYING
|
|
26
24
|
- README.md
|
|
27
|
-
- Rakefile
|
|
28
|
-
- bin/console
|
|
29
|
-
- bin/setup
|
|
30
25
|
- lib/English.rb
|
|
31
26
|
homepage: https://github.com/ruby/English
|
|
32
27
|
licenses:
|
|
@@ -35,7 +30,6 @@ licenses:
|
|
|
35
30
|
metadata:
|
|
36
31
|
homepage_uri: https://github.com/ruby/English
|
|
37
32
|
source_code_uri: https://github.com/ruby/English
|
|
38
|
-
post_install_message:
|
|
39
33
|
rdoc_options: []
|
|
40
34
|
require_paths:
|
|
41
35
|
- lib
|
|
@@ -50,8 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
50
44
|
- !ruby/object:Gem::Version
|
|
51
45
|
version: '0'
|
|
52
46
|
requirements: []
|
|
53
|
-
rubygems_version: 3.
|
|
54
|
-
signing_key:
|
|
47
|
+
rubygems_version: 3.6.9
|
|
55
48
|
specification_version: 4
|
|
56
49
|
summary: Require 'English.rb' to reference global variables with less cryptic names.
|
|
57
50
|
test_files: []
|
data/.gitignore
DELETED
data/English.gemspec
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Gem::Specification.new do |spec|
|
|
2
|
-
spec.name = "english"
|
|
3
|
-
spec.version = "0.7.2"
|
|
4
|
-
spec.authors = ["Yukihiro Matsumoto"]
|
|
5
|
-
spec.email = ["matz@ruby-lang.org"]
|
|
6
|
-
|
|
7
|
-
spec.summary = %q{Require 'English.rb' to reference global variables with less cryptic names.}
|
|
8
|
-
spec.description = %q{Require 'English.rb' to reference global variables with less cryptic names.}
|
|
9
|
-
spec.homepage = "https://github.com/ruby/English"
|
|
10
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
|
11
|
-
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
|
12
|
-
|
|
13
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
14
|
-
spec.metadata["source_code_uri"] = spec.homepage
|
|
15
|
-
|
|
16
|
-
# Specify which files should be added to the gem when it is released.
|
|
17
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
18
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
19
|
-
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
20
|
-
end
|
|
21
|
-
spec.require_paths = ["lib"]
|
|
22
|
-
end
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
English (0.1.0)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: https://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
minitest (5.14.0)
|
|
10
|
-
rake (12.3.3)
|
|
11
|
-
|
|
12
|
-
PLATFORMS
|
|
13
|
-
ruby
|
|
14
|
-
|
|
15
|
-
DEPENDENCIES
|
|
16
|
-
English!
|
|
17
|
-
minitest (~> 5.0)
|
|
18
|
-
rake (~> 12.0)
|
|
19
|
-
|
|
20
|
-
BUNDLED WITH
|
|
21
|
-
2.1.4
|
data/Rakefile
DELETED
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "English"
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require "irb"
|
|
14
|
-
IRB.start(__FILE__)
|