README.md in hit_counter-0.1.4 vs README.md in hit_counter-0.1.5
- old
+ new
@@ -1,15 +1,14 @@
# HitCounter
-![Build status](https://github.com/ivanoblomov/hit_counter/workflows/test/badge.svg)
-[![Code Climate](https://codeclimate.com/github/ivanoblomov/hit_counter.png)](https://codeclimate.com/github/ivanoblomov/hit_counter)
-[![Coveralls](https://coveralls.io/repos/ivanoblomov/hit_counter/badge.svg?branch=master&service=github)](https://coveralls.io/github/ivanoblomov/hit_counter?branch=master)
-[![Inch CI](https://inch-ci.org/github/ivanoblomov/hit_counter.svg?branch=master&style=flat)](https://inch-ci.org/github/ivanoblomov/hit_counter)
+[![Build status](https://github.com/FoveaCentral/hit_counter/workflows/test/badge.svg)](https://github.com/FoveaCentral/hit_counter/actions/workflows/test.yml)
+[![Code Climate](https://codeclimate.com/github/FoveaCentral/hit_counter.svg)](https://codeclimate.com/github/FoveaCentral/hit_counter)
+[![Coveralls](https://coveralls.io/repos/FoveaCentral/hit_counter/badge.svg?branch=master&service=github)](https://coveralls.io/github/FoveaCentral/hit_counter?branch=master)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5375/badge)](https://bestpractices.coreinfrastructure.org/projects/5375)
[![Gem Version](https://badge.fury.io/rb/hit_counter.svg)](https://badge.fury.io/rb/hit_counter)
-Ruby version of that old 90s chestnut, `<BLINK>`the web-site hit counter`</BLINK>`.
+Self-hosted Ruby version of that old 90s chestnut, `<BLINK>`the web-site hit counter`</BLINK>`.
## Installation
1. Install the gem and supporting files.
@@ -28,11 +27,11 @@
### Security note
`HitCounter` is cryptographically signed. To insure the gem you install hasn’t been tampered with, add my public key as a trusted certificate and then install:
```sh
- gem cert --add <(curl -Ls https://raw.github.com/ivanoblomov/hit_counter/master/certs/ivanoblomov.pem)
+ gem cert --add <(curl -Ls https://raw.github.com/FoveaCentral/hit_counter/master/certs/ivanoblomov.pem)
gem install hit_counter -P HighSecurity
```
2. Add a controller action to your app.
@@ -59,27 +58,27 @@
```ruby
get 'hit-counter' => 'application#hit_counter'
# technically should be POST/PUT, but GET makes integration simpler
````
+3. Add the hit-counter image tag to your site's HTML:
+
+ ```html
+ <img alt="Hit Counter" border="0" src="/hit-counter?url=https://cnn.com&style=1" />
+ ````
+
Or try it out in `irb` with:
```ruby
require './spec/spec_helper'
hc = HitCounter.get('cnn.com')
```
-3. Add the hit-counter image tag to your site's HTML:
-
- ```html
- <img alt="Hit Counter" border="0" src="/hit-counter?url=https://cnn.com&style=1" />
- ````
-
## Customizing the Hit-Counter Image
### Use an Existing Style
-| Name | Image |
+| Name | Style number |
| -------- | --------------------------------------------------------------------- |
| Celtic | ![image of 3 in celtic style](/public/images/digits/celtic/3.png) |
| Odometer | ![image of 1 in odometer style](/public/images/digits/odometer/1.png) |
| Scout | ![image of 2 in scout style](/public/images/digits/scout/2.png) |