rere_validator 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c70fbcbd80e299b25f84cb8f7eb61ab162e1f975
4
- data.tar.gz: 3dfe0649cc239aca5fc5f1607cd3d6dc40807c55
3
+ metadata.gz: 236213010ac4434645e8305a220e3a4f1eea8a29
4
+ data.tar.gz: 79dadd12a61511ba3131d86cd9106416d52f1961
5
5
  SHA512:
6
- metadata.gz: 52bb2b120cdd119864b4ceef12b0c7b330c554f7e47678e3bc1b6a43a56de72041044677487f2fe0bd3eda44ba2ae6ea1589f92dc8e2c976d1b5df38f3bda844
7
- data.tar.gz: f902d5c93dca1940bc94cba507e17c8fdce729c115177bdc86c5e4e963bac8e037c903352c7183fcdc07da33984041b3f3cc612e515132e90b8275bedaac1743
6
+ metadata.gz: cc95a983b739740ba2807cfb40172da5c36a689ffd5a3d90447074e951821607f237771d5c7044e7477218881469a9d634436a026e015dd9cc8dc6c680a1b5f2
7
+ data.tar.gz: 4d803373f1a98a80ea332f14bf2a1e1f960d2ebc6062fd28fc64568b6c6291b295288ea6200c3a9d107488a2cbc25ac46e863b9a525dbe33bcf76badb94c7de9
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ ## v0.1.1
2
+
3
+ - Add more reserved words
4
+
5
+ ## v0.1.0
6
+
7
+ - Initial release
data/README.md CHANGED
@@ -25,7 +25,7 @@ Or install it yourself as:
25
25
  Set the validation to your ActiveModel:
26
26
 
27
27
  ```ruby
28
- class User < ActiveRecord
28
+ class User < ActiveRecord::Base
29
29
  validates :username, regex_reserved: true
30
30
  end
31
31
  ```
@@ -33,7 +33,7 @@ end
33
33
  If you want to add reserved words:
34
34
 
35
35
  ```ruby
36
- class User < ActiveRecord
36
+ class User < ActiveRecord::Base
37
37
  validates :username, regex_reserved: {
38
38
  add_reserved_words: %w[tweet retweet]
39
39
  }
@@ -44,6 +44,7 @@ RESERVED_WORDS = %w[
44
44
  case
45
45
  categories
46
46
  category
47
+ cgi
47
48
  chat
48
49
  client
49
50
  clitoris
@@ -80,6 +81,7 @@ RESERVED_WORDS = %w[
80
81
  die
81
82
  dildo
82
83
  dir
84
+ doc
83
85
  documentation
84
86
  domain
85
87
  download
@@ -97,6 +99,7 @@ RESERVED_WORDS = %w[
97
99
  event
98
100
  example
99
101
  exit
102
+ explore
100
103
  faq
101
104
  favorite
102
105
  favorites
@@ -110,6 +113,7 @@ RESERVED_WORDS = %w[
110
113
  fellatio
111
114
  file
112
115
  files
116
+ first
113
117
  flash
114
118
  follow
115
119
  form
@@ -152,6 +156,7 @@ RESERVED_WORDS = %w[
152
156
  index
153
157
  info
154
158
  information
159
+ inquiry
155
160
  introduction
156
161
  invite
157
162
  ipad
@@ -164,7 +169,10 @@ RESERVED_WORDS = %w[
164
169
  job
165
170
  jobs
166
171
  js
172
+ json
167
173
  language
174
+ last
175
+ legal
168
176
  license
169
177
  link
170
178
  links
@@ -183,10 +191,12 @@ RESERVED_WORDS = %w[
183
191
  logs
184
192
  mail
185
193
  manager
194
+ manual
186
195
  marketing
187
196
  master
188
197
  me
189
198
  media
199
+ member
190
200
  message
191
201
  messages
192
202
  messenger
@@ -221,6 +231,7 @@ RESERVED_WORDS = %w[
221
231
  operator
222
232
  or
223
233
  order
234
+ organization
224
235
  owner
225
236
  page
226
237
  pages
@@ -232,12 +243,18 @@ RESERVED_WORDS = %w[
232
243
  photo
233
244
  photos
234
245
  picture
246
+ plan
235
247
  plugin
236
248
  policies
237
249
  policy
238
250
  poop
251
+ popular
252
+ portal
239
253
  post
254
+ pr
240
255
  premium
256
+ press
257
+ price
241
258
  privacy
242
259
  private
243
260
  product
@@ -247,6 +264,7 @@ RESERVED_WORDS = %w[
247
264
  projects
248
265
  pub
249
266
  public
267
+ purpose
250
268
  pussy
251
269
  put
252
270
  random
@@ -254,12 +272,14 @@ RESERVED_WORDS = %w[
254
272
  readme
255
273
  register
256
274
  registration
275
+ release
257
276
  remove
258
277
  request
259
278
  reserved
260
279
  return
261
280
  returns
262
281
  root
282
+ rss
263
283
  rule
264
284
  rules
265
285
  sale
@@ -303,7 +323,9 @@ RESERVED_WORDS = %w[
303
323
  site-map
304
324
  site_map
305
325
  smtp
326
+ source
306
327
  sql
328
+ src
307
329
  ssh
308
330
  ssl
309
331
  staff
@@ -312,8 +334,14 @@ RESERVED_WORDS = %w[
312
334
  status
313
335
  store
314
336
  stores
337
+ style
338
+ stylesheet
339
+ style.sheet
340
+ style-sheet
341
+ style_sheet
315
342
  support
316
343
  survey
344
+ swf
317
345
  sys
318
346
  system
319
347
  tablet
@@ -1,3 +1,3 @@
1
1
  module RereValidator
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rere_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Natsuki Tanaka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-08 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -76,6 +76,7 @@ files:
76
76
  - ".gitignore"
77
77
  - ".rspec"
78
78
  - ".travis.yml"
79
+ - CHANGELOG.md
79
80
  - Gemfile
80
81
  - LICENSE.txt
81
82
  - README.md