scaffolding 0.3.7 → 0.3.8

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: 1942e2383ee701c0b2640dcc84224423edcbebf0
4
- data.tar.gz: a24604afdb04b67feb39dc816cdebbc9142f9437
3
+ metadata.gz: 1b2793a8c7ed99b4c64daf9e74f3b40a5a2c4fd3
4
+ data.tar.gz: 2b33cdcd0cde11f7d93cec3206ce5a2f04cbe135
5
5
  SHA512:
6
- metadata.gz: 79384b96c48ec8651cd12f352f8febdb817d5a84cad0c0589fa01be66f098a6b4d708f9e11fe0943c51bb7e51b1c7437cce14b0a5e3ebc64d57c45999060759f
7
- data.tar.gz: 2257fd1aa9dbedca0a3ea505d4678a3e1e462aa1dde7720a4f1b232f75984c3a5f75be8af20628dcdeed25004b1c9784d7b8eb07e6a416ca901a5adc8784c6a2
6
+ metadata.gz: f42b9c924234ebd9653a719c959e915737879cb8d17836fe0f382430b27ccb4efe717e260459e54f19d5b38a26bee1fdf9ba30e5dc43dedceee279d9d34606a2
7
+ data.tar.gz: 5ce16200d4562cbc0c2eb4e7a171a55cbe02782a825e0670717ced4d0a5bafea7e4ccbb07cdeddac4801329270c4f2315fccf97e76a7043d4d9cefdf85682780
data/.gitignore CHANGED
File without changes
File without changes
data/Gemfile CHANGED
File without changes
File without changes
data/README.md CHANGED
@@ -66,6 +66,12 @@ Example:
66
66
 
67
67
  $ rails g scaffolding --auto --migrate --import
68
68
 
69
+ If you want to do a large number of files at once and only do specific tasks:
70
+
71
+ $ rails g scaffolding --auto --no-migrate --no-import
72
+
73
+ You can leave this running and it will generate scaffolds, but skip migration and importing data.
74
+
69
75
  #### Import file uploads
70
76
 
71
77
  To import data from a file uploaded through the web browser:
@@ -74,7 +80,7 @@ To import data from a file uploaded through the web browser:
74
80
 
75
81
  $ rails s
76
82
 
77
- Then go to http://localhost:3000/scaffolding/new
83
+ Then go to http://localhost:3000/scaffolding
78
84
 
79
85
  And upload the file you wish to import.
80
86
 
data/Rakefile CHANGED
File without changes
@@ -6,9 +6,9 @@ class ScaffoldingGenerator < Rails::Generators::Base
6
6
  desc "This generator generates a scaffold based on a CSV, Dat or Txt file and imports the data"
7
7
  argument :source, :type => :string, :default => ""
8
8
  argument :name, :type => :string, :default => ""
9
- class_option :auto, :type => :boolean, :default => false, :description => "Automatically choose data types"
10
- class_option :migrate, :type => :boolean, :default => false, :description => "Migrate the database"
11
- class_option :import, :type => :boolean, :default => false, :description => "Import data from source"
9
+ class_option :auto, :type => :boolean, :description => "Automatically choose data types"
10
+ class_option :migrate, :type => :boolean, :description => "Migrate the database"
11
+ class_option :import, :type => :boolean, :description => "Import data from source"
12
12
 
13
13
  def analyize_sources
14
14
  @auto = options[:auto]
@@ -61,7 +61,7 @@ module Scaffolding
61
61
  end
62
62
 
63
63
  def migrate_database
64
- unless @migrate
64
+ if @migrate == nil
65
65
  puts "\n\n\e[32mMigrate the database?(y/n)\e[0m\n"
66
66
  answer = STDIN.gets.chomp.downcase
67
67
  end
@@ -74,7 +74,7 @@ module Scaffolding
74
74
  end
75
75
 
76
76
  def import_data
77
- unless @import
77
+ if @import == nil
78
78
  puts "\n\n\e[32mImport the data from #{@source}?(y/n)\e[0m\n"
79
79
  answer = STDIN.gets.chomp.downcase
80
80
  end
@@ -82,7 +82,7 @@ module Scaffolding
82
82
  end
83
83
 
84
84
  def scaffold_rank
85
- unless @auto
85
+ if @auto == nil
86
86
  puts "\n\e[33mManually choose data types?(y/n) for #{@source_name}\e[0m"
87
87
  manual = STDIN.gets.chomp
88
88
  end
File without changes
@@ -1,3 +1,3 @@
1
1
  module Scaffolding
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan-deJong
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-28 00:00:00.000000000 Z
11
+ date: 2015-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,9 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.4.5
86
+ rubygems_version: 2.4.7
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Generate a rails scaffold based on a .CSV, .dat or .txt file.
90
90
  test_files: []
91
- has_rdoc: