Skip to content

Commit dbaedae

Browse files
committed
docs: spelling
1 parent ceaf3c9 commit dbaedae

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# RailsUrlShortener
22

33
A small rails engine for short urls.
4-
It could be used like a url shortener or a ip logger, it is your choice.
4+
It could be used like an url shortener or an IP logger, it is your choice.
55
The app generate a short url for you and then (if you want) receive the requests and redirect to the original url.
66

77
Why give your data to a third party app if you can do it by yourself?
@@ -31,7 +31,8 @@ RailsUrlShortener::Url.generate("https://www.github.com/a-chacon/rails_url_short
3131

3232
### Deeper
3333

34-
By default this engine save all request made on your short url, you can use that data for some analitics or simple ip logger. So for get the data in a controller or do wherever you want you can use the Visit model related to a Url:
34+
By default, this engine save all request made on your short url, you can use that data for some analytics or simple IP logger. So for get the data in a controller or do wherever you want, you can use the Visit model related to an Url:
35+
3536
```ruby
3637
RailsUrlShortener::Url.find_by_key("key").visits # all visits
3738

@@ -41,7 +42,7 @@ Or using the model class:
4142
RailsUrlShortener::Visit.all # all in database
4243
```
4344

44-
Also the Url model has a polymorphic relation with an owner that is optional. So you can relate an url whatever you want in your app adding the next relation in a model:
45+
Also, the Url model has a polymorphic relation with an owner that is optional. So you can relate an url whatever you want in your app, adding the next relation in a model:
4546
```ruby
4647
has_many :urls, as: :owner
4748
```

rails_url_shortener.gemspec

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ Gem::Specification.new do |spec|
66
spec.authors = ["a-chacon"]
77
spec.email = ["[email protected]"]
88
spec.homepage = "https://www.github.com/a-chacon/rails_url_shortener"
9-
spec.summary = "Simple url shortener engine."
10-
spec.description = "Description of RailsUrlShortener."
9+
spec.summary = "Rails url shortener engine."
10+
spec.description = "A little engine for rails application that provide url shortener functions."
1111
spec.license = "MIT"
1212

13-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
14-
# to allow pushing to a single host or delete this section to allow pushing to any host.
15-
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
16-
1713
spec.metadata["homepage_uri"] = spec.homepage
1814
spec.metadata["source_code_uri"] = "https://www.github.com/a-chacon/rails_url_shortener"
1915
spec.metadata["changelog_uri"] = "https://www.github.com/a-chacon/rails_url_shortener"

0 commit comments

Comments
 (0)