cached_resource 4.2.0 → 5.0.0

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
- ---
2
- SHA1:
3
- data.tar.gz: 5a25521a92a1fb2800c9734c31f422b824fa1b40
4
- metadata.gz: 6451d12d14761ee761281ef929608e6c2c30f4b9
5
- SHA512:
6
- data.tar.gz: 63e554366a04e5b6e6a80042c17548a2845f5b9437e3dbed4dbb664cc1ca791c35677f08c778933dfd2f3661492b39ea0d4bd11db7a0bbd263cc04100519a253
7
- metadata.gz: 0a2b8a5cdb2b20fea4f93e1eb311145e1c81e9c705c5e1a42fb140cbce9c5a06efb765474d395f09462037c5ca23072f973e08b623b83767eb2cc3fc5b938b85
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2afcc694c9c8dbe55afacbf55e921b1c4ec51355
4
+ data.tar.gz: dd4ede0e4ed5106e4cf63478b32704f4353b660b
5
+ SHA512:
6
+ metadata.gz: 31c69e1b927ade3909af93adb83aa4afa5c0a1aafeead453da29b19a08131a78cbb1bc447bf3dcac256413f22ee20b8c2e23ee59e08f866a4998fb92b67b89c9
7
+ data.tar.gz: 22e9439b077f55f8b24517b1a1b094be8673eb3a88e89cfb4cee81e32e14a64d65b9e255471bbc25b5d08356457a6befff6a7cb935921b8a240f043fe18ae6f4
data/.travis.yml CHANGED
@@ -1,12 +1,13 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ cache: bundler
4
+
3
5
  rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.0
7
- - 2.2.3
6
+ - 2.2.4
7
+ - 2.3.4
8
+ - 2.4.1
8
9
 
9
10
  gemfile:
10
- - gemfiles/Gemfile.rails-3.2.x
11
- - Gemfile
12
-
11
+ - gemfiles/4.2.gemfile
12
+ - gemfiles/5.0.gemfile
13
+ - gemfiles/5.1.gemfile
data/Appraisals ADDED
@@ -0,0 +1,11 @@
1
+ appraise "4.2" do
2
+ gem "rails", "~> 4.2.0"
3
+ end
4
+
5
+ appraise "5.0" do
6
+ gem "rails", "~> 5.0.0"
7
+ end
8
+
9
+ appraise "5.1" do
10
+ gem "rails", "~> 5.1.0"
11
+ end
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Andrew Chan
1
+ Copyright (c) 2017 Morgan Brown
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -7,16 +7,19 @@ CachedResource is a Ruby gem whose goal is to increase the performance of intera
7
7
  ## Compatibility
8
8
  CachedResource supports the following Ruby versions:
9
9
 
10
- * 1.9.2, 1.9.3
11
- * 2.0.0, 2.1.0, 2.2.3
10
+ * 2.2.x
11
+ * 2.3.x
12
+ * 2.4.x
12
13
 
13
- If you require 1.8.7 support, please use version 2.3.4.
14
+ ...and likely other modern Ruby versions. If you require 1.8.7 support, please use version 2.3.4.
14
15
 
15
- CachedResource is designed to be framework agnostic, but will hook into Rails for caching and logging if available. CachedResource officially supports the following Rails versions:
16
+ CachedResource is designed to be framework agnostic, but will hook into Rails for caching and logging if available. The latest CachedResource officially supports the following Rails versions:
16
17
 
17
- * 3.2.x
18
- * 4.0.0
19
- * 4.1.x
18
+ * 4.2.x
19
+ * 5.0.x
20
+ * 5.1.x
21
+
22
+ For previously supported versions, use 4.2.0 or below.
20
23
 
21
24
  ## Configuration
22
25
  **Set up CachedResource across all ActiveResources:**
@@ -41,7 +44,7 @@ CachedResource accepts the following options:
41
44
  * `:ttl_randomization_scale` A Range from which a random value will be selected to scale the ttl. Default: `1..2`
42
45
  * `:collection_synchronize` Use collections to generate cache entries for individuals. Update the existing cached principal collection when retrieving subsets of the principal collection or individuals. Default: `false`
43
46
  * `:collection_arguments` The arguments that identify the principal collection request. Default: `[:all]`
