scaffolding 0.3.6 → 0.3.7

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: d4029ebf3a3e722d99ff153f3e3459b8d08755fb
4
- data.tar.gz: cac7280590f98a488df5ce1ca965baf2754613e5
3
+ metadata.gz: 1942e2383ee701c0b2640dcc84224423edcbebf0
4
+ data.tar.gz: a24604afdb04b67feb39dc816cdebbc9142f9437
5
5
  SHA512:
6
- metadata.gz: b64924ac0ca17ae87729cf2d26fab34557848aaca18cb598f488fd422cca884083e9dc93d0ff29b8f6ca08d30b2c2b8166963b378be2945d171060f7a7b8a7e3
7
- data.tar.gz: 4b8b7d234e236f12a2f8716f2c5277a95e21d77b8187e07a6720d0f70e9e3ecb3b77df3b2dbf5e25cb795d497d269e997ffbf718dfadf935fd56510ceda98d41
6
+ metadata.gz: 79384b96c48ec8651cd12f352f8febdb817d5a84cad0c0589fa01be66f098a6b4d708f9e11fe0943c51bb7e51b1c7437cce14b0a5e3ebc64d57c45999060759f
7
+ data.tar.gz: 2257fd1aa9dbedca0a3ea505d4678a3e1e462aa1dde7720a4f1b232f75984c3a5f75be8af20628dcdeed25004b1c9784d7b8eb07e6a416ca901a5adc8784c6a2
data/.gitignore CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
@@ -2,4 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in scaffolding.gemspec
4
4
  gemspec
5
- gem 'roo'
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  $ rails g scaffolding [source] [name]
24
24
 
25
- You can pass either a path/to/the/file or a URL as the [source].
25
+ You can pass either a path/to/the/file or a URL as the [source].
26
26
 
27
27
  If a [name] is not passed, the scaffold will be named from the source:
28
28
 
@@ -70,7 +70,7 @@ Example:
70
70
 
71
71
  To import data from a file uploaded through the web browser:
72
72
 
73
- $ rake scaffolding:production
73
+ $ rake scaffolding:controller
74
74
 
75
75
  $ rails s
76
76
 
data/Rakefile CHANGED
File without changes
File without changes
data/lib/scaffolding.rb CHANGED
@@ -88,9 +88,9 @@ module Scaffolding
88
88
 
89
89
  def import_browser_data
90
90
  @parser.groom_data
91
- @results = @parser.import_data
91
+ results = @parser.import_data
92
92
  return if errors
93
- {saved: @results[:saved], failed: @results[:failed]}
93
+ {saved: results[:saved], failed: results[:failed]}
94
94
  end
95
95
  end
96
96
 
File without changes
@@ -1,3 +1,3 @@
1
1
  module Scaffolding
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
@@ -7,13 +7,13 @@ namespace :scaffolding do
7
7
  end
8
8
 
9
9
  desc "Setup a production enviornemnt to import data from the files."
10
- task :production do |t|
10
+ task :controller do |t|
11
11
  generators = Rails::Generators::Base.new
12
- generators.generate "controller", "scaffolding new --skip --skip-routes"
13
- generators.route "get 'scaffolding/new'"
12
+ generators.generate "controller", "scaffolding index --skip --skip-routes"
13
+ generators.route "get '/scaffolding' => 'scaffolding#index'"
14
14
  generators.route "post 'scaffolding/import'"
15
15
 
16
- File.open(File.join(Rails.root, "app/views/scaffolding/new.html.erb"), 'w') {|f| f.write(
16
+ File.open(File.join(Rails.root, "app/views/scaffolding/index.html.erb"), 'w') {|f| f.write(
17
17
  "<div class='authform'>
18
18
  <%= form_tag scaffolding_import_path, multipart: true do %>
19
19
  <%= file_field_tag :file %>
@@ -26,7 +26,7 @@ namespace :scaffolding do
26
26
  File.open(File.join(Rails.root, "app/controllers/scaffolding_controller.rb"), 'w') {|f| f.write(
27
27
  "class ScaffoldingController < ApplicationController
28
28
 
29
- def new
29
+ def index
30
30
  end
31
31
 
32
32
  def import
data/scaffolding.gemspec CHANGED
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.6
4
+ version: 0.3.7
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-16 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,8 +83,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.4.7
86
+ rubygems_version: 2.4.5
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: