solidity-typed 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/solidity/typed/metatypes/literals.rb +1 -1
- data/lib/solidity/typed/metatypes/types.rb +0 -1
- data/lib/solidity/typed/typed.rb +1 -1
- data/lib/solidity/typed/version.rb +2 -2
- data/lib/solidity/typed.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f81ad150dc806a0f2762f4d012dd5b2f64a6957f1a6b44b366823fab8a05b07
|
4
|
+
data.tar.gz: 269e9e51fa0a30e1b95d2abea121494bef11af559ec7f1063b6283c9315d15a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d614ebe7a9be302c64fec852d3c0105fd70574a9302315ac12d47a6dbedd434c5ec562eb00f657036bb20604ec32905644ad5af389e0fe318195c5ce26a8e892
|
7
|
+
data.tar.gz: 261b765c22ae3eb26c45e95ca9082dece2de4ee026d6cd74f9207db1fda6a02d040908d8bdd954e566333e6c5c2bb0d0b4423d57df2d4e1fad4b6ee7dd2d1ac1
|
data/CHANGELOG.md
CHANGED
@@ -53,7 +53,7 @@ class Type
|
|
53
53
|
|
54
54
|
## todo/check - use a different base class for contracts - why? why not?
|
55
55
|
## fix fix fix: check matching contract type/class too - why? why not?
|
56
|
-
if literal.is_a?(
|
56
|
+
if literal.is_a?( Contract )
|
57
57
|
return literal
|
58
58
|
else
|
59
59
|
raise TypeError, "No literals allowed for contract types got: #{literal}; sorry"
|
@@ -16,7 +16,6 @@
|
|
16
16
|
# global helper(s) - move to ??? - why? why not?
|
17
17
|
|
18
18
|
def _sanitize_class_name( name )
|
19
|
-
name = name.sub( /\bContractBase::/, '' ) ## remove contract module from name if present
|
20
19
|
name = name.sub( /\bContract::/, '' ) ## remove contract module from name if present
|
21
20
|
name = name.sub( /\bTyped::/, '' )
|
22
21
|
name = name.sub( /\bTypes::/, '' )
|
data/lib/solidity/typed/typed.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
=begin
|
3
3
|
class Object ### move to core_ext/object - why? why not?
|
4
4
|
## check - add scoped class here too - why? why not?
|
5
|
-
## e.g. is_a?( Typed )
|
5
|
+
## e.g. is_a?( Typed )
|
6
6
|
## or add a TypedContract delagate class or such - why? why not?
|
7
7
|
## fix - check for class has singelton method type - why? why not?
|
8
8
|
def typed?() is_a?( Typed ); end
|
data/lib/solidity/typed.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidity-typed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|