44
- * `:logger` The logger to which CachedResource messages should be written. Default: The `Rails.logger` if available, or an `ActiveSupport::BufferedLogger`
47
+ * `:logger` The logger to which CachedResource messages should be written. Default: The `Rails.logger` if available, or an `ActiveSupport::Logger`
45
48
  * `:cache` The cache store that CacheResource should use. Default: The `Rails.cache` if available, or an `ActiveSupport::Cache::MemoryStore`
46
49
 
47
50
  You can set them like this:
@@ -112,9 +115,9 @@ Sometimes you might have a case the resource pathing is non-unique per call. Thi
112
115
  MyActiveResource.find(:one, from: "/admin/shop.json")
113
116
 
114
117
  Since resources are cached with an argument based key, you may pass in extra data to be appended to the cache key:
115
-
118
+
116
119
  MyActiveResource.find(:one, from: "/admin/shop.json", uid: "unique value")
117
-
120
+
118
121
  ## Testing
119
122
  rake
120
123
 
@@ -7,19 +7,21 @@ Gem::Specification.new do |s|
7
7
  s.version = CachedResource::VERSION
8
8
  s.authors = "Morgan Brown"
9
9
  s.email = "brown.mhg@gmail.com"
10
- s.homepage = "http://github.com/Ahsizara/cached_resource"
10
+ s.homepage = "https://github.com/mhgbrown/cached_resource"
11
11
  s.summary = %q{Caching for ActiveResource}
12
12
  s.description = %q{Enables request-based caching for ActiveResource}
13
+ s.licenses = ['MIT']
13
14
 
14
15
  s.files = `git ls-files`.split("\n")
15
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
18
  s.require_paths = ["lib"]
18
19
 
19
- s.add_dependency "rake"
20
- s.add_dependency "activeresource", ">= 3.2"
21
- s.add_dependency "activesupport", ">= 3.2"
22
- s.add_dependency "nilio", ">= 1.0"
20
+ s.add_runtime_dependency "activeresource", ">= 4.0"
21
+ s.add_runtime_dependency "activesupport", ">= 4.0"
22
+ s.add_runtime_dependency "nilio", ">= 1.0"
23
23
 
24
+ s.add_development_dependency "rake"
24
25
  s.add_development_dependency "rspec"
26
+ s.add_development_dependency "appraisal"
25
27
  end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 4.2.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,140 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ cached_resource (4.2.0)
