encoding_checker 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class EncodingChecker
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -22,7 +22,7 @@ class EncodingChecker
22
22
  line_errors << CharacterMatch.new(index, char)
23
23
  end
24
24
  end
25
- errors << LineMatch.new(line_index, line.strip, line_errors)
25
+ errors << LineMatch.new(line_index, line.force_encoding('utf-8').strip, line_errors)
26
26
  end
27
27
  end
28
28
  Match.new(@encoding, errors)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: encoding_checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-14 00:00:00.000000000 Z
12
+ date: 2012-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70365888012520 !ruby/object:Gem::Requirement
16
+ requirement: &70224091166300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.8.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70365888012520
24
+ version_requirements: *70224091166300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70365888012080 !ruby/object:Gem::Requirement
27
+ requirement: &70224091165180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70365888012080
35
+ version_requirements: *70224091165180
36
36
  description: This gem will helps you identify lines and characters of the text which
37
37
  are invalid for particular encoding
38
38
  email: