english 0.7.2 → 0.8.0
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/.gitignore +1 -0
- data/English.gemspec +2 -2
- data/Gemfile +1 -3
- data/README.md +1 -1
- data/Rakefile +0 -9
- data/lib/English.rb +21 -39
- metadata +3 -4
- data/Gemfile.lock +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1495bc71dd6882ff8cdc97915e995311daa1bf65d332f068abb47e0888a5ab33
|
4
|
+
data.tar.gz: 5bda272c7c6878de990c20939ffd686dcb38d0d69fe4ef8d8afad01bf11991ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7593e1b15d40b7f13a3cc3007098b6da325ad5ad63ec205a50b983d26f9ebc987f4964e3f32136b2340fb33cbdec38cb80c5c07713ed7a30b0d6957925de2d59
|
7
|
+
data.tar.gz: a3c2cc22db1c9daaba001b546578e949e7e42cb93f5fbf13fe30c602b5e8fc1284bed5a2916874fc13eeacc0a4b5bf8fa6c3be76b0c7657dad6b0863d423b89e
|
data/.gitignore
CHANGED
data/English.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "english"
|
3
|
-
spec.version = "0.
|
3
|
+
spec.version = "0.8.0"
|
4
4
|
spec.authors = ["Yukihiro Matsumoto"]
|
5
5
|
spec.email = ["matz@ruby-lang.org"]
|
6
6
|
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
# Specify which files should be added to the gem when it is released.
|
17
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
18
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
|
-
`git ls-files -z 2
|
19
|
+
`git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
20
|
end
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
end
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
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':
|
@@ -39,7 +39,6 @@
|
|
39
39
|
# $PROCESS_ID:: $$
|
40
40
|
# $CHILD_STATUS:: $?
|
41
41
|
# $LAST_MATCH_INFO:: $~
|
42
|
-
# $IGNORECASE:: $=
|
43
42
|
# $ARGV:: $*
|
44
43
|
# $MATCH:: $&
|
45
44
|
# $PREMATCH:: $`
|
@@ -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,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: english
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yukihiro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Require 'English.rb' to reference global variables with less cryptic
|
14
14
|
names.
|
@@ -21,7 +21,6 @@ files:
|
|
21
21
|
- ".gitignore"
|
22
22
|
- English.gemspec
|
23
23
|
- Gemfile
|
24
|
-
- Gemfile.lock
|
25
24
|
- LICENSE.txt
|
26
25
|
- README.md
|
27
26
|
- Rakefile
|
@@ -50,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
49
|
- !ruby/object:Gem::Version
|
51
50
|
version: '0'
|
52
51
|
requirements: []
|
53
|
-
rubygems_version: 3.
|
52
|
+
rubygems_version: 3.5.0.dev
|
54
53
|
signing_key:
|
55
54
|
specification_version: 4
|
56
55
|
summary: Require 'English.rb' to reference global variables with less cryptic names.
|
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
|