normalize_line_endings 0.0.1 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.rubocop.yml +103 -0
- data/.ruby-version +1 -0
- data/Appraisals +7 -0
- data/CHANGELOG.md +25 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +86 -0
- data/README.md +1 -9
- data/Rakefile +5 -20
- data/gemfiles/rails_6.gemfile +7 -0
- data/gemfiles/rails_6.gemfile.lock +191 -0
- data/gemfiles/rails_6_1.gemfile +7 -0
- data/gemfiles/rails_6_1.gemfile.lock +194 -0
- data/lib/normalize_line_endings.rb +3 -2
- data/lib/normalize_line_endings/version.rb +1 -1
- data/normalize_line_endings.gemspec +27 -17
- metadata +90 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fcfe7b5a3c572acadca71e1578704611059558a9b172b59fc3f8241e6e7c057
|
4
|
+
data.tar.gz: f753427135f171b11399525eee0d5328521b73131bd530081400f909aa728fd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7296ab826b39115ebb7e9b3f1095c12a286d5e2168ceaeab0918716c49b34a4eb3214c17527fda71e7dbfaf02a4a6a9dcd080fb6bb72b0c7ab8c84889f3e6f7
|
7
|
+
data.tar.gz: 0ea803b71a86cd1b97fe441a7579e6e2bdd36df41d1a3ff5003d4b122e2ca0d601739ecf904e91d1612c0b9b01dbddaac19681cf37f2ed321682936c416937b7
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-performance
|
3
|
+
- rubocop-rspec
|
4
|
+
|
5
|
+
AllCops:
|
6
|
+
NewCops: enable
|
7
|
+
TargetRubyVersion: 2.7
|
8
|
+
|
9
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
10
|
+
Enabled: true
|
11
|
+
|
12
|
+
Layout/SpaceAroundMethodCallOperator:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Lint/DeprecatedOpenSSLConstant:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
Lint/RaiseException:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
Lint/StructNewOverride:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
Metrics/AbcSize:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Metrics/BlockLength:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Metrics/LineLength:
|
31
|
+
Max: 120
|
32
|
+
|
33
|
+
Metrics/MethodLength:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
Metrics/ModuleLength:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
RSpec/AnyInstance:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
RSpec/DescribedClass:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
RSpec/ExampleLength:
|
46
|
+
Max: 20
|
47
|
+
|
48
|
+
RSpec/MultipleExpectations:
|
49
|
+
Max: 5
|
50
|
+
|
51
|
+
RSpec/LeadingSubject:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
RSpec/MessageSpies:
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
RSpec/NotToNot:
|
58
|
+
EnforcedStyle: to_not
|
59
|
+
|
60
|
+
Style/SlicingWithRange:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Style/ExponentialNotation:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
Style/HashEachMethods:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
Style/HashTransformKeys:
|
70
|
+
Enabled: false
|
71
|
+
|
72
|
+
Style/HashTransformValues:
|
73
|
+
Enabled: false
|
74
|
+
|
75
|
+
Style/Documentation:
|
76
|
+
Enabled: false
|
77
|
+
|
78
|
+
Style/EmptyMethod:
|
79
|
+
Enabled: false
|
80
|
+
|
81
|
+
Style/ExpandPathArguments:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
Style/FrozenStringLiteralComment:
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
Style/MutableConstant:
|
88
|
+
Enabled: false
|
89
|
+
|
90
|
+
Style/StringLiterals:
|
91
|
+
EnforcedStyle: double_quotes
|
92
|
+
|
93
|
+
Style/SymbolArray:
|
94
|
+
Enabled: false
|
95
|
+
|
96
|
+
Style/RescueModifier:
|
97
|
+
Enabled: false
|
98
|
+
|
99
|
+
Style/RescueStandardError:
|
100
|
+
EnforcedStyle: implicit
|
101
|
+
|
102
|
+
Style/WordArray:
|
103
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.4
|
data/Appraisals
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Change log
|
2
|
+
|
3
|
+
## master (unreleased)
|
4
|
+
|
5
|
+
## 0.0.5 (2021-07-13)
|
6
|
+
|
7
|
+
* Add support Rails 6.1
|
8
|
+
* Drop support for Rails 5.2
|
9
|
+
* Bump development dependencies
|
10
|
+
|
11
|
+
## 0.0.4 (2020-11-05)
|
12
|
+
|
13
|
+
* Add appraisals gem
|
14
|
+
|
15
|
+
## 0.0.3 (2020-11-03)
|
16
|
+
|
17
|
+
* Support Rails 6.0
|
18
|
+
* Bump development dependencies
|
19
|
+
|
20
|
+
## 0.0.2 (2020-05-30)
|
21
|
+
|
22
|
+
* Add CHANGELOG
|
23
|
+
* Add metadata to gemspec
|
24
|
+
* Bump runtime and development dependencies
|
25
|
+
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
normalize_line_endings (0.0.5)
|
5
|
+
activesupport (>= 6.0, < 7.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (6.1.4)
|
11
|
+
activesupport (= 6.1.4)
|
12
|
+
activesupport (6.1.4)
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
+
i18n (>= 1.6, < 2)
|
15
|
+
minitest (>= 5.1)
|
16
|
+
tzinfo (~> 2.0)
|
17
|
+
zeitwerk (~> 2.3)
|
18
|
+
appraisal (2.4.0)
|
19
|
+
bundler
|
20
|
+
rake
|
21
|
+
thor (>= 0.14.0)
|
22
|
+
ast (2.4.2)
|
23
|
+
concurrent-ruby (1.1.9)
|
24
|
+
diff-lcs (1.4.4)
|
25
|
+
i18n (1.8.10)
|
26
|
+
concurrent-ruby (~> 1.0)
|
27
|
+
minitest (5.14.4)
|
28
|
+
parallel (1.20.1)
|
29
|
+
parser (3.0.2.0)
|
30
|
+
ast (~> 2.4.1)
|
31
|
+
rainbow (3.0.0)
|
32
|
+
rake (13.0.1)
|
33
|
+
regexp_parser (2.1.1)
|
34
|
+
rexml (3.2.5)
|
35
|
+
rspec (3.10.0)
|
36
|
+
rspec-core (~> 3.10.0)
|
37
|
+
rspec-expectations (~> 3.10.0)
|
38
|
+
rspec-mocks (~> 3.10.0)
|
39
|
+
rspec-core (3.10.0)
|
40
|
+
rspec-support (~> 3.10.0)
|
41
|
+
rspec-expectations (3.10.0)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.10.0)
|
44
|
+
rspec-mocks (3.10.0)
|
45
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
46
|
+
rspec-support (~> 3.10.0)
|
47
|
+
rspec-support (3.10.0)
|
48
|
+
rubocop (1.18.3)
|
49
|
+
parallel (~> 1.10)
|
50
|
+
parser (>= 3.0.0.0)
|
51
|
+
rainbow (>= 2.2.2, < 4.0)
|
52
|
+
regexp_parser (>= 1.8, < 3.0)
|
53
|
+
rexml
|
54
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
55
|
+
ruby-progressbar (~> 1.7)
|
56
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
57
|
+
rubocop-ast (1.7.0)
|
58
|
+
parser (>= 3.0.1.1)
|
59
|
+
rubocop-performance (1.11.4)
|
60
|
+
rubocop (>= 1.7.0, < 2.0)
|
61
|
+
rubocop-ast (>= 0.4.0)
|
62
|
+
rubocop-rspec (2.4.0)
|
63
|
+
rubocop (~> 1.0)
|
64
|
+
rubocop-ast (>= 1.1.0)
|
65
|
+
ruby-progressbar (1.11.0)
|
66
|
+
thor (1.1.0)
|
67
|
+
tzinfo (2.0.4)
|
68
|
+
concurrent-ruby (~> 1.0)
|
69
|
+
unicode-display_width (2.0.0)
|
70
|
+
zeitwerk (2.4.2)
|
71
|
+
|
72
|
+
PLATFORMS
|
73
|
+
ruby
|
74
|
+
|
75
|
+
DEPENDENCIES
|
76
|
+
activemodel (>= 6.0, < 7.0)
|
77
|
+
appraisal (~> 2.4)
|
78
|
+
normalize_line_endings!
|
79
|
+
rake (~> 13.0)
|
80
|
+
rspec (~> 3.10)
|
81
|
+
rubocop (~> 1.18)
|
82
|
+
rubocop-performance (~> 1.11)
|
83
|
+
rubocop-rspec (~> 2.4)
|
84
|
+
|
85
|
+
BUNDLED WITH
|
86
|
+
2.1.4
|
data/README.md
CHANGED
@@ -20,12 +20,4 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
Run tests by cd'ing to the root of the gem directory and running `rake
|
24
|
-
|
25
|
-
```
|
26
|
-
class Post < ApplicationRecord
|
27
|
-
normalize_line_endings :only => [:foo, :bar, :biz]
|
28
|
-
end
|
29
|
-
```
|
30
|
-
|
31
|
-
See the tests for more example usages.
|
23
|
+
Run tests by cd'ing to the root of the gem directory and running `rake`
|
data/Rakefile
CHANGED
@@ -1,23 +1,8 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
require "rubocop/rake_task"
|
2
4
|
|
3
|
-
|
4
|
-
|
5
|
-
require "rdoc/task"
|
5
|
+
RuboCop::RakeTask.new
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
7
|
|
7
|
-
|
8
|
-
task default: :test
|
9
|
-
|
10
|
-
desc "Test the stripattributes plugin."
|
11
|
-
Rake::TestTask.new(:test) do |t|
|
12
|
-
t.libs << "lib"
|
13
|
-
t.pattern = "test/**/*_test.rb"
|
14
|
-
end
|
15
|
-
|
16
|
-
desc "Generate documentation for the stripattributes plugin."
|
17
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
18
|
-
rdoc.rdoc_dir = "rdoc"
|
19
|
-
rdoc.title = "Stripattributes"
|
20
|
-
rdoc.options << "--line-numbers" << "--inline-source"
|
21
|
-
rdoc.rdoc_files.include("README.rdoc")
|
22
|
-
rdoc.rdoc_files.include("lib/**/*.rb")
|
23
|
-
end
|
8
|
+
task default: [:rubocop, :spec]
|
@@ -0,0 +1,191 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
normalize_line_endings (0.0.5)
|
5
|
+
activesupport (>= 6.0, < 7.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (6.0.4)
|
11
|
+
actionpack (= 6.0.4)
|
12
|
+
nio4r (~> 2.0)
|
13
|
+
websocket-driver (>= 0.6.1)
|
14
|
+
actionmailbox (6.0.4)
|
15
|
+
actionpack (= 6.0.4)
|
16
|
+
activejob (= 6.0.4)
|
17
|
+
activerecord (= 6.0.4)
|
18
|
+
activestorage (= 6.0.4)
|
19
|
+
activesupport (= 6.0.4)
|
20
|
+
mail (>= 2.7.1)
|
21
|
+
actionmailer (6.0.4)
|
22
|
+
actionpack (= 6.0.4)
|
23
|
+
actionview (= 6.0.4)
|
24
|
+
activejob (= 6.0.4)
|
25
|
+
mail (~> 2.5, >= 2.5.4)
|
26
|
+
rails-dom-testing (~> 2.0)
|
27
|
+
actionpack (6.0.4)
|
28
|
+
actionview (= 6.0.4)
|
29
|
+
activesupport (= 6.0.4)
|
30
|
+
rack (~> 2.0, >= 2.0.8)
|
31
|
+
rack-test (>= 0.6.3)
|
32
|
+
rails-dom-testing (~> 2.0)
|
33
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
34
|
+
actiontext (6.0.4)
|
35
|
+
actionpack (= 6.0.4)
|
36
|
+
activerecord (= 6.0.4)
|
37
|
+
activestorage (= 6.0.4)
|
38
|
+
activesupport (= 6.0.4)
|
39
|
+
nokogiri (>= 1.8.5)
|
40
|
+
actionview (6.0.4)
|
41
|
+
activesupport (= 6.0.4)
|
42
|
+
builder (~> 3.1)
|
43
|
+
erubi (~> 1.4)
|
44
|
+
rails-dom-testing (~> 2.0)
|
45
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
46
|
+
activejob (6.0.4)
|
47
|
+
activesupport (= 6.0.4)
|
48
|
+
globalid (>= 0.3.6)
|
49
|
+
activemodel (6.0.4)
|
50
|
+
activesupport (= 6.0.4)
|
51
|
+
activerecord (6.0.4)
|
52
|
+
activemodel (= 6.0.4)
|
53
|
+
activesupport (= 6.0.4)
|
54
|
+
activestorage (6.0.4)
|
55
|
+
actionpack (= 6.0.4)
|
56
|
+
activejob (= 6.0.4)
|
57
|
+
activerecord (= 6.0.4)
|
58
|
+
marcel (~> 1.0.0)
|
59
|
+
activesupport (6.0.4)
|
60
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
61
|
+
i18n (>= 0.7, < 2)
|
62
|
+
minitest (~> 5.1)
|
63
|
+
tzinfo (~> 1.1)
|
64
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
65
|
+
appraisal (2.4.0)
|
66
|
+
bundler
|
67
|
+
rake
|
68
|
+
thor (>= 0.14.0)
|
69
|
+
ast (2.4.2)
|
70
|
+
builder (3.2.4)
|
71
|
+
concurrent-ruby (1.1.9)
|
72
|
+
crass (1.0.6)
|
73
|
+
diff-lcs (1.4.4)
|
74
|
+
erubi (1.10.0)
|
75
|
+
globalid (0.4.2)
|
76
|
+
activesupport (>= 4.2.0)
|
77
|
+
i18n (1.8.10)
|
78
|
+
concurrent-ruby (~> 1.0)
|
79
|
+
loofah (2.10.0)
|
80
|
+
crass (~> 1.0.2)
|
81
|
+
nokogiri (>= 1.5.9)
|
82
|
+
mail (2.7.1)
|
83
|
+
mini_mime (>= 0.1.1)
|
84
|
+
marcel (1.0.1)
|
85
|
+
method_source (1.0.0)
|
86
|
+
mini_mime (1.1.0)
|
87
|
+
minitest (5.14.4)
|
88
|
+
nio4r (2.5.7)
|
89
|
+
nokogiri (1.11.7-x86_64-darwin)
|
90
|
+
racc (~> 1.4)
|
91
|
+
parallel (1.20.1)
|
92
|
+
parser (3.0.2.0)
|
93
|
+
ast (~> 2.4.1)
|
94
|
+
racc (1.5.2)
|
95
|
+
rack (2.2.3)
|
96
|
+
rack-test (1.1.0)
|
97
|
+
rack (>= 1.0, < 3)
|
98
|
+
rails (6.0.4)
|
99
|
+
actioncable (= 6.0.4)
|
100
|
+
actionmailbox (= 6.0.4)
|
101
|
+
actionmailer (= 6.0.4)
|
102
|
+
actionpack (= 6.0.4)
|
103
|
+
actiontext (= 6.0.4)
|
104
|
+
actionview (= 6.0.4)
|
105
|
+
activejob (= 6.0.4)
|
106
|
+
activemodel (= 6.0.4)
|
107
|
+
activerecord (= 6.0.4)
|
108
|
+
activestorage (= 6.0.4)
|
109
|
+
activesupport (= 6.0.4)
|
110
|
+
bundler (>= 1.3.0)
|
111
|
+
railties (= 6.0.4)
|
112
|
+
sprockets-rails (>= 2.0.0)
|
113
|
+
rails-dom-testing (2.0.3)
|
114
|
+
activesupport (>= 4.2.0)
|
115
|
+
nokogiri (>= 1.6)
|
116
|
+
rails-html-sanitizer (1.3.0)
|
117
|
+
loofah (~> 2.3)
|
118
|
+
railties (6.0.4)
|
119
|
+
actionpack (= 6.0.4)
|
120
|
+
activesupport (= 6.0.4)
|
121
|
+
method_source
|
122
|
+
rake (>= 0.8.7)
|
123
|
+
thor (>= 0.20.3, < 2.0)
|
124
|
+
rainbow (3.0.0)
|
125
|
+
rake (13.0.6)
|
126
|
+
regexp_parser (2.1.1)
|
127
|
+
rexml (3.2.5)
|
128
|
+
rspec (3.10.0)
|
129
|
+
rspec-core (~> 3.10.0)
|
130
|
+
rspec-expectations (~> 3.10.0)
|
131
|
+
rspec-mocks (~> 3.10.0)
|
132
|
+
rspec-core (3.10.1)
|
133
|
+
rspec-support (~> 3.10.0)
|
134
|
+
rspec-expectations (3.10.1)
|
135
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
136
|
+
rspec-support (~> 3.10.0)
|
137
|
+
rspec-mocks (3.10.2)
|
138
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
139
|
+
rspec-support (~> 3.10.0)
|
140
|
+
rspec-support (3.10.2)
|
141
|
+
rubocop (1.18.3)
|
142
|
+
parallel (~> 1.10)
|
143
|
+
parser (>= 3.0.0.0)
|
144
|
+
rainbow (>= 2.2.2, < 4.0)
|
145
|
+
regexp_parser (>= 1.8, < 3.0)
|
146
|
+
rexml
|
147
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
148
|
+
ruby-progressbar (~> 1.7)
|
149
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
150
|
+
rubocop-ast (1.7.0)
|
151
|
+
parser (>= 3.0.1.1)
|
152
|
+
rubocop-performance (1.11.4)
|
153
|
+
rubocop (>= 1.7.0, < 2.0)
|
154
|
+
rubocop-ast (>= 0.4.0)
|
155
|
+
rubocop-rspec (2.4.0)
|
156
|
+
rubocop (~> 1.0)
|
157
|
+
rubocop-ast (>= 1.1.0)
|
158
|
+
ruby-progressbar (1.11.0)
|
159
|
+
sprockets (4.0.2)
|
160
|
+
concurrent-ruby (~> 1.0)
|
161
|
+
rack (> 1, < 3)
|
162
|
+
sprockets-rails (3.2.2)
|
163
|
+
actionpack (>= 4.0)
|
164
|
+
activesupport (>= 4.0)
|
165
|
+
sprockets (>= 3.0.0)
|
166
|
+
thor (1.1.0)
|
167
|
+
thread_safe (0.3.6)
|
168
|
+
tzinfo (1.2.9)
|
169
|
+
thread_safe (~> 0.1)
|
170
|
+
unicode-display_width (2.0.0)
|
171
|
+
websocket-driver (0.7.5)
|
172
|
+
websocket-extensions (>= 0.1.0)
|
173
|
+
websocket-extensions (0.1.5)
|
174
|
+
zeitwerk (2.4.2)
|
175
|
+
|
176
|
+
PLATFORMS
|
177
|
+
ruby
|
178
|
+
|
179
|
+
DEPENDENCIES
|
180
|
+
activemodel (>= 6.0, < 7.0)
|
181
|
+
appraisal (~> 2.4)
|
182
|
+
normalize_line_endings!
|
183
|
+
rails (= 6.0.4)
|
184
|
+
rake (~> 13.0)
|
185
|
+
rspec (~> 3.10)
|
186
|
+
rubocop (~> 1.18)
|
187
|
+
rubocop-performance (~> 1.11)
|
188
|
+
rubocop-rspec (~> 2.4)
|
189
|
+
|
190
|
+
BUNDLED WITH
|
191
|
+
2.1.4
|
@@ -0,0 +1,194 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
normalize_line_endings (0.0.5)
|
5
|
+
activesupport (>= 6.0, < 7.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (6.1.4)
|
11
|
+
actionpack (= 6.1.4)
|
12
|
+
activesupport (= 6.1.4)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (>= 0.6.1)
|
15
|
+
actionmailbox (6.1.4)
|
16
|
+
actionpack (= 6.1.4)
|
17
|
+
activejob (= 6.1.4)
|
18
|
+
activerecord (= 6.1.4)
|
19
|
+
activestorage (= 6.1.4)
|
20
|
+
activesupport (= 6.1.4)
|
21
|
+
mail (>= 2.7.1)
|
22
|
+
actionmailer (6.1.4)
|
23
|
+
actionpack (= 6.1.4)
|
24
|
+
actionview (= 6.1.4)
|
25
|
+
activejob (= 6.1.4)
|
26
|
+
activesupport (= 6.1.4)
|
27
|
+
mail (~> 2.5, >= 2.5.4)
|
28
|
+
rails-dom-testing (~> 2.0)
|
29
|
+
actionpack (6.1.4)
|
30
|
+
actionview (= 6.1.4)
|
31
|
+
activesupport (= 6.1.4)
|
32
|
+
rack (~> 2.0, >= 2.0.9)
|
33
|
+
rack-test (>= 0.6.3)
|
34
|
+
rails-dom-testing (~> 2.0)
|
35
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
36
|
+
actiontext (6.1.4)
|
37
|
+
actionpack (= 6.1.4)
|
38
|
+
activerecord (= 6.1.4)
|
39
|
+
activestorage (= 6.1.4)
|
40
|
+
activesupport (= 6.1.4)
|
41
|
+
nokogiri (>= 1.8.5)
|
42
|
+
actionview (6.1.4)
|
43
|
+
activesupport (= 6.1.4)
|
44
|
+
builder (~> 3.1)
|
45
|
+
erubi (~> 1.4)
|
46
|
+
rails-dom-testing (~> 2.0)
|
47
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
48
|
+
activejob (6.1.4)
|
49
|
+
activesupport (= 6.1.4)
|
50
|
+
globalid (>= 0.3.6)
|
51
|
+
activemodel (6.1.4)
|
52
|
+
activesupport (= 6.1.4)
|
53
|
+
activerecord (6.1.4)
|
54
|
+
activemodel (= 6.1.4)
|
55
|
+
activesupport (= 6.1.4)
|
56
|
+
activestorage (6.1.4)
|
57
|
+
actionpack (= 6.1.4)
|
58
|
+
activejob (= 6.1.4)
|
59
|
+
activerecord (= 6.1.4)
|
60
|
+
activesupport (= 6.1.4)
|
61
|
+
marcel (~> 1.0.0)
|
62
|
+
mini_mime (>= 1.1.0)
|
63
|
+
activesupport (6.1.4)
|
64
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
65
|
+
i18n (>= 1.6, < 2)
|
66
|
+
minitest (>= 5.1)
|
67
|
+
tzinfo (~> 2.0)
|
68
|
+
zeitwerk (~> 2.3)
|
69
|
+
appraisal (2.4.0)
|
70
|
+
bundler
|
71
|
+
rake
|
72
|
+
thor (>= 0.14.0)
|
73
|
+
ast (2.4.2)
|
74
|
+
builder (3.2.4)
|
75
|
+
concurrent-ruby (1.1.9)
|
76
|
+
crass (1.0.6)
|
77
|
+
diff-lcs (1.4.4)
|
78
|
+
erubi (1.10.0)
|
79
|
+
globalid (0.4.2)
|
80
|
+
activesupport (>= 4.2.0)
|
81
|
+
i18n (1.8.10)
|
82
|
+
concurrent-ruby (~> 1.0)
|
83
|
+
loofah (2.10.0)
|
84
|
+
crass (~> 1.0.2)
|
85
|
+
nokogiri (>= 1.5.9)
|
86
|
+
mail (2.7.1)
|
87
|
+
mini_mime (>= 0.1.1)
|
88
|
+
marcel (1.0.1)
|
89
|
+
method_source (1.0.0)
|
90
|
+
mini_mime (1.1.0)
|
91
|
+
minitest (5.14.4)
|
92
|
+
nio4r (2.5.7)
|
93
|
+
nokogiri (1.11.7-x86_64-darwin)
|
94
|
+
racc (~> 1.4)
|
95
|
+
parallel (1.20.1)
|
96
|
+
parser (3.0.2.0)
|
97
|
+
ast (~> 2.4.1)
|
98
|
+
racc (1.5.2)
|
99
|
+
rack (2.2.3)
|
100
|
+
rack-test (1.1.0)
|
101
|
+
rack (>= 1.0, < 3)
|
102
|
+
rails (6.1.4)
|
103
|
+
actioncable (= 6.1.4)
|
104
|
+
actionmailbox (= 6.1.4)
|
105
|
+
actionmailer (= 6.1.4)
|
106
|
+
actionpack (= 6.1.4)
|
107
|
+
actiontext (= 6.1.4)
|
108
|
+
actionview (= 6.1.4)
|
109
|
+
activejob (= 6.1.4)
|
110
|
+
activemodel (= 6.1.4)
|
111
|
+
activerecord (= 6.1.4)
|
112
|
+
activestorage (= 6.1.4)
|
113
|
+
activesupport (= 6.1.4)
|
114
|
+
bundler (>= 1.15.0)
|
115
|
+
railties (= 6.1.4)
|
116
|
+
sprockets-rails (>= 2.0.0)
|
117
|
+
rails-dom-testing (2.0.3)
|
118
|
+
activesupport (>= 4.2.0)
|
119
|
+
nokogiri (>= 1.6)
|
120
|
+
rails-html-sanitizer (1.3.0)
|
121
|
+
loofah (~> 2.3)
|
122
|
+
railties (6.1.4)
|
123
|
+
actionpack (= 6.1.4)
|
124
|
+
activesupport (= 6.1.4)
|
125
|
+
method_source
|
126
|
+
rake (>= 0.13)
|
127
|
+
thor (~> 1.0)
|
128
|
+
rainbow (3.0.0)
|
129
|
+
rake (13.0.6)
|
130
|
+
regexp_parser (2.1.1)
|
131
|
+
rexml (3.2.5)
|
132
|
+
rspec (3.10.0)
|
133
|
+
rspec-core (~> 3.10.0)
|
134
|
+
rspec-expectations (~> 3.10.0)
|
135
|
+
rspec-mocks (~> 3.10.0)
|
136
|
+
rspec-core (3.10.1)
|
137
|
+
rspec-support (~> 3.10.0)
|
138
|
+
rspec-expectations (3.10.1)
|
139
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
140
|
+
rspec-support (~> 3.10.0)
|
141
|
+
rspec-mocks (3.10.2)
|
142
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
143
|
+
rspec-support (~> 3.10.0)
|
144
|
+
rspec-support (3.10.2)
|
145
|
+
rubocop (1.18.3)
|
146
|
+
parallel (~> 1.10)
|
147
|
+
parser (>= 3.0.0.0)
|
148
|
+
rainbow (>= 2.2.2, < 4.0)
|
149
|
+
regexp_parser (>= 1.8, < 3.0)
|
150
|
+
rexml
|
151
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
152
|
+
ruby-progressbar (~> 1.7)
|
153
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
154
|
+
rubocop-ast (1.7.0)
|
155
|
+
parser (>= 3.0.1.1)
|
156
|
+
rubocop-performance (1.11.4)
|
157
|
+
rubocop (>= 1.7.0, < 2.0)
|
158
|
+
rubocop-ast (>= 0.4.0)
|
159
|
+
rubocop-rspec (2.4.0)
|
160
|
+
rubocop (~> 1.0)
|
161
|
+
rubocop-ast (>= 1.1.0)
|
162
|
+
ruby-progressbar (1.11.0)
|
163
|
+
sprockets (4.0.2)
|
164
|
+
concurrent-ruby (~> 1.0)
|
165
|
+
rack (> 1, < 3)
|
166
|
+
sprockets-rails (3.2.2)
|
167
|
+
actionpack (>= 4.0)
|
168
|
+
activesupport (>= 4.0)
|
169
|
+
sprockets (>= 3.0.0)
|
170
|
+
thor (1.1.0)
|
171
|
+
tzinfo (2.0.4)
|
172
|
+
concurrent-ruby (~> 1.0)
|
173
|
+
unicode-display_width (2.0.0)
|
174
|
+
websocket-driver (0.7.5)
|
175
|
+
websocket-extensions (>= 0.1.0)
|
176
|
+
websocket-extensions (0.1.5)
|
177
|
+
zeitwerk (2.4.2)
|
178
|
+
|
179
|
+
PLATFORMS
|
180
|
+
ruby
|
181
|
+
|
182
|
+
DEPENDENCIES
|
183
|
+
activemodel (>= 6.0, < 7.0)
|
184
|
+
appraisal (~> 2.4)
|
185
|
+
normalize_line_endings!
|
186
|
+
rails (= 6.1.4)
|
187
|
+
rake (~> 13.0)
|
188
|
+
rspec (~> 3.10)
|
189
|
+
rubocop (~> 1.18)
|
190
|
+
rubocop-performance (~> 1.11)
|
191
|
+
rubocop-rspec (~> 2.4)
|
192
|
+
|
193
|
+
BUNDLED WITH
|
194
|
+
2.1.4
|
@@ -5,14 +5,15 @@ require "active_support"
|
|
5
5
|
module NormalizeLineEndings
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
|
-
|
8
|
+
class_methods do
|
9
9
|
def normalize_line_endings(*opts)
|
10
10
|
@normalize_line_endings_options = opts.first.is_a?(Hash) ? opts.first : { only: opts } unless opts.empty?
|
11
11
|
|
12
12
|
class << self; attr_reader :normalize_line_endings_options; end
|
13
13
|
|
14
|
-
before_validation { |record| record.normalize_line_endings }
|
14
|
+
before_validation { |record| record.normalize_line_endings } # rubocop:disable Style/SymbolProc
|
15
15
|
end
|
16
|
+
|
16
17
|
alias_method :normalize_line_endings_for, :normalize_line_endings
|
17
18
|
end
|
18
19
|
|
@@ -1,31 +1,41 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require "normalize_line_endings/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
6
|
+
spec.name = "normalize_line_endings"
|
7
|
+
spec.version = NormalizeLineEndings::VERSION
|
8
|
+
spec.authors = ["Matt Briggs", "Alistair McKinnell"]
|
9
|
+
spec.email = ["alistairm@nulogy.com"]
|
10
|
+
|
11
|
+
spec.summary = %q(Converts \r\n characters to \n for attributes on ActiveModel-like entities.)
|
12
|
+
spec.homepage = "https://github.com/nulogy/normalize_line_endings"
|
13
|
+
spec.license = "MIT"
|
11
14
|
|
12
|
-
spec.
|
13
|
-
|
14
|
-
|
15
|
-
|
15
|
+
spec.metadata = {
|
16
|
+
"homepage_uri" => "https://github.com/nulogy/normalize_line_endings",
|
17
|
+
"changelog_uri" => "https://github.com/nulogy/normalize_line_endings/blob/master/CHANGELOG.md",
|
18
|
+
"source_code_uri" => "https://github.com/nulogy/normalize_line_endings",
|
19
|
+
"bug_tracker_uri" => "https://github.com/nulogy/normalize_line_endings/issues"
|
20
|
+
}
|
16
21
|
|
17
22
|
# Specify which files should be added to the gem when it is released.
|
18
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
-
spec.files
|
24
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
20
25
|
`git ls-files -z`.split("\x0").reject { |f| f.match(/^spec/) }
|
21
26
|
end
|
22
|
-
spec.bindir
|
23
|
-
spec.executables
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
29
|
spec.require_paths = ["lib"]
|
30
|
+
spec.required_ruby_version = ">= 2.7"
|
25
31
|
|
26
|
-
spec.
|
32
|
+
spec.add_runtime_dependency "activesupport", ">= 6.0", "< 7.0"
|
27
33
|
|
28
|
-
spec.add_development_dependency "activemodel", ">=
|
29
|
-
spec.add_development_dependency "
|
30
|
-
spec.add_development_dependency "
|
34
|
+
spec.add_development_dependency "activemodel", ">= 6.0", "< 7.0"
|
35
|
+
spec.add_development_dependency "appraisal", "~> 2.4"
|
36
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.10"
|
38
|
+
spec.add_development_dependency "rubocop", "~> 1.18"
|
39
|
+
spec.add_development_dependency "rubocop-performance", "~> 1.11"
|
40
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.4"
|
31
41
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: normalize_line_endings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Briggs
|
8
8
|
- Alistair McKinnell
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -17,69 +17,125 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '6.0'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '7.0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
30
|
+
version: '6.0'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '7.0'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activemodel
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '6.0'
|
41
41
|
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
43
|
+
version: '7.0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
50
|
+
version: '6.0'
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '7.0'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: appraisal
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '2.4'
|
61
|
+
type: :development
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '2.4'
|
54
68
|
- !ruby/object:Gem::Dependency
|
55
69
|
name: rake
|
56
70
|
requirement: !ruby/object:Gem::Requirement
|
57
71
|
requirements:
|
58
72
|
- - "~>"
|
59
73
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
74
|
+
version: '13.0'
|
61
75
|
type: :development
|
62
76
|
prerelease: false
|
63
77
|
version_requirements: !ruby/object:Gem::Requirement
|
64
78
|
requirements:
|
65
79
|
- - "~>"
|
66
80
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
81
|
+
version: '13.0'
|
68
82
|
- !ruby/object:Gem::Dependency
|
69
83
|
name: rspec
|
70
84
|
requirement: !ruby/object:Gem::Requirement
|
71
85
|
requirements:
|
72
86
|
- - "~>"
|
73
87
|
- !ruby/object:Gem::Version
|
74
|
-
version: '3.
|
88
|
+
version: '3.10'
|
75
89
|
type: :development
|
76
90
|
prerelease: false
|
77
91
|
version_requirements: !ruby/object:Gem::Requirement
|
78
92
|
requirements:
|
79
93
|
- - "~>"
|
80
94
|
- !ruby/object:Gem::Version
|
81
|
-
version: '3.
|
82
|
-
|
95
|
+
version: '3.10'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: rubocop
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.18'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.18'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rubocop-performance
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '1.11'
|
117
|
+
type: :development
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '1.11'
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: rubocop-rspec
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '2.4'
|
131
|
+
type: :development
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '2.4'
|
138
|
+
description:
|
83
139
|
email:
|
84
140
|
- alistairm@nulogy.com
|
85
141
|
executables: []
|
@@ -88,20 +144,33 @@ extra_rdoc_files: []
|
|
88
144
|
files:
|
89
145
|
- ".gitignore"
|
90
146
|
- ".rspec"
|
147
|
+
- ".rubocop.yml"
|
148
|
+
- ".ruby-version"
|
149
|
+
- Appraisals
|
150
|
+
- CHANGELOG.md
|
91
151
|
- CODE_OF_CONDUCT.md
|
92
152
|
- Gemfile
|
153
|
+
- Gemfile.lock
|
93
154
|
- README.md
|
94
155
|
- Rakefile
|
95
156
|
- bin/console
|
96
157
|
- bin/setup
|
158
|
+
- gemfiles/rails_6.gemfile
|
159
|
+
- gemfiles/rails_6.gemfile.lock
|
160
|
+
- gemfiles/rails_6_1.gemfile
|
161
|
+
- gemfiles/rails_6_1.gemfile.lock
|
97
162
|
- lib/normalize_line_endings.rb
|
98
163
|
- lib/normalize_line_endings/version.rb
|
99
164
|
- normalize_line_endings.gemspec
|
100
165
|
homepage: https://github.com/nulogy/normalize_line_endings
|
101
166
|
licenses:
|
102
167
|
- MIT
|
103
|
-
metadata:
|
104
|
-
|
168
|
+
metadata:
|
169
|
+
homepage_uri: https://github.com/nulogy/normalize_line_endings
|
170
|
+
changelog_uri: https://github.com/nulogy/normalize_line_endings/blob/master/CHANGELOG.md
|
171
|
+
source_code_uri: https://github.com/nulogy/normalize_line_endings
|
172
|
+
bug_tracker_uri: https://github.com/nulogy/normalize_line_endings/issues
|
173
|
+
post_install_message:
|
105
174
|
rdoc_options: []
|
106
175
|
require_paths:
|
107
176
|
- lib
|
@@ -109,16 +178,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
178
|
requirements:
|
110
179
|
- - ">="
|
111
180
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
181
|
+
version: '2.7'
|
113
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
183
|
requirements:
|
115
184
|
- - ">="
|
116
185
|
- !ruby/object:Gem::Version
|
117
186
|
version: '0'
|
118
187
|
requirements: []
|
119
|
-
|
120
|
-
|
121
|
-
signing_key:
|
188
|
+
rubygems_version: 3.1.6
|
189
|
+
signing_key:
|
122
190
|
specification_version: 4
|
123
191
|
summary: Converts \r\n characters to \n for attributes on ActiveModel-like entities.
|
124
192
|
test_files: []
|