chlorine 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +35 -0
  3. metadata +66 -0
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Trevor Burnham
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.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Chlorine
2
+
3
+ A simple plugin for Rails 3 that removes files from a given set of directories when your server starts up.
4
+
5
+ # Why?
6
+
7
+ If you're using [Sass](http://sass-lang.com/) and you rename or delete a stylesheet, you're going to have to delete the old CSS file by hand. If you're using [Barista](http://github.com/sutto/barista) and you rename or delete a CoffeeScript source file, you're going to have to delete the compiled JavaScript by hand. If your code or a plugin uses the `tmp` directory, you're going to have to delete it periodically. Why bother?
8
+
9
+ Using Chlorine, these unwanted parts of your app's file tree will be deleted every time you start the server. Don't worry—you can exclude specific files and directories. For instance, if you're using CoffeeScript but you use jQuery, you can put the `jQuery.js` file in a `lib` subdirectory and tell Chlorine to ignore it.
10
+
11
+ ## Installation
12
+
13
+ Just add `chlorine` to your `Gemfile`:
14
+
15
+ gem 'chlorine'
16
+
17
+ then run
18
+
19
+ rails generate chlorine:config
20
+
21
+ Now open `config/chlorine.yml` and edit to fit your needs. Chlorine won't do anything unless you configure it.
22
+
23
+ ## Caution!
24
+
25
+ Chlorine deletes stuff. For goodness' sake, do a backup before you turn it on!
26
+
27
+ Also, be aware that **you can only exclude files and directories in the root of each dir**. Chlorine isn't smart (yet) about its configuration; you can't say "I want to delete everything in `public/javascripts` except for `lib/jQuery.js`"; you can only say "I want to delete everything in `public/javascripts` except for `lib`." There's no pattern-matching. Chlorine simply lists everything in the directory, and everything in that list that isn't in `excludes` is gone.
28
+
29
+ ## License
30
+
31
+ All source is available under the MIT license. See LICENSE for details.
32
+
33
+ ## Feedback?
34
+
35
+ Chlorine is pretty simple, but if you have ideas for improvement, just create an issue at [http://github.com/TrevorBurnham/chlorine/issues](http://github.com/TrevorBurnham/chlorine/issues).
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chlorine
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Trevor Burnham
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-07-24 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: Automatically cleans out directories you specify when the server starts up.
22
+ email: trevor@iterative.ly
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files:
28
+ - LICENSE
29
+ - README.md
30
+ files:
31
+ - LICENSE
32
+ - README.md
33
+ has_rdoc: true
34
+ homepage: http://github.com/TrevorBurnham/chlorine
35
+ licenses: []
36
+
37
+ post_install_message:
38
+ rdoc_options:
39
+ - --charset=UTF-8
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ segments:
48
+ - 0
49
+ version: "0"
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ requirements: []
59
+
60
+ rubyforge_project:
61
+ rubygems_version: 1.3.7
62
+ signing_key:
63
+ specification_version: 3
64
+ summary: Keep your Rails app clean.
65
+ test_files: []
66
+