File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 publish :
99 runs-on : ubuntu-latest
1010
11+ permissions :
12+ contents : write
13+ id-token : write
14+
1115 steps :
12- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v6
17+
18+ - name : Configure trusted publishing credentials
19+ uses : rubygems/configure-rubygems-credentials@v1.0.0
1320
1421 - name : Publish to RubyGems
1522 run : |
16- mkdir -p $HOME/.gem
17- touch $HOME/.gem/credentials
18- chmod 0600 $HOME/.gem/credentials
19- printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
2023 gem build class_kit.gemspec
2124 gem push class_kit-*.gem
22- env :
23- GEM_HOST_API_KEY : " ${{secrets.RUBYGEMS_AUTH_TOKEN}}"
Original file line number Diff line number Diff line change 66 runs-on : ubuntu-latest
77
88 steps :
9- - uses : actions/checkout@v2
9+ - uses : actions/checkout@v6
1010 - uses : ruby/setup-ruby@v1
1111 with :
12- ruby-version : 2.5
12+ ruby-version : 4.0
1313 bundler-cache : true
1414
1515 - name : Run tests
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
1818 spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
1919 spec . require_paths = [ 'lib' ]
2020
21- spec . add_development_dependency 'rake' , '~> 10.0'
21+ spec . add_development_dependency 'rake'
2222 spec . add_development_dependency 'rspec'
2323 spec . add_development_dependency 'rubocop'
2424 spec . add_development_dependency 'simplecov' , ' ~> 0.22.0'
Original file line number Diff line number Diff line change 11module ClassKit
22 class AttributeHelper
3-
43 def self . instance
54 @instance ||= ClassKit ::AttributeHelper . new
65 end
@@ -18,12 +17,12 @@ def get_attributes(klass)
1817 return @attribute_store [ klass ] if @attribute_store . key? ( klass )
1918
2019 attributes = [ ]
21- klass . ancestors . map do |k |
20+ klass . ancestors . each do |k |
2221 hash = k . instance_variable_get ( :@class_kit_attributes )
23- if hash != nil
24- hash . values . each do | a |
25- attributes . push ( a )
26- end
22+ next if hash . nil?
23+
24+ hash . each_values do | value |
25+ attributes . push ( value )
2726 end
2827 end
2928 attributes . compact!
Original file line number Diff line number Diff line change 11# Namespace
22module ClassKit
33 # :nodoc:
4- VERSION = '0.9.1 '
4+ VERSION = '0.10.0 '
55end
You can’t perform that action at this time.
0 commit comments