representable 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/representable.rb +1 -0
- data/lib/representable/version.rb +1 -1
- metadata +52 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9d4b0e0fd7f3c2d7f94d5b95ed61118ec72eeed
|
4
|
+
data.tar.gz: e08e6250812c65c6206b5b3d0e64c43996262289
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a32f69c330b3e7809a7cdb136d7510beaf78fe59e2157a415e2e0fdcedf3fb09230bc009465ac9407d5870214bfd3b2780e0ca13417e0abce34c73a9fe9ef136
|
7
|
+
data.tar.gz: a0f4b545d84a68432a0738bd5ad2e9ff7597d4122852c66757e0a5b49d412500c694d274a0bf5e2c8c1f69ac2c7faec00f63a658e8c0067bea10b56c1b0c5048
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 2.2.2
|
2
|
+
|
3
|
+
* Bug fix: In 2.2.1 I accidentially removed a `super` call in `Representable::inherited` which leads to wrong behavior when having Representable mixed into a class along with other classes overriding `inherited`. Thanks to @jrmhaig for an [excellent bug report](https://github.com/apotonick/representable/issues/139#issuecomment-105926608) making it really easy to find the problem.
|
4
|
+
|
1
5
|
# 2.2.1
|
2
6
|
|
3
7
|
## API change.
|
data/lib/representable.rb
CHANGED
@@ -89,6 +89,7 @@ private
|
|
89
89
|
end
|
90
90
|
|
91
91
|
def inherited(subclass) # DISCUSS: this could be in Decorator? but then we couldn't do B < A(include X) for non-decorators, right?
|
92
|
+
super
|
92
93
|
# FIXME: subclass.representable_attrs is ALWAYS empty at this point.
|
93
94
|
subclass.representable_attrs.inherit!(representable_attrs) # this should be inherit_class!
|
94
95
|
# DISCUSS: this could also just be: subclass.inheritable_attr :representable_attrs --> superclass.representable_attrs.clone
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: representable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -279,4 +279,53 @@ signing_key:
|
|
279
279
|
specification_version: 4
|
280
280
|
summary: Renders and parses JSON/XML/YAML documents from and to Ruby objects. Includes
|
281
281
|
plain properties, collections, nesting, coercion and more.
|
282
|
-
test_files:
|
282
|
+
test_files:
|
283
|
+
- test/as_test.rb
|
284
|
+
- test/benchmarking.rb
|
285
|
+
- test/binding_test.rb
|
286
|
+
- test/cached_test.rb
|
287
|
+
- test/class_test.rb
|
288
|
+
- test/coercion_test.rb
|
289
|
+
- test/config/inherit_test.rb
|
290
|
+
- test/config_test.rb
|
291
|
+
- test/decorator_scope_test.rb
|
292
|
+
- test/decorator_test.rb
|
293
|
+
- test/definition_test.rb
|
294
|
+
- test/example.rb
|
295
|
+
- test/examples/object.rb
|
296
|
+
- test/exec_context_test.rb
|
297
|
+
- test/features_test.rb
|
298
|
+
- test/filter_test.rb
|
299
|
+
- test/for_collection_test.rb
|
300
|
+
- test/generic_test.rb
|
301
|
+
- test/getter_setter_test.rb
|
302
|
+
- test/hash_bindings_test.rb
|
303
|
+
- test/hash_test.rb
|
304
|
+
- test/if_test.rb
|
305
|
+
- test/inherit_test.rb
|
306
|
+
- test/inheritable_test.rb
|
307
|
+
- test/inline_test.rb
|
308
|
+
- test/instance_test.rb
|
309
|
+
- test/is_representable_test.rb
|
310
|
+
- test/json_test.rb
|
311
|
+
- test/lonely_test.rb
|
312
|
+
- test/mongoid_test.rb
|
313
|
+
- test/nested_test.rb
|
314
|
+
- test/object_test.rb
|
315
|
+
- test/parse_strategy_test.rb
|
316
|
+
- test/pass_options_test.rb
|
317
|
+
- test/prepare_test.rb
|
318
|
+
- test/reader_writer_test.rb
|
319
|
+
- test/realistic_benchmark.rb
|
320
|
+
- test/represent_test.rb
|
321
|
+
- test/representable_test.rb
|
322
|
+
- test/schema_test.rb
|
323
|
+
- test/serialize_deserialize_test.rb
|
324
|
+
- test/skip_test.rb
|
325
|
+
- test/stringify_hash_test.rb
|
326
|
+
- test/test_helper.rb
|
327
|
+
- test/test_helper_test.rb
|
328
|
+
- test/wrap_test.rb
|
329
|
+
- test/xml_bindings_test.rb
|
330
|
+
- test/xml_test.rb
|
331
|
+
- test/yaml_test.rb
|