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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c209d69069ab4c0be94317f5318c388111486624b5b58c4939a11e65daa96009
4
- data.tar.gz: 4082fa24ca6d8dca5f41380eabc72eabf73fc495f3856b667e10b1dcdfc25d06
3
+ metadata.gz: 6f81ad150dc806a0f2762f4d012dd5b2f64a6957f1a6b44b366823fab8a05b07
4
+ data.tar.gz: 269e9e51fa0a30e1b95d2abea121494bef11af559ec7f1063b6283c9315d15a3
5
5
  SHA512:
6
- metadata.gz: c9cd172d11fa9623a5f2ad591dde7cb91288438d28630a7320ac4bfffbcc8ecf23b0c3d8bff8c454e0ef0b40d07ed4b1e31b8f12b6d34f78e81b4528e2af7c0d
7
- data.tar.gz: 06c6ba058fc6d2dbd33f4e3a2d652519a8df9646deabbf481457ddced39033b93c83fbc4c34982b56400d12975b6aa67797b4d51716ca751828e551c956854d8
6
+ metadata.gz: d614ebe7a9be302c64fec852d3c0105fd70574a9302315ac12d47a6dbedd434c5ec562eb00f657036bb20604ec32905644ad5af389e0fe318195c5ce26a8e892
7
+ data.tar.gz: 261b765c22ae3eb26c45e95ca9082dece2de4ee026d6cd74f9207db1fda6a02d040908d8bdd954e566333e6c5c2bb0d0b4423d57df2d4e1fad4b6ee7dd2d1ac1
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ### 0.1.1
1
+ ### 0.2.0
2
2
  ### 0.0.1 / 2023-09-10
3
3
 
4
4
  * Everything is new. First release
@@ -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?( ContractBase )
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::/, '' )
@@ -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 ) || is_a?( ContractBase )
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
@@ -2,8 +2,8 @@ module Solidity
2
2
  module Module
3
3
  module Typed
4
4
  MAJOR = 0
5
- MINOR = 1
6
- PATCH = 1
5
+ MINOR = 2
6
+ PATCH = 0
7
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
8
8
 
9
9
  def self.version
@@ -15,7 +15,7 @@ class ValueError < StandardError; end
15
15
 
16
16
  ## forward declare contract base (from solidity)
17
17
  ## for type checking
18
- class ContractBase
18
+ class Contract
19
19
  end
20
20
 
21
21
 
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.1.1
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-12 00:00:00.000000000 Z
11
+ date: 2023-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc