sphene 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bf99d47c7026f5c4a64341060d3787ab4ee20533593168251ddb0164b5b1f3d6
4
+ data.tar.gz: db7835e3e50dfbde58e3a777a5c4e381e889ca01000184f08f3b5318f2f6fa26
5
+ SHA512:
6
+ metadata.gz: d820e9547b57520d64672644c663f7a5e4a99962a73dee1a61831b50617b70017be4b2bb2bddd5a89309c56be43c4ff9d1409acf39c7a6d90d0dda4ee91cee2f
7
+ data.tar.gz: f2ecbb779eba882e16dbc682e3548ab9595c89c24a3e77077ae5dcb5869608be8ca011a924598d7e8369be08992b8eb16e11879bc116a86fb08abc5573a3d1b9
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,19 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Style/Documentation:
13
+ Enabled: false
14
+
15
+ Layout/LineLength:
16
+ Max: 120
17
+
18
+ Layout/EmptyLineAfterGuardClause:
19
+ Enabled: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-12-10
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at alejandrodevs@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in sphene.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Alejandro Gutiérrez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # Sphene
2
+
3
+ This gem aims to provide a lightweight and simple implementation of typed attributes. it implements a lazy attribute casting.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'sphene'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install sphene
20
+
21
+ ## Usage
22
+
23
+ Just include `Sphene::Attributes` in your class and define your
24
+ attributes:
25
+
26
+ ```ruby
27
+ class User
28
+ include Sphene::Attributes
29
+
30
+ attribute :name, Types::String
31
+ attribute :email, Types::String
32
+ attribute :active, Types::Boolean, default: true
33
+ end
34
+ ```
35
+
36
+ Check the types available here: [Types](https://github.com/alejandrodevs/sphene/blob/master/lib/sphene/types.rb)
37
+
38
+ ## Development
39
+
40
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
41
+
42
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
43
+
44
+ ## Contributing
45
+
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/alejandrodevs/sphene. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/alejandrodevs/sphene/blob/master/CODE_OF_CONDUCT.md).
47
+
48
+ ## License
49
+
50
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
51
+
52
+ ## Code of Conduct
53
+
54
+ Everyone interacting in the Sphene project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/alejandrodevs/sphene/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "sphene"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ class Attribute
5
+ attr_reader :name, :type, :default
6
+
7
+ def initialize(name, type: Types::Default, default: nil)
8
+ @name = name
9
+ @type = type
10
+ @default = default
11
+ end
12
+
13
+ def value
14
+ return default unless ivar_defined?(:@value_before_cast)
15
+ return @value if ivar_defined?(:@value)
16
+ @value = type.cast(value_to_cast)
17
+ end
18
+
19
+ def value=(value)
20
+ remove_instance_variable(:@value) if ivar_defined?(:@value)
21
+ @value_before_cast = value
22
+ end
23
+
24
+ private
25
+
26
+ def value_to_cast
27
+ ivar_defined?(:@value_before_cast) ?
28
+ @value_before_cast : default
29
+ end
30
+
31
+ def ivar_defined?(name)
32
+ instance_variable_defined?(name)
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "delegate"
4
+
5
+ module Sphene
6
+ class AttributeSet < SimpleDelegator
7
+ attr_reader :object
8
+
9
+ def initialize(object)
10
+ @object = object
11
+ super({})
12
+ end
13
+
14
+ def self.from(object)
15
+ new(object).tap do |data|
16
+ object.attributes.each do |name, options|
17
+ data[name] = Attribute.new(name, **options)
18
+ end
19
+ end
20
+ end
21
+
22
+ def to_hash
23
+ each.with_object({}) do |(name, attribute), data|
24
+ data[name] = attribute.value
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "sphene/types"
4
+ require "sphene/errors"
5
+
6
+ module Sphene
7
+ module Attributes
8
+ Types = Sphene::Types
9
+
10
+ def initialize(attrs = {})
11
+ initialize_attributes
12
+ assign_attributes(attrs)
13
+ end
14
+
15
+ def self.included(base)
16
+ base.extend(ClassMethods)
17
+ end
18
+
19
+ def read_attribute(name)
20
+ ensure_attribute(name) do |name|
21
+ @attributes[name].value
22
+ end
23
+ end
24
+
25
+ def write_attribute(name, value)
26
+ ensure_attribute(name) do |name|
27
+ @attributes[name].value = value
28
+ end
29
+ end
30
+
31
+ def assign_attributes(attrs)
32
+ attrs.each do |name, value|
33
+ write_attribute(name, value)
34
+ end
35
+ end
36
+
37
+ def attributes
38
+ @attributes.to_hash
39
+ end
40
+
41
+ private
42
+
43
+ def initialize_attributes
44
+ @attributes = AttributeSet.from(self.class)
45
+ end
46
+
47
+ def ensure_attribute(name)
48
+ assert_attribute(name)
49
+ yield(name.to_sym) if block_given?
50
+ end
51
+
52
+ def assert_attribute(name)
53
+ unless @attributes.key?(name.to_sym)
54
+ raise InvalidAttributeNameError.new(name)
55
+ end
56
+ end
57
+
58
+ module ClassMethods
59
+ def attribute(name, type, options = {})
60
+ name = name.to_sym
61
+ options[:type] = type
62
+ attributes[name] = options
63
+ define_attribute_setter_method(name)
64
+ define_attribute_getter_method(name)
65
+ end
66
+
67
+ def inherited(base)
68
+ base.instance_variable_set(:@attributes, attributes.dup)
69
+ end
70
+
71
+ def attributes
72
+ @attributes ||= Hash.new({})
73
+ end
74
+
75
+ private
76
+
77
+ def define_attribute_getter_method(name)
78
+ define_method(name) do
79
+ read_attribute(name)
80
+ end
81
+ end
82
+
83
+ def define_attribute_setter_method(name)
84
+ define_method(:"#{name}=") do |value|
85
+ write_attribute(name, value)
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ class InvalidAttributeNameError < StandardError
5
+ def initialize(attribute)
6
+ super("Invalid attribute name #{attribute}")
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ class Array < Base
6
+ def self.perform(value)
7
+ Array(value)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ class Base
6
+ def self.cast(value)
7
+ return if value.nil?
8
+ perform(value)
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ class Boolean < Base
6
+ def self.perform(value)
7
+ !!value
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "date"
4
+
5
+ module Sphene
6
+ module Types
7
+ class Date < Base
8
+ def self.perform(value)
9
+ ::Date.parse(value)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ class Default < Base
6
+ def self.cast(value)
7
+ value
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ class Float < Base
6
+ def self.perform(value)
7
+ Float(value)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ class Hash < Base
6
+ def self.perform(value)
7
+ value
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ class Integer < Base
6
+ def self.perform(value)
7
+ Integer(value)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ class String < Base
6
+ def self.perform(value)
7
+ String(value)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ class Symbol < Base
6
+ def self.perform(value)
7
+ value.to_sym
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "time"
4
+
5
+ module Sphene
6
+ module Types
7
+ class Time < Base
8
+ def self.perform(value)
9
+ ::Time.parse(value)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ module Types
5
+ autoload :Base, "sphene/types/base"
6
+ autoload :Date, "sphene/types/date"
7
+ autoload :Hash, "sphene/types/hash"
8
+ autoload :Time, "sphene/types/time"
9
+ autoload :Float, "sphene/types/float"
10
+ autoload :Array, "sphene/types/array"
11
+ autoload :String, "sphene/types/string"
12
+ autoload :Symbol, "sphene/types/symbol"
13
+ autoload :Integer, "sphene/types/integer"
14
+ autoload :Boolean, "sphene/types/boolean"
15
+ autoload :Default, "sphene/types/default"
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ VERSION = "0.1.0"
5
+ end
data/lib/sphene.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sphene
4
+ autoload :VERSION, "sphene/version"
5
+ autoload :Attribute, "sphene/attribute"
6
+ autoload :Attributes, "sphene/attributes"
7
+ autoload :AttributeSet, "sphene/attribute_set"
8
+ end
data/sig/sphene.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Sphene
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
data/sphene.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/sphene/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "sphene"
7
+ spec.version = Sphene::VERSION
8
+ spec.authors = ["Alejandro Gutiérrez"]
9
+ spec.email = ["alejandrodevs@gmail.com"]
10
+
11
+ spec.summary = "A lightweight gem for class attributes"
12
+ spec.description = "A lightweight gem for class attributes"
13
+ spec.homepage = "https://github.com/alejandrodevs/sphene"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ #spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = spec.homepage
21
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28
+ end
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ # Uncomment to register a new dependency of your gem
35
+ # spec.add_dependency "example-gem", "~> 1.0"
36
+
37
+ # For more information and examples about making a new gem, checkout our
38
+ # guide at: https://bundler.io/guides/creating_gem.html
39
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sphene
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alejandro Gutiérrez
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A lightweight gem for class attributes
14
+ email:
15
+ - alejandrodevs@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".rspec"
21
+ - ".rubocop.yml"
22
+ - CHANGELOG.md
23
+ - CODE_OF_CONDUCT.md
24
+ - Gemfile
25
+ - LICENSE.txt
26
+ - README.md
27
+ - Rakefile
28
+ - bin/console
29
+ - bin/setup
30
+ - lib/sphene.rb
31
+ - lib/sphene/attribute.rb
32
+ - lib/sphene/attribute_set.rb
33
+ - lib/sphene/attributes.rb
34
+ - lib/sphene/errors.rb
35
+ - lib/sphene/types.rb
36
+ - lib/sphene/types/array.rb
37
+ - lib/sphene/types/base.rb
38
+ - lib/sphene/types/boolean.rb
39
+ - lib/sphene/types/date.rb
40
+ - lib/sphene/types/default.rb
41
+ - lib/sphene/types/float.rb
42
+ - lib/sphene/types/hash.rb
43
+ - lib/sphene/types/integer.rb
44
+ - lib/sphene/types/string.rb
45
+ - lib/sphene/types/symbol.rb
46
+ - lib/sphene/types/time.rb
47
+ - lib/sphene/version.rb
48
+ - sig/sphene.rbs
49
+ - sphene.gemspec
50
+ homepage: https://github.com/alejandrodevs/sphene
51
+ licenses:
52
+ - MIT
53
+ metadata:
54
+ homepage_uri: https://github.com/alejandrodevs/sphene
55
+ source_code_uri: https://github.com/alejandrodevs/sphene
56
+ changelog_uri: https://github.com/alejandrodevs/sphene/blob/master/CHANGELOG.md
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 2.6.0
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubygems_version: 3.2.32
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: A lightweight gem for class attributes
76
+ test_files: []