rails-cache-tags 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Synopsys
2
2
 
3
- Tagged caching support within your Rails application.
3
+ Tagged caching support within your Rails application. Tested against Rails 3.0, Rails 3.1 and Rails 3.2
4
4
 
5
5
  # Installation
6
6
 
@@ -50,5 +50,7 @@ end
50
50
  1. Fork it
51
51
  2. Create your feature branch (`git checkout -b my-new-feature`)
52
52
  3. Commit your changes (`git commit -am 'Added some feature'`)
53
- 4. Push to the branch (`git push origin my-new-feature`)
54
- 5. Create new Pull Request
53
+ 4. Write tests!
54
+ 5. Run tests against all appraisals
55
+ 6. Push to the branch (`git push origin my-new-feature`)
56
+ 7. Create new Pull Request
@@ -54,7 +54,7 @@ module Rails
54
54
  def write_entry_with_tags(key, entry, options) #:nodoc:
55
55
  tags = Rails::Cache::Tag.build_tags Array.wrap(options[:tags]).flatten.compact
56
56
 
57
- unless tags.empty?
57
+ if entry && tags.present?
58
58
  current_versions = fetch_tags(tags) # => [1, 2, 3]
59
59
  entry.tags = Hash[tags.zip(current_versions).map { |tag, v| [tag.name, v || tag.increment(self)] }]
60
60
  end
@@ -1,7 +1,7 @@
1
1
  module Rails
2
2
  module Cache
3
3
  module Tags
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-cache-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-07-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &20365460 !ruby/object:Gem::Requirement
16
+ requirement: &18370040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *20365460
24
+ version_requirements: *18370040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: appraisal
27
- requirement: &20364680 !ruby/object:Gem::Requirement
27
+ requirement: &18369620 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *20364680
35
+ version_requirements: *18369620
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &20363940 !ruby/object:Gem::Requirement
38
+ requirement: &18369080 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.2'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *20363940
46
+ version_requirements: *18369080
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: memcache-client
49
- requirement: &20363440 !ruby/object:Gem::Requirement
49
+ requirement: &18368620 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *20363440
57
+ version_requirements: *18368620
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rack
60
- requirement: &20362660 !ruby/object:Gem::Requirement
60
+ requirement: &18368160 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *20362660
68
+ version_requirements: *18368160
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mocha
71
- requirement: &20361940 !ruby/object:Gem::Requirement
71
+ requirement: &18367680 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *20361940
79
+ version_requirements: *18367680
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: simplecov
82
- requirement: &20361520 !ruby/object:Gem::Requirement
82
+ requirement: &18367220 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *20361520
90
+ version_requirements: *18367220
91
91
  description: Tagged caching support for Rails
92
92
  email:
93
93
  - amikhailov83@gmail.com
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  segments:
125
125
  - 0
126
- hash: -1686496298142022939
126
+ hash: -1966449301647994117
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  segments:
134
134
  - 0
135
- hash: -1686496298142022939
135
+ hash: -1966449301647994117
136
136
  requirements: []
137
137
  rubyforge_project:
138
138
  rubygems_version: 1.8.17