windcharger 0.6.0 → 0.7.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: e8e26b7926c106cea632124f5d031f2ae434e3641f13f6ca4d721284437e5505
4
- data.tar.gz: 64bd2a8c7196e7469ebd575cf2cb1734a7d2734bb36382537d179a8d5f5c9cff
3
+ metadata.gz: b1f803222a12d8986cb4bc94f323c4ecd50a28f1e1c199b31cf6f71262e71b78
4
+ data.tar.gz: b03b6f1073da78a608781b02c8ef68e142471621b00e223c3d10bba8ba846679
5
5
  SHA512:
6
- metadata.gz: 00a7a5a53d468f825de59165b294a08c13f1cf03634dfff0a3b566180628dddbdd877e931560fdf3e3341ff7093be215d03bf4a562c521d263e218b21227cb35
7
- data.tar.gz: bf3d5b88e5b9fe7552b0f1b846e371648e38c1e5e623012757190b882f51b951b97350281f36a47f10046c316d995e1f8972e556c3836ae093f8f942d1befbf4
6
+ metadata.gz: c3afe86c519266cb6647d32f0d06e6923627572f55cf05c2b5d6e04febe2583123de3d20699439f8349ab3e5f0ac163453cfa54a1d1e709796d96fb29a638f3d
7
+ data.tar.gz: 3919d9fe6ec928a64124477e0d5fee5b062d3d3f88c0a935cace48b4eaa264f4992bf143e4d454b14d5c7ec2025a156a34b26a946f527a63d38d830ef1fe14c2
@@ -14,9 +14,11 @@ jobs:
14
14
  - '2.6'
15
15
  - '2.7'
16
16
  - '3.0'
17
+ - '3.1'
18
+ - '3.2'
17
19
 
18
20
  steps:
19
- - uses: actions/checkout@v2
21
+ - uses: actions/checkout@v3
20
22
  - name: Setup
21
23
  uses: ruby/setup-ruby@v1
22
24
  with:
@@ -24,3 +26,10 @@ jobs:
24
26
  bundler-cache: true
25
27
  - name: Run tests
26
28
  run: bundle exec rake
29
+
30
+ ci_complete:
31
+ runs-on: ubuntu-latest
32
+ needs:
33
+ - test
34
+ steps:
35
+ - run: ":"
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Windcharger
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/windcharger.svg)](https://rubygems.org/gems/windcharger)
4
- [![Build Status](https://secure.travis-ci.org/amarshall/windcharger.svg?branch=master)](https://travis-ci.org/amarshall/windcharger)
5
4
 
6
5
  ![Windcharger mascot. He carries powerful magnets in his arms that he can use to manipulate large objects.](https://i.imgur.com/lApzHFP.jpg "He carries powerful magnets in his arms that he can use to manipulate large objects.")
7
6
 
@@ -3,7 +3,9 @@
3
3
  module Windcharger
4
4
  module Attributes
5
5
  def attributes
6
- (@__windcharger_attributes ||= []).dup.freeze
6
+ @__windcharger_attributes ||= []
7
+ super_attrs = superclass.respond_to?(:attributes) ? superclass.attributes : []
8
+ [*super_attrs, *@__windcharger_attributes].freeze
7
9
  end
8
10
 
9
11
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Windcharger
4
- VERSION = '0.6.0'
4
+ VERSION = '0.7.0'
5
5
  end
@@ -105,4 +105,20 @@ describe Windcharger::Attributes do
105
105
  expect(calls_before).to eq %i[foo bar]
106
106
  expect(calls_after).to eq %i[foo bar]
107
107
  end
108
+
109
+ it 'inherits attributes from its superclass' do
110
+ parent_class = Class.new do
111
+ extend Windcharger::Attributes
112
+
113
+ attribute
114
+ def foo; end
115
+ end
116
+
117
+ transformer_class = Class.new(parent_class) do
118
+ attribute
119
+ def bar; end
120
+ end
121
+
122
+ expect(transformer_class.attributes).to match_array [:foo, :bar]
123
+ end
108
124
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: windcharger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Marshall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 1980-01-01 00:00:00.000000000 Z
11
+ date: 2023-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.2.26
102
+ rubygems_version: 3.3.20
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Small library to easily make objects that transform input via many methods.