Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Releasing V6.0.0 #898

Merged
merged 3 commits into from
Jun 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ group :local_development do
gem 'guard-rspec'
gem 'appraisal'
gem 'rake'
gem 'byebug' , platforms: [:mri_21, :mri_22, :mri_23]
gem 'byebug', platforms: [:mri]
end
4 changes: 0 additions & 4 deletions acts-as-taggable-on.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ Gem::Specification.new do |gem|

gem.add_runtime_dependency 'activerecord', ['~> 5.0']

gem.add_development_dependency 'sqlite3'
gem.add_development_dependency 'mysql2', '~> 0.3'
gem.add_development_dependency 'pg'

gem.add_development_dependency 'rspec-rails'
gem.add_development_dependency 'rspec-its'
gem.add_development_dependency 'rspec'
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/activerecord_5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
source "https://rubygems.org"

gem "activerecord", "~> 5.0.3"
case ENV["DB"]
when "postgresql"
gem 'pg'
when "mysql"
gem 'mysql2', '~> 0.3'
else
gem 'sqlite3'
end

group :local_development do
gem "guard"
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/activerecord_5.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
source "https://rubygems.org"

gem "activerecord", "~> 5.1.1"
case ENV["DB"]
when "postgresql"
gem 'pg'
when "mysql"
gem 'mysql2', '~> 0.3'
else
gem 'sqlite3'
end

group :local_development do
gem "guard"
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/activerecord_5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
source "https://rubygems.org"

gem "activerecord", "~> 5.2.0"
case ENV["DB"]
when "postgresql"
gem 'pg'
when "mysql"
gem 'mysql2', '~> 0.3'
else
gem 'sqlite3'
end

group :local_development do
gem "guard"
Expand Down
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/taggable/related.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def related_tags_for(context, klass, options = {})
private

def exclude_self(klass, id)
"#{klass.table_name}.#{klass.primary_key} != #{id} AND" if [self.class.base_class, self.class].include? klass
"#{klass.arel_table[klass.primary_key].not_eq(id).to_sql} AND" if [self.class.base_class, self.class].include? klass
end

def group_columns(klass)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def tags_match_type

def escaped_tag(tag)
tag = tag.downcase unless ActsAsTaggableOn.strict_case_match
tag.gsub(/[!%_]/) { |x| '!' + x }
ActsAsTaggableOn::Utils.escape_like(tag)
end

def adjust_taggings_alias(taggings_alias)
Expand Down
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module ActsAsTaggableOn
VERSION = '5.0.0'
VERSION = '6.0.0'
end