5
+ activeresource (>= 3.2)
6
+ activesupport (>= 3.2)
7
+ nilio (>= 1.0)
8
+ rake
9
+
10
+ GEM
11
+ remote: http://rubygems.org/
12
+ specs:
13
+ actionmailer (4.2.9)
14
+ actionpack (= 4.2.9)
15
+ actionview (= 4.2.9)
16
+ activejob (= 4.2.9)
17
+ mail (~> 2.5, >= 2.5.4)
18
+ rails-dom-testing (~> 1.0, >= 1.0.5)
19
+ actionpack (4.2.9)
20
+ actionview (= 4.2.9)
21
+ activesupport (= 4.2.9)
22
+ rack (~> 1.6)
23
+ rack-test (~> 0.6.2)
24
+ rails-dom-testing (~> 1.0, >= 1.0.5)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
26
+ actionview (4.2.9)
27
+ activesupport (= 4.2.9)
28
+ builder (~> 3.1)
29
+ erubis (~> 2.7.0)
30
+ rails-dom-testing (~> 1.0, >= 1.0.5)
31
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
32
+ activejob (4.2.9)
33
+ activesupport (= 4.2.9)
34
+ globalid (>= 0.3.0)
35
+ activemodel (4.2.9)
36
+ activesupport (= 4.2.9)
37
+ builder (~> 3.1)
38
+ activerecord (4.2.9)
39
+ activemodel (= 4.2.9)
40
+ activesupport (= 4.2.9)
41
+ arel (~> 6.0)
42
+ activeresource (4.1.0)
43
+ activemodel (~> 4.0)
44
+ activesupport (~> 4.0)
45
+ rails-observers (~> 0.1.2)
46
+ activesupport (4.2.9)
47
+ i18n (~> 0.7)
48
+ minitest (~> 5.1)
49
+ thread_safe (~> 0.3, >= 0.3.4)
50
+ tzinfo (~> 1.1)
51
+ appraisal (2.2.0)
52
+ bundler
53
+ rake
54
+ thor (>= 0.14.0)
55
+ arel (6.0.4)
56
+ builder (3.2.3)
57
+ concurrent-ruby (1.0.5)
58
+ diff-lcs (1.3)
59
+ erubis (2.7.0)
60
+ globalid (0.4.0)
61
+ activesupport (>= 4.2.0)
62
+ i18n (0.8.4)
63
+ loofah (2.0.3)
64
+ nokogiri (>= 1.5.9)
65
+ mail (2.6.6)
66
+ mime-types (>= 1.16, < 4)
67
+ mime-types (3.1)
68
+ mime-types-data (~> 3.2015)
69
+ mime-types-data (3.2016.0521)
70
+ mini_portile2 (2.2.0)
71
+ minitest (5.10.2)
72
+ nilio (1.0.0)
73
+ nokogiri (1.8.0)
74
+ mini_portile2 (~> 2.2.0)
75
+ rack (1.6.8)
76
+ rack-test (0.6.3)
77
+ rack (>= 1.0)
78
+ rails (4.2.9)
79
+ actionmailer (= 4.2.9)
80
+ actionpack (= 4.2.9)
81
+ actionview (= 4.2.9)
82
+ activejob (= 4.2.9)
83
+ activemodel (= 4.2.9)
84
+ activerecord (= 4.2.9)
85
+ activesupport (= 4.2.9)
86
+ bundler (>= 1.3.0, < 2.0)
87
+ railties (= 4.2.9)
88
+ sprockets-rails
89
+ rails-deprecated_sanitizer (1.0.3)
90
+ activesupport (>= 4.2.0.alpha)
91
+ rails-dom-testing (1.0.8)
92
+ activesupport (>= 4.2.0.beta, < 5.0)
93
+ nokogiri (~> 1.6)
94
+ rails-deprecated_sanitizer (>= 1.0.1)
95
+ rails-html-sanitizer (1.0.3)
96
+ loofah (~> 2.0)
97
+ rails-observers (0.1.4)
98
+ activemodel (>= 4.0)
99
+ railties (4.2.9)
100
+ actionpack (= 4.2.9)
101
+ activesupport (= 4.2.9)
102
+ rake (>= 0.8.7)
103
+ thor (>= 0.18.1, < 2.0)
104
+ rake (12.0.0)
105
+ rspec (3.6.0)
106
+ rspec-core (~> 3.6.0)
107
+ rspec-expectations (~> 3.6.0)
108
+ rspec-mocks (~> 3.6.0)
109
+ rspec-core (3.6.0)
110
+ rspec-support (~> 3.6.0)
111
+ rspec-expectations (3.6.0)
112
+ diff-lcs (>= 1.2.0, < 2.0)
113
+ rspec-support (~> 3.6.0)
114
+ rspec-mocks (3.6.0)
115
+ diff-lcs (>= 1.2.0, < 2.0)
116
+ rspec-support (~> 3.6.0)
117
+ rspec-support (3.6.0)
118
+ sprockets (3.7.1)
119
+ concurrent-ruby (~> 1.0)
120
+ rack (> 1, < 3)
121
+ sprockets-rails (3.2.0)
122
+ actionpack (>= 4.0)
123
+ activesupport (>= 4.0)
124
+ sprockets (>= 3.0.0)
125
+ thor (0.19.4)
126
+ thread_safe (0.3.6)
127
+ tzinfo (1.2.3)
128
+ thread_safe (~> 0.1)
129
+
130
+ PLATFORMS
131
+ ruby
132
+
133
+ DEPENDENCIES
134
+ appraisal
135
+ cached_resource!
136
+ rails (~> 4.2.0)
137
+ rspec
138
+
139
+ BUNDLED WITH
140
+ 1.15.1
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,150 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ cached_resource (4.2.0)
5
+ activeresource (>= 3.2)
6
+ activesupport (>= 3.2)
7
+ nilio (>= 1.0)
8
+ rake
9
+
10
+ GEM
11
+ remote: http://rubygems.org/
12
+ specs:
13
+ actioncable (5.0.2)
14
+ actionpack (= 5.0.2)
15
+ nio4r (>= 1.2, < 3.0)
16
+ websocket-driver (~> 0.6.1)
17
+ actionmailer (5.0.2)
18
+ actionpack (= 5.0.2)
19
+ actionview (= 5.0.2)
20
+ activejob (= 5.0.2)
21
+ mail (~> 2.5, >= 2.5.4)
22
+ rails-dom-testing (~> 2.0)
23
+ actionpack (5.0.2)
24
+ actionview (= 5.0.2)
25
+ activesupport (= 5.0.2)
26
+ rack (~> 2.0)
27
+ rack-test (~> 0.6.3)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ actionview (5.0.2)
31
+ activesupport (= 5.0.2)
32
+ builder (~> 3.1)
33
+ erubis (~> 2.7.0)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
36
+ activejob (5.0.2)
37
+ activesupport (= 5.0.2)
38
+ globalid (>= 0.3.6)
39
+ activemodel (5.0.2)
40
+ activesupport (= 5.0.2)
41
+ activemodel-serializers-xml (1.0.1)
42
+ activemodel (> 5.x)
43
+ activerecord (> 5.x)
44
+ activesupport (> 5.x)
45
+ builder (~> 3.1)
46
+ activerecord (5.0.2)
47
+ activemodel (= 5.0.2)
48
+ activesupport (= 5.0.2)
49
+ arel (~> 7.0)
50
+ activeresource (5.0.0)
51
+ activemodel (>= 5.0, < 6)
52
+ activemodel-serializers-xml (~> 1.0)
53
+ activesupport (>= 5.0, < 6)
54
+ activesupport (5.0.2)
55
+ concurrent-ruby (~> 1.0, >= 1.0.2)
56
+ i18n (~> 0.7)
57
+ minitest (~> 5.1)
58
+ tzinfo (~> 1.1)
59
+ appraisal (2.2.0)
60
+ bundler
61
+ rake
62
+ thor (>= 0.14.0)
63
+ arel (7.1.4)
64
+ builder (3.2.3)
65
+ concurrent-ruby (1.0.5)
66
+ diff-lcs (1.3)
67
+ erubis (2.7.0)
68
+ globalid (0.4.0)
69
+ activesupport (>= 4.2.0)
70
+ i18n (0.8.4)
71
+ loofah (2.0.3)
72
+ nokogiri (>= 1.5.9)
73
+ mail (2.6.6)
74
+ mime-types (>= 1.16, < 4)
75
+ method_source (0.8.2)
76
+ mime-types (3.1)
77
+ mime-types-data (~> 3.2015)
78
+ mime-types-data (3.2016.0521)
79
+ mini_portile2 (2.2.0)
80
+ minitest (5.10.2)
81
+ nilio (1.0.0)
82
+ nio4r (2.1.0)
83
+ nokogiri (1.8.0)
84
+ mini_portile2 (~> 2.2.0)
85
+ rack (2.0.3)
86
+ rack-test (0.6.3)
87
+ rack (>= 1.0)
88
+ rails (5.0.2)
89
+ actioncable (= 5.0.2)
90
+ actionmailer (= 5.0.2)
91
+ actionpack (= 5.0.2)
92
+ actionview (= 5.0.2)
93
+ activejob (= 5.0.2)
94
+ activemodel (= 5.0.2)
95
+ activerecord (= 5.0.2)
96
+ activesupport (= 5.0.2)
97
+ bundler (>= 1.3.0, < 2.0)
98
+ railties (= 5.0.2)
99
+ sprockets-rails (>= 2.0.0)
100
+ rails-dom-testing (2.0.3)
101
+ activesupport (>= 4.2.0)
102
+ nokogiri (>= 1.6)
103
+ rails-html-sanitizer (1.0.3)
104
+ loofah (~> 2.0)
105
+ railties (5.0.2)
106
+ actionpack (= 5.0.2)
107
+ activesupport (= 5.0.2)
108
+ method_source
109
+ rake (>= 0.8.7)
110
+ thor (>= 0.18.1, < 2.0)
111
+ rake (12.0.0)
112
+ rspec (3.6.0)
113
+ rspec-core (~> 3.6.0)
114
+ rspec-expectations (~> 3.6.0)
115
+ rspec-mocks (~> 3.6.0)
116
+ rspec-core (3.6.0)
117
+ rspec-support (~> 3.6.0)
118
+ rspec-expectations (3.6.0)
119
+ diff-lcs (>= 1.2.0, < 2.0)
120
+ rspec-support (~> 3.6.0)
121
+ rspec-mocks (3.6.0)
122
+ diff-lcs (>= 1.2.0, < 2.0)
123
+ rspec-support (~> 3.6.0)
124
+ rspec-support (3.6.0)
125
+ sprockets (3.7.1)
126
+ concurrent-ruby (~> 1.0)
127
+ rack (> 1, < 3)
128
+ sprockets-rails (3.2.0)
129
+ actionpack (>= 4.0)
130
+ activesupport (>= 4.0)
131
+ sprockets (>= 3.0.0)
132
+ thor (0.19.4)
133
+ thread_safe (0.3.6)
134
+ tzinfo (1.2.3)
135
+ thread_safe (~> 0.1)
136
+ websocket-driver (0.6.5)
137
+ websocket-extensions (>= 0.1.0)
138
+ websocket-extensions (0.1.2)
139
+
140
+ PLATFORMS
141
+ ruby
142
+
143
+ DEPENDENCIES
144
+ appraisal
145
+ cached_resource!
146
+ rails (~> 5.0.0)
147
+ rspec
148
+
149
+ BUNDLED WITH
150
+ 1.15.1
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 5.1.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,150 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ cached_resource (4.2.0)
5
+ activeresource (>= 3.2)
6
+ activesupport (>= 3.2)
7
+ nilio (>= 1.0)
8
+ rake
9
+
10
+ GEM
11
+ remote: http://rubygems.org/
12
+ specs:
13
+ actioncable (5.1.2)
14
+ actionpack (= 5.1.2)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (~> 0.6.1)
17
+ actionmailer (5.1.2)
18
+ actionpack (= 5.1.2)
19
+ actionview (= 5.1.2)
20
+ activejob (= 5.1.2)
21
+ mail (~> 2.5, >= 2.5.4)
22
+ rails-dom-testing (~> 2.0)
23
+ actionpack (5.1.2)
24
+ actionview (= 5.1.2)
25
+ activesupport (= 5.1.2)
26
+ rack (~> 2.0)
27
+ rack-test (~> 0.6.3)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ actionview (5.1.2)
31
+ activesupport (= 5.1.2)
32
+ builder (~> 3.1)
33
+ erubi (~> 1.4)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
36
+ activejob (5.1.2)
37
+ activesupport (= 5.1.2)
38
+ globalid (>= 0.3.6)
39
+ activemodel (5.1.2)
40
+ activesupport (= 5.1.2)
41
+ activemodel-serializers-xml (1.0.1)
42
+ activemodel (> 5.x)
43
+ activerecord (> 5.x)
44
+ activesupport (> 5.x)
45
+ builder (~> 3.1)
46
+ activerecord (5.1.2)
47
+ activemodel (= 5.1.2)
48
+ activesupport (= 5.1.2)
49
+ arel (~> 8.0)
50
+ activeresource (5.0.0)
51
+ activemodel (>= 5.0, < 6)
52
+ activemodel-serializers-xml (~> 1.0)
53
+ activesupport (>= 5.0, < 6)
54
+ activesupport (5.1.2)
55
+ concurrent-ruby (~> 1.0, >= 1.0.2)
56
+ i18n (~> 0.7)
57
+ minitest (~> 5.1)
58
+ tzinfo (~> 1.1)
59
+ appraisal (2.2.0)
60
+ bundler
61
+ rake
62
+ thor (>= 0.14.0)
63
+ arel (8.0.0)
64
+ builder (3.2.3)
65
+ concurrent-ruby (1.0.5)
66
+ diff-lcs (1.3)
67
+ erubi (1.6.0)
68
+ globalid (0.4.0)
69
+ activesupport (>= 4.2.0)
70
+ i18n (0.8.4)
71
+ loofah (2.0.3)
72
+ nokogiri (>= 1.5.9)
73
+ mail (2.6.6)
74
+ mime-types (>= 1.16, < 4)
75
+ method_source (0.8.2)
76
+ mime-types (3.1)
77
+ mime-types-data (~> 3.2015)
78
+ mime-types-data (3.2016.0521)
79
+ mini_portile2 (2.2.0)
80
+ minitest (5.10.2)
81
+ nilio (1.0.0)
82
+ nio4r (2.1.0)
83
+ nokogiri (1.8.0)
84
+ mini_portile2 (~> 2.2.0)
85
+ rack (2.0.3)
86
+ rack-test (0.6.3)
87
+ rack (>= 1.0)
88
+ rails (5.1.2)
89
+ actioncable (= 5.1.2)
90
+ actionmailer (= 5.1.2)
91
+ actionpack (= 5.1.2)
92
+ actionview (= 5.1.2)
93
+ activejob (= 5.1.2)
94
+ activemodel (= 5.1.2)
95
+ activerecord (= 5.1.2)
96
+ activesupport (= 5.1.2)
97
+ bundler (>= 1.3.0, < 2.0)
98
+ railties (= 5.1.2)
99
+ sprockets-rails (>= 2.0.0)
100
+ rails-dom-testing (2.0.3)
101
+ activesupport (>= 4.2.0)
102
+ nokogiri (>= 1.6)
103
+ rails-html-sanitizer (1.0.3)
104
+ loofah (~> 2.0)
105
+ railties (5.1.2)
106
+ actionpack (= 5.1.2)
107
+ activesupport (= 5.1.2)
108
+ method_source
109
+ rake (>= 0.8.7)
110
+ thor (>= 0.18.1, < 2.0)
111
+ rake (12.0.0)
112
+ rspec (3.6.0)
113
+ rspec-core (~> 3.6.0)
114
+ rspec-expectations (~> 3.6.0)
115
+ rspec-mocks (~> 3.6.0)
116
+ rspec-core (3.6.0)
117
+ rspec-support (~> 3.6.0)
118
+ rspec-expectations (3.6.0)
119
+ diff-lcs (>= 1.2.0, < 2.0)
120
+ rspec-support (~> 3.6.0)
121
+ rspec-mocks (3.6.0)
122
+ diff-lcs (>= 1.2.0, < 2.0)
123
+ rspec-support (~> 3.6.0)
124
+ rspec-support (3.6.0)
125
+ sprockets (3.7.1)
126
+ concurrent-ruby (~> 1.0)
127
+ rack (> 1, < 3)
128
+ sprockets-rails (3.2.0)
129
+ actionpack (>= 4.0)
130
+ activesupport (>= 4.0)
131
+ sprockets (>= 3.0.0)
132
+ thor (0.19.4)
133
+ thread_safe (0.3.6)
134
+ tzinfo (1.2.3)
135
+ thread_safe (~> 0.1)
136
+ websocket-driver (0.6.5)
137
+ websocket-extensions (>= 0.1.0)
138
+ websocket-extensions (0.1.2)
139
+
140
+ PLATFORMS
141
+ ruby
142
+
143
+ DEPENDENCIES
144
+ appraisal
145
+ cached_resource!
146
+ rails (~> 5.1.0)
147
+ rspec
148
+
149
+ BUNDLED WITH
150
+ 1.15.1
@@ -6,7 +6,8 @@ module CachedResource
6
6
 
