rack-domain 0.1.0 → 0.1.1

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: 8f490d3f568d69528c7cc2079b82eb2eaa884096
4
- data.tar.gz: 8f884b4ae54e454b95e5084c7476e79b3046bb16
3
+ metadata.gz: edff08a269f7b3cb74731b0da8ed93b1d8f05a4d
4
+ data.tar.gz: f1131a023969e1c0ff7448d69108a297e26c66ae
5
5
  SHA512:
6
- metadata.gz: 3bf3fb2d14a573071bb4d42e26dbbae1d74f7c1ded555d546160b21c8200703e7f5c8672062f2438c5775f665d5d090f6f2d056d2f50689065b8d2b7e621a86a
7
- data.tar.gz: dc2f9e6d7c1bc047cd8ecdfb2c9d00460286b14a0ed62447cd74c603d7c7c8052837b946a26697ccc8b20bc927f3bb9b49fb4b787f26886864a742b6daa00fe6
6
+ metadata.gz: 0e04ee83efd5e55eb3d3cf41714af42b8983cdadba0bc106544d8971bae1d511c8ce50cfe66445fb6983fa56a07685e9fc75cd112ff23935ab5e95fa84200f6d
7
+ data.tar.gz: ba157cc98443fbc789a90bbd9679e9d9833c9d0883fe97534207ee14f42f4249f4d25c9d74399f1a613223bd8b65beeaf5a49bfc381604959a2f4ca308f7a666
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Rack::Domain
2
2
 
3
+ [![Build Status](https://travis-ci.org/whatyouhide/rack-domain.svg)](https://travis-ci.org/whatyouhide/rack-domain)
4
+ [![Gem Version](https://badge.fury.io/rb/rack-domain.svg)](http://badge.fury.io/rb/rack-domain)
5
+ [![Coverage Status](https://coveralls.io/repos/whatyouhide/rack-domain/badge.png)](https://coveralls.io/r/whatyouhide/rack-domain)
6
+ [![Inline docs](http://inch-ci.org/github/whatyouhide/rack-domain.svg?branch=master)](http://inch-ci.org/github/whatyouhide/rack-domain)
3
7
 
4
8
  ## Installation
5
9
 
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  require 'rack/domain'
2
4
 
3
5
  # This class is monkeypatched with the `#domain` method.
@@ -1,7 +1,9 @@
1
+ # enconding: UTF-8
2
+
1
3
  # Extensions to the `Rack` module.
2
4
  module Rack
3
5
  class Domain
4
6
  # The version of this gem.
5
- VERSION = '0.1.0'
7
+ VERSION = '0.1.1'
6
8
  end
7
9
  end
data/lib/rack/domain.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # enconding: UTF-8
2
+
1
3
  require 'rack/domain/version'
2
4
 
3
5
  # This Rack middleware allows to intercept requests and route them to different
data/rack-domain.gemspec CHANGED
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'rake', '~> 10'
31
31
  spec.add_development_dependency 'minitest', '~> 5'
32
32
  spec.add_development_dependency 'minitest-reporters', '~> 1'
33
+ spec.add_development_dependency 'coveralls', '~> 0.7'
33
34
  end
@@ -1,3 +1,5 @@
1
+ # enconding: UTF-8
2
+
1
3
  require_relative 'test_helper'
2
4
 
3
5
  NOT_FOUNDER = lambda { |env| [404, {}, ['Error']] }
data/test/test_helper.rb CHANGED
@@ -1,5 +1,11 @@
1
+ # enconding: UTF-8
2
+
1
3
  ENV['RACK_ENV'] = 'test'
2
4
 
5
+ # Coveralls coverage metrics.
6
+ require 'coveralls'
7
+ Coveralls.wear!
8
+
3
9
  require 'minitest/autorun'
4
10
  require 'minitest/pride'
5
11
  require 'minitest/reporters'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-domain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Leopardi
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.7'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.7'
83
97
  description: |2
84
98
  This Rack middleware allows you to run specific apps when the request
85
99
  domain matches a given filter. The filter can be provided in a number of
@@ -89,6 +103,7 @@ executables: []
89
103
  extensions: []
90
104
  extra_rdoc_files: []
91
105
  files:
106
+ - ".coveralls.yml"
92
107
  - ".gitignore"
93
108
  - ".travis.yml"
94
109
  - ".yardopts"