table_saw 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf3632df0d6aab24f6fc503091fd5b571c4d755fd5bddbb31a31830eb5a8aba0
4
- data.tar.gz: 3937c874285d79c122603e8f19d4ca0739a13b4713f251209c87e8fc6cf2ffab
3
+ metadata.gz: bb6ffaafa1117b800a4fa6282187dddc2b6da2c61579c6b5940b21269451c431
4
+ data.tar.gz: ff3ea8303a25046b6f2befdb292750d70e25487f820192522eefe799d4eb698f
5
5
  SHA512:
6
- metadata.gz: 0c2f657b780d21fb9f53879f1bc99425517d19c56784dfbb980f3518ddf026d93bea02a11bd1ead2827666ed0b970916fc5c74f13fd9258a2b11bbb797b2e433
7
- data.tar.gz: 77b8c86389378273c1b39a1a4fbbe7217c25dd9db576724f44621712e01d495038f7dd2f6a763ae46bcac0487f9cf1c240dcbc1a392f08017f5f4ba1771d7bae
6
+ metadata.gz: 5f42184e9ccf6f9b576f47503f998e84d0a219101f15b5923b4bfdf4d5852f76b79feae4c17f00286e54d20f20ce1f4e0121b807fdba79047b7276946a3a723f
7
+ data.tar.gz: c391ba301f9be2aac7616e3f9f7843e60b5d12d80d4dd18549185ee1aa472f4c9148f700be65f34b7415266565faff11095ef9dd9d5a8fe9e3ec87151f9938b4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- table_saw (1.0.0)
4
+ table_saw (1.0.1)
5
5
  connection_pool
6
6
  pg
7
7
  thor
data/README.md CHANGED
@@ -73,8 +73,9 @@ variables:
73
73
  tables:
74
74
  - table: books
75
75
  query: "select * from books where author_id = %{author_id}"
76
- has_many:
77
- - chapters
76
+ has_many:
77
+ books:
78
+ - chapters
78
79
  ```
79
80
 
80
81
  or
data/exe/table-saw CHANGED
@@ -6,6 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
 
7
7
  require 'table_saw'
8
8
  require 'table_saw/create_dump_file'
9
+ require 'table_saw/version'
9
10
  require 'thor'
10
11
 
11
12
  class CLI < Thor
@@ -28,6 +29,11 @@ class CLI < Thor
28
29
  records = TableSaw::DependencyGraph::Build.new(TableSaw::Manifest.instance).call
29
30
  TableSaw::CreateDumpFile.new(records, options[:output]).call
30
31
  end
32
+
33
+ desc 'version', 'Print version of table-saw'
34
+ def version
35
+ puts TableSaw::VERSION
36
+ end
31
37
  end
32
38
 
33
39
  CLI.start
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TableSaw
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_saw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamed Asghari