Skip to content

Commit

Permalink
Adapt for gem-release
Browse files Browse the repository at this point in the history
  • Loading branch information
moiristo committed Feb 17, 2021
1 parent 751ae54 commit 349ecc6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 67 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020 Reinier de Lange
Copyright (c) 2021 Reinier de Lange

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

70 changes: 6 additions & 64 deletions deep_cloneable.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,16 @@

Gem::Specification.new do |s|
s.name = 'deep_cloneable'
s.version = '3.0.0'

s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
s.require_paths = ['lib']
s.version = DeepCloneable::Version
s.authors = ['Reinier de Lange']
s.date = '2020-11-27'
s.description = 'Extends the functionality of ActiveRecord::Base#dup to perform a deep clone that includes user specified associations. '
s.email = '[email protected]'
s.extra_rdoc_files = [
'LICENSE'
]
s.files = [
'.document',
'.rubocop.yml',
'.travis.yml',
'Appraisals',
'CHANGELOG.md',
'Gemfile',
'Gemfile.lock',
'LICENSE',
'Rakefile',
'VERSION',
'deep_cloneable.gemspec',
'gemfiles/3.1.gemfile',
'gemfiles/3.1.gemfile.lock',
'gemfiles/3.2.gemfile',
'gemfiles/3.2.gemfile.lock',
'gemfiles/4.0.gemfile',
'gemfiles/4.0.gemfile.lock',
'gemfiles/4.1.gemfile',
'gemfiles/4.1.gemfile.lock',
'gemfiles/4.2.gemfile',
'gemfiles/4.2.gemfile.lock',
'gemfiles/5.0.gemfile',
'gemfiles/5.0.gemfile.lock',
'gemfiles/5.1.gemfile',
'gemfiles/5.1.gemfile.lock',
'gemfiles/5.2.gemfile',
'gemfiles/5.2.gemfile.lock',
'gemfiles/6.0.gemfile',
'gemfiles/6.0.gemfile.lock',
'init.rb',
'lib/deep_cloneable.rb',
'lib/deep_cloneable/association_not_found_exception.rb',
'lib/deep_cloneable/deep_clone.rb',
'lib/deep_cloneable/skip_validations.rb',
'readme.md',
'test/database.yml',
'test/models.rb',
'test/schema.rb',
'test/test_deep_cloneable.rb',
'test/test_helper.rb'
]
s.extra_rdoc_files = ['LICENSE']
s.files = Dir.glob('{bin/*,lib/**/*,[A-Z]*}')
s.homepage = 'https://github.com/moiristo/deep_cloneable'
s.licenses = ['MIT']
s.platform = Gem::Platform::RUBY
s.required_ruby_version = '>= 1.9.3'
s.rubygems_version = '3.0.2'
s.summary = 'This gem gives every ActiveRecord::Base object the possibility to do a deep clone.'

if s.respond_to? :specification_version
s.specification_version = 4

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0')
s.add_runtime_dependency('activerecord', ['>= 3.1.0', '< 7'])
else
s.add_dependency('activerecord', ['>= 3.1.0', '< 7'])
end
else
s.add_dependency('activerecord', ['>= 3.1.0', '< 7'])
end
s.require_paths = ['lib']
s.add_runtime_dependency('activerecord', ['>= 3.1.0', '< 7'])
end
3 changes: 3 additions & 0 deletions lib/deep_cloneable/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module DeepCloneable
VERSION = '3.0.0'
end
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,4 @@ pirate.deep_clone include: [:parrot, :rum], skip_missing_associations: true

### Copyright

Copyright &copy; 2020 Reinier de Lange. See LICENSE for details.
Copyright &copy; 2021 Reinier de Lange. See LICENSE for details.

0 comments on commit 349ecc6

Please sign in to comment.