sub_string 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +5 -0
- data/Makefile +2 -1
- data/README.en.rdoc +2 -0
- data/sub_string.gemspec +4 -4
- metadata +2 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f24f4330db4751b15479abc163eeb99fa4eb124f51d2cfc6f1aa2c0b16f254e
|
4
|
+
data.tar.gz: 5830d4ec1033b1ba826d0d3dc1d0eaf6eb7b28570d1bdc2dc8989dda55f9aea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6175f5ec4bf07a048cb8abc5a8924e2ae7f55a0af85fbc55f6b1e988f88d1af8c6bd73130b84bd1b4a8b6138a421a2784bf428ddef3e5ffe204fac453389c82
|
7
|
+
data.tar.gz: e4bb38538824eaecab3962d13144daae32db992122216d70dc0a6cd73a60bbf01f6f56a4f5f54e13a7f4aa54b25bb8f5c4a9155cdd5daefddcc5390c87522d12
|
data/ChangeLog
CHANGED
data/Makefile
CHANGED
@@ -18,6 +18,7 @@ clean:
|
|
18
18
|
test:
|
19
19
|
rake test
|
20
20
|
|
21
|
+
## yard2md_afterclean in Gem plain_text https://rubygems.org/gems/plain_text
|
21
22
|
doc:
|
22
|
-
yard doc; [[ -x ".github" && ( "README.en.rdoc" -nt ".github/README.md" ) ]] && ( ruby -r rdoc -e 'puts RDoc::Markup::ToMarkdown.new.convert ARGF.read' < README.en.rdoc > .github/README.md ; echo ".github/README.md is updated." ) || exit 0
|
23
|
+
yard doc; [[ -x ".github" && ( "README.en.rdoc" -nt ".github/README.md" ) ]] && ( ruby -r rdoc -e 'puts RDoc::Markup::ToMarkdown.new.convert ARGF.read' < README.en.rdoc | yard2md_afterclean > .github/README.md ; echo ".github/README.md is updated." ) || exit 0
|
23
24
|
|
data/README.en.rdoc
CHANGED
@@ -160,6 +160,8 @@ Or, alternatively, download them and put the library files in one of your Ruby l
|
|
160
160
|
The master of this README file is found in
|
161
161
|
{RubyGems/sub_object}[https://rubygems.org/gems/sub_object]
|
162
162
|
|
163
|
+
ChangeLog is found in {Github}[https://github.com/masasakano/sub_string/blob/master/ChangeLog]
|
164
|
+
|
163
165
|
=== Tests
|
164
166
|
|
165
167
|
Ruby codes under the directory <tt>test/</tt> are the test scripts.
|
data/sub_string.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'date'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'sub_string'.sub(/.*/){|c| (c == File.basename(Dir.pwd)) ? c : raise("ERROR: s.name=(#{c}) in gemspec seems wrong!")}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.2".sub(/.*/){|c| fs = Dir.glob('changelog{,.*}', File::FNM_CASEFOLD); raise('More than one ChangeLog exist!') if fs.size > 1; warn("WARNING: Version(s.version=#{c}) already exists in #{fs[0]} - ok?") if fs.size == 1 && !IO.readlines(fs[0]).grep(/^\(Version: #{Regexp.quote c}\)$/).empty? ; c } # n.b., In macOS, changelog and ChangeLog are identical in default.
|
9
9
|
# s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
10
10
|
# s.bindir = 'bin'
|
11
11
|
# %w(sub_string).each do |f|
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
# File.executable?(path) ? s.executables << f : raise("ERROR: Executable (#{path}) is not executable!")
|
14
14
|
# end
|
15
15
|
s.authors = ["Masa Sakano"]
|
16
|
-
s.date = %q{2019-11-
|
16
|
+
s.date = %q{2019-11-07}.sub(/.*/){|c| (Date.parse(c) == Date.today) ? c : raise("ERROR: s.date=(#{c}) is not today!")}
|
17
17
|
s.summary = %q{Duck-typed String class with negligible memory use}
|
18
18
|
s.description = <<-EOF
|
19
19
|
Class SubString that expresses Ruby sub-String but taking up negligible memory space, as its instance holds the positional information only. It behaves exactly like String (duck-typing), except destructive modification is prohibited. If the original string is destructively altered, warning is issued.
|
@@ -51,8 +51,8 @@ Gem::Specification.new do |s|
|
|
51
51
|
|
52
52
|
## cf. https://guides.rubygems.org/specification-reference/#metadata
|
53
53
|
s.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs.
|
54
|
-
s.metadata["changelog_uri"] = "https://github.com/masasakano/sub_string/blob/master/ChangeLog"
|
55
|
-
s.metadata["source_code_uri"] = "https://github.com/masasakano/sub_string"
|
54
|
+
# s.metadata["changelog_uri"] = "https://github.com/masasakano/sub_string/blob/master/ChangeLog"
|
55
|
+
# s.metadata["source_code_uri"] = "https://github.com/masasakano/sub_string"
|
56
56
|
# s.metadata["documentation_uri"] = "https://www.example.info/gems/bestgemever/0.0.1"
|
57
57
|
end
|
58
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sub_string
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masa Sakano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sub_object
|
@@ -48,8 +48,6 @@ licenses:
|
|
48
48
|
- MIT
|
49
49
|
metadata:
|
50
50
|
yard.run: yri
|
51
|
-
changelog_uri: https://github.com/masasakano/sub_string/blob/master/ChangeLog
|
52
|
-
source_code_uri: https://github.com/masasakano/sub_string
|
53
51
|
post_install_message:
|
54
52
|
rdoc_options:
|
55
53
|
- "--charset=UTF-8"
|