dbview_cti 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDE5NzUwMDY5MWY1MzVlMzc4MTFhZmYxYTU3ZTg0MGM5MGU5Yjk5Mg==
4
+ MmI3MDRjYjJiNTBlYmZmZDk0MTA0ZDBjMjk3MWMxZDNjNDE2M2ZjZA==
5
5
  data.tar.gz: !binary |-
6
- NTgxNjQ2N2I2ZDY1NzhhYjRmODM2ODdkN2RjYzMyMGNhMGRmODJmMw==
6
+ N2IzYzE1MTk3NjYzZWYwNDg0ZjY2NWU5OTRiMjg4NmM0ZWFkZjM4ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OThiZjE3MzZmMWRhYTk5NTI2ZmIyM2VkNmYxY2ZjY2Y3NjllZGJlZTM2MzM3
10
- YjIxZGUwMDlmZjMzYjI2ODg5NjJiNGYzNDY2MTQ2ZGNiNDQzMGYyOTk3NDBi
11
- Njc3YjU2YzNhN2JiNzNlNDcyNzY1NTRkMjg2MGI1MzZlZDg4MmY=
9
+ OWQwNTE0ODM5ZDA5Y2E0MjUyYjQzZmM0YzEyMjQ5YmUyMWJjYTM5MjE3MzVh
10
+ MGNhODAwZDQwOWZiOGJmMmRhNWM0OGVkZDRkY2QzODBjZTQwZGRiOWJlN2Ni
11
+ YmQwNjhhZTNjODYyNTM2ZDY0NjQyMjdhNzI2NGU5ZWIyZjE3NWI=
12
12
  data.tar.gz: !binary |-
13
- ZTkzYzEzODljNDgwZjBlZDg0NzRlMzBkNDA3NzVhYzk4MzZmMTlmZDJkODM0
14
- OGUxOTcxODQ3Y2MxZjE5MGViZGE3ZjYxNDY2MDY2OTE4OGQxMzI1NTA4M2U4
15
- MGJhN2Y1MGM5NGM0NWQ3NGRhYjZiYWE0N2ZlOGFiOTNjZTdhYjc=
13
+ Y2M5NDQ4YmJkNzZkODc1MzMxYTMzMjlhYWYwZTVhNjkzZGNkOTAwMWUyNzI5
14
+ YmEwZjQxNTkyYWM0NjAzYmQyOGI5YWQ1YTI3MTlkNTdlNzRjOTIzZGNkNmY3
15
+ NDE4ZDYxODA0Mzc2MjJhZDQ4NDY5MDFjOGM4N2QyYmQ5ZjI0ODE=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.1 (29/06/2014)
2
+
3
+ * Fixed bug that occured when using Rails 4.1.2.
4
+
1
5
  ## 0.2.0 (29/05/2014)
2
6
 
3
7
  * Added support for Rails 4.1.
data/dbview_cti.gemspec CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.add_dependency "rails", ">= 3.2.0"
21
21
 
22
- s.add_development_dependency "rspec-rails"
22
+ s.add_development_dependency "rspec-rails", "~> 2.14"
23
23
  s.add_development_dependency "foreigner"
24
24
  end
@@ -29,6 +29,7 @@ module DBViewCTI
29
29
 
30
30
  def cti_association_proxy(association_name)
31
31
  return nil if self.class.reflect_on_all_associations(:belongs_to).map(&:name).include?(association_name.to_sym)
32
+ return nil if !self.class.reflect_on_all_associations.map(&:name).include?(association_name.to_sym) # necessary since rails 4.1.2
32
33
  proxy_name = self.class.cti_association_proxy_name(association_name)
33
34
  proxy = instance_variable_get(proxy_name)
34
35
  if !proxy && !self.class.cti_has_association?(association_name)
@@ -1,3 +1,3 @@
1
1
  module DBViewCTI
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbview_cti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michaël Van Damme
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-29 00:00:00.000000000 Z
11
+ date: 2014-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rspec-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '2.14'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '2.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: foreigner
43
43
  requirement: !ruby/object:Gem::Requirement