rubysl-strscan 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/.travis.yml +9 -2
- data/lib/rubysl/strscan/strscan.rb +3 -3
- data/lib/rubysl/strscan/version.rb +1 -1
- data/rubysl-strscan.gemspec +3 -0
- data/spec/scan_spec.rb +0 -2
- metadata +58 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
|
4
|
-
|
5
|
-
SHA512:
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
data.tar.gz: 86d2f756870ff5555608e9ad9ff389594bcc6bd8
|
4
|
+
metadata.gz: 4964541b7f54ec9bf7018a4ff26637ca8106a4ef
|
5
|
+
SHA512:
|
6
|
+
data.tar.gz: 6547290182625d15d4e1dc3b3f811748a0a234fa8503f5213beb83e64790f301910f8856e2fa5d0f2a24592ad20d424a9f1e054d18c5558df7799342f26612c1
|
7
|
+
metadata.gz: 715aaf7766f012022d9bab9bedbe65bcd8b21c84318960b14d50d6d1386f024811f72c94257815cc3fc8774ece1787791c87e78eb2342a9e3ce99a21dff7d0a9
|
data/.travis.yml
CHANGED
@@ -146,7 +146,7 @@ class StringScanner
|
|
146
146
|
end
|
147
147
|
|
148
148
|
def pre_match
|
149
|
-
@string.
|
149
|
+
@string.slice(0, match.full.at(0)) if @match
|
150
150
|
end
|
151
151
|
|
152
152
|
def reset_state
|
@@ -161,7 +161,7 @@ class StringScanner
|
|
161
161
|
end
|
162
162
|
|
163
163
|
def rest
|
164
|
-
@string.
|
164
|
+
@string.slice(@pos, @string.bytesize - @pos)
|
165
165
|
end
|
166
166
|
|
167
167
|
def rest?
|
@@ -280,7 +280,7 @@ class StringScanner
|
|
280
280
|
|
281
281
|
return width unless getstr
|
282
282
|
|
283
|
-
@string.
|
283
|
+
@string.slice(@prev_pos, width)
|
284
284
|
end
|
285
285
|
private :_scan
|
286
286
|
end
|
data/rubysl-strscan.gemspec
CHANGED
@@ -16,7 +16,10 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
|
+
spec.required_ruby_version = "~> 1.8.7"
|
20
|
+
|
19
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
20
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
21
23
|
spec.add_development_dependency "mspec", "~> 1.5"
|
24
|
+
spec.add_development_dependency "rubysl-prettyprint", "~> 1.0"
|
22
25
|
end
|
data/spec/scan_spec.rb
CHANGED
metadata
CHANGED
@@ -1,64 +1,66 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-strscan
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
|
12
|
+
date: 2014-06-17 00:00:00 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.3'
|
20
|
-
type: :development
|
21
16
|
prerelease: false
|
22
|
-
|
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:
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
31
19
|
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: "1.3"
|
34
22
|
type: :development
|
23
|
+
version_requirements: *id001
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: rake
|
35
26
|
prerelease: false
|
36
|
-
|
37
|
-
requirements:
|
27
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
38
29
|
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: "10.0"
|
32
|
+
type: :development
|
33
|
+
version_requirements: *id002
|
34
|
+
- !ruby/object:Gem::Dependency
|
42
35
|
name: mspec
|
43
|
-
|
44
|
-
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
45
39
|
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version:
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: "1.5"
|
48
42
|
type: :development
|
43
|
+
version_requirements: *id003
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: rubysl-prettyprint
|
49
46
|
prerelease: false
|
50
|
-
|
51
|
-
requirements:
|
47
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
52
49
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version:
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: "1.0"
|
52
|
+
type: :development
|
53
|
+
version_requirements: *id004
|
55
54
|
description: Ruby standard library strscan.
|
56
|
-
email:
|
55
|
+
email:
|
57
56
|
- brixen@gmail.com
|
58
57
|
executables: []
|
58
|
+
|
59
59
|
extensions: []
|
60
|
+
|
60
61
|
extra_rdoc_files: []
|
61
|
-
|
62
|
+
|
63
|
+
files:
|
62
64
|
- .gitignore
|
63
65
|
- .travis.yml
|
64
66
|
- Gemfile
|
@@ -123,30 +125,33 @@ files:
|
|
123
125
|
- spec/terminate_spec.rb
|
124
126
|
- spec/unscan_spec.rb
|
125
127
|
homepage: https://github.com/rubysl/rubysl-strscan
|
126
|
-
licenses:
|
128
|
+
licenses:
|
127
129
|
- BSD
|
128
130
|
metadata: {}
|
131
|
+
|
129
132
|
post_install_message:
|
130
133
|
rdoc_options: []
|
131
|
-
|
134
|
+
|
135
|
+
require_paths:
|
132
136
|
- lib
|
133
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- -
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version:
|
138
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
-
requirements:
|
140
|
-
- -
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version:
|
137
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 1.8.7
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: "0"
|
143
147
|
requirements: []
|
148
|
+
|
144
149
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.0
|
150
|
+
rubygems_version: 2.3.0
|
146
151
|
signing_key:
|
147
152
|
specification_version: 4
|
148
153
|
summary: Ruby standard library strscan.
|
149
|
-
test_files:
|
154
|
+
test_files:
|
150
155
|
- spec/append_spec.rb
|
151
156
|
- spec/beginning_of_line_spec.rb
|
152
157
|
- spec/bol_spec.rb
|