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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cab5fbc87f1af758c2b385feaed5c43cf2f7555f2f55322e1bbbfe47771a42d
4
- data.tar.gz: a79f9fd570f548895fcd3cc4d65e7f6ba614692f0671e09ce70be6704b49428a
3
+ metadata.gz: 7215ef47e61eb079f744d20ea8ee623fecd1efa03d2e66594c2191f376a1f694
4
+ data.tar.gz: 9775e8cb32223967f0970be9bf5132aef00d9082a395a900ca3c0767f9e069c5
5
5
  SHA512:
6
- metadata.gz: 42c3abfd70e12c52f185a49d6ccb2bfe4429a52eab2d18e8613058bc5687d6c525ac3ad3d5eaab75c1cbe092536673bb2c675d5adc2e26759a8a824e0ff4a096
7
- data.tar.gz: 21eb0b7ab6ab434f512525f5a36fbf07c0a79ce53173c4c417ee379b52de737a4db1baf226019bc4d0eb813e2f7e6a502101f6674d6ba5703bc671bee1fd385c
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: [ master ]
5
+ branches: [master]
6
6
  pull_request:
7
- branches: [ master ]
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
- - uses: actions/checkout@v2
17
- - name: Set up Ruby
18
- uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: 2.6
21
- - name: Install dependencies
22
- run: bundle install
23
- - name: Run tests
24
- run: bundle exec rake
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
- 2.6.6
1
+ 3.0.3
data/dev.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: smart-properties
3
3
  up:
4
- - ruby: 2.4.1
4
+ - ruby: 3.0.3
5
5
  - bundler
6
6
  commands:
7
- test: bundle exec rake test
7
+ test: bundle exec rake
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SmartProperties
2
- VERSION = "1.16.3"
2
+ VERSION = "1.17.0"
3
3
  end
@@ -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.16.3
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-09-16 00:00:00.000000000 Z
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.20
116
+ rubygems_version: 3.2.32
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: SmartProperties – Ruby accessors on steroids