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 CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f4200d0f56475b659a5460631c71d16c4fae6b8e
4
- data.tar.gz: ed5788af588ec949556a0bd826377d12b638d362
5
- SHA512:
6
- metadata.gz: 3ed31472f343021f4e9a5509f26c72b3f0830ea0030939f63174c496320641a324f2b3d33db0ec4f3135d4393fcb8867a8c7a9eeb8bd2dc4f6550fec5661d26e
7
- data.tar.gz: 5ee46b380ad0ab22cced43a2a06aeadc104dfcc4271ccc0f396c4b881c4a0623e93fc3736311703a776c4fe78ff28a8ab4465da6c9ea63ae3885047d5d7af1e4
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: 86d2f756870ff5555608e9ad9ff389594bcc6bd8
4
+ metadata.gz: 4964541b7f54ec9bf7018a4ff26637ca8106a4ef
5
+ SHA512:
6
+ data.tar.gz: 6547290182625d15d4e1dc3b3f811748a0a234fa8503f5213beb83e64790f301910f8856e2fa5d0f2a24592ad20d424a9f1e054d18c5558df7799342f26612c1
7
+ metadata.gz: 715aaf7766f012022d9bab9bedbe65bcd8b21c84318960b14d50d6d1386f024811f72c94257815cc3fc8774ece1787791c87e78eb2342a9e3ce99a21dff7d0a9
@@ -1,7 +1,14 @@
1
1
  language: ruby
2
2
  env:
3
3
  - RUBYLIB=lib
4
- script: bundle exec mspec
4
+ - RUBYLIB=
5
+ script: mspec spec
5
6
  rvm:
6
7
  - 1.8.7
7
- - rbx-nightly-18mode
8
+ - rbx-1
9
+ matrix:
10
+ exclude:
11
+ - rvm: 1.8.7
12
+ env: RUBYLIB=lib
13
+ - rvm: rbx-1
14
+ env: RUBYLIB=
@@ -146,7 +146,7 @@ class StringScanner
146
146
  end
147
147
 
148
148
  def pre_match
149
- @string.byteslice(0, match.full.at(0)) if @match
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.byteslice(@pos, @string.bytesize - @pos)
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.byteslice(@prev_pos, width)
283
+ @string.slice(@prev_pos, width)
284
284
  end
285
285
  private :_scan
286
286
  end
@@ -1,5 +1,5 @@
1
1
  module RubySL
2
2
  module StringScanner
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -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
@@ -1,6 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
-
3
- require File.expand_path('../../../spec_helper', __FILE__)
4
2
  require 'strscan'
5
3
 
6
4
  describe "StringScanner#scan" do
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.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
- date: 2013-08-27 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
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
- 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:
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
31
19
  - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '10.0'
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
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
27
+ requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirements:
38
29
  - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '10.0'
41
- - !ruby/object:Gem::Dependency
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
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
36
+ prerelease: false
37
+ requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirements:
45
39
  - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '1.5'
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
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
47
+ requirement: &id004 !ruby/object:Gem::Requirement
48
+ requirements:
52
49
  - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '1.5'
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
- files:
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
- require_paths:
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: '0'
138
- required_rubygems_version: !ruby/object:Gem::Requirement
139
- requirements:
140
- - - '>='
141
- - !ruby/object:Gem::Version
142
- version: '0'
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.7
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