Skip to content

Commit 457f527

Browse files
committed
Add badges
1 parent f163733 commit 457f527

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Detectify
22

3+
[![Code Climate](https://codeclimate.com/github/rubygarage/detectify/badges/gpa.svg)](https://codeclimate.com/github/rubygarage/detectify)
4+
[![Coverage Status](https://coveralls.io/repos/github/rubygarage/detectify/badge.svg?branch=master)](https://coveralls.io/github/rubygarage/detectify?branch=master)
5+
[![Build Status](https://travis-ci.org/rubygarage/detectify.svg?branch=master)](https://travis-ci.org/rubygarage/detectify)
6+
37
Detectify provides a simple way to retrieve an ActiveRecord entity based on the domain/subdomain request information.
48

59
## Installation
@@ -14,7 +18,13 @@ Finally, restart the server to apply the changes.
1418

1519
## Usage
1620

17-
Start off by generating an initializer: `$ bundle exec rails g detectify:install`, this will create file `config/initializers/detectify.rb` in your application directory. You can configure Detectify for your application needs via initializer. After this you can access detected entity via `env['Detectify-Entity']`.
21+
Start off by generating an initializer:
22+
23+
`$ bundle exec rails g detectify:install`
24+
25+
this will create file `config/initializers/detectify.rb` in your application directory.
26+
27+
You can configure Detectify for your application needs via initializer. After this you can access detected entity via: `env['Detectify-Entity']`.
1828

1929
## Contributing
2030

detectify.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212
spec.license = 'MIT'
1313
spec.homepage = 'https://github.com/rubygarage/detectify'
1414
spec.summary = 'Detect ActiveRecord entity via domain or subdomain'
15-
spec.description = 'Detectify provides a simple way to retrieve an ActiveRecord entity' \
15+
spec.description = 'Detectify provides a simple way to retrieve an ActiveRecord entity ' \
1616
'based on the domain/subdomain request information.'
1717

1818
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }

0 commit comments

Comments
 (0)