diff --git a/LICENSE b/LICENSE index 49e336f..9f30726 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/VERSION b/VERSION deleted file mode 100644 index 56fea8a..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.0 \ No newline at end of file diff --git a/deep_cloneable.gemspec b/deep_cloneable.gemspec index 397ace3..a7d7c3b 100644 --- a/deep_cloneable.gemspec +++ b/deep_cloneable.gemspec @@ -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 = 'rjdelange@icloud.com' - 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 diff --git a/lib/deep_cloneable/version.rb b/lib/deep_cloneable/version.rb new file mode 100644 index 0000000..2feec6a --- /dev/null +++ b/lib/deep_cloneable/version.rb @@ -0,0 +1,3 @@ +module DeepCloneable + VERSION = '3.0.0' +end diff --git a/readme.md b/readme.md index 0664d35..c504a07 100644 --- a/readme.md +++ b/readme.md @@ -240,4 +240,4 @@ pirate.deep_clone include: [:parrot, :rum], skip_missing_associations: true ### Copyright -Copyright © 2020 Reinier de Lange. See LICENSE for details. +Copyright © 2021 Reinier de Lange. See LICENSE for details.