rails_url_shortener 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: d3bb06e219a4cd2bdfd83ef3d6b3f892bd1c4194cad99019aecd7c3e206ce4a5
4
- data.tar.gz: 815b320b295c2c3d38b695b3412a656f7349fe0a454ddb63d9e127e33db7daef
3
+ metadata.gz: 4869c98be397884cba91ece7e432e04fac3ec307843298231e3d5bf0ffe07241
4
+ data.tar.gz: fff072c43a36f98de383a1ab41047b811a8751b4d1ddc09a3b5955981af97624
5
5
  SHA512:
6
- metadata.gz: 452449b98fdec6c11fe2f544239552fd70d7c701caf7db69e8b9a581b62921f964c3dc21c163daf3b6be65b58ceaed8948d2e8a42b1b877ff1d0033689773814
7
- data.tar.gz: 1b20f5faa06077c88256df869aae288e863e729ee84060e752d19186116ff96b78c7ebf35482171f48a240261b6cfb163ba57eb78e91368b44d21b44bcfe8d9d
6
+ metadata.gz: ae75b4fafbb9b0e7a727f06af941b03304b1faac2a848b1ed092f9e62d3c5e6a97fa9a9e3fad2bc976f33bc24c8dbb0828a3b2697d581b047b3277c7663fc589
7
+ data.tar.gz: c864ee89a806f85eda2d61f5df0e8c20f6ac193b2258b7814190a80915be8948b9152ea89caa62f58d66a82f3b495a71f0cac42df811f63d200a504393874d65
data/README.md CHANGED
@@ -4,7 +4,7 @@ RailsUrlShortener is a small rails engine that provide your app with short URLs
4
4
 
5
5
  Why give your data to a third party app if you can do it by yourself?
6
6
 
7
- You can see a **demo project** of what you can do with this engine [HERE]("https://paso-app.herokuapp.com/").
7
+ You can see a **demo project** of what you can do with this engine [HERE](https://paso-app.herokuapp.com/).
8
8
 
9
9
  ## Key features
10
10
 
@@ -17,6 +17,7 @@ module RailsUrlShortener
17
17
  if ip.code == 200
18
18
  ipgeo = Ipgeo.find_by(ip: visit.ip)
19
19
  ipgeo.update(JSON.parse(ip.body).transform_keys { |key| key.to_s.underscore }.slice(*Ipgeo.column_names))
20
+ visit.ipgeo = ipgeo
20
21
  end
21
22
  elsif !Ipgeo.exists?(ip: visit.ip)
22
23
  # Then create a new record
@@ -1,3 +1,3 @@
1
1
  module RailsUrlShortener
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_url_shortener
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - a-chacon
@@ -101,9 +101,9 @@ licenses:
101
101
  - GPL-3.0
102
102
  metadata:
103
103
  bug_tracker_uri: https://www.github.com/a-chacon/rails-url-shortener/issues
104
- changelog_uri: https://www.github.com/a-chacon/rails-url-shortener/releases/tag/v0.2.0
104
+ changelog_uri: https://www.github.com/a-chacon/rails-url-shortener/releases/tag/v0.2.1
105
105
  documentation_uri: https://github.com/a-chacon/rails-url-shortener/blob/main/README.md
106
- source_code_uri: https://github.com/a-chacon/rails-url-shortener/tree/v0.2.0
106
+ source_code_uri: https://github.com/a-chacon/rails-url-shortener/tree/v0.2.1
107
107
  rubygems_mfa_required: 'true'
108
108
  post_install_message:
109
109
  rdoc_options: []