smart_properties 1.16.3 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/testing.yml +15 -13
- data/.ruby-version +1 -1
- data/dev.yml +2 -2
- data/lib/smart_properties/property.rb +3 -3
- data/lib/smart_properties/version.rb +1 -1
- data/lib/smart_properties.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7215ef47e61eb079f744d20ea8ee623fecd1efa03d2e66594c2191f376a1f694
|
4
|
+
data.tar.gz: 9775e8cb32223967f0970be9bf5132aef00d9082a395a900ca3c0767f9e069c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0540c22c62ff52121aad4e4309ec92d53d7e8269212cd711e20aa094411f8072801ddf74fd1d88cb830eef2d1f3fab69da06343743cd95367d87ff8b92a90e84
|
7
|
+
data.tar.gz: 145ef1c96af37dc9e9c4b5134ef9e6f1a0b9595fe84c5b8fead3af06be5a9ed0b1518231d1e1e1699cdf42c5688a9e3b00fc8f4a78b5a099f5f713383ac08e0a
|
@@ -2,23 +2,25 @@ name: Testing
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
-
branches: [
|
5
|
+
branches: [master]
|
6
6
|
pull_request:
|
7
|
-
branches: [
|
7
|
+
branches: [master]
|
8
8
|
workflow_dispatch:
|
9
9
|
|
10
10
|
jobs:
|
11
11
|
test:
|
12
|
-
|
12
|
+
name: Ruby v${{ matrix.ruby_version}}
|
13
13
|
runs-on: ubuntu-latest
|
14
|
-
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
ruby_version: [2.6.9, 2.7.5, 3.0.3]
|
15
17
|
steps:
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
- uses: actions/checkout@v2
|
19
|
+
- name: Set up Ruby
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{ matrix.ruby_version }}
|
23
|
+
- name: Install dependencies
|
24
|
+
run: bundle install
|
25
|
+
- name: Run tests
|
26
|
+
run: bundle exec rake
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.3
|
data/dev.yml
CHANGED
@@ -10,11 +10,11 @@ module SmartProperties
|
|
10
10
|
attr_reader :instance_variable_name
|
11
11
|
attr_reader :writable
|
12
12
|
|
13
|
-
def self.define(scope, name, options
|
14
|
-
new(name, options).tap { |p| p.define(scope) }
|
13
|
+
def self.define(scope, name, **options)
|
14
|
+
new(name, **options).tap { |p| p.define(scope) }
|
15
15
|
end
|
16
16
|
|
17
|
-
def initialize(name, attrs
|
17
|
+
def initialize(name, **attrs)
|
18
18
|
attrs = attrs.dup
|
19
19
|
|
20
20
|
@name = name.to_sym
|
data/lib/smart_properties.rb
CHANGED
@@ -79,14 +79,14 @@ module SmartProperties
|
|
79
79
|
# :default => :de,
|
80
80
|
# :required => true
|
81
81
|
#
|
82
|
-
def property(name, options
|
83
|
-
properties[name] = Property.define(self, name, options)
|
82
|
+
def property(name, **options)
|
83
|
+
properties[name] = Property.define(self, name, **options)
|
84
84
|
end
|
85
85
|
protected :property
|
86
86
|
|
87
|
-
def property!(name, options
|
87
|
+
def property!(name, **options)
|
88
88
|
options[:required] = true
|
89
|
-
property(name, options)
|
89
|
+
property(name, **options)
|
90
90
|
end
|
91
91
|
protected :property!
|
92
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_properties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Tennhard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
rubygems_version: 3.2.
|
116
|
+
rubygems_version: 3.2.32
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: SmartProperties – Ruby accessors on steroids
|