rubysl-english 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e280cf4a9f0026bdb53630862a6b1fc39ed8f06d
4
+ data.tar.gz: 5ee7e66d984b51d314473724c48a17db9f858597
5
+ SHA512:
6
+ metadata.gz: 4634a679a33a5ef345adc1f436fcd2a6187b236920dd719fbd238cd06ecc1276b4b1529f400aa237ee9d6b2ab4ed88a137898637b3b32e2fff316cae168ff041
7
+ data.tar.gz: 551c48b750f1eed6a80ffad345acf595dbb6c71e4f291ad793d211502112021224703253e0ebedc6fd40807eb3c9910295b88ec293dabd10a6fff6a7cb75e150
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ before_install:
3
+ - gem update --system
4
+ - gem --version
5
+ - gem install rubysl-bundler
6
+ script: bundle exec mspec spec
7
+ rvm:
8
+ - rbx-nightly-18mode
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rubysl-english.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,25 @@
1
+ Copyright (c) 2013, Brian Shirai
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+ 2. Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
+ 3. Neither the name of the library nor the names of its contributors may be
13
+ used to endorse or promote products derived from this software without
14
+ specific prior written permission.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT,
20
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Rubysl::English
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'rubysl-english'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install rubysl-english
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/lib/English.rb ADDED
@@ -0,0 +1 @@
1
+ require "rubysl/english"
@@ -0,0 +1,2 @@
1
+ require "rubysl/english/English"
2
+ require "rubysl/english/version"
@@ -0,0 +1,155 @@
1
+ # Include the English library file in a Ruby script, and you can
2
+ # reference the global variables such as \VAR{\$\_} using less
3
+ # cryptic names, listed in the following table.% \vref{tab:english}.
4
+ #
5
+ # Without 'English':
6
+ #
7
+ # $\ = ' -- '
8
+ # "waterbuffalo" =~ /buff/
9
+ # print $", $', $$, "\n"
10
+ #
11
+ # With English:
12
+ #
13
+ # require "English"
14
+ #
15
+ # $OUTPUT_FIELD_SEPARATOR = ' -- '
16
+ # "waterbuffalo" =~ /buff/
17
+ # print $LOADED_FEATURES, $POSTMATCH, $PID, "\n"
18
+
19
+
20
+ # The exception object passed to +raise+.
21
+ alias $ERROR_INFO $!
22
+
23
+ # The stack backtrace generated by the last
24
+ # exception. <tt>See Kernel.caller</tt> for details. Thread local.
25
+ alias $ERROR_POSITION $@
26
+
27
+ # The default separator pattern used by <tt>String.split</tt>. May be
28
+ # set from the command line using the <tt>-F</tt> flag.
29
+ alias $FS $;
30
+
31
+ # The default separator pattern used by <tt>String.split</tt>. May be
32
+ # set from the command line using the <tt>-F</tt> flag.
33
+ alias $FIELD_SEPARATOR $;
34
+
35
+ # The separator string output between the parameters to methods such
36
+ # as <tt>Kernel.print</tt> and <tt>Array.join</tt>. Defaults to +nil+,
37
+ # which adds no text.
38
+ alias $OFS $,
39
+
40
+ # The separator string output between the parameters to methods such
41
+ # as <tt>Kernel.print</tt> and <tt>Array.join</tt>. Defaults to +nil+,
42
+ # which adds no text.
43
+ alias $OUTPUT_FIELD_SEPARATOR $,
44
+
45
+ # The input record separator (newline by default). This is the value
46
+ # that routines such as <tt>Kernel.gets</tt> use to determine record
47
+ # boundaries. If set to +nil+, +gets+ will read the entire file.
48
+ alias $RS $/
49
+
50
+ # The input record separator (newline by default). This is the value
51
+ # that routines such as <tt>Kernel.gets</tt> use to determine record
52
+ # boundaries. If set to +nil+, +gets+ will read the entire file.
53
+ alias $INPUT_RECORD_SEPARATOR $/
54
+
55
+ # The string appended to the output of every call to methods such as
56
+ # <tt>Kernel.print</tt> and <tt>IO.write</tt>. The default value is
57
+ # +nil+.
58
+ alias $ORS $\
59
+
60
+ # The string appended to the output of every call to methods such as
61
+ # <tt>Kernel.print</tt> and <tt>IO.write</tt>. The default value is
62
+ # +nil+.
63
+ alias $OUTPUT_RECORD_SEPARATOR $\
64
+
65
+ # The number of the last line read from the current input file.
66
+ alias $INPUT_LINE_NUMBER $.
67
+
68
+ # The number of the last line read from the current input file.
69
+ alias $NR $.
70
+
71
+ # The last line read by <tt>Kernel.gets</tt> or
72
+ # <tt>Kernel.readline</tt>. Many string-related functions in the
73
+ # +Kernel+ module operate on <tt>$_</tt> by default. The variable is
74
+ # local to the current scope. Thread local.
75
+ alias $LAST_READ_LINE $_
76
+
77
+ # The destination of output for <tt>Kernel.print</tt>
78
+ # and <tt>Kernel.printf</tt>. The default value is
79
+ # <tt>$stdout</tt>.
80
+ alias $DEFAULT_OUTPUT $>
81
+
82
+ # An object that provides access to the concatenation
83
+ # of the contents of all the files
84
+ # given as command-line arguments, or <tt>$stdin</tt>
85
+ # (in the case where there are no
86
+ # arguments). <tt>$<</tt> supports methods similar to a
87
+ # +File+ object:
88
+ # +inmode+, +close+,
89
+ # <tt>closed?</tt>, +each+,
90
+ # <tt>each_byte</tt>, <tt>each_line</tt>,
91
+ # +eof+, <tt>eof?</tt>, +file+,
92
+ # +filename+, +fileno+,
93
+ # +getc+, +gets+, +lineno+,
94
+ # <tt>lineno=</tt>, +path+,
95
+ # +pos+, <tt>pos=</tt>,
96
+ # +read+, +readchar+,
97
+ # +readline+, +readlines+,
98
+ # +rewind+, +seek+, +skip+,
99
+ # +tell+, <tt>to_a</tt>, <tt>to_i</tt>,
100
+ # <tt>to_io</tt>, <tt>to_s</tt>, along with the
101
+ # methods in +Enumerable+. The method +file+
102
+ # returns a +File+ object for the file currently
103
+ # being read. This may change as <tt>$<</tt> reads
104
+ # through the files on the command line. Read only.
105
+ alias $DEFAULT_INPUT $<
106
+
107
+ # The process number of the program being executed. Read only.
108
+ alias $PID $$
109
+
110
+ # The process number of the program being executed. Read only.
111
+ alias $PROCESS_ID $$
112
+
113
+ # The exit status of the last child process to terminate. Read
114
+ # only. Thread local.
115
+ alias $CHILD_STATUS $?
116
+
117
+ # A +MatchData+ object that encapsulates the results of a successful
118
+ # pattern match. The variables <tt>$&</tt>, <tt>$`</tt>, <tt>$'</tt>,
119
+ # and <tt>$1</tt> to <tt>$9</tt> are all derived from
120
+ # <tt>$~</tt>. Assigning to <tt>$~</tt> changes the values of these
121
+ # derived variables. This variable is local to the current
122
+ # scope. Thread local.
123
+ alias $LAST_MATCH_INFO $~
124
+
125
+ # If set to any value apart from +nil+ or +false+, all pattern matches
126
+ # will be case insensitive, string comparisons will ignore case, and
127
+ # string hash values will be case insensitive. Deprecated
128
+ alias $IGNORECASE $=
129
+
130
+ # An array of strings containing the command-line
131
+ # options from the invocation of the program. Options
132
+ # used by the Ruby interpreter will have been
133
+ # removed. Read only. Also known simply as +ARGV+.
134
+ alias $ARGV $*
135
+
136
+ # The string matched by the last successful pattern
137
+ # match. This variable is local to the current
138
+ # scope. Read only. Thread local.
139
+ alias $MATCH $&
140
+
141
+ # The string preceding the match in the last
142
+ # successful pattern match. This variable is local to
143
+ # the current scope. Read only. Thread local.
144
+ alias $PREMATCH $`
145
+
146
+ # The string following the match in the last
147
+ # successful pattern match. This variable is local to
148
+ # the current scope. Read only. Thread local.
149
+ alias $POSTMATCH $'
150
+
151
+ # The contents of the highest-numbered group matched in the last
152
+ # successful pattern match. Thus, in <tt>"cat" =~ /(c|a)(t|z)/</tt>,
153
+ # <tt>$+</tt> will be set to "t". This variable is local to the
154
+ # current scope. Read only. Thread local.
155
+ alias $LAST_PAREN_MATCH $+
@@ -0,0 +1,5 @@
1
+ module RubySL
2
+ module English
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ require './lib/rubysl/english/version'
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "rubysl-english"
6
+ spec.version = RubySL::English::VERSION
7
+ spec.authors = ["Brian Shirai"]
8
+ spec.email = ["brixen@gmail.com"]
9
+ spec.description = %q{Ruby standard library english.}
10
+ spec.summary = %q{Ruby standard library english.}
11
+ spec.homepage = "https://github.com/rubysl/rubysl-english"
12
+ spec.license = "BSD"
13
+
14
+ spec.files = `git ls-files`.split($/)
15
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ["lib"]
18
+
19
+ spec.add_development_dependency "bundler", "~> 1.3"
20
+ spec.add_development_dependency "rake", "~> 10.0"
21
+ spec.add_development_dependency "mspec", "~> 1.5"
22
+ spec.add_development_dependency "rubysl-prettyprint", "~> 1.0"
23
+ end
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubysl-english
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-12-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: mspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubysl-prettyprint
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ description: Ruby standard library english.
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/English.rb
83
+ - lib/rubysl/english.rb
84
+ - lib/rubysl/english/English.rb
85
+ - lib/rubysl/english/version.rb
86
+ - rubysl-english.gemspec
87
+ homepage: https://github.com/rubysl/rubysl-english
88
+ licenses:
89
+ - BSD
90
+ metadata: {}
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.0.7
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: Ruby standard library english.
111
+ test_files: []