content_caching 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.travis.yml +7 -1
- data/README.md +4 -4
- data/content_caching.gemspec +1 -3
- data/lib/content_caching/adapters/fs.rb +2 -2
- data/lib/content_caching/version.rb +1 -1
- data/tmp/public/pages/.gitkeep +1 -0
- metadata +10 -11
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1679fedaa5b108b96b43f10266fee6f6eba073fb
|
4
|
+
data.tar.gz: 8e60f670e6594729e3480ca7835ab85ad1ab26a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b66af44f6a4b91c63138533e4eeccf49d936f38741ed76795a79133e875a0641a195384f2cb0570c61149b47aa25eb069c193da777042b80888d5007b9cbe85
|
7
|
+
data.tar.gz: d6c2b251a47b19e563f34e10a54b78cd4fca0771aa901ce56e24492b402d90ea48c4196692b9f3a5a83d70c3f7d149d5ec8469f1d44dea76f9437fa747ed0604
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# ContentCaching
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/content_caching.svg)](http://badge.fury.io/rb/content_caching)
|
4
|
-
[![Code Climate](https://codeclimate.com/github/
|
5
|
-
[![Dependency Status](https://gemnasium.com/
|
6
|
-
[![Build Status](https://travis-ci.org/
|
7
|
-
[![Coverage Status](https://coveralls.io/repos/
|
4
|
+
[![Code Climate](https://codeclimate.com/github/FinalCAD/content_caching.png)](https://codeclimate.com/github/FinalCAD/content_caching)
|
5
|
+
[![Dependency Status](https://gemnasium.com/FinalCAD/content_caching.png)](https://gemnasium.com/FinalCAD/content_caching)
|
6
|
+
[![Build Status](https://travis-ci.org/FinalCAD/content_caching.svg?branch=master)](https://travis-ci.org/FinalCAD/content_caching)
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/FinalCAD/content_caching/badge.png)](https://coveralls.io/r/FinalCAD/content_caching)
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
data/content_caching.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
16
|
spec.require_paths = ['lib']
|
17
17
|
|
18
|
-
spec.add_development_dependency 'bundler', '
|
18
|
+
spec.add_development_dependency 'bundler', '> 1.3'
|
19
19
|
spec.add_development_dependency 'rake', '~> 10.3'
|
20
20
|
spec.add_development_dependency 'rspec', '~> 2.14'
|
21
21
|
spec.add_development_dependency 'webmock', '~> 1.18'
|
@@ -23,6 +23,4 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'right_http_connection', '~> 1.4'
|
24
24
|
|
25
25
|
spec.add_dependency 'aws', '~> 2.10'
|
26
|
-
|
27
|
-
spec.required_ruby_version = '~> 2.1'
|
28
26
|
end
|
@@ -4,7 +4,7 @@ module ContentCaching
|
|
4
4
|
|
5
5
|
def store document_path, content
|
6
6
|
content.rewind if content.respond_to?(:rewind)
|
7
|
-
|
7
|
+
File.write url(document_path), content.respond_to?(:read) ? content.read : content
|
8
8
|
end
|
9
9
|
|
10
10
|
def url document_url
|
@@ -12,7 +12,7 @@ module ContentCaching
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def delete document_path
|
15
|
-
|
15
|
+
File.delete url(document_path)
|
16
16
|
end
|
17
17
|
|
18
18
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
for tests to work
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: content_caching
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel AZEMAR
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,8 +119,6 @@ files:
|
|
119
119
|
- ".coveralls.yml"
|
120
120
|
- ".gitignore"
|
121
121
|
- ".rspec"
|
122
|
-
- ".ruby-gemset"
|
123
|
-
- ".ruby-version"
|
124
122
|
- ".travis.yml"
|
125
123
|
- CHANGELOG.md
|
126
124
|
- Gemfile
|
@@ -144,6 +142,7 @@ files:
|
|
144
142
|
- spec/content_caching_spec.rb
|
145
143
|
- spec/fixtures/page.html
|
146
144
|
- spec/spec_helper.rb
|
145
|
+
- tmp/public/pages/.gitkeep
|
147
146
|
homepage: https://github.com/joel/content_caching
|
148
147
|
licenses:
|
149
148
|
- MIT
|
@@ -154,9 +153,9 @@ require_paths:
|
|
154
153
|
- lib
|
155
154
|
required_ruby_version: !ruby/object:Gem::Requirement
|
156
155
|
requirements:
|
157
|
-
- - "
|
156
|
+
- - ">="
|
158
157
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
158
|
+
version: '0'
|
160
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
160
|
requirements:
|
162
161
|
- - ">="
|
@@ -164,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
163
|
version: '0'
|
165
164
|
requirements: []
|
166
165
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
166
|
+
rubygems_version: 2.4.2
|
168
167
|
signing_key:
|
169
168
|
specification_version: 4
|
170
169
|
summary: Library for help and speed up views render manipulation
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
content_caching
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.1.1
|