railhead_cacheify 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e31a29a89f23b0040ab5b650a654eae709fa83b4
4
+ data.tar.gz: 8a49c8dc95072ceaf37c73ff96496cd173caa670
5
+ SHA512:
6
+ metadata.gz: 0cf7fe68866cea0c97f083dc694ccde54fde72496f36c7d00ba155bfd0bc155ffae843e5284f896162e345f4a81d8c78acce0bcd69a7aaa5e0709b4e0f889f62
7
+ data.tar.gz: 00f1054981ff105c13a8fb77589c54f4cceb4121c76e31d7004a3a84319f9384aff889afbf75de08ddaa6a6485213d97d070ea6e50cd7ed0b0621cc6db62e26b
data/README.rdoc CHANGED
@@ -4,15 +4,10 @@ RailheadCacheify is a Ruby on Rails plugin that helps caching model functions.
4
4
 
5
5
  == Installation
6
6
 
7
- Installation is available as gem (recommended):
7
+ Add to your Gemfile:
8
8
 
9
- config.gem 'railhead_cacheify'
10
-
11
- Or as Rails plugin:
12
-
13
- $ ruby script/plugin install git://github.com/nagybence/railhead_cacheify.git
9
+ gem 'railhead_cacheify'
14
10
 
15
11
  == License
16
12
 
17
- Copyright (c) 2010 Bence Nagy (nagybence@tipogral.hu), released under the MIT license.
18
-
13
+ Copyright (c) 2010-2015 Bence Nagy (bence.nagy@gmail.com), released under the MIT license.
@@ -30,7 +30,7 @@ module RailheadCacheify
30
30
  class_eval <<-END
31
31
  alias _original_#{key} #{key}
32
32
  def #{key}(*args)
33
- @#{key} ||= read_cache(:#{key}, #{options[:expires_in] ? "{:expires_in => #{options[:expires_in]}}" : '{}'}) { _original_#{key}(*args) }
33
+ @#{key} ||= read_cache(:#{key}, #{options[:expires_in] ? "{expires_in: #{options[:expires_in]}}" : '{}'}) { _original_#{key}(*args) }
34
34
  end
35
35
  END
36
36
  end
@@ -1,19 +1,16 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_cacheify"
3
- s.version = "0.0.4"
4
- s.date = "2010-12-07"
3
+ s.version = "0.0.5"
4
+ s.date = "2015-02-23"
5
5
  s.summary = "RailheadCacheify is a Ruby on Rails plugin that helps caching model functions."
6
- s.email = "nagybence@tipogral.hu"
6
+ s.email = "bence.nagy@gmail.com"
7
7
  s.homepage = "http://github.com/nagybence/railhead_cacheify"
8
- s.description = "RailheadCacheify is a Ruby on Rails plugin that helps caching model functions."
9
8
  s.has_rdoc = true
10
9
  s.authors = ["Bence Nagy"]
11
10
  s.files = ["MIT-LICENSE",
12
11
  "README.rdoc",
13
- "init.rb",
14
12
  "railhead_cacheify.gemspec",
15
13
  "lib/railhead_cacheify.rb"]
16
14
  s.rdoc_options = ["--main", "README.rdoc"]
17
- s.extra_rdoc_files = ["README.rdoc"]
15
+ s.license = "MIT"
18
16
  end
19
-
metadata CHANGED
@@ -1,72 +1,49 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: railhead_cacheify
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 4
10
- version: 0.0.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Bence Nagy
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2010-12-07 00:00:00 +01:00
19
- default_executable:
11
+ date: 2015-02-23 00:00:00.000000000 Z
20
12
  dependencies: []
21
-
22
- description: RailheadCacheify is a Ruby on Rails plugin that helps caching model functions.
23
- email: nagybence@tipogral.hu
13
+ description:
14
+ email: bence.nagy@gmail.com
24
15
  executables: []
25
-
26
16
  extensions: []
27
-
28
- extra_rdoc_files:
29
- - README.rdoc
30
- files:
17
+ extra_rdoc_files: []
18
+ files:
31
19
  - MIT-LICENSE
32
20
  - README.rdoc
33
- - init.rb
34
- - railhead_cacheify.gemspec
35
21
  - lib/railhead_cacheify.rb
36
- has_rdoc: true
22
+ - railhead_cacheify.gemspec
37
23
  homepage: http://github.com/nagybence/railhead_cacheify
38
- licenses: []
39
-
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
40
27
  post_install_message:
41
- rdoc_options:
42
- - --main
28
+ rdoc_options:
29
+ - "--main"
43
30
  - README.rdoc
44
- require_paths:
31
+ require_paths:
45
32
  - lib
46
- required_ruby_version: !ruby/object:Gem::Requirement
47
- none: false
48
- requirements:
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
49
35
  - - ">="
50
- - !ruby/object:Gem::Version
51
- hash: 3
52
- segments:
53
- - 0
54
- version: "0"
55
- required_rubygems_version: !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
58
40
  - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
- version: "0"
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
64
43
  requirements: []
65
-
66
44
  rubyforge_project:
67
- rubygems_version: 1.3.7
45
+ rubygems_version: 2.4.6
68
46
  signing_key:
69
- specification_version: 3
47
+ specification_version: 4
70
48
  summary: RailheadCacheify is a Ruby on Rails plugin that helps caching model functions.
71
49
  test_files: []
72
-
data/init.rb DELETED
@@ -1 +0,0 @@
1
- require 'railhead_cacheify'