rateaux 2.1.0 → 2.2.0

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: a99a590fe7f149a351599a6b4b37c49b51c7de1b10b95900a3410c24bce20ca0
4
- data.tar.gz: d09b6b5a682589c29fc8ddfaf001cd420f6ebbc75e3c25ed48405a5fcc0a7a45
3
+ metadata.gz: e346b9a084dd267e02240cee8f40e665d8ac61eb56a1203e5abe45601862276b
4
+ data.tar.gz: 86450dae663250be671655bb286b507a2c79c3eb44529cf4639f239a2417e8fd
5
5
  SHA512:
6
- metadata.gz: 6fb58245762852ea2e90b6d0bfe236be451e43c0bfd0d5c906d9d9309e1234f34a14f7cf7ab7b7aed8b5fa03d2307179581f1b7ab2ce6ec261b5638a3356dd6e
7
- data.tar.gz: 6005f2d8433ef0bffb4e0f35b8b38420a285560bc4e0a86b735e5454f50813c0cbc8b20413a74e6711a26197577a01672c4dec5a95a955f60116f37cef0acbe2
6
+ metadata.gz: f88fc1aada08f4a57170b1b5c818c01183a38d89b33473e3878c345a24c2e91ce1b54c7e43f1620f34864ff652472d914f3cd4150c6b5fd0f255e83c8df33f71
7
+ data.tar.gz: dc75de811d58084701898d3921f5e626dc4df3e84f1fbf39cff4afe07befc7d5d570abad1520566fe28b7b55a0afd0be59c186d0f2a903634856199e309d9fd8
data/README.md CHANGED
@@ -47,12 +47,21 @@ $ rake db:migrate:delete_orphaned
47
47
 
48
48
  ### DB schema view
49
49
 
50
- View the database structure.
50
+ View the database structure as an ascii table.
51
51
 
52
52
  ```sh
53
53
  $ rake db:schema:view
54
54
  ```
55
55
 
56
+ ### DB schema print dump
57
+
58
+ Print the database structure as a Ruby file. Like `db:schema:dump` but printed
59
+ out instead of written to `db/schema.rb`.
60
+
61
+ ```sh
62
+ $ rake db:schema:print_dump
63
+ ```
64
+
56
65
  ### I18n word count
57
66
 
58
67
  Show the number of translated words in every available locale.
@@ -63,7 +72,7 @@ $ rake i18n:word_count
63
72
 
64
73
  ### Checkout
65
74
 
66
- Remove migrations then checkout a git branch.
75
+ Remove Rails migrations then checkout a git branch.
67
76
 
68
77
  ```sh
69
78
  $ rake checkout new_branch_name
@@ -127,8 +136,9 @@ bin/rake release
127
136
 
128
137
  ## License
129
138
 
130
- The gem is available as open source under the terms of the [MIT License].
139
+ The gem is available as open source under the terms of the
140
+ [MIT License](http://opensource.org/licenses/MIT).
131
141
 
132
142
  ## The name
133
143
 
134
- In French _rateaux_ means _rakes_.
144
+ In French _rateaux_ means _rakes_. 🌾
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rateaux
4
- VERSION = "2.1.0"
4
+ VERSION = "2.2.0"
5
5
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Print database schema.
4
+ #
5
+ # $ rake db:schema:print_dump
6
+ namespace :db do
7
+ namespace :schema do
8
+ desc "Print database dump"
9
+ task print_dump: :environment do
10
+ ActiveRecord::SchemaDumper.dump
11
+ end
12
+ end
13
+ end
@@ -1,9 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "terminal-table"
4
+
3
5
  # View database schema.
4
6
  #
5
7
  # $ rake db:schema:view
6
- require "terminal-table"
7
8
  namespace :db do
8
9
  namespace :schema do
9
10
  desc "View database schema"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rateaux
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert
@@ -84,6 +84,7 @@ files:
84
84
  - lib/tasks/rateaux_copy_non_digested_assets.rake
85
85
  - lib/tasks/rateaux_db.rake
86
86
  - lib/tasks/rateaux_db_migrate.rake
87
+ - lib/tasks/rateaux_db_schema_print_dump.rake
87
88
  - lib/tasks/rateaux_db_schema_view.rake
88
89
  - lib/tasks/rateaux_git_checkout.rake
89
90
  - lib/tasks/rateaux_i18n_word_count.rake