0xfacet-typed 0.0.1 → 0.1.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 -0
- data/Manifest.txt +1 -0
- data/Rakefile +4 -2
- data/lib/0xfacet/typed/version.rb +23 -0
- data/lib/0xfacet/typed.rb +8 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5056e72f499c5c8d20a45ca936a438fd20311d1ed5b4918561d47eace3c75ce
|
4
|
+
data.tar.gz: e73ede96cdebc9b7fd8e4ebcb083833d54e3364a4b55bfbab42e90c909ae6335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d82655739fd83e89d496d24a69d41f59d65c98e3b99dd5123520ba01d93a693c0df39414e4af91e44fd2e0aaf9d3aa855444c4f9bd59416aaa5b3027b63fbf5c
|
7
|
+
data.tar.gz: b62b622eb5d563667d207f22c7e51dba40048db4fb63af485d18405af132dc6ada8772d375fd850a9c9f7860e5b536e0c18b7b393d39b5331b0356fb96ff8a7f
|
data/CHANGELOG.md
CHANGED
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'hoe'
|
2
2
|
|
3
|
-
|
3
|
+
require './lib/0xfacet/typed/version.rb'
|
4
4
|
|
5
5
|
|
6
6
|
Hoe.spec '0xfacet-typed' do
|
7
7
|
|
8
|
-
self.version =
|
8
|
+
self.version = Facet::Module::Typed::VERSION
|
9
9
|
|
10
10
|
self.summary = '0xfacet-typed - solidity-like value and reference types for rubidity o.g.'
|
11
11
|
self.description = summary
|
@@ -20,6 +20,8 @@ Hoe.spec '0xfacet-typed' do
|
|
20
20
|
self.history_file = 'CHANGELOG.md'
|
21
21
|
|
22
22
|
self.extra_deps = [
|
23
|
+
## ['0xfacet'],
|
24
|
+
['activesupport', '>= 7.0'],
|
23
25
|
]
|
24
26
|
|
25
27
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Facet
|
2
|
+
module Module
|
3
|
+
module Typed
|
4
|
+
MAJOR = 0
|
5
|
+
MINOR = 1
|
6
|
+
PATCH = 0
|
7
|
+
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
8
|
+
|
9
|
+
def self.version
|
10
|
+
VERSION
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.banner
|
14
|
+
"facet-typed/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.root
|
18
|
+
File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )
|
19
|
+
end
|
20
|
+
|
21
|
+
end # module Typed
|
22
|
+
end # module Module
|
23
|
+
end # module Facet
|
data/lib/0xfacet/typed.rb
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
##
|
3
|
+
## note: depends on (some) activesupport (rails-y) extensions
|
4
|
+
# Array.exclude?
|
5
|
+
# ...
|
3
6
|
require 'active_support/all'
|
4
7
|
|
5
8
|
|
6
9
|
## our own code
|
10
|
+
require_relative 'typed/version' ## let version always go first
|
11
|
+
|
7
12
|
require_relative 'typed/contract_errors' ## move upstream to 0xfacet !!!
|
8
13
|
|
9
14
|
require_relative 'typed/attr_public_read_private_write'
|
@@ -14,3 +19,5 @@ require_relative 'typed/mapping_type'
|
|
14
19
|
require_relative 'typed/contract_type'
|
15
20
|
|
16
21
|
|
22
|
+
|
23
|
+
puts Facet::Module::Typed.banner ## say hello
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: 0xfacet-typed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.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-11-
|
11
|
+
date: 2023-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '7.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '7.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rdoc
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +80,7 @@ files:
|
|
66
80
|
- lib/0xfacet/typed/mapping_type.rb
|
67
81
|
- lib/0xfacet/typed/type.rb
|
68
82
|
- lib/0xfacet/typed/typed_variable.rb
|
83
|
+
- lib/0xfacet/typed/version.rb
|
69
84
|
homepage: https://github.com/s6ruby/rubidity.review
|
70
85
|
licenses:
|
71
86
|
- Public Domain
|