active_admin_simple_import 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +24 -0
- data/app/assets/javascripts/active_admin_simple_import/application.js +13 -0
- data/app/assets/stylesheets/active_admin_simple_import/application.css +15 -0
- data/app/controllers/active_admin_simple_import/application_controller.rb +4 -0
- data/app/helpers/active_admin_simple_import/application_helper.rb +4 -0
- data/app/views/active_admin_simple_import/import.html.haml +6 -0
- data/config/routes.rb +2 -0
- data/lib/active_admin_simple_import/dsl.rb +1 -1
- data/lib/active_admin_simple_import/engine.rb +2 -5
- data/lib/active_admin_simple_import/version.rb +3 -0
- data/lib/tasks/active_admin_simple_import_tasks.rake +4 -0
- metadata +29 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0360b1b084661b0428410ee19ccd41560e15c3e0
|
4
|
+
data.tar.gz: c8c05b9385b7321e9252ab92f41dc7efb06a7a12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1a63813ebd341564d507980fb8c081c3236dc2f7460f45584cd6e082c9209efd0f3ee1158edbea925ae0c7676e8e4151d5f0d5413aab11005562e0fe3bd4380
|
7
|
+
data.tar.gz: c1844d90cbb9c2836815aed5997eccac5125686c36e5a77e93e8a38d8b284fa9f0e286bc04d94b5fbdf2a8a1addeeee6c9bbbea749f5f67daed98289495bcbcf
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2015 Damian Romanów
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'ActiveAdminSimpleImport'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
load 'rails/tasks/statistics.rake'
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
Bundler::GemHelper.install_tasks
|
24
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,6 @@
|
|
1
|
+
%p.active_admin_import_hint
|
2
|
+
= semantic_form_for :csv, url: {action: :do_import}, html: {multipart: true} do |f|
|
3
|
+
= f.inputs name: 'Import' do
|
4
|
+
= f.input :file, as: :file, label: 'Plik csv'
|
5
|
+
= f.actions do
|
6
|
+
= f.action :submit, label: t("active_admin_import.import_btn"), button_html: {data: {disable_with: t("active_admin_import.import_btn_disabled")}}
|
data/config/routes.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_simple_import
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damian Romanów
|
@@ -9,16 +9,41 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2015-08-13 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
13
|
-
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.3
|
27
|
+
description: ActiveAdminSimpleImport.
|
14
28
|
email: damian.romanow@gmail.com
|
15
29
|
executables: []
|
16
30
|
extensions: []
|
17
31
|
extra_rdoc_files: []
|
18
32
|
files:
|
33
|
+
- MIT-LICENSE
|
34
|
+
- README.rdoc
|
35
|
+
- Rakefile
|
36
|
+
- app/assets/javascripts/active_admin_simple_import/application.js
|
37
|
+
- app/assets/stylesheets/active_admin_simple_import/application.css
|
38
|
+
- app/controllers/active_admin_simple_import/application_controller.rb
|
39
|
+
- app/helpers/active_admin_simple_import/application_helper.rb
|
40
|
+
- app/views/active_admin_simple_import/import.html.haml
|
41
|
+
- config/routes.rb
|
19
42
|
- lib/active_admin_simple_import.rb
|
20
43
|
- lib/active_admin_simple_import/dsl.rb
|
21
44
|
- lib/active_admin_simple_import/engine.rb
|
45
|
+
- lib/active_admin_simple_import/version.rb
|
46
|
+
- lib/tasks/active_admin_simple_import_tasks.rake
|
22
47
|
homepage: https://github.com/HarenBroog/active_admin_simple_import
|
23
48
|
licenses:
|
24
49
|
- MIT
|
@@ -42,6 +67,6 @@ rubyforge_project:
|
|
42
67
|
rubygems_version: 2.4.7
|
43
68
|
signing_key:
|
44
69
|
specification_version: 4
|
45
|
-
summary:
|
70
|
+
summary: ActiveAdminSimpleImport
|
46
71
|
test_files: []
|
47
72
|
has_rdoc:
|