english 0.7.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b25123b56a0be48df65ddb54ce410a0d6a53a4a467f67d5f6a24e2b97067f63
4
- data.tar.gz: 24e671e12aae901bb83c92bffea3d3e8b38578bd44a0e12ff05ced9d4ccf7951
3
+ metadata.gz: 1495bc71dd6882ff8cdc97915e995311daa1bf65d332f068abb47e0888a5ab33
4
+ data.tar.gz: 5bda272c7c6878de990c20939ffd686dcb38d0d69fe4ef8d8afad01bf11991ae
5
5
  SHA512:
6
- metadata.gz: 017e64129f69496a945fdbc32445b9babf543956c8908d562fc67d874ba4412a9c82957b11989c60d3410b00338ea83a6dd93263695c32ecbe2172a9818ee354
7
- data.tar.gz: 0461c83f11f2362bc1a4cf39976a26beb919b890059bc266264e2b560f68fb1a259e61e63eb3b59ff2db934625606305a1b127f823e7688512f32f09bb77ef91
6
+ metadata.gz: 7593e1b15d40b7f13a3cc3007098b6da325ad5ad63ec205a50b983d26f9ebc987f4964e3f32136b2340fb33cbdec38cb80c5c07713ed7a30b0d6957925de2d59
7
+ data.tar.gz: a3c2cc22db1c9daaba001b546578e949e7e42cb93f5fbf13fe30c602b5e8fc1284bed5a2916874fc13eeacc0a4b5bf8fa6c3be76b0c7657dad6b0863d423b89e
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /Gemfile.lock
data/English.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "english"
3
- spec.version = "0.7.2"
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>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
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
@@ -1,7 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in English.gemspec
4
3
  gemspec
5
4
 
6
- gem "rake", "~> 12.0"
7
- gem "minitest", "~> 5.0"
5
+ gem "rake"
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 <tt>$_</tt> using less
4
+ reference the global variables such as <code>$_</code> using less
5
5
  cryptic names, listed below.
6
6
 
7
7
  ## Installation
data/Rakefile CHANGED
@@ -1,10 +1 @@
1
1
  require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
8
- end
9
-
10
- task :default => :test
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 <tt>$_</tt> using less
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 <tt>-F</tt> flag.
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 <tt>$_</tt> by default. The variable is
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
- # <tt>$stdout</tt>.
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 <tt>$stdin</tt>
100
+ # given as command-line arguments, or <code>$stdin</code>
114
101
  # (in the case where there are no
115
- # arguments). <tt>$<</tt> supports methods similar to a
102
+ # arguments). <code>$<</code> supports methods similar to a
116
103
  # File object:
117
104
  # +inmode+, +close+,
118
- # <tt>closed?</tt>, +each+,
119
- # <tt>each_byte</tt>, <tt>each_line</tt>,
120
- # +eof+, <tt>eof?</tt>, +file+,
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
- # <tt>lineno=</tt>, +path+,
124
- # +pos+, <tt>pos=</tt>,
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+, <tt>to_a</tt>, <tt>to_i</tt>,
129
- # <tt>to_io</tt>, <tt>to_s</tt>, along with the
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 <tt>$<</tt> reads
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 <tt>$&</tt>, <tt>$`</tt>, <tt>$'</tt>,
148
- # and <tt>$1</tt> to <tt>$9</tt> are all derived from
149
- # <tt>$~</tt>. Assigning to <tt>$~</tt> changes the values of these
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 <tt>"cat" =~ /(c|a)(t|z)/</tt>,
180
- # <tt>$+</tt> will be set to "t". This variable is local to the
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.7.2
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: 2022-12-14 00:00:00.000000000 Z
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.4.0.dev
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