shellac 0.0.2.4 → 0.0.3.rc2

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.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour
data/.rvmrc ADDED
@@ -0,0 +1,81 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
+ # development environment upon cd'ing into the directory
5
+
6
+ # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
+ environment_id="ruby-1.9.3-p0@shellac"
8
+
9
+ #
10
+ # Uncomment the following lines if you want to verify rvm version per project
11
+ #
12
+ # rvmrc_rvm_version="1.10.2" # 1.10.1 seams as a safe start
13
+ # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
14
+ # echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
15
+ # return 1
16
+ # }
17
+ #
18
+
19
+ #
20
+ # Uncomment following line if you want options to be set only for given project.
21
+ #
22
+ # PROJECT_JRUBY_OPTS=( --1.9 )
23
+ #
24
+ # The variable PROJECT_JRUBY_OPTS requires the following to be run in shell:
25
+ #
26
+ # chmod +x ${rvm_path}/hooks/after_use_jruby_opts
27
+ #
28
+
29
+ #
30
+ # First we attempt to load the desired environment directly from the environment
31
+ # file. This is very fast and efficient compared to running through the entire
32
+ # CLI and selector. If you want feedback on which environment was used then
33
+ # insert the word 'use' after --create as this triggers verbose mode.
34
+ #
35
+ if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
36
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
37
+ then
38
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
39
+
40
+ if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
41
+ then
42
+ . "${rvm_path:-$HOME/.rvm}/hooks/after_use"
43
+ fi
44
+ else
45
+ # If the environment file has not yet been created, use the RVM CLI to select.
46
+ if ! rvm --create "$environment_id"
47
+ then
48
+ echo "Failed to create RVM environment '${environment_id}'."
49
+ return 1
50
+ fi
51
+ fi
52
+
53
+ #
54
+ # If you use an RVM gemset file to install a list of gems (*.gems), you can have
55
+ # it be automatically loaded. Uncomment the following and adjust the filename if
56
+ # necessary.
57
+ #
58
+ # filename=".gems"
59
+ # if [[ -s "$filename" ]]
60
+ # then
61
+ # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
62
+ # fi
63
+
64
+ # If you use bundler, this might be useful to you:
65
+ # if [[ -s Gemfile ]] && ! command -v bundle >/dev/null
66
+ # then
67
+ # printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
68
+ # gem install bundler
69
+ # fi
70
+ # if [[ -s Gemfile ]] && command -v bundle
71
+ # then
72
+ # bundle install
73
+ # fi
74
+
75
+ if [[ $- == *i* ]] # check for interactive shells
76
+ then
77
+ echo "Using: $(tput setaf 2)$GEM_HOME$(tput sgr0)" # show the user the ruby and gemset they are using in green
78
+ else
79
+ echo "Using: $GEM_HOME" # don't use colors in interactive shells
80
+ fi
81
+
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec
4
+ gem 'ruby-debug19'
5
+ gem 'ruby-debug-base19x', '>= 0.11.30.pre10'
6
+ gem 'linecache19', git: 'https://github.com/mark-moseley/linecache.git', ref: '869c6a65155068415925067e480741bd0a71527e'
data/Rakefile CHANGED
@@ -1,5 +1,2 @@
1
- require File.expand_path('../config/application', __FILE__)
2
- ShellacApp::Application.load_tasks
3
-
4
1
  require 'bundler'
5
2
  Bundler::GemHelper.install_tasks
data/config.ru ADDED
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+
4
+ Bundler.require :default, :development
5
+
6
+ Combustion.initialize!
7
+ run Combustion::Application
@@ -2,9 +2,9 @@
2
2
  # Currently all options must be specified. This will change in a future
3
3
  # version to only need definition of non default values of varnish.
4
4
 
5
- # host: The host which you access your varnish server from. This
6
- # is particularly useful when you cache more than one host
7
- # with one varnish instance (default: localhost)
5
+ # hosts: Comma separated list of hosts to make obsolete in varnishes purge list (default: localhost)
6
+
7
+ # server: The ip or domain for your varnish server (default: localhost)
8
8
 
