Skip to content

Commit b05a10d

Browse files
authored
Merge pull request #2 from rubygarage/feature/info
Gem information
2 parents e6cfe03 + 24a4b57 commit b05a10d

File tree

2 files changed

+11
-26
lines changed

2 files changed

+11
-26
lines changed

README.md

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,25 @@
11
# Detectify
22

3-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/detectify`. To experiment with that code, run `bin/console` for an interactive prompt.
4-
5-
TODO: Delete this and the text above, and describe your gem
3+
Detectify provides a simple way to retrieve an ActiveRecord entity based on the domain/subdomain request information.
64

75
## Installation
86

97
Add this line to your application's Gemfile:
108

11-
```ruby
12-
gem 'detectify'
13-
```
14-
15-
And then execute:
9+
`gem 'detectify', github: 'rubygarage/detectify'`
1610

17-
$ bundle
11+
and then execute: `$ bundle`
1812

19-
Or install it yourself as:
20-
21-
$ gem install detectify
13+
Finally, restart the server to apply the changes.
2214

2315
## Usage
2416

25-
TODO: Write usage instructions here
26-
27-
## Development
28-
29-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30-
31-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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']`.
3218

3319
## Contributing
3420

35-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/detectify. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36-
21+
Bug reports and pull requests are welcome on GitHub at https://github.com/rubygarage/detectify. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
3722

3823
## License
3924

4025
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41-

detectify.gemspec

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ Gem::Specification.new do |spec|
77
spec.name = 'detectify'
88
spec.version = Detectify::VERSION
99
spec.authors = ['Lukyanov Fedor']
10-
spec.email = ['lukyanov.f.ua@gmail.com']
10+
spec.email = ['fedor@rubygarage.org']
1111

12-
spec.summary = 'Write a short summary, because Rubygems requires one.'
13-
spec.description = 'Write a longer description or delete this line.'
14-
spec.homepage = 'https://rubygarage.org'
12+
spec.summary = 'Detect ActiveRecord entity via domain or subdomain'
13+
spec.description = 'Detectify provides a simple way to retrieve an ActiveRecord entity' \
14+
'based on the domain/subdomain request information.'
15+
spec.homepage = 'https://github.com/rubygarage/detectify'
1516
spec.license = 'MIT'
1617

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

0 commit comments

Comments
 (0)