meta-tags 2.11.0 → 2.18.0
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +163 -73
- data/CONTRIBUTING.md +6 -6
- data/Gemfile +13 -4
- data/README.md +88 -60
- data/Rakefile +31 -0
- data/Steepfile +15 -0
- data/certs/kpumuk.pem +9 -9
- data/lib/meta_tags/configuration.rb +7 -0
- data/lib/meta_tags/controller_helper.rb +3 -3
- data/lib/meta_tags/meta_tags_collection.rb +48 -53
- data/lib/meta_tags/railtie.rb +17 -0
- data/lib/meta_tags/renderer.rb +38 -11
- data/lib/meta_tags/tag.rb +1 -1
- data/lib/meta_tags/text_normalizer.rb +30 -25
- data/lib/meta_tags/version.rb +2 -1
- data/lib/meta_tags/view_helper.rb +5 -7
- data/lib/meta_tags.rb +3 -5
- data/meta-tags.gemspec +15 -4
- data/sig/lib/_internal/rails.rbs +56 -0
- data/sig/lib/meta_tags/configuration.rbs +19 -0
- data/sig/lib/meta_tags/content_tag.rbs +5 -0
- data/sig/lib/meta_tags/controller_helper.rbs +13 -0
- data/sig/lib/meta_tags/meta_tags_collection.rbs +41 -0
- data/sig/lib/meta_tags/renderer.rbs +50 -0
- data/sig/lib/meta_tags/tag.rbs +12 -0
- data/sig/lib/meta_tags/text_normalizer.rbs +36 -0
- data/sig/lib/meta_tags/version.rbs +4 -0
- data/sig/lib/meta_tags/view_helper.rbs +55 -0
- data/sig/lib/meta_tags.rbs +16 -0
- data.tar.gz.sig +0 -0
- metadata +63 -25
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccc7036c95b58f9e1c33efd68f3b9dc16d64e9f4ad5d06296800a288f9f644da
|
4
|
+
data.tar.gz: c8fde1a652894101de4f146217b43326e81980c1bd760042a2dacbd194abb0a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2672417d1d988f072ccc11d12f7d4a536b3e00ee376098972a9d945c11fc6ac6109f8baa0f87e98c33f549860384d41caa47c00496a3199edae6b4d60d88f956
|
7
|
+
data.tar.gz: 83f2ff75eb5d41ec25b8c26932f718b186fa938f15b8fb5000840989ba5785a317d3337c1d363f3e3473a9c16d18e4b065272321c9a24172a763bfc74b8be2a5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,238 +1,328 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 2.18.0 (September 15, 2022) [☰](https://github.com/kpumuk/meta-tags/compare/v2.17.0...v2.18.0)
|
4
|
+
|
5
|
+
Changes:
|
6
|
+
|
7
|
+
- Fallback to site name when title is empty in mirrored tags ([243](https://github.com/kpumuk/meta-tags/pull/243))
|
8
|
+
|
9
|
+
## 2.17.0 (July 5, 2022) [☰](https://github.com/kpumuk/meta-tags/compare/v2.16.0...v2.17.0)
|
10
|
+
|
11
|
+
Changes:
|
12
|
+
|
13
|
+
- Separate RBS files to _internal directory to avoid exposing RBS ([237](https://github.com/kpumuk/meta-tags/pull/237))
|
14
|
+
- Added Ruby 3.1 to supported versions, Ruby 2.6 is minimum supported version ([235](https://github.com/kpumuk/meta-tags/pull/235/))
|
15
|
+
|
16
|
+
## 2.16.0 (September 24, 2021) [☰](https://github.com/kpumuk/meta-tags/compare/v2.15.0...v2.16.0)
|
17
|
+
|
18
|
+
Changes:
|
19
|
+
|
20
|
+
- Updated maximum dependency specified in gemspec (Getting Ready for Rails 7)
|
21
|
+
- Added RBS type definitions.
|
22
|
+
|
23
|
+
## 2.15.0 (August 2, 2021) [☰](https://github.com/kpumuk/meta-tags/compare/v2.14.0...v2.15.0)
|
24
|
+
|
25
|
+
Changes:
|
26
|
+
|
27
|
+
- Added Ruby 3.0 to supported versions
|
28
|
+
- Ruby 2.5 is now a required minimum version (we dropped official support for Ruby versions older than 2.5 about 8 months ago)
|
29
|
+
- Added `skip_canonical_links_on_noindex` configuration variable that allows to disable canonical links of the pages that are excluded from indexing ([214](https://github.com/kpumuk/meta-tags/pull/214))
|
30
|
+
- Added support for `itemprop` in `_` tag for custom tags ([203](https://github.com/kpumuk/meta-tags/pull/203))
|
31
|
+
|
32
|
+
Bugfixes:
|
33
|
+
|
34
|
+
- Fixed error "can't modify frozen String" in `strip_tags`.
|
35
|
+
- Fixed Ruby warning about an instance variable that is not initialized.
|
36
|
+
|
37
|
+
## 2.14.0 (December 10, 2020) [☰](https://github.com/kpumuk/meta-tags/compare/v2.13.0...v2.14.0)
|
38
|
+
|
39
|
+
Changes:
|
40
|
+
|
41
|
+
- Dropped official support for Rails older than 5.1 and Ruby older than 2.5 (both reached their End of Life)
|
42
|
+
- Added support for Rails 6.1
|
43
|
+
|
44
|
+
Bugfixes:
|
45
|
+
|
46
|
+
- Fixed Rails 6 deprecation warning.
|
47
|
+
|
48
|
+
## 2.13.0 (October 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.12.0...v2.13.0)
|
49
|
+
|
50
|
+
Bugfixes:
|
51
|
+
|
52
|
+
- Fixed Rails 6 deprecation warning.
|
53
|
+
|
54
|
+
## 2.12.0 (September 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.11.1...v2.12.0)
|
55
|
+
|
56
|
+
Features:
|
57
|
+
|
58
|
+
- Indexing directives (`noindex`, `nofollow`, etc. now support an array of robot names as a value).
|
59
|
+
- Added support for `link[rel='manifest']` ([199](https://github.com/kpumuk/meta-tags/pull/199))
|
60
|
+
|
61
|
+
Bugfixes:
|
62
|
+
|
63
|
+
- When `noindex` uses "robots" as a value, `nofollow` ignores a custom robot name, and switches to "robots" as well
|
64
|
+
|
65
|
+
## 2.11.1 (January 19, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.11.0...v2.11.1)
|
66
|
+
|
67
|
+
Features:
|
68
|
+
|
69
|
+
- Rails 6 is officially supported.
|
70
|
+
|
1
71
|
## 2.11.0 (November 16, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.10.0...v2.11.0)
|
2
72
|
|
3
73
|
Features:
|
4
|
-
|
5
|
-
|
74
|
+
|
75
|
+
- Added a configuration option `minify_output` to remove new line characters between meta tags ([182](https://github.com/kpumuk/meta-tags/pull/182))
|
76
|
+
- Title, description, and keywords can be an object responding to `#to_str` ([183](https://github.com/kpumuk/meta-tags/pull/183))
|
6
77
|
|
7
78
|
Bugfixes:
|
8
|
-
|
79
|
+
|
80
|
+
- Truncate title before escaping HTML characters ([180](https://github.com/kpumuk/meta-tags/pull/180))
|
9
81
|
|
10
82
|
## 2.10.0 (June 8, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.9.0...v2.10.0)
|
11
83
|
|
12
84
|
Features:
|
13
|
-
|
85
|
+
|
86
|
+
- Allow `MetaTagsCollection#update` to receive an object ([169](https://github.com/kpumuk/meta-tags/pull/169))
|
14
87
|
|
15
88
|
## 2.9.0 (March 29, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.8.0...v2.9.0)
|
16
89
|
|
17
90
|
Features:
|
18
|
-
|
91
|
+
|
92
|
+
- Added ability to add `index` robots meta tag (thanks to @rafallo)
|
19
93
|
|
20
94
|
## 2.8.0 (February 28, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.7.1...v2.8.0)
|
21
95
|
|
22
96
|
Features:
|
23
|
-
|
97
|
+
|
98
|
+
- Added noarchive support.
|
24
99
|
|
25
100
|
Changes:
|
26
|
-
|
101
|
+
|
102
|
+
- Updated default description size to 300 as a new recommended truncation limit.
|
27
103
|
|
28
104
|
## 2.7.1 (February 1, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.7.0...v2.7.1)
|
29
105
|
|
30
106
|
Changes:
|
31
|
-
|
107
|
+
|
108
|
+
- Properly generate Open Graph meta tags for object types that fail to provide a proper scope (e.g. `restaurant:contact_info` metadata for `restaurant:restaurant` object type).
|
32
109
|
|
33
110
|
Bugfixes:
|
34
|
-
|
111
|
+
|
112
|
+
- Description truncated to empty string and removed from meta tags when limit is set to `0` (while documentation suggests we should remove limits in this case).
|
35
113
|
|
36
114
|
## 2.7.0 (November 22, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.6.0...v2.7.0)
|
37
115
|
|
38
116
|
Changes:
|
39
|
-
|
117
|
+
|
118
|
+
- Generate open meta tags (`<meta ... >`) instead of closed meta tags (`<meta ... />`) by default, which is . Added a new option to switch back to self-closing meta tags, which are valid in HTML5, but unnecessary.
|
40
119
|
|
41
120
|
## 2.6.0 (August 24, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.5.0...v2.6.0)
|
42
121
|
|
43
122
|
Features:
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
123
|
+
|
124
|
+
- Optionally avoid downcasing keywords
|
125
|
+
- Added Rails generator to create an initializer with the default settings.
|
126
|
+
- Added a configuration option `truncate_site_title_first` which enables site title truncation when title limit is reached.
|
127
|
+
- When `Time`, `Date`, or `DateTime` passed as a meta tag value, it will be formatted according to ISO 8601.
|
48
128
|
|
49
129
|
Bugfixes:
|
50
|
-
|
51
|
-
|
130
|
+
|
131
|
+
- When title limit reached with `reverse` set to `true`, properly truncate the last item of the title array instead of the first one.
|
132
|
+
- Do not merge title and site title for OpenGraph, site title is available for reference as `:site`, and full title as `:full_title`.
|
52
133
|
|
53
134
|
Changes:
|
54
|
-
|
135
|
+
|
136
|
+
- Removed Google "author" and "publisher" links, as Google deprecated these options (https://support.google.com/webmasters/answer/6083347?hl=en)
|
55
137
|
|
56
138
|
## 2.5.0 (August 23, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.4.1...v2.5.0)
|
57
139
|
|
58
140
|
Features:
|
59
|
-
|
141
|
+
|
142
|
+
- Fully support [Open Graph objects](https://developers.facebook.com/docs/reference/opengraph) meta tags.
|
60
143
|
|
61
144
|
Changes:
|
62
|
-
|
145
|
+
|
146
|
+
- Dropped official support for Rails older than 4.2 and Ruby older than 2.2 (both reached their End of Life)
|
63
147
|
|
64
148
|
## 2.4.1 (May 15, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.4.0...v2.4.1)
|
65
149
|
|
66
150
|
Features:
|
67
|
-
|
151
|
+
|
152
|
+
- Rails 5.1 support added
|
68
153
|
|
69
154
|
## 2.4.0 (December 8, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.3.1...v2.4.0)
|
70
155
|
|
71
156
|
Features:
|
72
|
-
|
157
|
+
|
158
|
+
- Added amphtml links support
|
73
159
|
|
74
160
|
Bugfixes:
|
75
|
-
|
161
|
+
|
162
|
+
- Fixed `place` attribute meta tag generation
|
76
163
|
|
77
164
|
## 2.3.1 (September 13, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.2.0...v2.3.1)
|
78
165
|
|
79
166
|
Changes:
|
80
|
-
|
167
|
+
|
168
|
+
- Added follow meta tag support
|
81
169
|
|
82
170
|
Features:
|
83
|
-
|
171
|
+
|
172
|
+
- Added support for article meta tags
|
84
173
|
|
85
174
|
## 2.2.0 (August 24, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.1.0...v2.2.0)
|
86
175
|
|
87
176
|
Changes:
|
88
177
|
|
89
|
-
|
178
|
+
- Rails < 3.2 is not longer supported
|
90
179
|
|
91
180
|
Features:
|
92
181
|
|
93
|
-
|
94
|
-
|
95
|
-
|
182
|
+
- Added support for `<link rel="image_src" href="...">` tag
|
183
|
+
- Added support for App Links
|
184
|
+
- Added support for `follow` meta tag
|
96
185
|
|
97
186
|
Bugfixes:
|
98
187
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
188
|
+
- Fixed double escaping for ampersands (thanks to @srecnig)
|
189
|
+
- Removed usage of `alias_method_chain` to fix deprecation warnings with Rails 5
|
190
|
+
- Fixed the issue when title was truncated in some cases, when site_title was blank
|
191
|
+
- Fixed meta tag attributes for `fb:` meta tags
|
103
192
|
|
104
193
|
## 2.1.0 (October 6, 2015) [☰](https://github.com/kpumuk/meta-tags/compare/v2.0.0...v2.1.0)
|
105
194
|
|
106
195
|
Changes:
|
107
196
|
|
108
|
-
|
197
|
+
- Ruby < 2.0 is not longer supported
|
109
198
|
|
110
199
|
Features:
|
111
200
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
201
|
+
- Added charset meta tag
|
202
|
+
- Added ability to configure limits for title, description, keywords
|
203
|
+
- Added OpenSearch links support
|
204
|
+
- Added icon links support
|
205
|
+
- Alternate links can now be generated for RSS or mobile versions
|
117
206
|
|
118
207
|
Bugfixes
|
119
|
-
|
120
|
-
|
208
|
+
|
209
|
+
- Generate `<meta name=""/>` instead of `<meta property=""/>` for custom meta tags
|
210
|
+
- Double HTML escaping in meta tags
|
121
211
|
|
122
212
|
## 2.0.0 (April 15, 2014) [☰](https://github.com/kpumuk/meta-tags/compare/v1.6.0...v2.0.0)
|
123
213
|
|
124
214
|
Features:
|
125
215
|
|
126
|
-
|
216
|
+
- Fully refactored code base.
|
127
217
|
|
128
218
|
Bugfixes:
|
129
219
|
|
130
|
-
|
220
|
+
- Symlink references in nested hashes include use normalized meta tag values.
|
131
221
|
|
132
222
|
## 1.6.0 (April 14, 2014) [☰](https://github.com/kpumuk/meta-tags/compare/v1.5.0...v1.6.0)
|
133
223
|
|
134
224
|
Features:
|
135
225
|
|
136
|
-
|
137
|
-
|
138
|
-
|
226
|
+
- Added "alternate" links support
|
227
|
+
- Added Google "author" and "publisher" links
|
228
|
+
- Implemented mirrored values inside namespaces declared as hashes
|
139
229
|
|
140
230
|
Breaking changes:
|
141
231
|
|
142
|
-
|
232
|
+
- Removed support of Rails older than 3.0.0 due to the bug in `Hash#deep_merge` (does not support `HashWithIndifferentAccess`)
|
143
233
|
|
144
234
|
## 1.5.0 (May 7, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.4.1...v1.5.0)
|
145
235
|
|
146
236
|
Features:
|
147
237
|
|
148
|
-
|
149
|
-
|
238
|
+
- Added "prev" and "next" links support
|
239
|
+
- Added refresh meta tag support
|
150
240
|
|
151
241
|
## 1.4.1 (March 14, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.4.0...v1.4.1)
|
152
242
|
|
153
243
|
Bugfixes:
|
154
244
|
|
155
|
-
|
245
|
+
- Added support for Hash inside of an Array
|
156
246
|
|
157
247
|
## 1.4.0 (March 14, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.3.0...v1.4.0)
|
158
248
|
|
159
249
|
Features:
|
160
250
|
|
161
|
-
|
251
|
+
- Added support of custom meta tags
|
162
252
|
|
163
253
|
## 1.3.0 (February 13, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.6...v1.3.0)
|
164
254
|
|
165
255
|
Features:
|
166
256
|
|
167
|
-
|
168
|
-
|
169
|
-
|
257
|
+
- Added Hash and Array as possible contents for the meta tags. Check README for details
|
258
|
+
- Added support of string meta tag names
|
259
|
+
- Allow to disable noindex and nofollow using `false` as a value
|
170
260
|
|
171
261
|
Bugfixes:
|
172
262
|
|
173
|
-
|
174
|
-
|
263
|
+
- Do not display title HTML tag when title is blank
|
264
|
+
- Do not display OpenGraph tags when content is empty
|
175
265
|
|
176
266
|
## 1.2.6 (March 4, 2012) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.5...v1.2.6)
|
177
267
|
|
178
268
|
Features:
|
179
269
|
|
180
|
-
|
270
|
+
- jQuery.pjax support via `display_title` method. Check README for details
|
181
271
|
|
182
272
|
## 1.2.5 (March 3, 2012) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.4...v1.2.5)
|
183
273
|
|
184
274
|
Bugfixes:
|
185
275
|
|
186
|
-
|
187
|
-
|
188
|
-
|
276
|
+
- Fixed bug with overriding open graph attributes
|
277
|
+
- Fixed incorrect page title when `:site` is is blank
|
278
|
+
- Normalize `:og` attribute to `:open_graph`
|
189
279
|
|
190
280
|
## 1.2.4 (April 26, 2011) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.3...v1.2.4)
|
191
281
|
|
192
282
|
Features:
|
193
283
|
|
194
|
-
|
284
|
+
- Added support for Open Graph meta tags
|
195
285
|
|
196
286
|
Bugfixes:
|
197
287
|
|
198
|
-
|
199
|
-
|
288
|
+
- Fixed bug with double HTML escaping in title separator
|
289
|
+
- Allow to set meta title without a separator
|
200
290
|
|
201
291
|
## 1.2.2, 1.2.3 (June 10, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.1...v1.2.3)
|
202
292
|
|
203
293
|
Bugfixes:
|
204
294
|
|
205
|
-
|
206
|
-
|
295
|
+
- Fixed action_pack integration (welcome back `alias_method_chain`)
|
296
|
+
- Fixed bug when `@page_*` variables did not work
|
207
297
|
|
208
298
|
## 1.2.1 (June 2, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.0...v1.2.1)
|
209
299
|
|
210
300
|
Bugfixes:
|
211
301
|
|
212
|
-
|
302
|
+
- Fixed deprecation warning about `html_safe!`
|
213
303
|
|
214
304
|
## 1.2.0 (May 31, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.1.1...v1.2.0)
|
215
305
|
|
216
306
|
Bugfixes:
|
217
307
|
|
218
|
-
|
219
|
-
|
308
|
+
- Fixed bug when title is set through Array, and `:lowercase` is true
|
309
|
+
- Updated `display_meta_tags` to be compatible with rails_xss
|
220
310
|
|
221
311
|
## 1.1.1 (November 21, 2009) [☰](https://github.com/kpumuk/meta-tags/compare/v1.1.0...v1.1.1)
|
222
312
|
|
223
313
|
Features:
|
224
314
|
|
225
|
-
|
226
|
-
|
315
|
+
- Added support for canonical link element
|
316
|
+
- Added YARD documentation
|
227
317
|
|
228
318
|
## 1.1.0 (November 5, 2009) [☰](https://github.com/kpumuk/meta-tags/commits/v1.1.0)
|
229
319
|
|
230
320
|
Features:
|
231
321
|
|
232
|
-
|
233
|
-
|
234
|
-
|
322
|
+
- Added ability to specify title as an Array of parts
|
323
|
+
- Added helper for `noindex`
|
324
|
+
- Added `nofollow` meta tag support
|
235
325
|
|
236
326
|
Bugfixes:
|
237
327
|
|
238
|
-
|
328
|
+
- Fixed Rails 2.3 deprecation warnings
|
data/CONTRIBUTING.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Contributing
|
2
2
|
|
3
3
|
We love pull requests from everyone. By participating in this project, you
|
4
|
-
agree to abide by the [code of conduct](https://github.com/kpumuk/meta-tags/blob/
|
4
|
+
agree to abide by the [code of conduct](https://github.com/kpumuk/meta-tags/blob/main/CODE_OF_CONDUCT.md).
|
5
5
|
|
6
6
|
## Configuring Development Environment
|
7
7
|
|
@@ -29,13 +29,13 @@ Make your change. Add tests for your change. Make the tests pass:
|
|
29
29
|
argument for the meta tag name should be `name`:
|
30
30
|
|
31
31
|
```html
|
32
|
-
<meta name="keywords" content="HTML,CSS,XML,JavaScript"
|
32
|
+
<meta name="keywords" content="HTML,CSS,XML,JavaScript" />
|
33
33
|
```
|
34
34
|
|
35
35
|
Some social networks require to use `property` argument instead (Facebook Open Graph).
|
36
36
|
MetaTags supports the most popular meta tags, but there will be tags that are not covered
|
37
37
|
by default. If you found one, and you feel like the community would benefit from
|
38
|
-
MetaTags supporting it out of the box, feel free to add it to [the list](https://github.com/kpumuk/meta-tags/blob/
|
38
|
+
MetaTags supporting it out of the box, feel free to add it to [the list](https://github.com/kpumuk/meta-tags/blob/main/lib/meta_tags/configuration.rb#L23-L57)
|
39
39
|
and submit a pull request.
|
40
40
|
|
41
41
|
## Raising a Pull Request
|
@@ -47,6 +47,6 @@ within couple days. We may suggest some changes or improvements or alternatives.
|
|
47
47
|
|
48
48
|
Some things that will increase the chance that your pull request is accepted:
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
50
|
+
- Write tests.
|
51
|
+
- Make sure [CodeClimate](https://codeclimate.com/github/kpumuk/meta-tags/builds) build is clean.
|
52
|
+
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
|
data/Gemfile
CHANGED
@@ -1,21 +1,30 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
source '
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in meta-tags.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
8
|
if ENV['RAILS_VERSION']
|
9
9
|
# Install specified version of actionpack if requested
|
10
|
-
gem '
|
10
|
+
gem 'railties', "~> #{ENV['RAILS_VERSION']}"
|
11
|
+
end
|
12
|
+
|
13
|
+
unless ENV["NO_STEEP"] == '1'
|
14
|
+
# Ruby typings
|
15
|
+
gem 'steep', '~> 1.0.1', platform: :mri
|
11
16
|
end
|
12
17
|
|
13
18
|
group :test do
|
14
19
|
# Lock rubocop to a specific version we use on CI. If you update this,
|
15
20
|
# don't forget to switch rubocop channel in the .codeclimate.yml
|
16
|
-
gem 'rubocop', '
|
21
|
+
gem 'rubocop', '= 1.31.0'
|
22
|
+
# Cops for rails apps
|
23
|
+
gem 'rubocop-rails'
|
24
|
+
# Apply RSpec rubocop cops
|
25
|
+
gem 'rubocop-rspec', require: false
|
17
26
|
# We use this gem on CI to calculate code coverage.
|
18
|
-
gem 'simplecov'
|
27
|
+
gem 'simplecov', '~> 0.21.2'
|
19
28
|
# Format RSpec output for CircleCI
|
20
29
|
gem 'rspec_junit_formatter'
|
21
30
|
end
|