viitenumero 0.0.1 → 0.0.2

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: 4e0c3a5d181a26b0f3adf051c54eb19d32f0a0c7
4
- data.tar.gz: cc75947c71ff4d8cb85ff54a9b8b59eb0d0e4408
3
+ metadata.gz: 0e7ce3fcf81240d447d86381763b7443af1c537c
4
+ data.tar.gz: 3fd6dd902c18e886f1402072ad257e776c170f2a
5
5
  SHA512:
6
- metadata.gz: 950c24538b3a201704ff221940a52b4bf30a3a636f1ee9d1f73b40e9d60ef9ff851b3da97481f1b1676f40278dc7cbd760e872a01c37b3c2a6742448981455ac
7
- data.tar.gz: b304eae94e5dd0c802431fb78c2eae73036cca8da012ec29eaa1276031fcd75a208de968d3eb31e137c285ef98b040f60389b0e456b057d0719c061d0877af34
6
+ metadata.gz: be8645d775a8d373a8eb1b33aeb504272fb618561442025b2bef61f8049a810b514f2aaa86dcba92670d4700beabe3fd9c747dd5eff76703f71c45dca6247705
7
+ data.tar.gz: df353b5856290b84c25d13fab4e6f14af831ed33a9e252c2903803a57febcec635a772c3ba45e56122516cb9916fd9ed8ceefbecf9ba1710314975f1faa5d4e3
@@ -1,3 +1,3 @@
1
1
  module Viitenumero
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,5 +1,7 @@
1
- class ViiteValidator < ActiveModel::EachValidator
2
- def validate_each(record, attribute, value)
3
- record.errors[attribute] << (options[:message] || 'on virheellinen') unless Viite.valid?(value)
4
- end
1
+ module Viitenumero
2
+ class ViiteValidator < ActiveModel::EachValidator
3
+ def validate_each(record, attribute, value)
4
+ record.errors[attribute] << (options[:message] || 'on virheellinen') unless Viite.valid?(value)
5
+ end
6
+ end
5
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viitenumero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Hanhikoski