9
9
  # post: The port of your varnish telnet server (default: 6082)
10
10
 
@@ -13,13 +13,15 @@
13
13
  # keep_alive: Set to true, to keep the connection alive (default: false)
14
14
 
15
15
  development:
16
- host: localhost
16
+ hosts: localhost
17
+ server: localhost
17
18
  port: 6082
18
19
  timeout: 1
19
20
  keep_alive: false
20
21
 
21
22
  production:
22
- host: example.com
23
+ hosts: example.com, varnishserver.com
24
+ server: 10.0.0.138
23
25
  port: 6082
24
26
  timeout: 1
25
27
  keep_alive: false
@@ -1,9 +1,9 @@
1
1
  module Shellac
2
2
  module Actions
3
3
 
4
- def purge regex, recursive=false
5
- return unless ActionController::Base.perform_caching
6
- Shellac::Cache.instance.purge regex, recursive
4
+ def purge regex, recursive=false, hosts=nil
5
+ return unless ::ActionController::Base.perform_caching
6
+ Cache.instance.purge regex, recursive, hosts
7
7
  end
8
8
 
9
9
  end
data/lib/shellac/cache.rb CHANGED
@@ -2,33 +2,31 @@ require 'singleton'
2
2
 
3
3
  module Shellac
4
4
  class Cache
5
- include Singleton
5
+ include ::Singleton
6
6
 
7
- if File.exist?("#{File.expand_path(Rails.root.to_s)}/config/varnish.yml")
7
+ if ::File.exist?("#{File.expand_path(Rails.root.to_s)}/config/varnish.yml")
8
8
  VARNISH_CONFIGURATION = YAML.load_file("#{Rails.root.to_s}/config/varnish.yml")[::Rails.env]
9
9
  end
10
10
 
11
11
  # return client instance
12
12
  def client
13
- @client ||= Varnish::Client.new "#{config("host")}:#{config("port")}",
13
+ @client ||= ::Varnish::Client.new "#{config("server")}:#{config("port")}",
14
14
  :timeout => config("timeout"),
15
15
  :keep_alive => config("keep_alive")
16
16
  end
17
17
 
18
18
  # purge a regular expression of url
19
- def purge path, recursive
19
+ def purge path, recursive=false, hosts=nil
20
20
 
21
- if recursive
22
- regex = "^#{path}" # purge any page starting with regex
23
- else
24
- regex = "^#{path}$"
25
- end
21
+ # fall back to configuration and convert to array
22
+ hosts ||= config('hosts').delete(' ').split(',')
26
23
 
27
- # write to log
28
- Rails.logger.info "*** Purging#{" (recursively)" if recursive}: #{path}"
24
+ # purge any page starting with regex
25
+ regex = "^#{path}#{'$' unless recursive}"
29
26
 
30
27
  # purge with
31
- client.purge "req.http.host ~ ^#{config("host")} && req.url ~ #{regex}"
28
+ client.purge "req.http.host ~ ^(#{hosts.join('|')}) && req.url ~ #{regex}"
29
+
32
30
  end
33
31
 
34
32
  protected
@@ -0,0 +1,3 @@
1
+ module Shellac
2
+ VERSION = "0.0.3.rc2"
3
+ end
data/shellac.gemspec CHANGED
@@ -12,38 +12,21 @@ Gem::Specification.new do |s|
12
12
  s.authors = ['Marian Andre']
13
13
  s.license = %q{MIT}
14
14
 
15
- s.files = `git ls-files -- {shellac*,lib,spec,LICENSE.txt,README*,Gemfile}`.split("\n")
15
+ s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_dependency 'bundler', '~> 1.0'
21
- s.add_runtime_dependency 'klarlack', '~> 0.0.6'
20
+ s.add_dependency 'klarlack', '~> 0.0.6'
22
21
 
