string_scrubber 0.2.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: cfd4cd981ca09c1f43d73ed3421197e1fe5272ca
4
- data.tar.gz: 238a992d57fdef0ef6807188b73abac6ba927f2b
3
+ metadata.gz: 11e66b5e2293630ec7409da1e20aa9be12ef8c4e
4
+ data.tar.gz: d4ff48072bce59cdc29f80eb96bcbf0860fcdbaf
5
5
  SHA512:
6
- metadata.gz: 9be967a037ac759ba0c0b4cc575e40df5a8f85d1468e3a74b8916b736f90b7c8e91c6d541a36a8d39facf968e1604f1b98d187f045b80ed0b70a47ed8fb8316c
7
- data.tar.gz: b8965693d3c17e837a9d6569d27ea88aeedf09013019e06a7052ccf73ff7fbb0576d023c432c175b1a8daf4438be8fef43067fb14fb8f2b32c1776ae7740bfdb
6
+ metadata.gz: 04f741650e0e78427b2ec1d8e9dc408ff16bfb4fe56dd60f3112c2716f14adf6fdfaab41ec1efb6a4dbd6531618fe8b09e2944a9e115288276457f6caf0898f2
7
+ data.tar.gz: 93b4e5c9d405c4920317c15411923fa4b1b3b460bd08570207da114e9c239778ec2cd73ee066bc55714f71f8855d162ea52116948f383685b67600a91640d1b8
data/README.md CHANGED
@@ -31,7 +31,7 @@ See the specs for a typical example string.
31
31
  Add this line to your application's Gemfile:
32
32
 
33
33
  ```ruby
34
- gem 'MoJ_IRAT_string_scrubber'
34
+ gem 'string_scrubber'
35
35
  ```
36
36
 
37
37
  And then execute:
@@ -40,7 +40,7 @@ And then execute:
40
40
 
41
41
  Or install it yourself as:
42
42
 
43
- $ gem install MoJ_IRAT_string_scrubber
43
+ $ gem install string_scrubber
44
44
 
45
45
  ## Usage
46
46
 
@@ -54,7 +54,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
54
54
 
55
55
  ## Contributing
56
56
 
57
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/MoJ_IRAT_string_scrubber.
57
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ministryofjustice/string_scrubber.
58
58
 
59
59
  ## License
60
60
 
@@ -1,5 +1,5 @@
1
1
  require 'string_scrubber/version'
2
- require 'string-scrub' if RUBY_VERSION[/^2\.0/]
2
+ require 'string-scrub' unless String.respond_to?(:scrub!)
3
3
 
4
4
  module StringScrubber
5
5
  def to_json(options = nil)
@@ -9,8 +9,4 @@ module StringScrubber
9
9
  end
10
10
  end
11
11
 
12
- if RUBY_VERSION[/^2\.0/].nil?
13
- String.prepend(StringScrubber)
14
- else
15
- String.send :prepend, StringScrubber
16
- end
12
+ String.send :prepend, StringScrubber
@@ -1,3 +1,3 @@
1
1
  module StringScrubber
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ["lib"]
27
27
 
28
- spec.add_runtime_dependency "string-scrub", "~> 0.0.5" if RUBY_VERSION[/^2\.0/]
28
+ spec.add_runtime_dependency "string-scrub", "~> 0.0.5" unless String.respond_to?(:scrub!)
29
29
 
30
30
  spec.add_development_dependency "bundler", "~> 1.10"
31
31
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_scrubber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Tyree
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-12 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: string-scrub
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.0.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.0.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.10'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.8'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.8'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0.10'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.10'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: codeclimate-test-reporter
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.4'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.4'
111
111
  description: Logstasher fails if controller params are not properly encoded. This
@@ -116,9 +116,9 @@ executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
- - .gitignore
120
- - .rspec
121
- - .travis.yml
119
+ - ".gitignore"
120
+ - ".rspec"
121
+ - ".travis.yml"
122
122
  - Gemfile
123
123
  - README.md
124
124
  - Rakefile
@@ -139,17 +139,17 @@ require_paths:
139
139
  - lib
140
140
  required_ruby_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - '>='
142
+ - - ">="
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - '>='
147
+ - - ">="
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.0.14
152
+ rubygems_version: 2.4.5
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Drop in fix for JSON UTF-8 encoding errors in logstasher.