jungle_path 0.0.31 → 0.0.32

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: 4bb0a2d694d7e43e5651ff95aaa1b7ce0a11cb4c
4
- data.tar.gz: 42f0fed495b0ad9385b26a56489d658ebf9ceb77
3
+ metadata.gz: b5c94ae2bcbe07ca5a4b5aee5b3b429493bc2be9
4
+ data.tar.gz: 379998afb149f25d92e864d6954ce9f357df2518
5
5
  SHA512:
6
- metadata.gz: 0c32929b6706001388633b3d53ee82c59de303fbf11a511ee26dd5c2db7bc18098d8e713ebe819d778d9c17000b06f3bfaedb59eb5b27c1a0431dd628149a486
7
- data.tar.gz: 6d91bd2a0456852ffeee3c728a51ddcaf74880815caf16242dbea50cf3b0f2a9195f125506f560fc2957f2c86577d6875c6e1e7b38e6175333d094d08917b8e3
6
+ metadata.gz: d9099cc6e1d1bd5455f3fc4c379bcd5a137aaf9f5bdb1ddb8ec11306643b535b0871a62cbbaca5559e377d81f97f8b1644396571d2cc91f2e53125e9384819bd
7
+ data.tar.gz: 16c69cf42849b4b4236612dd9cc217691d07db33a669944be416aae0b18aee565dc22ee2ddd8c64e643819cc38d91119232fc0ccd2293cacfb8e22567579c7c9
@@ -65,6 +65,10 @@ module JunglePath
65
65
  @db.schema.create_table @table_class
66
66
  end
67
67
 
68
+ def reset_table
69
+ @db.schema.reset_table @table_class
70
+ end
71
+
68
72
  begin # class methods
69
73
  def self.transform(params, columns)
70
74
  DBModel::Params.transform(params, columns)
@@ -15,6 +15,11 @@ module JunglePath
15
15
  def create_table(table_class)
16
16
  JunglePath::DBModel::Schema.new(@db).create_table table_class
17
17
  end
18
+
19
+ def reset_table(table_class)
20
+ drop_table(table_class)
21
+ create_table(table_class)
22
+ end
18
23
  end
19
24
  end
20
25
  end
@@ -1,3 +1,3 @@
1
1
  module JunglePath
2
- VERSION = '0.0.31'
2
+ VERSION = '0.0.32'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jungle_path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael VanZant