parroquia 1.1.4 → 1.1.5
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 +4 -4
- data/lib/parroquia/main.rb +9 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c355e9569574dcec94e51cd790cb525615d4a12f7fc60fbc7d753460caa5ecc
|
4
|
+
data.tar.gz: 4b21e4d758c92536cae7962cbd97f74ef931982626d6b5d7957c8367f7062b8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 507f513f0e3e40d16325ef5bb36fa27d11543c6e7b3b9eaaf3d60513d6593249da8748b67813df2eb591d9615caa8a3c2e5f0a7c2180d3c1b5eaf288ffd6c8e9
|
7
|
+
data.tar.gz: 61cfb50a96de02f83b8101e682102e0123de84629a8bfb9bdd62febf7e2fda1192dd394e9d423b48877dd4a500076ebf1fdd972d01e54e9fe226fa987b57fdd6
|
data/lib/parroquia/main.rb
CHANGED
@@ -2,14 +2,7 @@ require 'pg'
|
|
2
2
|
require 'fox16'
|
3
3
|
include Fox
|
4
4
|
|
5
|
-
|
6
|
-
# Comprobar conexión con la base de datos
|
7
|
-
if $conn.status != PG::CONNECTION_OK
|
8
|
-
puts "Error de conexión con la base de datos"
|
9
|
-
exit
|
10
|
-
end
|
11
|
-
|
12
|
-
class Home < FXMainWindow
|
5
|
+
class Parroquia::Main < FXMainWindow
|
13
6
|
def initialize(app)
|
14
7
|
super(app, "Parroquia San Judas Tadeo", :width => 700, :height => 500)
|
15
8
|
@app = app
|
@@ -126,8 +119,15 @@ class Home < FXMainWindow
|
|
126
119
|
end
|
127
120
|
end
|
128
121
|
|
122
|
+
$conn = PG.connect(host: 'localhost', port: '5432', dbname: 'sacramentos', user: 'postgres', password: 'postgres')
|
123
|
+
# Comprobar conexión con la base de datos
|
124
|
+
if $conn.status != PG::CONNECTION_OK
|
125
|
+
puts "Error de conexión con la base de datos"
|
126
|
+
exit
|
127
|
+
end
|
128
|
+
|
129
129
|
app = FXApp.new
|
130
|
-
vtnhome =
|
130
|
+
vtnhome = Parroquia::Main.new(app)
|
131
131
|
app.create
|
132
132
|
app.run
|
133
133
|
|