File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
1414 spec . homepage = 'https://github.com/b2beauty/jsonapi-utils'
1515 spec . license = 'MIT'
1616
17- spec . files = `git ls-files -z` . split ( " \x0 " ) . reject { | f | f . match ( %r{^(test|spec|features)/} ) }
17+ spec . files = Dir . glob ( "{bin,lib}/**/*" ) + %w( LICENSE.txt README.md CODE_OF_CONDUCT.md )
1818 spec . bindir = 'exe'
1919 spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
2020 spec . require_paths = [ 'lib' ]
Original file line number Diff line number Diff line change 55module JSONAPI
66 module Utils
77 def self . included ( base )
8- base . helper_method :jsonapi_serialize
8+ if base . respond_to? ( :helper_method )
9+ base . helper_method :jsonapi_serialize
10+ end
911 end
1012
1113 def jsonapi_render ( json :, status : nil , options : { } )
You can’t perform that action at this time.
0 commit comments