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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 438a3bebdf33a8da3029f074277a33eff23c3fbf
4
- data.tar.gz: 9236d963e34ed6bee3f0c98e4e18b16968754ef2
3
+ metadata.gz: 6670c698e5b096b76addb7bbd8ced4ea7c615543
4
+ data.tar.gz: 4e011f826744fc43867213bd393a2f7684d1b2f1
5
5
  SHA512:
6
- metadata.gz: 37e45a605acd1e60b9f9ddc2e9c43b92f0c82fbc9ba99f84b7835b4fdccd4086ad8c23b36de8750d353e17133dcef5ac33f4e49a6c0d880b82e582c860a8e5ce
7
- data.tar.gz: 32d29af3cea9e9569070f011883910f140537d7d9ef7879ca45eef3e691bb013693c525d02f01ce947d0d082087fe8cb366534b2575a8cabe7aecafe1977652e
6
+ metadata.gz: af07b276c392ad68c61b9ea826a8b383bbb8295c44c1a6381b4dbdc80499d19008c49cc0ab76b2bda9629f078464fdac06554f8fe301332ac820e7ec1e378a28
7
+ data.tar.gz: bcb7c76f100c94da586d05c07f74fc29161527fdb6aafa88d9a1c99e16f13c8e1c4ecf30321e9c9f878397afd34c87effa0f2b8863e3f00c5754b31b840514ed
data/.rubocop_todo.yml CHANGED
@@ -9,5 +9,5 @@
9
9
  # Offense count: 4
10
10
  # Configuration parameters: AllowURI, URISchemes.
11
11
  Metrics/LineLength:
12
- Max: 104
12
+ Max: 200
13
13
 
@@ -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[attribute] << (options[:message] || :invalid)
8
+ record.errors.add(attribute, options[:message] || :invalid)
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Tsubaki
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: tsubaki
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
  - kakipo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-11 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler