tsubaki 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +1 -1
- data/lib/tsubaki/my_number_validator.rb +1 -1
- data/lib/tsubaki/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6670c698e5b096b76addb7bbd8ced4ea7c615543
|
4
|
+
data.tar.gz: 4e011f826744fc43867213bd393a2f7684d1b2f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af07b276c392ad68c61b9ea826a8b383bbb8295c44c1a6381b4dbdc80499d19008c49cc0ab76b2bda9629f078464fdac06554f8fe301332ac820e7ec1e378a28
|
7
|
+
data.tar.gz: bcb7c76f100c94da586d05c07f74fc29161527fdb6aafa88d9a1c99e16f13c8e1c4ecf30321e9c9f878397afd34c87effa0f2b8863e3f00c5754b31b840514ed
|
data/.rubocop_todo.yml
CHANGED
@@ -5,7 +5,7 @@ module Tsubaki
|
|
5
5
|
class MyNumberValidator < ActiveModel::EachValidator
|
6
6
|
def validate_each(record, attribute, value)
|
7
7
|
return if Tsubaki::MyNumber.new(value, options).valid?
|
8
|
-
record.errors
|
8
|
+
record.errors.add(attribute, options[:message] || :invalid)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
data/lib/tsubaki/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tsubaki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kakipo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|