sinatra_ip_to_street_address 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9eeb608b16f50f5c84cd57123d8debfc1c56d36c
4
- data.tar.gz: d915e5995857b606fb9c3ea3d5ac395e5c9019d1
3
+ metadata.gz: 1d4ff2d364db6b9bfa67d703d97674450e827d36
4
+ data.tar.gz: f778fa27bc2443e65c492179c67c84721ec3a3ef
5
5
  SHA512:
6
- metadata.gz: fb1c7d386b1cd43ee563aa030a2cbe3093ca5b3a89388228ad5bb7324d16d639b0aa39897fbd2e0008153f6b938da6f5d4b889c4fd85695722017879eaf053d2
7
- data.tar.gz: 181aa239fb2950c1fec72897b0c8996e91e18737480c40aaaa4d45e366e219435a84269bdfee436912c0ba6abc1b4a00d1868a49b44d56a990ee99492c593b23
6
+ metadata.gz: 0086e22c76e1ce878f7489928a9a1dddf7b88560416eebbd071090d7bdadf08e19e25e3070c5eeabebb857d7a1d61f941b0612895c5ef98ff5d54843b7d1ef43
7
+ data.tar.gz: 2fa4bb4d975db11362dc4e7d2367577dca603c56ad8fdf3f09e779e609165cf32b7a168feec61761a4503f61dfb0a1145e239b6ca57901ad3ba9cdbb639ebf03
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # SinatraIpToStreetAddress
2
2
 
3
- TODO: Write a gem description
3
+ This gem was built to get the user's closest street address based on their ip.
4
+
5
+ It is my first gem, and will serve as my initial testing grounds for gem creation.
6
+
7
+ As of 03/05 I am working on writing a full RSpec test suite.
8
+
9
+ Here is a <a href='https://rubygems.org/gems/sinatra_ip_to_street_address'>link</a> to the RubyGems.org gem page.
4
10
 
5
11
  ## Installation
6
12
 
@@ -6,8 +6,8 @@ require 'net/http'
6
6
 
7
7
  module SinatraIpToStreetAddress
8
8
  def get_ip
9
- # return request.ip
10
- return "74.122.9.196"
9
+ return request.ip
10
+ # return "74.122.9.196"
11
11
  end
12
12
 
13
13
  def create_freegeoip_query(ip)
@@ -1,3 +1,3 @@
1
1
  module SinatraIpToStreetAddress
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["junting.lu@gmail.com"]
11
11
  spec.summary = 'IP to Street Address for Sinatra'
12
12
  spec.description = 'IP to Street Address for Sinatra using free geoip and gmaps'
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/gnitnuj/sinatra_ip_to_street_address"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra_ip_to_street_address
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Junting Lu
@@ -67,7 +67,7 @@ files:
67
67
  - lib/sinatra_ip_to_street_address.rb
68
68
  - lib/sinatra_ip_to_street_address/version.rb
69
69
  - sinatra_ip_to_street_address.gemspec
70
- homepage: ''
70
+ homepage: https://github.com/gnitnuj/sinatra_ip_to_street_address
71
71
  licenses:
72
72
  - MIT
73
73
  metadata: {}