7
7
  included do
8
8
  class << self
9
- alias_method_chain :find, :cache
9
+ alias_method :find_without_cache, :find
10
+ alias_method :find, :find_with_cache
10
11
  end
11
12
  end
12
13
 
@@ -6,12 +6,8 @@ module CachedResource
6
6
  # default or fallback cache without rails
7
7
  CACHE = ActiveSupport::Cache::MemoryStore.new
8
8
 
9
- # default of fallback logger without rails
10
- LOGGER = if defined?(ActiveSupport::Logger)
11
- ActiveSupport::Logger.new(NilIO.instance)
12
- else
13
- ActiveSupport::BufferedLogger.new(NilIO.instance)
14
- end
9
+ # default or fallback logger without rails
10
+ LOGGER = ActiveSupport::Logger.new(NilIO.instance)
15
11
 
16
12
  # prefix for log messages
17
13
  LOGGER_PREFIX = "[cached_resource]"
@@ -26,7 +22,7 @@ module CachedResource
26
22
  # :collection_synchronize, default: false,
27
23
  # :collection_arguments, default: [:all]
28
24
  # :cache, default: Rails.cache or ActiveSupport::Cache::MemoryStore.new,
29
- # :logger, default: Rails.logger or ActiveSupport::BufferedLogger.new(NilIO.new)
25
+ # :logger, default: Rails.logger or ActiveSupport::Logger.new(NilIO.new)
30
26
  def initialize(options={})
