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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23ffadf09dbcb9b8ec2540375586d5d967b4ba84
4
- data.tar.gz: 462e4ac711a96341bdc049d30d9cd2b176cce7bd
3
+ metadata.gz: b9d4b0e0fd7f3c2d7f94d5b95ed61118ec72eeed
4
+ data.tar.gz: e08e6250812c65c6206b5b3d0e64c43996262289
5
5
  SHA512:
6
- metadata.gz: 8166f8d2581b7b54c6b2fbc21f632e09423c3feffae3d253724548f17fcdae9a88a4fe44d83702a1eb2e721a06e667e69e737727e3f602eb773316f0b0c36265
7
- data.tar.gz: ce020f9d71a1ab7509f8be5401292c7bb268b05a92ef43817d1edc0ece6220c61a65293da9a5cf6604034b2b137b63d852dd6336d28460df0e9dce00832c8998
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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Representable
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
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.1
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-23 00:00:00.000000000 Z
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