encoding_checker 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,8 @@ class EncodingChecker
22
22
  line_errors << CharacterMatch.new(index, char)
23
23
  end
24
24
  end
25
- errors << LineMatch.new(line_index, line.force_encoding('utf-8').strip, line_errors)
25
+ stripped_line = line.force_encoding('utf-8').strip rescue line
26
+ errors << LineMatch.new(line_index, stripped_line, line_errors)
26
27
  end
27
28
  end
28
29
  Match.new(@encoding, errors)
@@ -1,3 +1,3 @@
1
1
  class EncodingChecker
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
4
+ version: 0.0.4
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-04-11 00:00:00.000000000 Z
12
+ date: 2012-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70224091166300 !ruby/object:Gem::Requirement
16
+ requirement: &70265883211120 !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: *70224091166300
24
+ version_requirements: *70265883211120
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70224091165180 !ruby/object:Gem::Requirement
27
+ requirement: &70265883210100 !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: *70224091165180
35
+ version_requirements: *70265883210100
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: