acts-as-taggable-on 3.4.2 → 3.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee9d316a00b3742d99175e8535a48fc94bf32f7c
4
- data.tar.gz: 0a2890ba670d7df947c9e3a271d81284abc9ef42
3
+ metadata.gz: b39b0f1b57946931d609aa449f30102beb5a137a
4
+ data.tar.gz: 75404df8d0fc7bd5cda6f58cb72cebbda4d18b9c
5
5
  SHA512:
6
- metadata.gz: 3da825d4c0393da92b3eef9b8f94a140c7335ed6d810476bf3ba6ef7ccfa75409b9445713bebf8b13d4890be1b1c4aa3312197eaa57b9aedae713329c6203877
7
- data.tar.gz: 0fb39c27169059d20607f33bc649655474a73003e5a210f4f5706ff73416f558cbb7ca4c94b9268c72a89501e3a6003ea9f9593a3678e09efecf953da3c0a4e6
6
+ metadata.gz: 2379d076af6a782a0a6add5be79b8341991e607bcfbd96c45f5fe12bfc2fbf6cca5104d82494636b01ebb8776f3932a8231c199a7b1fc830b8e48bd7321af8aa
7
+ data.tar.gz: 82c387ff3f37edd3567e7c40f612251939c18702eabd606a711c3aad439d80e2ac4e42464317f5bd24e6bc05f53f3f414c9920064f3eb7982bece02cde56804d
@@ -1,9 +1,11 @@
1
+ language: ruby
2
+
1
3
  rvm:
2
- - 1.9.3
4
+ - 2.1
5
+ - 2.2
3
6
  - 2.0.0
4
- - 2.1.1
7
+ - 1.9.3
5
8
  - rbx-2
6
- - ruby-head
7
9
 
8
10
  env:
9
11
  - DB=sqlite3
@@ -14,30 +16,25 @@ gemfile:
14
16
  - gemfiles/activerecord_3.2.gemfile
15
17
  - gemfiles/activerecord_4.0.gemfile
16
18
  - gemfiles/activerecord_4.1.gemfile
17
- - gemfiles/activerecord_edge.gemfile
18
19
 
19
- cache: bundler
20
+ sudo: false
21
+
22
+ bundler_args: '--without local_development --jobs 3 --retry 3'
23
+
20
24
  script: bundle exec rake
21
- before_install: gem install bundler
22
- bundler_args: '--without local_development'
25
+
23
26
  matrix:
24
27
  fast_finish: true
25
28
  allow_failures:
26
29
  - gemfile: gemfiles/activerecord_edge.gemfile
27
30
  - rvm: rbx-2
28
- - rvm: ruby-head
29
31
  exclude:
32
+ - rvm: 2.2
33
+ gemfile: gemfiles/activerecord_3.2.gemfile
30
34
  - rvm: 1.9.3
31
35
  gemfile: gemfiles/activerecord_4.0.gemfile
32
36
  - rvm: 1.9.3
33
37
  gemfile: gemfiles/activerecord_4.1.gemfile
34
- - rvm: 1.9.3
35
- gemfile: gemfiles/activerecord_edge.gemfile
36
38
  - rvm: rbx-2
37
39
  gemfile: gemfiles/activerecord_3.2.gemfile
38
- - rvm: ruby-head
39
- gemfile: gemfiles/activerecord_3.2.gemfile
40
- - rvm: ruby-head
41
- gemfile: gemfiles/activerecord_4.0.gemfile
42
- - rvm: ruby-head
43
- gemfile: gemfiles/activerecord_4.1.gemfile
40
+
data/Appraisals CHANGED
@@ -1,22 +1,16 @@
1
1
  appraise "activerecord-3.2" do
2
- gem "activerecord", "~> 3.2"
2
+ gem "activerecord", github: "rails/rails" , branch: '3-2-stable'
3
3
  end
4
4
 
5
5
  appraise "activerecord-4.0" do
6
- gem "activerecord", "~> 4.0.0"
6
+ gem "activerecord", github: "rails/rails" , branch: '4-0-stable'
7
7
  end
8
8
 
9
9
  appraise "activerecord-4.1" do
10
- gem "activerecord", "~> 4.1.0"
10
+ gem "activerecord", github: "rails/rails" , branch: '4-1-stable'
11
11
  end
12
12
 
13
13
  appraise "activerecord-4.2" do
14
- gem "railties", ">= 4.2.0.beta1"
15
- gem "activerecord", ">= 4.2.0.beta1"
16
- gem "rack", ">= 1.6.0.beta"
17
- end
18
-
19
- appraise "activerecord-edge" do
20
- gem "activerecord", github: "rails/rails"
21
- gem 'arel', github: 'rails/arel'
14
+ gem "railties", github: "rails/rails" , branch: '4-2-stable'
15
+ gem "activerecord", github: "rails/rails" , branch: '4-2-stable'
22
16
  end
@@ -4,7 +4,7 @@ Each change should fall into categories that would affect whether the release is
4
4
 
5
5
  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.
6
6
 
7
- ### Master [changes](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.2...master)
7
+ ### Master [changes](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.3...master)
8
8
 
9
9
  * Breaking Changes
10
10
  * Features
@@ -12,20 +12,22 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
12
12
  * Performance
13
13
  * Misc
14
14
 
15
+
16
+ ### [3.4.3 / 2014-09-26](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.2...v3.4.3)
17
+
18
+ * Fixes
19
+ * [@warp clears column cache on reset_column_information resolves](https://github.com/mbleigh/acts-as-taggable-on/pull/621)
20
+
15
21
  ### [3.4.2 / 2014-09-26](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.1...v3.4.2)
16
22
 
17
- * Breaking Changes
18
- * Features
19
23
  * Fixes
20
24
  * [@stiff fixed tagged_with :any in postgresql](https://github.com/mbleigh/acts-as-taggable-on/pull/570)
21
25
  * [@jerefrer fixed encoding in mysql](https://github.com/mbleigh/acts-as-taggable-on/pull/588)
22
26
  * [@markedmondson Ensure taggings context aliases are maintained when joining multiple taggables](https://github.com/mbleigh/acts-as-taggable-on/pull/589)
23
- * Performance
24
- * Misc
25
27
 
26
28
  ### [3.4.1 / 2014-09-01](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.0...v3.4.1)
27
29
  * Fixes
28
- * [@konukhov fix owned ordered taggable bug]((https://github.com/mbleigh/acts-as-taggable-on/pull/585)
30
+ * [@konukhov fix owned ordered taggable bug](https://github.com/mbleigh/acts-as-taggable-on/pull/585)
29
31
 
30
32
  ### [3.4.0 / 2014-08-29](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.3.0...v3.4.0)
31
33
 
data/README.md CHANGED
@@ -25,7 +25,7 @@ Versions 2.4.1 and up are compatible with Rails 4 too (thanks to arabonradar and
25
25
 
26
26
  Versions >= 3.x are compatible with Ruby 1.9.3+ and Rails 3 and 4.
27
27
 
28
- For an up-to-date roadmap, see https://github.com/mbleigh/acts-as-taggable-on/issues/milestones
28
+ For an up-to-date roadmap, see https://github.com/mbleigh/acts-as-taggable-on/milestones
29
29
 
30
30
  ## Installation
31
31
 
@@ -180,7 +180,7 @@ ActsAsTaggableOn::Tag.most_used
180
180
  ActsAsTaggableOn::Tag.least_used
181
181
  ```
182
182
 
183
- You can also filter the results by passing the method a limit, however the default limit is 50.
183
+ You can also filter the results by passing the method a limit, however the default limit is 20.
184
184
 
185
185
  ```ruby
186
186
  ActsAsTaggableOn::Tag.most_used(10)
@@ -4,10 +4,4 @@ Re-run the migrations generator
4
4
 
5
5
  rake acts_as_taggable_on_engine:install:migrations
6
6
 
7
- It will create any new migrations and skip existing ones
8
-
9
-
10
- ##Breaking changes:
11
-
12
- - ActsAsTaggableOn::Tag is not extend with ActsAsTaggableOn::Utils anymore.
13
- Please use ActsAsTaggableOn::Utils instead
7
+ It will create any new migrations and skip existing ones
@@ -2,13 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 3.2"
5
+ gem "activerecord", :github => "rails/rails", :branch => "3-2-stable"
6
6
 
7
7
  group :local_development do
8
8
  gem "guard"
9
9
  gem "guard-rspec"
10
10
  gem "appraisal"
11
11
  gem "rake"
12
+ gem "byebug", :platform => :mri_21
12
13
  end
13
14
 
14
15
  gemspec :path => "../"
@@ -2,13 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 4.0.0"
5
+ gem "activerecord", :github => "rails/rails", :branch => "4-0-stable"
6
6
 
7
7
  group :local_development do
8
8
  gem "guard"
9
9
  gem "guard-rspec"
10
10
  gem "appraisal"
11
11
  gem "rake"
12
+ gem "byebug", :platform => :mri_21
12
13
  end
13
14
 
14
15
  gemspec :path => "../"
@@ -2,13 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 4.1.0"
5
+ gem "activerecord", :github => "rails/rails", :branch => "4-1-stable"
6
6
 
7
7
  group :local_development do
8
8
  gem "guard"
9
9
  gem "guard-rspec"
10
10
  gem "appraisal"
11
11
  gem "rake"
12
+ gem "byebug", :platform => :mri_21
12
13
  end
13
14
 
14
15
  gemspec :path => "../"
@@ -2,15 +2,15 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "railties", ">= 4.2.0.beta1"
6
- gem "activerecord", ">= 4.2.0.beta1"
7
- gem "rack", ">= 1.6.0.beta"
5
+ gem "railties", :github => "rails/rails", :branch => "4-2-stable"
6
+ gem "activerecord", :github => "rails/rails", :branch => "4-2-stable"
8
7
 
9
8
  group :local_development do
10
9
  gem "guard"
11
10
  gem "guard-rspec"
12
11
  gem "appraisal"
13
12
  gem "rake"
13
+ gem "byebug", :platform => :mri_21
14
14
  end
15
15
 
16
16
  gemspec :path => "../"
@@ -40,6 +40,10 @@ module ActsAsTaggableOn::Taggable
40
40
  end
41
41
  end
42
42
 
43
+ def reset_column_information
44
+ super
45
+ @acts_as_taggable_on_cache_columns = nil
46
+ end
43
47
  end
44
48
  end
45
49
 
@@ -169,7 +169,7 @@ module ActsAsTaggableOn::Taggable
169
169
  end
170
170
 
171
171
  module CalculationMethods
172
- def count(column_name=:all)
172
+ def count(column_name=:all, options = {})
173
173
  # https://github.com/rails/rails/commit/da9b5d4a8435b744fcf278fffd6d7f1e36d4a4f2
174
174
  super
175
175
  end
@@ -18,7 +18,7 @@ module ActsAsTaggableOn
18
18
  end
19
19
 
20
20
  def sha_prefix(string)
21
- Digest::SHA1.hexdigest("#{string}#{rand}")[0..6]
21
+ Digest::SHA1.hexdigest(string)[0..6]
22
22
  end
23
23
 
24
24
  def active_record4?
@@ -1,4 +1,4 @@
1
1
  module ActsAsTaggableOn
2
- VERSION = '3.4.2'
2
+ VERSION = '3.4.3'
3
3
  end
4
4
 
@@ -69,6 +69,12 @@ describe 'Acts As Taggable On' do
69
69
  @taggable.save!
70
70
  expect(@taggable.tag_list.sort).to eq(%w(awesome epic).sort)
71
71
  end
72
+
73
+ it 'should clear the cache on reset_column_information' do
74
+ CachedModel.column_names
75
+ CachedModel.reset_column_information
76
+ expect(CachedModel.instance_variable_get(:@acts_as_taggable_on_cache_columns)).to eql(nil)
77
+ end
72
78
  end
73
79
 
74
80
  describe 'CachingWithArray' do
@@ -13,4 +13,11 @@ describe ActsAsTaggableOn::Utils do
13
13
  expect(ActsAsTaggableOn::Utils.like_operator).to eq('LIKE')
14
14
  end
15
15
  end
16
+
17
+ describe '#sha_prefix' do
18
+ it 'should return a consistent prefix for a given word' do
19
+ expect(ActsAsTaggableOn::Utils.sha_prefix('kittens')).to eq(ActsAsTaggableOn::Utils.sha_prefix('kittens'))
20
+ expect(ActsAsTaggableOn::Utils.sha_prefix('puppies')).not_to eq(ActsAsTaggableOn::Utils.sha_prefix('kittens'))
21
+ end
22
+ end
16
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts-as-taggable-on
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-26 00:00:00.000000000 Z
12
+ date: 2015-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -173,7 +173,6 @@ files:
173
173
  - gemfiles/activerecord_4.0.gemfile
174
174
  - gemfiles/activerecord_4.1.gemfile
175
175
  - gemfiles/activerecord_4.2.gemfile
176
- - gemfiles/activerecord_edge.gemfile
177
176
  - lib/acts-as-taggable-on.rb
178
177
  - lib/acts_as_taggable_on.rb
179
178
  - lib/acts_as_taggable_on/compatibility.rb
@@ -245,12 +244,6 @@ post_install_message: |-
245
244
  rake acts_as_taggable_on_engine:install:migrations
246
245
 
247
246
  It will create any new migrations and skip existing ones
248
-
249
-
250
- ##Breaking changes:
251
-
252
- - ActsAsTaggableOn::Tag is not extend with ActsAsTaggableOn::Utils anymore.
253
- Please use ActsAsTaggableOn::Utils instead
254
247
  rdoc_options: []
255
248
  require_paths:
256
249
  - lib
@@ -309,4 +302,3 @@ test_files:
309
302
  - spec/support/array.rb
310
303
  - spec/support/database.rb
311
304
  - spec/support/database_cleaner.rb
312
- has_rdoc:
@@ -1,15 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", :github => "rails/rails"
6
- gem "arel", :github => "rails/arel"
7
-
8
- group :local_development do
9
- gem "guard"
10
- gem "guard-rspec"
11
- gem "appraisal"
12
- gem "rake"
13
- end
14
-
15
- gemspec :path => "../"