hoof 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm gemset use global
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'daemons'
4
+ gem 'eventmachine'
5
+ gem 'unicorn'
6
+ gem 'http_parser'
7
+
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.6.0"
12
+ gem "rcov", ">= 0"
13
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,32 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ daemons (1.1.3)
5
+ eventmachine (0.12.10)
6
+ git (1.2.5)
7
+ http_parser (0.1.3)
8
+ jeweler (1.6.0)
9
+ bundler (~> 1.0.0)
10
+ git (>= 1.2.5)
11
+ rake
12
+ kgio (2.4.0)
13
+ rack (1.2.2)
14
+ rake (0.8.7)
15
+ rcov (0.9.9)
16
+ shoulda (2.11.3)
17
+ unicorn (3.6.2)
18
+ kgio (~> 2.3)
19
+ rack
20
+
21
+ PLATFORMS
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ bundler (~> 1.0.0)
26
+ daemons
27
+ eventmachine
28
+ http_parser
29
+ jeweler (~> 1.6.0)
30
+ rcov
31
+ shoulda
32
+ unicorn
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 pyromaniac
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.rdoc ADDED
@@ -0,0 +1,43 @@
1
+ = hoof
2
+
3
+ Linux version of https://github.com/37signals/pow/
4
+
5
+ Now we have a simple resolver.
6
+
7
+ Compile:
8
+
9
+ make
10
+
11
+ To install just symlink libnss_hoof.so.2 to /lib/libnss_hoof.so.2
12
+
13
+ cd /lib; sudo ln -s /path/to/hoof/libnss_hoof.so.2 libnss_hoof.so.2
14
+
15
+ Then change your /etc/nsswitch.conf like this:
16
+
17
+ hosts: hoof files mdns4_minimal [NOTFOUND=return] dns mdns4
18
+
19
+ Next step - mkdir ~/.hoof
20
+
21
+ Then at ~/.hoof create symlink anywhere. Like this:
22
+
23
+ cd ~/.hoof; ln -s ~/work/my_project cool_project
24
+
25
+ ping cool_project.dev - Wuola!
26
+
27
+
28
+
29
+ == Contributing to hoof
30
+
31
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
32
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
33
+ * Fork the project
34
+ * Start a feature/bugfix branch
35
+ * Commit and push until you are happy with your contribution
36
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
37
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
38
+
39
+ == Copyright
40
+
41
+ Copyright (c) 2011 pyromaniac. See LICENSE.txt for
42
+ further details.
43
+
data/Rakefile ADDED
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "hoof"
18
+ gem.homepage = "http://github.com/pyromaniac/hoof"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{Linux pow implementation}
21
+ gem.description = %Q{Hoof is linux variant of pow. It's based on nss, eventmachine and unicorn}
22
+ gem.email = "kinwizard@gmail.com"
23
+ gem.authors = ["pyromaniac"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ require 'rcov/rcovtask'
36
+ Rcov::RcovTask.new do |test|
37
+ test.libs << 'test'
38
+ test.pattern = 'test/**/test_*.rb'
39
+ test.verbose = true
40
+ test.rcov_opts << '--exclude "gems/*"'
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rake/rdoctask'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "hoof #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.0
data/bin/hoof ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- encoding: utf-8 -*-
3
+
4
+ require 'daemons'
5
+ require 'hoof'
6
+
7
+ Daemons.run_proc 'hoof', :dir_mode => :normal, :dir => '/tmp', :log_output => true do
8
+ Hoof.start
9
+ end
10
+
data/ext/Makefile ADDED
@@ -0,0 +1,13 @@
1
+ CC=gcc
2
+ CFLAGS=-O2
3
+
4
+ OBJ=nss_hoof.o
5
+
6
+ %.o: %.c
7
+ $(CC) -Wall -fPIC -c -o $@ $< $(CFLAGS)
8
+
9
+ libnss_hoof.so.2: $(OBJ)
10
+ $(CC) -shared -o $@ $^ -Wl,-soname,libnss_hoof.so.2 $(CFLAGS)
11
+
12
+ clean:
13
+ rm -f *.o *~ libnss_hoof.so.2
data/ext/nss_hoof.c ADDED
@@ -0,0 +1,85 @@
1
+ #include <stdio.h>
2
+ #include <stdlib.h>
3
+ #include <string.h>
4
+ #include <netdb.h>
5
+ #include <nss.h>
6
+ #include <resolv.h>
7
+ #include <arpa/inet.h>
8
+ #include <dirent.h>
9
+
10
+ int _fill_hostent (const char *name, int af, struct hostent *result)
11
+ {
12
+ result->h_name = malloc((strlen(name) + 1) * sizeof(char));
13
+ strcpy(result->h_name, name);
14
+
15
+ result->h_aliases = malloc(sizeof(char *));
16
+ *result->h_aliases = NULL;
17
+
18
+ switch (af)
19
+ {
20
+ case AF_INET:
21
+ result->h_addrtype = AF_INET;
22
+ result->h_length = INADDRSZ;
23
+ break;
24
+ case AF_INET6:
25
+ result->h_addrtype = AF_INET6;
26
+ result->h_length = IN6ADDRSZ;
27
+ }
28
+
29
+ result->h_addr_list = malloc(sizeof(char *) * 2);
30
+ *result->h_addr_list = malloc(sizeof(in_addr_t));
31
+ in_addr_t addr = inet_addr("127.0.0.1");
32
+ memcpy(*result->h_addr_list, &addr, sizeof(in_addr_t));
33
+ *(result->h_addr_list + 1) = NULL;
34
+
35
+ return 0;
36
+ }
37
+
38
+ enum nss_status
39
+ _nss_hoof_gethostbyname2_r (const char *name, int af, struct hostent *result,
40
+ char *buffer, size_t buflen, int *errnop,
41
+ int *h_errnop)
42
+ {
43
+ enum nss_status status = NSS_STATUS_NOTFOUND;
44
+
45
+ char *home = getenv("HOME");
46
+ char *home_cpy = malloc((strlen(home) + 6) * sizeof(char));
47
+ strcpy(home_cpy, home);
48
+ DIR *hosts_dir = opendir(strcat(home_cpy, "/.hoof"));
49
+ if (hosts_dir != NULL) {
50
+ struct dirent *entry;
51
+
52
+ while ((entry = readdir(hosts_dir)) != NULL) {
53
+ int d_len = strlen(entry->d_name) + 4;
54
+ int n_len = strlen(name);
55
+
56
+ if (entry->d_type == DT_LNK && n_len >= d_len) {
57
+ char *domain = malloc((d_len + 2) * sizeof(char));
58
+ if (n_len > d_len) {
59
+ sprintf(domain, ".%s.dev", entry->d_name);
60
+ } else {
61
+ sprintf(domain, "%s.dev", entry->d_name);
62
+ }
63
+
64
+ if (strncmp(domain, name + (n_len - strlen(domain)), n_len) == 0) {
65
+ _fill_hostent(name, af, result);
66
+ status = NSS_STATUS_SUCCESS;
67
+ }
68
+
69
+ free(domain);
70
+ }
71
+ }
72
+
73
+ closedir(hosts_dir);
74
+ }
75
+
76
+ return status;
77
+ }
78
+
79
+ enum nss_status
80
+ _nss_hoof_gethostbyname_r (const char *name, struct hostent *result,
81
+ char *buffer, size_t buflen, int *errnop,
82
+ int *h_errnop)
83
+ {
84
+ return _nss_hoof_gethostbyname2_r(name, AF_INET, result, buffer, buflen, errnop, h_errnop);
85
+ }
data/hoof.gemspec ADDED
@@ -0,0 +1,82 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{hoof}
8
+ s.version = "0.0.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["pyromaniac"]
12
+ s.date = %q{2011-05-15}
13
+ s.default_executable = %q{hoof}
14
+ s.description = %q{Hoof is linux variant of pow. It's based on nss, eventmachine and unicorn}
15
+ s.email = %q{kinwizard@gmail.com}
16
+ s.executables = ["hoof"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".rvmrc",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "bin/hoof",
31
+ "ext/Makefile",
32
+ "ext/nss_hoof.c",
33
+ "hoof.gemspec",
34
+ "lib/hoof.rb",
35
+ "lib/hoof/application.rb",
36
+ "lib/hoof/application_pool.rb",
37
+ "lib/hoof/http_server.rb",
38
+ "lib/hoof/unicorn_config.rb",
39
+ "test/helper.rb",
40
+ "test/test_hoof.rb"
41
+ ]
42
+ s.homepage = %q{http://github.com/pyromaniac/hoof}
43
+ s.licenses = ["MIT"]
44
+ s.require_paths = ["lib"]
45
+ s.rubygems_version = %q{1.3.7}
46
+ s.summary = %q{Linux pow implementation}
47
+
48
+ if s.respond_to? :specification_version then
49
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
50
+ s.specification_version = 3
51
+
52
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
+ s.add_runtime_dependency(%q<daemons>, [">= 0"])
54
+ s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
55
+ s.add_runtime_dependency(%q<unicorn>, [">= 0"])
56
+ s.add_runtime_dependency(%q<http_parser>, [">= 0"])
57
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
58
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
59
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
60
+ s.add_development_dependency(%q<rcov>, [">= 0"])
61
+ else
62
+ s.add_dependency(%q<daemons>, [">= 0"])
63
+ s.add_dependency(%q<eventmachine>, [">= 0"])
64
+ s.add_dependency(%q<unicorn>, [">= 0"])
65
+ s.add_dependency(%q<http_parser>, [">= 0"])
66
+ s.add_dependency(%q<shoulda>, [">= 0"])
67
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
68
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
69
+ s.add_dependency(%q<rcov>, [">= 0"])
70
+ end
71
+ else
72
+ s.add_dependency(%q<daemons>, [">= 0"])
73
+ s.add_dependency(%q<eventmachine>, [">= 0"])
74
+ s.add_dependency(%q<unicorn>, [">= 0"])
75
+ s.add_dependency(%q<http_parser>, [">= 0"])
76
+ s.add_dependency(%q<shoulda>, [">= 0"])
77
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
78
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
79
+ s.add_dependency(%q<rcov>, [">= 0"])
80
+ end
81
+ end
82
+
@@ -0,0 +1,66 @@
1
+ module Hoof
2
+ class Application
3
+ attr_accessor :root, :app, :name
4
+
5
+ def initialize name
6
+ @name = name
7
+ @root = File.readlink(File.expand_path(File.join("~/.hoof/", name)))
8
+
9
+ load_rvm
10
+ load_bundler
11
+ start
12
+ end
13
+
14
+ def start
15
+ system "cd #{root} && bundle exec unicorn_rails -c #{File.join(File.dirname(__FILE__), 'unicorn_config.rb')} -l #{sock} -D"
16
+ end
17
+
18
+ def stop
19
+ Process.kill "TERM", pid if File.exists? pid_file
20
+ end
21
+
22
+ def load_rvm
23
+ if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
24
+ rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME']))
25
+ rvm_lib_path = File.join(rvm_path, 'lib')
26
+ $LOAD_PATH.unshift rvm_lib_path
27
+ require 'rvm'
28
+
29
+ RVM.use_from_path! root
30
+ end
31
+ end
32
+
33
+ def load_bundler
34
+ #ENV['BUNDLE_GEMFILE'] = File.join(root, 'Gemfile')
35
+ #require 'bundler/setup'
36
+ end
37
+
38
+ def static? path
39
+ File.file? File.join(root, 'public', path)
40
+ end
41
+
42
+ def serve_static path
43
+ File.read File.join(root, 'public', path)
44
+ end
45
+
46
+ def serve data
47
+ UNIXSocket.open(sock) do |s|
48
+ s.write data
49
+ s.read
50
+ end
51
+ end
52
+
53
+ def sock
54
+ @sock ||= "/tmp/hoof_#{name}.sock"
55
+ end
56
+
57
+ def pid_file
58
+ @pid_file ||= File.join(root, 'tmp/pids/unicorn.pid')
59
+ end
60
+
61
+ def pid
62
+ File.read(pid_file).to_i
63
+ end
64
+
65
+ end
66
+ end
@@ -0,0 +1,15 @@
1
+ module Hoof
2
+ class ApplicationPool < Hash
3
+
4
+ def add name
5
+ self[name] ||= Hoof::Application.new name
6
+ end
7
+
8
+ def stop
9
+ each do |(name, app)|
10
+ app.stop
11
+ end
12
+ end
13
+
14
+ end
15
+ end
@@ -0,0 +1,36 @@
1
+ module Hoof
2
+ class HttpServer < EventMachine::Connection
3
+ attr_accessor :applications
4
+
5
+ def initialize *args
6
+ super
7
+ @applications = {}
8
+ end
9
+
10
+ def receive_data data
11
+ parser = Http::Parser.new
12
+ parser.parse data
13
+
14
+ host = parser.headers["HOST"].gsub(/:\d+$/, '')
15
+ if host =~ /.dev$/
16
+ name = host.gsub(/.dev$/, '')
17
+ application = Hoof.application name
18
+
19
+ if application.static? parser.path.split('?', 2)[0]
20
+ p "serve static #{host}#{parser.path}"
21
+ send_data application.serve_static parser.path.split('?', 2)[0]
22
+ close_connection_after_writing
23
+ else
24
+ p "serve #{host}#{parser.path}"
25
+ EventMachine.defer(proc {
26
+ application.serve(data)
27
+ }, proc { |result|
28
+ send_data result
29
+ close_connection_after_writing
30
+ })
31
+ end
32
+ end
33
+ end
34
+
35
+ end
36
+ end
@@ -0,0 +1,2 @@
1
+ stderr_path "/tmp/unicorn.stderr.log"
2
+ stdout_path "/tmp/unicorn.stdout.log"
data/lib/hoof.rb ADDED
@@ -0,0 +1,34 @@
1
+ require 'eventmachine'
2
+ require 'unicorn/launcher'
3
+ require 'http/parser'
4
+
5
+ require 'hoof/http_server'
6
+ require 'hoof/application'
7
+ require 'hoof/application_pool'
8
+
9
+ module Hoof
10
+
11
+ def self.pool
12
+ @pool ||= Hoof::ApplicationPool.new
13
+ end
14
+
15
+ def self.application name
16
+ pool.add name
17
+ end
18
+
19
+ def self.start
20
+ EventMachine.epoll
21
+ EventMachine::run do
22
+ trap("TERM") { stop }
23
+ trap("INT") { stop }
24
+
25
+ EventMachine::start_server "127.0.0.1", 3001, Hoof::HttpServer
26
+ end
27
+ end
28
+
29
+ def self.stop
30
+ EventMachine.stop
31
+ pool.stop
32
+ end
33
+
34
+ end
data/test/helper.rb ADDED
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'hoof'
16
+
17
+ class Test::Unit::TestCase
18
+ end
data/test/test_hoof.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestHoof < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hoof
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 0
10
+ version: 0.0.0
11
+ platform: ruby
12
+ authors:
13
+ - pyromaniac
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-05-15 00:00:00 +04:00
19
+ default_executable: hoof
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ requirement: *id001
32
+ prerelease: false
33
+ type: :runtime
34
+ name: daemons
35
+ - !ruby/object:Gem::Dependency
36
+ version_requirements: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ hash: 3
42
+ segments:
43
+ - 0
44
+ version: "0"
45
+ requirement: *id002
46
+ prerelease: false
47
+ type: :runtime
48
+ name: eventmachine
49
+ - !ruby/object:Gem::Dependency
50
+ version_requirements: &id003 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ hash: 3
56
+ segments:
57
+ - 0
58
+ version: "0"
59
+ requirement: *id003
60
+ prerelease: false
61
+ type: :runtime
62
+ name: unicorn
63
+ - !ruby/object:Gem::Dependency
64
+ version_requirements: &id004 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ hash: 3
70
+ segments:
71
+ - 0
72
+ version: "0"
73
+ requirement: *id004
74
+ prerelease: false
75
+ type: :runtime
76
+ name: http_parser
77
+ - !ruby/object:Gem::Dependency
78
+ version_requirements: &id005 !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ hash: 3
84
+ segments:
85
+ - 0
86
+ version: "0"
87
+ requirement: *id005
88
+ prerelease: false
89
+ type: :development
90
+ name: shoulda
91
+ - !ruby/object:Gem::Dependency
92
+ version_requirements: &id006 !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ~>
96
+ - !ruby/object:Gem::Version
97
+ hash: 23
98
+ segments:
99
+ - 1
100
+ - 0
101
+ - 0
102
+ version: 1.0.0
103
+ requirement: *id006
104
+ prerelease: false
105
+ type: :development
106
+ name: bundler
107
+ - !ruby/object:Gem::Dependency
108
+ version_requirements: &id007 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ~>
112
+ - !ruby/object:Gem::Version
113
+ hash: 15
114
+ segments:
115
+ - 1
116
+ - 6
117
+ - 0
118
+ version: 1.6.0
119
+ requirement: *id007
120
+ prerelease: false
121
+ type: :development
122
+ name: jeweler
123
+ - !ruby/object:Gem::Dependency
124
+ version_requirements: &id008 !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ hash: 3
130
+ segments:
131
+ - 0
132
+ version: "0"
133
+ requirement: *id008
134
+ prerelease: false
135
+ type: :development
136
+ name: rcov
137
+ description: Hoof is linux variant of pow. It's based on nss, eventmachine and unicorn
138
+ email: kinwizard@gmail.com
139
+ executables:
140
+ - hoof
141
+ extensions: []
142
+
143
+ extra_rdoc_files:
144
+ - LICENSE.txt
145
+ - README.rdoc
146
+ files:
147
+ - .document
148
+ - .rvmrc
149
+ - Gemfile
150
+ - Gemfile.lock
151
+ - LICENSE.txt
152
+ - README.rdoc
153
+ - Rakefile
154
+ - VERSION
155
+ - bin/hoof
156
+ - ext/Makefile
157
+ - ext/nss_hoof.c
158
+ - hoof.gemspec
159
+ - lib/hoof.rb
160
+ - lib/hoof/application.rb
161
+ - lib/hoof/application_pool.rb
162
+ - lib/hoof/http_server.rb
163
+ - lib/hoof/unicorn_config.rb
164
+ - test/helper.rb
165
+ - test/test_hoof.rb
166
+ has_rdoc: true
167
+ homepage: http://github.com/pyromaniac/hoof
168
+ licenses:
169
+ - MIT
170
+ post_install_message:
171
+ rdoc_options: []
172
+
173
+ require_paths:
174
+ - lib
175
+ required_ruby_version: !ruby/object:Gem::Requirement
176
+ none: false
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ hash: 3
181
+ segments:
182
+ - 0
183
+ version: "0"
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ hash: 3
190
+ segments:
191
+ - 0
192
+ version: "0"
193
+ requirements: []
194
+
195
+ rubyforge_project:
196
+ rubygems_version: 1.3.7
197
+ signing_key:
198
+ specification_version: 3
199
+ summary: Linux pow implementation
200
+ test_files: []
201
+