kawaii_validation 0.0.2 → 0.0.3

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: 6903c67b15fc21d50b22116eda5671c5079b9194
4
- data.tar.gz: e2a3f42e642f7b51ba53633c21377e8cd624712f
3
+ metadata.gz: 33e8c100829846a72967a5e33929bd3ff85a93be
4
+ data.tar.gz: f3e288f99709fc35419fdf94d05d9ce296e3f907
5
5
  SHA512:
6
- metadata.gz: 88eddd7a05e674b7c635fbaeeb4a91c57d184270fe01d2faf5d2219e0a3299460aefd2a06d5e30e1a03f7e4a8a030f72c0ff0b9cfd48d72b22ac4ce7face49f2
7
- data.tar.gz: f251a64213e02a606fc9f194c4123c73e1b1834a83494f376f09ae3254ce716574b708d8314c70cdaef885d9e41c834eea9c2dfd22f732340da7597b53cd305f
6
+ metadata.gz: 7130700427637a3fb9858252b4a12b1663f11dc6465c9ae85d9f08badd6525c0f530ec75e17a015938eecb70fb01ece0feb8cce90420f4d378bdb9a107704c15
7
+ data.tar.gz: e0a7ec58f3beaf5b3728b8c45f2114a24a6882938da509ea4047374fa94858256ed421faf14ee165b9007cd4a8d5f813a7d4580a800f9d1275c7bb622a7a26f5
data/README.md CHANGED
@@ -12,6 +12,12 @@ And then execute:
12
12
 
13
13
  $ bundle
14
14
 
15
+ ## Supported versions ##
16
+
17
+ * Ruby 2.0, and 2.1 (trunk)
18
+
19
+ * Rails 3.2.x, 4.0 and 4.1 (edge)
20
+
15
21
  ## Usage
16
22
 
17
23
  With this gem bundled, the `validates` method takes a block argument, and the following two new DSLs will be enabled:
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "kawaii_validation"
7
- spec.version = '0.0.2'
7
+ spec.version = '0.0.3'
8
8
  spec.authors = ["Akira Matsuda"]
9
9
  spec.email = ["ronnie@dio.jp"]
10
10
  spec.description = 'Model.validates { presence_of :name }'
@@ -6,7 +6,7 @@ module KawaiiValidation
6
6
  # validates(:title) do
7
7
  # presence :if => -> { true }
8
8
  # end
9
- class AttributedValidator < (Rails::VERSION::MAJOR == 4) ? ::ActiveSupport::ProxyObject : ::ActiveSupport::BasicObject
9
+ class AttributedValidator < (Rails::VERSION::MAJOR >= 4) ? ::ActiveSupport::ProxyObject : ::ActiveSupport::BasicObject
10
10
  include ::ActiveModel::Validations::HelperMethods
11
11
 
12
12
  def initialize(klass, *attributes)
@@ -6,7 +6,7 @@ module KawaiiValidation
6
6
  # validates do
7
7
  # presence_of :title, :if => -> { true }
8
8
  # end
9
- class NonAttributedValidator < (Rails::VERSION::MAJOR == 4) ? ::ActiveSupport::ProxyObject : ::ActiveSupport::BasicObject
9
+ class NonAttributedValidator < (Rails::VERSION::MAJOR >= 4) ? ::ActiveSupport::ProxyObject : ::ActiveSupport::BasicObject
10
10
  include ::ActiveModel::Validations::HelperMethods
11
11
 
12
12
  def initialize(klass)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kawaii_validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-19 00:00:00.000000000 Z
11
+ date: 2015-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.0.2
152
+ rubygems_version: 2.4.5
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: An ActiveRecord extension that adds more kawaii validation syntax