23
- s.add_development_dependency 'rspec-rails', '~> 2.5'
24
- s.add_development_dependency 'rcov', ">= 0"
25
- s.add_development_dependency 'rails', '3.0.7.rc2'
26
- s.add_development_dependency 'sqlite3', '~> 0.0.6'
22
+ s.add_development_dependency 'rails', '~> 3.1.0'
23
+ s.add_development_dependency 'combustion', '~> 0.3.1'
24
+ s.add_development_dependency 'sqlite3'
25
+
26
+ s.add_development_dependency 'rspec-rails', '~> 2.6.1'
27
+ s.add_development_dependency 'fuubar'
28
+ s.add_development_dependency 'rspec-instafail'
27
29
 
28
- s.files = [
29
- '.gitignore',
30
- 'LICENSE.txt',
31
- 'README.rdoc',
32
- 'Rakefile',
33
- 'lib',
34
- 'lib/generators',
35
- 'lib/generators/shellac',
36
- 'lib/generators/shellac/install_generator.rb',
37
- 'lib/generators/templates',
38
- 'lib/generators/templates/config',
39
- 'lib/generators/templates/config/varnish.yml',
40
- 'lib/shellac',
41
- 'lib/shellac/actions.rb',
42
- 'lib/shellac/cache.rb',
43
- 'lib/shellac.rb',
44
- 'shellac.gemspec',
45
- 'spec',
46
- 'spec/shellac_spec.rb',
47
- 'spec/spec_helper.rb'
48
- ]
30
+ # Guard
31
+ s.add_development_dependency 'guard-rspec', '~> 0.4.2'
49
32
  end
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: sqlite3
3
+ database: db/combustion_test.sqlite
@@ -0,0 +1,116 @@
1
+ # This is a basic VCL configuration file for varnish. See the vcl(7)
2
+ # man page for details on VCL syntax and semantics.
3
+ #
4
+ # Default backend definition. Set this to point to your content
5
+ # server.
6
+
7
+ backend default {
8
+ .host = "127.0.0.1";
9
+ .port = "8080";
10
+ }
11
+
12
+ # Below is a commented-out copy of the default VCL logic. If you
13
+ # redefine any of these subroutines, the built-in logic will be
14
+ # appended to your code.
15
+
16
+ sub vcl_recv {
17
+ if (req.restarts == 0) {
18
+ if (req.http.x-forwarded-for) {
19
+ set req.http.X-Forwarded-For =
20
+ req.http.X-Forwarded-For ", " client.ip;
21
+ } else {
22
+ set req.http.X-Forwarded-For = client.ip;
23
+ }
24
+ }
25
+ if (req.request != "GET" &&
26
+ req.request != "HEAD" &&
27
+ req.request != "PUT" &&
28
+ req.request != "POST" &&
29
+ req.request != "TRACE" &&
30
+ req.request != "OPTIONS" &&
31
+ req.request != "DELETE") {
32
+ /* Non-RFC2616 or CONNECT which is weird. */
33
+ return (pipe);
34
+ }
35
+ if (req.request != "GET" && req.request != "HEAD") {
36
+ /* We only deal with GET and HEAD by default */
37
+ return (pass);
38
+ }
39
+ if (req.http.Authorization || req.http.Cookie) {
40
+ /* Not cacheable by default */
41
+ return (pass);
42
+ }
43
+ return (lookup);
44
+ }
45
+
46
+ sub vcl_pipe {
47
+ # Note that only the first request to the backend will have
48
+ # X-Forwarded-For set. If you use X-Forwarded-For and want to
49
+ # have it set for all requests, make sure to have:
50
+ # set bereq.http.connection = "close";
51
+ # here. It is not set by default as it might break some broken web
52
+ # applications, like IIS with NTLM authentication.
53
+ return (pipe);
54
+ }
55
+
56
+ sub vcl_pass {
57
+ return (pass);
58
+ }
59
+
60
+ sub vcl_hash {
61
+ set req.hash += req.url;
62
+ if (req.http.host) {
63
+ set req.hash += req.http.host;
64
+ } else {
65
+ set req.hash += server.ip;
66
+ }
67
+ return (hash);
68
+ }
69
+
70
+ sub vcl_hit {
71
+ if (!obj.cacheable) {
72
+ return (pass);
73
+ }
74
+ return (deliver);
75
+ }
76
+
77
+ sub vcl_miss {
78
+ return (fetch);
79
+ }
80
+
81
+ sub vcl_fetch {
82
+ if (!beresp.cacheable) {
83
+ return (pass);
84
+ }
85
+ if (beresp.http.Set-Cookie) {
86
+ return (pass);
87
+ }
88
+ return (deliver);
89
+ }
90
+
91
+ sub vcl_deliver {
92
+ return (deliver);
93
+ }
94
+
95
+ sub vcl_error {
96
+ set obj.http.Content-Type = "text/html; charset=utf-8";
97
+ synthetic {"
98
+ <?xml version="1.0" encoding="utf-8"?>
99
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
100
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
101
+ <html>
102
+ <head>
103
+ <title>"} obj.status " " obj.response {"</title>
104
+ </head>
105
+ <body>
106
+ <h1>Error "} obj.status " " obj.response {"</h1>
107
+ <p>"} obj.response {"</p>
108
+ <h3>Guru Meditation:</h3>
109
+ <p>XID: "} req.xid {"</p>
110
+ <hr>
111
+ <p>Varnish cache server</p>
112
+ </body>
113
+ </html>
114
+ "};
115
+ return (deliver);
116
+ }
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ #
3
+ end
@@ -0,0 +1,27 @@
1
+ # Define varnish for all environments that make use of it.
2
+ # Currently all options must be specified. This will change in a future
3
+ # version to only need definition of non default values of varnish.
4
+
5
+ # hosts: Comma separated list of hosts to make obsolete in varnishes purge list (default: localhost)
6
+
7
+ # server: The ip or domain for your varnish server (default: localhost)
8
+
9
+ # post: The port of your varnish telnet server (default: 6082)
10
+
11
+ # timeout: Timeout in seconds when connecting to varnish (default: 1)
12
+
13
+ # keep_alive: Set to true, to keep the connection alive (default: false)
14
+
15
+ test:
16
+ hosts: localhost, 127.0.0.1
17
+ server: localhost
18
+ port: 6082
19
+ timeout: 1
20
+ keep_alive: false
21
+
22
+ production:
23
+ hosts: example.com, varnishserver.com
24
+ server: 10.0.0.138
25
+ port: 6082
26
+ timeout: 1
27
+ keep_alive: false
File without changes
@@ -0,0 +1,3 @@
1
+ ActiveRecord::Schema.define do
2
+ #
3
+ end
@@ -0,0 +1 @@
1
+ *.log
data/spec/shellac_spec.rb CHANGED
@@ -14,9 +14,7 @@ describe "Shellac" do
14
14
  ActionController::Base.perform_caching = true
15
15
  end
16
16
 
17
- it "should raise error if varnish is not available" do
18
- lambda {ActionController::Base.purge("/")}.should raise_error(Errno::ECONNREFUSED)
19
- end
17
+ pending "should raise error if varnish is not available"
20
18
  end
21
19
 
22
20
  context "(rails doesn't perform caching)" do
@@ -28,4 +26,15 @@ describe "Shellac" do
28
26
  ActionController::Base.purge("/").should be nil
29
27
  end
30
28
  end
29
+
30
+ context "(purge multiple hosts)" do
31
+ before(:each) do
32
+ ActionController::Base.perform_caching = true
33
+ end
34
+
35
+ it "should purge more than one hosts" do
36
+ Varnish::Client.any_instance.should_receive(:purge).with("req.http.host ~ ^(mobile.bitflut.com|bitflut.com) && req.url ~ ^/$")
37
+ ActionController::Base.purge("/", false, ["mobile.bitflut.com", "bitflut.com"])
38
+ end
39
+ end
31
40
  end
data/spec/spec_helper.rb CHANGED
@@ -1,27 +1,12 @@
1
- # This file is copied to spec/ when you run 'rails generate rspec:install'
2
- ENV["RAILS_ENV"] ||= 'test'
3
- require File.expand_path("../../config/environment", __FILE__)
4
- require 'rspec/rails'
1
+ require 'rubygems'
2
+ require 'bundler'
5
3
 
6
- # Requires supporting ruby files with custom matchers and macros, etc,
7
- # in spec/support/ and its subdirectories.
8
- Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
4
+ Bundler.require :default, :development
9
5
 
10
- RSpec.configure do |config|
11
- # == Mock Framework
12
- #
13
- # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
14
- #
15
- # config.mock_with :mocha
16
- # config.mock_with :flexmock
17
- # config.mock_with :rr
18
- config.mock_with :rspec
6
+ Combustion.initialize!
19
7
 
20
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
21
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
8
+ require 'rspec/rails'
22
9
 
23
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
24
- # examples within a transaction, remove the following line or assign false
25
- # instead of true.
10
+ RSpec.configure do |config|
26
11
  config.use_transactional_fixtures = true
27
12
  end
metadata CHANGED
@@ -1,139 +1,170 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: shellac
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.2.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3.rc2
5
+ prerelease: 6
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Marian Andre
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-04-17 00:00:00 +02:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: bundler
18
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-03-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: klarlack
16
+ requirement: &70221856433480 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
18
+ requirements:
21
19
  - - ~>
22
- - !ruby/object:Gem::Version
23
- version: "1.0"
20
+ - !ruby/object:Gem::Version
21
+ version: 0.0.6
24
22
  type: :runtime
25
23
  prerelease: false
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: klarlack
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70221856433480
25
+ - !ruby/object:Gem::Dependency
26
+ name: rails
27
+ requirement: &70221856432720 !ruby/object:Gem::Requirement
30
28
  none: false
31
- requirements:
29
+ requirements:
32
30
  - - ~>
33
- - !ruby/object:Gem::Version
34
- version: 0.0.6
35
- type: :runtime
31
+ - !ruby/object:Gem::Version
32
+ version: 3.1.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70221856432720
36
+ - !ruby/object:Gem::Dependency
37
+ name: combustion
38
+ requirement: &70221856430740 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.3.1
44
+ type: :development
36
45
  prerelease: false
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
46
+ version_requirements: *70221856430740
47
+ - !ruby/object:Gem::Dependency
48
+ name: sqlite3
49
+ requirement: &70221856430280 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70221856430280
58
+ - !ruby/object:Gem::Dependency
39
59
  name: rspec-rails
40
- requirement: &id003 !ruby/object:Gem::Requirement
60
+ requirement: &70221856429640 !ruby/object:Gem::Requirement
41
61
  none: false
42
- requirements:
62
+ requirements:
43
63
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: "2.5"
64
+ - !ruby/object:Gem::Version
65
+ version: 2.6.1
46
66
  type: :development
47
67
  prerelease: false
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: rcov
51
- requirement: &id004 !ruby/object:Gem::Requirement
68
+ version_requirements: *70221856429640
69
+ - !ruby/object:Gem::Dependency
70
+ name: fuubar
71
+ requirement: &70221856429200 !ruby/object:Gem::Requirement
52
72
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
57
77
  type: :development
58
78
  prerelease: false
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: rails
62
- requirement: &id005 !ruby/object:Gem::Requirement
79
+ version_requirements: *70221856429200
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec-instafail
82
+ requirement: &70221856428640 !ruby/object:Gem::Requirement
63
83
  none: false
64
- requirements:
65
- - - "="
66
- - !ruby/object:Gem::Version
67
- version: 3.0.7.rc2
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
68
88
  type: :development
69
89
  prerelease: false
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: sqlite3
73
- requirement: &id006 !ruby/object:Gem::Requirement
90
+ version_requirements: *70221856428640
91
+ - !ruby/object:Gem::Dependency
92
+ name: guard-rspec
93
+ requirement: &70221856428000 !ruby/object:Gem::Requirement
74
94
  none: false
75
- requirements:
95
+ requirements:
76
96
  - - ~>
77
- - !ruby/object:Gem::Version
78
- version: 0.0.6
97
+ - !ruby/object:Gem::Version
98
+ version: 0.4.2
79
99
  type: :development
80
100
  prerelease: false
81
- version_requirements: *id006
82
- description: Shellac gives you an environment aware helper for purging configured under config/varnish.yml built ontop of Max Schoefmann's klarlack gem
101
+ version_requirements: *70221856428000
102
+ description: Shellac gives you an environment aware helper for purging configured
103
+ under config/varnish.yml built ontop of Max Schoefmann's klarlack gem
83
104
  email: marian@bitflut.com
84
105
  executables: []
85
-
86
106
  extensions: []
87
-
88
107
  extra_rdoc_files: []
89
-
90
- files:
108
+ files:
109
+ - .document
91
110
  - .gitignore
92
- - LICENSE.txt
111
+ - .rspec
112
+ - .rvmrc
113
+ - Gemfile
93
114
  - README.rdoc
94
115
  - Rakefile
116
+ - config.ru
95
117
  - lib/generators/shellac/install_generator.rb
96
118
  - lib/generators/templates/config/varnish.yml
119
+ - lib/shellac.rb
97
120
  - lib/shellac/actions.rb
98
121
  - lib/shellac/cache.rb
99
- - lib/shellac.rb
122
+ - lib/shellac/version.rb
100
123
  - shellac.gemspec
124
+ - spec/internal/config/database.yml
125
+ - spec/internal/config/default.vcl
126
+ - spec/internal/config/routes.rb
127
+ - spec/internal/config/varnish.yml
128
+ - spec/internal/db/combustion_test.sqlite
129
+ - spec/internal/db/schema.rb
130
+ - spec/internal/log/.gitignore
101
131
  - spec/shellac_spec.rb
102
132
  - spec/spec_helper.rb
103
- has_rdoc: true
104
133
  homepage: http://github.com/bitflut/shellac
105
- licenses:
134
+ licenses:
106
135
  - MIT
107
136
  post_install_message:
108
137
  rdoc_options: []
109
-
110
- require_paths:
138
+ require_paths:
111
139
  - lib
112
- required_ruby_version: !ruby/object:Gem::Requirement
140
+ required_ruby_version: !ruby/object:Gem::Requirement
113
141
  none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 2187526201030585787
118
- segments:
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ segments:
119
147
  - 0
120
- version: "0"
121
- required_rubygems_version: !ruby/object:Gem::Requirement
148
+ hash: -466525933974933342
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
150
  none: false
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- hash: 2187526201030585787
127
- segments:
128
- - 0
129
- version: "0"
151
+ requirements:
152
+ - - ! '>'
153
+ - !ruby/object:Gem::Version
154
+ version: 1.3.1
130
155
  requirements: []
131
-
132
156
  rubyforge_project:
133
- rubygems_version: 1.5.2
157
+ rubygems_version: 1.8.15
134
158
  signing_key:
135
159
  specification_version: 3
136
160
  summary: Shellac is a gem to easily send purges to varnish servers from rails
137
- test_files:
161
+ test_files:
162
+ - spec/internal/config/database.yml
163
+ - spec/internal/config/default.vcl
164
+ - spec/internal/config/routes.rb
165
+ - spec/internal/config/varnish.yml
166
+ - spec/internal/db/combustion_test.sqlite
167
+ - spec/internal/db/schema.rb
168
+ - spec/internal/log/.gitignore
138
169
  - spec/shellac_spec.rb
139
170
  - spec/spec_helper.rb
data/LICENSE.txt DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2011 Marian
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.