hi 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa67d1893f36e4de0d7869cd034c1a4f4c52fdf1
4
- data.tar.gz: 52116bf9b6840792dcc49f35a3228ba19ebf9bd9
3
+ metadata.gz: bc06de595509f62f48de9cef39a51d154c51dda0
4
+ data.tar.gz: c86a5a9426bf35a01f4d20a6b30c334b55fdae50
5
5
  SHA512:
6
- metadata.gz: ec28a50bb9c90f4d03c4dbee1e6963f534294d6b36fa34e6a45709746e6b14b1f03b7cec5b74ce50db5d75d9ad5c881d682e091dfd96bb1b1792678f853b33f6
7
- data.tar.gz: 64587eb574ae81a82e277c1e716dece6b6f2bf8c660c87e93d3aa4c2e9e555c13c4709380a32fe7a75f5a9d73f4687b18094c0834c48bbd4ea6f664da2ea1527
6
+ metadata.gz: e879de3668f94bb0cf6a31f90da4d70a05ccc1372628064c83786aa81d5d802b4a28cf0c9dee8daf058ada8cb1b0f6f13dc48b1e217cd1b1e5ed6bec673a4b9f
7
+ data.tar.gz: e2fe12c2c3d9a400c5062a713abfedf49f078f55deb6cf24a32c8e560be5600d07f4cc998118e8746e5055e0ed1ad744c2ad652a4e4ed12bd9aa2b44c2024d3b
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ##v1.2.2
4
+ *2014-01-19*
5
+
6
+ - [#8](https://github.com/chrishunt/hi/pull/8) Use Cane
7
+
3
8
  ##v1.2.1
4
9
  *2014-01-04*
5
10
 
data/Rakefile CHANGED
@@ -1,8 +1,15 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+ require 'cane/rake_task'
4
+ require 'cane/hashcheck'
3
5
 
4
6
  RSpec::Core::RakeTask.new(:spec) do |t|
5
7
  t.rspec_opts = '--color'
6
8
  end
7
9
 
10
+ Cane::RakeTask.new(:quality) do |t|
11
+ t.use Cane::HashCheck
12
+ end
13
+
8
14
  task default: :spec
15
+ task default: :quality
data/hi.gemspec CHANGED
@@ -21,9 +21,11 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'awesome_print', '~> 1.2.0'
22
22
  spec.add_dependency 'thin', '~> 1.5.1'
23
23
 
24
- spec.add_development_dependency 'coveralls', '~> 0.7.0'
25
- spec.add_development_dependency 'pry', '~> 0.9.12.4'
26
- spec.add_development_dependency 'rack-test', '~> 0.6.2'
27
- spec.add_development_dependency 'rake', '~> 10.1.1'
28
- spec.add_development_dependency 'rspec', '~> 2.14.1'
24
+ spec.add_development_dependency 'cane', '~> 2.6.1'
25
+ spec.add_development_dependency 'cane-hashcheck', '~> 1.2.0'
26
+ spec.add_development_dependency 'coveralls', '~> 0.7.0'
27
+ spec.add_development_dependency 'pry', '~> 0.9.12.4'
28
+ spec.add_development_dependency 'rack-test', '~> 0.6.2'
29
+ spec.add_development_dependency 'rake', '~> 10.1.1'
30
+ spec.add_development_dependency 'rspec', '~> 2.14.1'
29
31
  end
@@ -2,6 +2,7 @@ require 'hi/request'
2
2
  require 'hi/logger'
3
3
 
4
4
  module Hi
5
+ # Main app; http server that prints requests as they come in
5
6
  class App
6
7
  attr_reader :port, :logger
7
8
 
@@ -1,6 +1,7 @@
1
1
  require 'awesome_print'
2
2
 
3
3
  module Hi
4
+ # Logger that uses puts for strings, awesome print for everything else
4
5
  class Logger
5
6
  def log(message)
6
7
  print message unless testing
@@ -2,6 +2,7 @@ require 'forwardable'
2
2
  require 'rack/request'
3
3
 
4
4
  module Hi
5
+ # Wrapper for rack request that exposes headers and body string
5
6
  class Request
6
7
  extend Forwardable
7
8
 
@@ -1,6 +1,7 @@
1
1
  require 'thin'
2
2
 
3
3
  module Hi
4
+ # Wrapper for Thin server with retries and a friendly error message
4
5
  class Server
5
6
  attr_reader :app
6
7
 
@@ -1,3 +1,3 @@
1
1
  module Hi
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Hunt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-04 00:00:00.000000000 Z
11
+ date: 2014-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -38,6 +38,34 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.5.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: cane
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 2.6.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.6.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: cane-hashcheck
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.2.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 1.2.0
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: coveralls
43
71
  requirement: !ruby/object:Gem::Requirement