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 +4 -4
- data/README.md +1 -1
- data/app/jobs/rails_url_shortener/ip_crawler_job.rb +1 -0
- data/lib/rails_url_shortener/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4869c98be397884cba91ece7e432e04fac3ec307843298231e3d5bf0ffe07241
|
4
|
+
data.tar.gz: fff072c43a36f98de383a1ab41047b811a8751b4d1ddc09a3b5955981af97624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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](
|
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
|
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.
|
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.
|
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.
|
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: []
|