cachebag 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/Rakefile +18 -0
- data/cachebag.gemspec +17 -0
- data/lib/cachebag.rb +19 -0
- data/lib/cachebag/version.rb +13 -0
- data/script/console +7 -0
- data/test/cachebag/xxx_test.rb +14 -0
- data/test/test_helper.rb +7 -0
- metadata +52 -0
data/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Local HTTP cache in your REST consumers. More info soon...
|
data/Rakefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
|
4
|
+
Rake::TestTask.new do |t|
|
5
|
+
t.libs << "test"
|
6
|
+
t.test_files = FileList['test/**/*.rb']
|
7
|
+
t.verbose = true
|
8
|
+
end
|
9
|
+
|
10
|
+
desc 'Load the gem environment'
|
11
|
+
task :environment do
|
12
|
+
require File.expand_path(File.dirname(__FILE__) + '/lib/cachebag.rb')
|
13
|
+
end
|
14
|
+
|
15
|
+
# To load rake tasks on lib/task folder
|
16
|
+
# load 'lib/tasks/task_sample.rake'
|
17
|
+
|
18
|
+
task :default => :test
|
data/cachebag.gemspec
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "cachebag"
|
3
|
+
s.version = "0.0.1"
|
4
|
+
s.platform = Gem::Platform::RUBY
|
5
|
+
s.summary = "Local HTTP cache in your REST consumers"
|
6
|
+
s.require_paths = ['lib']
|
7
|
+
s.files = Dir["{lib/**/*.rb,README.md,test/**/*.rb,Rakefile,*.gemspec,script/*}"]
|
8
|
+
|
9
|
+
s.author = "Luis Cipriani"
|
10
|
+
s.email = "lfcipriani@gmail.com"
|
11
|
+
s.homepage = "https://github.com/abril/cachebag"
|
12
|
+
|
13
|
+
# s.add_dependency('dependency', '>= 1.0.0')
|
14
|
+
|
15
|
+
# s.add_development_dependency('cover_me')
|
16
|
+
# s.add_development_dependency('ruby-debug19')
|
17
|
+
end
|
data/lib/cachebag.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__))
|
2
|
+
|
3
|
+
# Dependencies
|
4
|
+
require "rubygems"
|
5
|
+
require "bundler/setup"
|
6
|
+
# require other dependencies here...
|
7
|
+
|
8
|
+
# Gem requirements
|
9
|
+
# Your can require or autoload gem files here, see examples below
|
10
|
+
# require "gem_name/file"
|
11
|
+
# module GemName
|
12
|
+
# autoload :AClass , "migrator/a_class"
|
13
|
+
# autoload :AnotherClass, "migrator/another_class"
|
14
|
+
# end
|
15
|
+
|
16
|
+
module CacheBag
|
17
|
+
|
18
|
+
end
|
19
|
+
|
data/script/console
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# File: script/console
|
3
|
+
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
+
ENV["MIGRATOR_CALLER"] = "console"
|
5
|
+
libs = " -r #{File.dirname(__FILE__) + '/../lib/cachebag'} -r ruby-debug"
|
6
|
+
puts "Loading gem development environment..."
|
7
|
+
exec "#{irb} #{libs} --simple-prompt #{ARGV.join("")}"
|
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cachebag
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Luis Cipriani
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-10-07 00:00:00.000000000Z
|
13
|
+
dependencies: []
|
14
|
+
description:
|
15
|
+
email: lfcipriani@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/cachebag/version.rb
|
21
|
+
- lib/cachebag.rb
|
22
|
+
- README.md
|
23
|
+
- test/cachebag/xxx_test.rb
|
24
|
+
- test/test_helper.rb
|
25
|
+
- Rakefile
|
26
|
+
- cachebag.gemspec
|
27
|
+
- script/console
|
28
|
+
homepage: https://github.com/abril/cachebag
|
29
|
+
licenses: []
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
requirements: []
|
47
|
+
rubyforge_project:
|
48
|
+
rubygems_version: 1.8.10
|
49
|
+
signing_key:
|
50
|
+
specification_version: 3
|
51
|
+
summary: Local HTTP cache in your REST consumers
|
52
|
+
test_files: []
|