insights_export 0.0.1 → 0.1.0

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
  SHA1:
3
- metadata.gz: 830f36f902942abbc20985d74ef05fc45c27cf34
4
- data.tar.gz: 162aa9da745f357847d55f22478f626c999a68f0
3
+ metadata.gz: 11297abfb262f40b5e01731ed10fbd2070ab8287
4
+ data.tar.gz: 8fbade44fa80880215181761aac06e9da3e659db
5
5
  SHA512:
6
- metadata.gz: 5500276d0aab589700a5d0dcecf8f17bd5735b9a90b58a0e22d1b53cd0a6478f77c2e562cb9cf5ad750f8dfddbee0cb3e3dc159f2b16927d0c9031c1f689513e
7
- data.tar.gz: 5180a572f9c374fc1217401b7843a2f81d6d391ef336599275bf705763d5d762c58fad0cb5a170c6f44b9f6b95f4a65575c36baab2f4f5b6fccd9c1819e2a902
6
+ metadata.gz: 3e228b857da2ca4f4083fd40c816a29a4453717095873ff357173d4a4171c0809e32136f4ae0c6981b5200abf154f91b3cd559163a47fbe0c901b2200d9738b9
7
+ data.tar.gz: 882b20941e4617022dff3e9ed781cf122056b135206c76348e354230db9cf8be9efe12660ba38efda43b9a95353fe9fc4e0c9881adcaa65add0566057628e1ab
@@ -1,7 +1,13 @@
1
1
  module InsightsExport
2
2
  class Railtie < Rails::Railtie
3
3
  rake_tasks do
4
- require 'immigrant/task'
4
+ namespace :insights do
5
+ desc 'Export database structure to config/insights.yml'
6
+ task export: :environment do
7
+ Rails.application.eager_load!
8
+ InsightsExport::ExportModels.export
9
+ end
10
+ end
5
11
  end
6
12
  end
7
13
  end
@@ -1,3 +1,3 @@
1
1
  module InsightsExport
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insights_export
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Andra
@@ -30,11 +30,9 @@ executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
- - Rakefile
34
33
  - lib/insights_export.rb
35
34
  - lib/insights_export/export_models.rb
36
35
  - lib/insights_export/railtie.rb
37
- - lib/insights_export/task.rb
38
36
  - lib/insights_export/version.rb
39
37
  homepage: https://github.com/mariusandra/insights_export
40
38
  licenses:
@@ -59,5 +57,5 @@ rubyforge_project:
59
57
  rubygems_version: 2.5.1
60
58
  signing_key:
61
59
  specification_version: 4
62
- summary: Export your database structure into config/insights.yml!
60
+ summary: Export your database structure into config/insights.yml
63
61
  test_files: []
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'insights_export'
@@ -1,7 +0,0 @@
1
- namespace :insights do
2
- desc 'Export database structure to config/insights.yml'
3
-
4
- task :export do
5
- InsightsExport::ExportModels.export
6
- end
7
- end