Skip to content

Commit

Permalink
Generating initial gem (no code)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques Crocker committed Nov 14, 2010
1 parent 133fa34 commit 1c821a7
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pkg/*
.bundle/config
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source :rubygems

gem "rake"
gemspec
29 changes: 29 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
PATH
remote: .
specs:
heroscale (0.0.1)
rack (~> 1.0)

GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.2)
rack (1.2.1)
rake (0.8.7)
rspec (2.1.0)
rspec-core (~> 2.1.0)
rspec-expectations (~> 2.1.0)
rspec-mocks (~> 2.1.0)
rspec-core (2.1.0)
rspec-expectations (2.1.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.1.0)

PLATFORMS
ruby

DEPENDENCIES
heroscale!
rack (~> 1.0)
rake
rspec (~> 2.0)
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2010 Jacques Crocker

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Once you've deployed and everything seems to be working, go ahead and test it ou

This will query your heroku app and verify that it is returning the right response.


## Securing

For most people, having the queue size and dynos on a publically available url is not a big deal. However if you want to secure it, just run:
Expand All @@ -45,4 +44,15 @@ Redeploy to Heroku and then run:

rake heroscale:test

to verify everything is still working
to verify everything is still working

## Installation (Sinatra)

Just add Heroscale::Middleware to your config.ru

TODO: more details

## Installation (Rails 2)

TODO: more details

35 changes: 35 additions & 0 deletions heroscale.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Gem::Specification.new do |s|
s.name = "heroscale"
s.version = "0.0.1"

s.authors = ["Jacques Crocker"]
s.summary = "Autoscale your heroku app"
s.description = "This rack middleware that allows easy external querying of your heroku's app queue depth"

s.email = "[email protected]"
s.homepage = "http://github.com/railsjedi/heroscale"
s.rubyforge_project = "none"

s.require_paths = ["lib"]
s.files = Dir['lib/**/*',
'spec/**/*',
'heroscale.gemspec',
'Gemfile',
'Gemfile.lock',
'LICENSE',
'Rakefile',
'README.md']

s.test_files = Dir['spec/**/*']
s.rdoc_options = ["--charset=UTF-8"]
s.extra_rdoc_files = [
"LICENSE",
"README.md"
]

s.add_runtime_dependency 'rack', '~> 1.0'
s.add_development_dependency "rspec", "~> 2.0"
end



0 comments on commit 1c821a7

Please sign in to comment.