datasource 0.3.0 → 0.3.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: acadf2996a54023f7ea9ec464ae0b82ad0c57dc9
4
- data.tar.gz: 7f1759d99758a076f66787bb152c147cbb0ba714
3
+ metadata.gz: 9973311b949db8c6ca01bb3ecb48783672c3c944
4
+ data.tar.gz: c637f609505d2b804d1584217c54014538cfc610
5
5
  SHA512:
6
- metadata.gz: a8d565d3e8d3e2e44ee7c3c22f27f8e776b10f3b301c6f252a996b9130d1a39c15da04e92530d1a5eb81b892815d7377b61d2aaadeadd1841c22df1c5199a0ab
7
- data.tar.gz: c40d2192fcdaf926b25f4ece6f8378a763e63459d1ff5a673d06a14e32fbe2183c26b43de1a3f49955b5c73eb9ab6a18bfbc6c6e03b3f78dbefa0d6930a83d5f
6
+ metadata.gz: 6f9ab2da59af6554020f41def1cb53d0d5d8081f0670c72cd8987eea12d3e1e5fe0e03429dc60f8565fdee3dbdac8b636498401c205f70972aa3b5ebfc5170fe
7
+ data.tar.gz: fb9edb165717234696afc3a1025d2cd843a73ee1e3d62f11d2ee0a3963437941fd985aabce29ba505e9270fda6409897dd9828627d43ffff8f0c2ca904e09096
@@ -67,8 +67,8 @@ module Datasource
67
67
  attr_accessor :_datasource_loaded, :_datasource_instance
68
68
  end
69
69
 
70
- def for_serializer(serializer_class = nil, datasource_class = nil)
71
- self.class.upgrade_for_serializer([self], serializer_class, datasource_class).first
70
+ def for_serializer(serializer_class = nil, datasource_class = nil, &block)
71
+ self.class.upgrade_for_serializer([self], serializer_class, datasource_class, &block).first
72
72
  end
73
73
 
74
74
  module ClassMethods
@@ -91,8 +91,8 @@ module Datasource
91
91
  end
92
92
  end
93
93
 
94
- def for_serializer(serializer_class = nil, datasource_class = nil)
95
- self.class.upgrade_for_serializer([self], serializer_class, datasource_class).first
94
+ def for_serializer(serializer_class = nil, datasource_class = nil, &block)
95
+ self.class.upgrade_for_serializer([self], serializer_class, datasource_class, &block).first
96
96
  end
97
97
 
98
98
  module ClassMethods
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datasource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Berdajs