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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f086c0a2c7f0988d298bdcd68152554e54bec59a2b85eeca132110958a26f8cb
4
- data.tar.gz: 816c4d1bc57fa5f1bce109f4bd684c00db9d8bcecfbbf6b8de5a3513f42ed3f1
3
+ metadata.gz: 352bf22c97e3890af551ec7a892b2fb5854d59a1e9b64a8692d657b1ef29e9c0
4
+ data.tar.gz: 4a2a6672ea7184cf7547f4f260fc93cd4b880838499b2780b49826255c5ea231
5
5
  SHA512:
6
- metadata.gz: d1a267acc98b76429df1a667ca24baee1ce2f7994c49a91c6465332f9c37ff41f0199b19b19760b1f2e2493f601462b7ef710524048eb323ebb935fd7e136274
7
- data.tar.gz: 07647b8d8a88d8cd3907f1d56c1974643ee03445ae9c3df5d070ba48cf3c443747245c98b3ccc74d2f3b2356e06189c5ad7b2b5fffaffbf8abc3250f35f2b353
6
+ metadata.gz: 1d21787984e57eef7bc9031b6d356636cd888c39f9346aa8092949438be8102240ca5d41e4e401a532de3ffc031d5ad172e49afcbb2c509cb17059e9ce0ebf60
7
+ data.tar.gz: feb8a84d5f3d1602c8e1a5425840686660baf264a9eb22df2ac50742419470f60530707a7fad6289e4414d9d755fc6a9ac959ec460bf69ce6bc1531dde89531f
@@ -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)
@@ -30,7 +30,7 @@ module Communard
30
30
 
31
31
  self.db_path = Pathname(Dir.pwd).join("db")
32
32
  self.logger = nil
33
- self.dump_after_migrating = true
33
+ self.dump_after_migrating = false
34
34
  self.same_db = true
35
35
 
36
36
  yield self if block_given?
@@ -1,5 +1,5 @@
1
1
  module Communard
2
2
 
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: communard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - iain