content_caching 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0b99af4b7bbf5dec7d6c5fa999226cfcb6ad860
4
- data.tar.gz: 24cba441648f98ba6f64ec6cfbc8a7ebeb68fb29
3
+ metadata.gz: 1679fedaa5b108b96b43f10266fee6f6eba073fb
4
+ data.tar.gz: 8e60f670e6594729e3480ca7835ab85ad1ab26a8
5
5
  SHA512:
6
- metadata.gz: 3c06a7fdf04c7fcb5f4cdfec0b437ee9c444db9d6f1585fa350116c543267d88ce65d6cd65bf891e5e515d72872834049a3d0b06eeda6c6461cc42a16277e369
7
- data.tar.gz: 5e72d78eef4c344910b62aa019ae3dd7f43704f976a15423cb19fda681c62d9116b0b962b611083ab5355b7c5407acbd04bdd3345129df4308e5d813529f0688
6
+ metadata.gz: 8b66af44f6a4b91c63138533e4eeccf49d936f38741ed76795a79133e875a0641a195384f2cb0570c61149b47aa25eb069c193da777042b80888d5007b9cbe85
7
+ data.tar.gz: d6c2b251a47b19e563f34e10a54b78cd4fca0771aa901ce56e24492b402d90ea48c4196692b9f3a5a83d70c3f7d149d5ec8469f1d44dea76f9437fa747ed0604
data/.gitignore CHANGED
@@ -14,7 +14,6 @@ rdoc
14
14
  spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
- tmp
18
17
  *.bundle
19
18
  *.so
20
19
  *.o
data/.travis.yml CHANGED
@@ -1,3 +1,9 @@
1
1
  language: ruby
2
+ script: bundle exec rspec
2
3
  rvm:
3
- - 2.1.1
4
+ - 2.0.0
5
+ - 2.1.0
6
+ - ruby-head
7
+ matrix:
8
+ allow_failures:
9
+ - rvm: ruby-head
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/joel/content_caching.png)](https://codeclimate.com/github/joel/content_caching)
5
- [![Dependency Status](https://gemnasium.com/joel/content_caching.png)](https://gemnasium.com/joel/content_caching)
6
- [![Build Status](https://travis-ci.org/joel/content_caching.svg?branch=master)](https://travis-ci.org/joel/content_caching)
7
- [![Coverage Status](https://coveralls.io/repos/joel/content_caching/badge.png)](https://coveralls.io/r/joel/content_caching)
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
 
@@ -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', '~> 1.6'
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
- Pathname(url(document_path)).write content.respond_to?(:read) ? content.read : content
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
- Pathname(url(document_path)).delete
15
+ File.delete url(document_path)
16
16
  end
17
17
 
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module ContentCaching
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  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.0
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-05-30 00:00:00.000000000 Z
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.6'
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.6'
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: '2.1'
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.1.11
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