31
27
  super({
32
28
  :enabled => true,
@@ -1,3 +1,3 @@
1
1
  module CachedResource
2
- VERSION = "4.2.0"
2
+ VERSION = "5.0.0"
3
3
  end
@@ -1,7 +1,9 @@
1
1
  require 'ostruct'
2
2
 
3
3
  require 'nilio'
4
+ require 'active_support/cache'
4
5
  require 'active_support/concern'
6
+ require 'active_support/logger'
5
7
  require 'cached_resource/cached_resource'
6
8
  require 'cached_resource/configuration'
7
9
  require 'cached_resource/caching'
metadata CHANGED
@@ -1,83 +1,120 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cached_resource
3
- version: !ruby/object:Gem::Version
4
- version: 4.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 5.0.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Morgan Brown
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2015-12-03 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rake
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
19
- - &id005
20
- - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
23
- type: :runtime
24
- version_requirements: *id001
25
- - !ruby/object:Gem::Dependency
11
+ date: 2017-07-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
26
14
  name: activeresource
27
- prerelease: false
28
- requirement: &id002 !ruby/object:Gem::Requirement
29
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
30
17
  - - ">="
31
- - !ruby/object:Gem::Version
32
- version: "3.2"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
33
20
  type: :runtime
34
- version_requirements: *id002
35
- - !ruby/object:Gem::Dependency
36
- name: activesupport
37
21
  prerelease: false
38
- requirement: &id003 !ruby/object:Gem::Requirement
39
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
40
31
  - - ">="
41
- - !ruby/object:Gem::Version
42
- version: "3.2"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
43
34
  type: :runtime
44
- version_requirements: *id003
45
- - !ruby/object:Gem::Dependency
46
- name: nilio
47
35
  prerelease: false
48
- requirement: &id004 !ruby/object:Gem::Requirement
49
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: nilio
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
50
45
  - - ">="
51
- - !ruby/object:Gem::Version
52
- version: "1.0"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
53
48
  type: :runtime
54
- version_requirements: *id004
55
- - !ruby/object:Gem::Dependency
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
56
70
  name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
57
77
  prerelease: false
58
- requirement: &id006 !ruby/object:Gem::Requirement
59
- requirements:
60
- - *id005
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: appraisal
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
61
90
  type: :development
62
- version_requirements: *id006
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
63
97
  description: Enables request-based caching for ActiveResource
64
98
  email: brown.mhg@gmail.com
65
99
  executables: []
66
-
67
100
  extensions: []
68
-
69
101
  extra_rdoc_files: []
70
-
71
- files:
72
- - .gitignore
73
- - .rspec
74
- - .travis.yml
102
+ files:
103
+ - ".gitignore"
104
+ - ".rspec"
105
+ - ".travis.yml"
106
+ - Appraisals
75
107
  - Gemfile
76
- - MIT-LICENSE
108
+ - LICENSE
77
109
  - README.md
78
110
  - Rakefile
79
111
  - cached_resource.gemspec
80
- - gemfiles/Gemfile.rails-3.2.x
112
+ - gemfiles/4.2.gemfile
113
+ - gemfiles/4.2.gemfile.lock
114
+ - gemfiles/5.0.gemfile
115
+ - gemfiles/5.0.gemfile.lock
116
+ - gemfiles/5.1.gemfile
117
+ - gemfiles/5.1.gemfile.lock
81
118
  - lib/cached_resource.rb
82
119
  - lib/cached_resource/cached_resource.rb
83
120
  - lib/cached_resource/caching.rb
@@ -86,30 +123,31 @@ files:
86
123
  - spec/cached_resource/caching_spec.rb
87
124
  - spec/cached_resource/configuration_spec.rb
88
125
  - spec/spec_helper.rb
89
- homepage: http://github.com/Ahsizara/cached_resource
90
- licenses: []
91
-
126
+ homepage: https://github.com/mhgbrown/cached_resource
127
+ licenses:
128
+ - MIT
92
129
  metadata: {}
93
-
94
130
  post_install_message:
95
131
  rdoc_options: []
96
-
97
- require_paths:
132
+ require_paths:
98
133
  - lib
99
- required_ruby_version: !ruby/object:Gem::Requirement
100
- requirements:
101
- - *id005
102
- required_rubygems_version: !ruby/object:Gem::Requirement
103
- requirements:
104
- - *id005
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
105
144
  requirements: []
106
-
107
145
  rubyforge_project:
108
- rubygems_version: 2.0.14
146
+ rubygems_version: 2.5.2
109
147
  signing_key:
110
148
  specification_version: 4
111
149
  summary: Caching for ActiveResource
112
- test_files:
150
+ test_files:
113
151
  - spec/cached_resource/caching_spec.rb
114
152
  - spec/cached_resource/configuration_spec.rb
115
153
  - spec/spec_helper.rb
@@ -1,8 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => "../"
4
-
5
- gem "activeresource", "~> 3.2"
6
- gem "activesupport", "~> 3.2"
7
-
8
-