oldskool-ipinfodb 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/views/ipinfo.erb +8 -8
  3. metadata +35 -58
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 14a1b832a137447e81ff9aaa3328e9df5ac8f792
4
+ data.tar.gz: e94e9970cf24ddbd8f8fe54312a3bdc5a0f834e8
5
+ SHA512:
6
+ metadata.gz: 777cf751ef465459366cfe3812a7a422aaf73a4e52e5a8336d1e14e9b665d310e87a5138c67fe8cc403a36878a4c0b839f83c9ba4c11edda7ed34151ec93445a
7
+ data.tar.gz: faf6c62b1c93656d5bd84f4ab54f5b975cfd8e9687c1322da73712fa4c3125c27069da889ddaf709d0effdfd56ec434442b91318d615895ee3b97ec1dbadb53f
@@ -2,14 +2,14 @@
2
2
  <% unless @result[:ipinfo][:status_message] == "" %>
3
3
  Failed to retrieve IP Info: <%= @result[:ipinfo][:status_message] %>
4
4
  <% else %>
5
- <table>
6
- <tr><td><strong>IP Address:</strong></td><td><%= @result[:ipinfo][:ip] %></td></tr>
7
- <tr><td><strong>City:</strong></td><td><%= @result[:ipinfo][:city].capitalize %></td></tr>
8
- <tr><td><strong>Country:</strong></td><td><%= @result[:ipinfo][:country_name].capitalize %></td></tr>
9
- <tr><td><strong>Country Code:</strong></td><td><%= @result[:ipinfo][:country_code] %></td></tr>
10
- <tr><td><strong>Region:</strong></td><td><%= @result[:ipinfo][:region_name].capitalize %></td></tr>
11
- <tr><td><strong>ZIP Code:</strong></td><td><%= @result[:ipinfo][:zip_code] %></td></tr>
12
- <tr><td><strong>Coordinates:</strong></td><td>lon <%= @result[:ipinfo][:longitude] %> lat <%= @result[:ipinfo][:latitude] %></td></tr>
5
+ <table class="table-bordered table">
6
+ <tr><td align="right"><strong>IP Address:</strong></td><td><%= @result[:ipinfo][:ip] %></td></tr>
7
+ <tr><td align="right"><strong>City:</strong></td><td><%= @result[:ipinfo][:city].capitalize %></td></tr>
8
+ <tr><td align="right"><strong>Country:</strong></td><td><%= @result[:ipinfo][:country_name].capitalize %></td></tr>
9
+ <tr><td align="right"><strong>Country Code:</strong></td><td><%= @result[:ipinfo][:country_code] %></td></tr>
10
+ <tr><td align="right"><strong>Region:</strong></td><td><%= @result[:ipinfo][:region_name].capitalize %></td></tr>
11
+ <tr><td align="right"><strong>ZIP Code:</strong></td><td><%= @result[:ipinfo][:zip_code] %></td></tr>
12
+ <tr><td align="right"><strong>Coordinates:</strong></td><td>lon <%= @result[:ipinfo][:longitude] %> lat <%= @result[:ipinfo][:latitude] %></td></tr>
13
13
  </table>
14
14
  <% end %>
15
15
  <% end %>
metadata CHANGED
@@ -1,82 +1,59 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: oldskool-ipinfodb
3
- version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - R.I.Pienaar
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-02-02 00:00:00 +00:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: geo_ip
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
33
20
  type: :runtime
34
- version_requirements: *id001
35
- description: "description: Display IP information from ipinfodb.com"
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: 'description: Display IP information from ipinfodb.com'
36
28
  email: rip@devco.net
37
29
  executables: []
38
-
39
30
  extensions: []
40
-
41
31
  extra_rdoc_files: []
42
-
43
- files:
44
- - lib/oldskool/ipinfodb_handler.rb
32
+ files:
45
33
  - lib/oldskool-ipinfodb.rb
34
+ - lib/oldskool/ipinfodb_handler.rb
46
35
  - views/ipinfo.erb
47
- has_rdoc: true
48
36
  homepage: http://devco.net/
49
37
  licenses: []
50
-
38
+ metadata: {}
51
39
  post_install_message:
52
40
  rdoc_options: []
53
-
54
- require_paths:
41
+ require_paths:
55
42
  - lib
56
- required_ruby_version: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
- version: "0"
65
- required_rubygems_version: !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
74
53
  requirements: []
75
-
76
54
  rubyforge_project:
77
- rubygems_version: 1.3.7
55
+ rubygems_version: 2.0.14
78
56
  signing_key:
79
- specification_version: 3
57
+ specification_version: 4
80
58
  summary: oldskool-ipinfodb
81
59
  test_files: []
82
-