Skip to content

Commit

Permalink
[Misc]
Browse files Browse the repository at this point in the history
version bump
added gemfiles for rails 4.2.0.beta1
fixed typos in README
  • Loading branch information
seuros committed Aug 29, 2014
1 parent 585aadd commit 6f43756
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 18 deletions.
10 changes: 8 additions & 2 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ appraise "activerecord-3.2" do
end

appraise "activerecord-4.0" do
gem "activerecord", "~> 4.0"
gem "activerecord", "~> 4.0.0"
end

appraise "activerecord-4.1" do
gem "activerecord", "~> 4.1"
gem "activerecord", "~> 4.1.0"
end

appraise "activerecord-4.2" do
gem "railties", ">= 4.2.0.beta1"
gem "activerecord", ">= 4.2.0.beta1"
gem "rack", ">= 1.6.0.beta"
end

appraise "activerecord-edge" do
Expand Down
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ Each change should fall into categories that would affect whether the release is

As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch. And _misc_ is either minor or patch, the difference being kind of fuzzy for the purposes of history. Adding tests would be patch level.

### Master [changes](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.3.0...master)
### Master [changes](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.0...master)

* Breaking Changes
* Features
* [@ProGM Support for custom parsers for tags](https://github.com/mbleigh/acts-as-taggable-on/pull/579)

* Fixes
* [@twalpole Update for rails edge (4.2)]
* Performance
* Misc

### Master [changes](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.3.0...v3.4.0)
### [3.4.0 / 2014-08-29](Master [changes](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.3.0...v3.4.0)

* Features
* [@ProGM Support for custom parsers for tags](https://github.com/mbleigh/acts-as-taggable-on/pull/579)
* [@damzcodes #577 Popular feature](https://github.com/mbleigh/acts-as-taggable-on/pull/577)
* Fixes
* [@twalpole Update for rails edge (4.2)]

### [3.3.0 / 2014-07-08](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.2.6...v3.3.0)

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@ end
You can find the most or least used tags by using:

```ruby
User.most_used
User.least_used
ActsAsTaggableOn::Tag.most_used
ActsAsTaggableOn::Tag.least_used
```

You can also filter the results by passing the method a limit, however the default limit is 50.

```ruby
User.most_used(10)
User.least_most(10)
ActsAsTaggableOn::Tag.most_used(10)
ActsAsTaggableOn::Tag.least_used(10)
```

### Finding Tagged Objects
Expand Down
4 changes: 2 additions & 2 deletions acts-as-taggable-on.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Gem::Specification.new do |gem|
gem.post_install_message = File.read('UPGRADING.md')
end

gem.add_runtime_dependency 'activerecord', ['>= 3', '< 5']
gem.add_runtime_dependency 'activerecord', ['>= 3.2', '< 5']

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

gem.add_development_dependency 'rspec-rails' , '~> 3.0.0.beta'
gem.add_development_dependency 'rspec-rails'
gem.add_development_dependency 'rspec-its'
gem.add_development_dependency 'rspec'
gem.add_development_dependency 'barrier'
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_4.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

gem "activerecord", "~> 4.0"
gem "activerecord", "~> 4.0.0"

group :local_development do
gem "guard"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_4.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

gem "activerecord", "~> 4.1"
gem "activerecord", "~> 4.1.0"

group :local_development do
gem "guard"
Expand Down
16 changes: 16 additions & 0 deletions gemfiles/activerecord_4.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "railties", ">= 4.2.0.beta1"
gem "activerecord", ">= 4.2.0.beta1"
gem "rack", ">= 1.6.0.beta"

group :local_development do
gem "guard"
gem "guard-rspec"
gem "appraisal"
gem "rake"
end

gemspec :path => "../"
1 change: 0 additions & 1 deletion lib/acts-as-taggable-on.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'active_record'
require 'active_record/version'
require 'active_support/core_ext/module'
require 'action_view'

require_relative 'acts_as_taggable_on/engine' if defined?(Rails)

Expand Down
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def validates_name_uniqueness?

### SCOPES:
scope :most_used, ->(limit = 20) { order('taggings_count desc').limit(limit) }
scope :least_used, ->(limit = 20) { order(:taggings_count).limit(limit) }
scope :least_used, ->(limit = 20) { order('taggings_count asc').limit(limit) }

def self.named(name)
if ActsAsTaggableOn.strict_case_match
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 = '3.3.0'
VERSION = '3.4.0'
end

0 comments on commit 6f43756

Please sign in to comment.