communard 0.2.0 → 0.2.1
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/communard/commands.rb +12 -12
- data/lib/communard/configuration.rb +1 -1
- data/lib/communard/version.rb +1 -1
- 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: 352bf22c97e3890af551ec7a892b2fb5854d59a1e9b64a8692d657b1ef29e9c0
|
4
|
+
data.tar.gz: 4a2a6672ea7184cf7547f4f260fc93cd4b880838499b2780b49826255c5ea231
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d21787984e57eef7bc9031b6d356636cd888c39f9346aa8092949438be8102240ca5d41e4e401a532de3ffc031d5ad172e49afcbb2c509cb17059e9ce0ebf60
|
7
|
+
data.tar.gz: feb8a84d5f3d1602c8e1a5425840686660baf264a9eb22df2ac50742419470f60530707a7fad6289e4414d9d755fc6a9ac959ec460bf69ce6bc1531dde89531f
|
data/lib/communard/commands.rb
CHANGED
@@ -108,6 +108,18 @@ module Communard
|
|
108
108
|
conn.run(query % { database_name: database_name })
|
109
109
|
end
|
110
110
|
|
111
|
+
def schema_file
|
112
|
+
db_path.join("schema.rb")
|
113
|
+
end
|
114
|
+
|
115
|
+
def seeds_file
|
116
|
+
db_path.join("seeds.rb")
|
117
|
+
end
|
118
|
+
|
119
|
+
def migrations_dir
|
120
|
+
db_path.join("migrate")
|
121
|
+
end
|
122
|
+
|
111
123
|
private
|
112
124
|
|
113
125
|
def applied_migrations
|
@@ -125,18 +137,6 @@ module Communard
|
|
125
137
|
migrator.new(connection, migrations_dir, opts)
|
126
138
|
end
|
127
139
|
|
128
|
-
def schema_file
|
129
|
-
db_path.join("schema.rb")
|
130
|
-
end
|
131
|
-
|
132
|
-
def seeds_file
|
133
|
-
db_path.join("seeds.rb")
|
134
|
-
end
|
135
|
-
|
136
|
-
def migrations_dir
|
137
|
-
db_path.join("migrate")
|
138
|
-
end
|
139
|
-
|
140
140
|
Status = Struct.new(:file, :applied, :available) do
|
141
141
|
|
142
142
|
def <=>(other)
|
data/lib/communard/version.rb
CHANGED