char_detector 0.1.0 → 0.1.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
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65f7fd5b56afb4495f46814a0b0fe7eca1926667db335156cae6e11d34252cd6
4
- data.tar.gz: 6aab56d1925f648341ff07fcc1ceadfa3c60a06116cfb59cd7796ce21c10d857
3
+ metadata.gz: bee172d7cfc38714ed519dfa6f709ddf52d1ffdc0c40bc23cf0480b545d865e7
4
+ data.tar.gz: 636ba79305d27b11734a4e10644cf226364f0464423a4c4be9b6f75e50829426
5
5
  SHA512:
6
- metadata.gz: 4cacc22143704d0fc681ef46437c3439762026492969ca17e6ddf87b9e9032e41b66972c9dcce3b9f8c340929fce4606f5b1a34f271c2cfd9afb17c67547350b
7
- data.tar.gz: 7137b411dc9496836e8be43d1c74d8855ccddfebc71b5a5411bf04cd07571f0aaaa383324a660a8ad31e93c086392ff1ecd98a3b53619c98bee017fc1aefc403
6
+ metadata.gz: 9566d3608f20d782b16e5abc63252c98efebae4436371a730fa47a4417f6dac4e91781f7287febff42793b7ffb5771a0a0f19b2d2bd55437a78e7077527b5182
7
+ data.tar.gz: c16121f0a6b0ec8fc277d718bee151ff34901870a6506c9226fd71231513bbd8e9ac68d6f1834180cd7209d0686fd3b6842bd02ecd1e2d3a45867888b70c922e
@@ -15,6 +15,11 @@ jobs:
15
15
  matrix:
16
16
  ruby:
17
17
  - '3.1.1'
18
+ - '3.0.0'
19
+ - '2.7.2'
20
+ - '2.6.1'
21
+ - '2.5.1'
22
+ - '2.4.6'
18
23
 
19
24
  steps:
20
25
  - uses: actions/checkout@v2
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- ruby File.read('.ruby-version')
4
-
5
3
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- char_detector (0.1.0)
4
+ char_detector (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -28,8 +28,7 @@ GEM
28
28
  rspec-support (3.11.0)
29
29
 
30
30
  PLATFORMS
31
- x86_64-darwin-20
32
- x86_64-linux
31
+ ruby
33
32
 
34
33
  DEPENDENCIES
35
34
  char_detector!
@@ -37,8 +36,5 @@ DEPENDENCIES
37
36
  rake
38
37
  rspec
39
38
 
40
- RUBY VERSION
41
- ruby 3.1.1p18
42
-
43
39
  BUNDLED WITH
44
40
  2.3.7
data/README.md CHANGED
@@ -33,14 +33,13 @@ Ref: [ASCII table , ascii codes](https://theasciicode.com.ar/)
33
33
 
34
34
  + TODO refactor
35
35
  + TODO add features(If I have more requirements)
36
- + TODO format output(refer to rubocop's output) Thanks Freebird
36
+ + TODO [format output(refer to rubocop's output) Thanks Freebird](https://github.com/liijunwei/char_detector/issues/5)
37
+ + TODO [Improve compatibility](https://github.com/liijunwei/char_detector/issues/4)
37
38
 
38
39
  ## Installation(WIP)
39
40
 
40
41
  Add this line to your application's Gemfile:
41
42
 
42
- + TODO publish this gem to https://rubygems.org/
43
-
44
43
  ```ruby
45
44
  gem 'char_detector'
46
45
  ```
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.description = %q{Initially used for detecting control character in markdown/ruby file.}
11
11
  spec.homepage = "https://github.com/liijunwei/char_detector"
12
12
  spec.license = "MIT"
13
- spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
14
 
15
15
  spec.metadata["allowed_push_host"] = "https://rubygems.org/"
16
16
 
@@ -26,7 +26,7 @@ class CharDetector::Engine
26
26
 
27
27
  def trim_newline(line)
28
28
  if line.end_with?("\n")
29
- line[...-1]
29
+ line[0..-2]
30
30
  else
31
31
  line
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module CharDetector
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: char_detector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lijunwei
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 2.7.0
99
+ version: 2.3.0
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="