class2 0.4.0 → 0.4.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: a06a22bea52408ffd64b85a1adaca09f92d9c01b
4
- data.tar.gz: ef14964e9c023946f7fefb3c6b68eabe2b074007
3
+ metadata.gz: 017263e92869b1680872ca430f4dab936a69f1b5
4
+ data.tar.gz: fa66be4eb23322ac1459c1e728229fb29c18eb05
5
5
  SHA512:
6
- metadata.gz: ce1b018403485200bf1348d45eb77c4d4e3c49158233c351b573eb1d4fead11843c036a7c8c3061b2f87700d79a46818273281bf635956030f978a879cb03645
7
- data.tar.gz: c43d375dfa1f161163da622010932aab022736e155f850669fc37258e513db5bcfc251f3dea6160c277e290e7bb0b5373bb1721a302542796838fc47200b1e02
6
+ metadata.gz: 644ff7e386b61470745d7c0b63e5d6376ca793e122e9f262cf541e4d7d6455c9a88195b044b8f476633c3f3ff5fdbca250627c2a21132de146cb90776fc67f64
7
+ data.tar.gz: 12f2fd230377e12285f4c79cd6607cd09d1eac31880ba8888c84ed2822175c6637716d36e078b3b71d344d0e1a087881501a44e842c7714e4b05bb861ce77a47
data/Changes CHANGED
@@ -1,7 +1,11 @@
1
+ 2018-05-29 v0.4.1
2
+ --------------------
3
+ * Fix a namespace'd class from not being defined if top-level class exists
4
+
1
5
  2018-05-27 v0.4.0
2
6
  --------------------
3
- * Fix conversion bug when a module is used as a type specifier
4
- * Fix Fixnum deprecation warnings
7
+ * Bug fix: conversion bug when a module is used as a type specifier
8
+ * Bug fix: Fixnum deprecation
5
9
  * Add support for JSON serialization and accessor formats that differ from definition
6
10
  * Add method that modules can use for initialization
7
11
 
@@ -108,7 +108,7 @@ class Class2
108
108
  end
109
109
 
110
110
  name = name.to_s.classify
111
- return if namespace.const_defined?(name)
111
+ return if namespace.const_defined?(name, false)
112
112
 
113
113
  make_method_name = lambda { |x| x.to_s.gsub(/[^\w]+/, "_") } # good enough
114
114
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Class2
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: class2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Skye Shaw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-27 00:00:00.000000000 Z
11
+ date: 2018-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport