subdomain_validation 0.2.0 → 1.0.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: 259fcfe3f55dc8d3ef44dceb6a443b89ea407135
4
- data.tar.gz: 5abcd0674b67b63d360cef0318d3514218af9e49
3
+ metadata.gz: 0ab7834b70709fc8303b9a6d793b19593cb23007
4
+ data.tar.gz: 56c4d65c99429bc045b56fbc45ab0a218deb4cad
5
5
  SHA512:
6
- metadata.gz: 3947da0d586329f47ad7e888fb9994d211a71f8e83a924d9d46d5825afb8f9c4d3d5c928167cf8f796e459fdeb92df5ee5073b571a6cc7e371297e5cbb2e21f2
7
- data.tar.gz: eb77ae90188a63ddc2326600e6a6db9d2d2bc70391c3b9f3a6d40d15b5afb95ab0ef080277ef30a131edb85d3f18e4462de49913a85c37941a24b837580b6eac
6
+ metadata.gz: fc6464baaf8a7385745fe3ded75c71748ff521ed1e9274b9dd86f2b4e7c0971c84aae1937028ae9d8e14930b6b0da0364c6431756615ed953d274f35787f60a7
7
+ data.tar.gz: 18db4e1ec22c0329fcf92fe6083a8c71e3f810a273317f69e587c1126260c6ca9837d4808578be7890d8c5ffa2a06143caf1ae5f1c68aebf4dff49a4eee50d3a
data/README.md CHANGED
@@ -14,7 +14,7 @@ Run bundler.
14
14
 
15
15
  ## How to use
16
16
 
17
- Add `SubdomainValidation` module to a model.
17
+ First, Add `SubdomainValidation` module to a model.
18
18
 
19
19
  ```rb
20
20
  class User < ActiveRecord::Base
@@ -22,7 +22,7 @@ class User < ActiveRecord::Base
22
22
  end
23
23
  ```
24
24
 
25
- Add `validates` method on a column in the model.
25
+ Next, add `validates` method on a column in the model.
26
26
 
27
27
  ```rb
28
28
  class User < ActiveRecord::Base
@@ -72,10 +72,15 @@ end
72
72
  ### Options
73
73
 
74
74
  - reserved_name
75
+ - Values: String Array or False
75
76
  - String Array
76
- - You can reserve the words which can not be taken.
77
- - If use this option, then default reserved_name will be disabled.
78
- - `validates :username, subdomain: { reserved_name: %w(www blog admin) }`
77
+ - You can reserve the words which can not be taken.
78
+ - If use this option, then default reserved_name will be disabled.
79
+ - `validates :username, subdomain: { reserved_name: %w(www blog admin) }`
80
+ - False
81
+ - You can disable reserved_name feature.
82
+ - If use this option, then default reserved_name will be disabled.
83
+ - `validates :username, subdomain: { reserved_name: false }`
79
84
 
80
85
  ### I18n
81
86
 
@@ -1,3 +1,3 @@
1
1
  module SubdomainValidation
2
- VERSION = "0.2.0"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subdomain_validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rui Onodera