valle 0.2.2 → 0.2.3

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: 74380cfc7d5d671f280d9b6debdcf816c9764257
4
- data.tar.gz: aa0ed5f2056665c3a42744efd3514440111ac98e
3
+ metadata.gz: a2397c0090d814c90a8741d75a8f7f180577cbe3
4
+ data.tar.gz: 54a8ea77e0490b1a287368c8ec5a478a355170cf
5
5
  SHA512:
6
- metadata.gz: e4a60d882046ba792eba8b368589ce09cd29fb12f3cc6898a8ba6065bcc078c69632e591a213ed372e2f9a2b3654cf0cf51ff2db957a97563dcfb772ee7ad4cd
7
- data.tar.gz: 62cd4431afe7e8967751bc1daf8abbbc133c9864ecbb9312e0b458bab870909600c3e5adef52d17f4e2cdb2495c22d96e22aa80bee2eb7f259942002852a9713
6
+ metadata.gz: eaae640af84fb06801a8558f59b609e4df68b6805a8259272e09afc0d5c5ded123578aa1f044b32fddfdfec09db8de67ae7ce6599fde7449ffdbb8f8f1d768f4
7
+ data.tar.gz: 011c1cc4f6a3cf91ffee20cc197a6f4bbec5e034b6efef1dd36c4e1475dcdd8212ea80d3c6d521db9f2296c211852f946de4b27f34b66afbfb2ebd9917c04b73
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.3 / 2013-12-16
2
+
3
+ * fixes issue #12 with breaking rake db:migrate:reset [Marcus Geißler]
4
+
1
5
  ## 0.2.2 / 2013-11-28
2
6
 
3
7
  * fix relation does not exist error (fixes #10) [qblake]
data/lib/valle/hooks.rb CHANGED
@@ -47,10 +47,12 @@ module Valle
47
47
  # @note ActiveRecord::Validations should be defined at this point
48
48
  #
49
49
  def can_add_validators?(subclass, inherited_from_class)
50
+ # skip AR::SchemaMigration (AR >= 4.X)
51
+ return false if (defined?(ActiveRecord::SchemaMigration) && subclass == ActiveRecord::SchemaMigration)
52
+
50
53
  Valle.can_process_model?(subclass.model_name) &&
51
54
  inherited_from_class == ActiveRecord::Base &&
52
- subclass.table_exists? &&
53
- (defined?(ActiveRecord::SchemaMigration) && subclass != ActiveRecord::SchemaMigration) # skip AR::SchemaMigration (AR >= 4.X)
55
+ subclass.table_exists?
54
56
  end
55
57
  end
56
58
  end
data/lib/valle/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Valle
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Kalyaev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2013-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord