importr 0.0.1 → 0.0.2

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: 857d9822884da68d290b3a2af294e8ca18b6e85a
4
- data.tar.gz: 8472573b2d917b39b2db4b0f354b3509960c2f90
3
+ metadata.gz: 200e1ae712c85a1384e4457b03d2e03b27879d03
4
+ data.tar.gz: bd1a84310f148253bfc741fd3912f7e060ccfa57
5
5
  SHA512:
6
- metadata.gz: 2ea9144af7cbeee9f1f35d9648e0b4f2803c0d6ef3fcb4c5d5edbbc4e4c1cf6a4790fe37188d2e1291c5d93fbb2fc049510e4b420e031c2e6dbadc0e794f3b70
7
- data.tar.gz: 5cbeb3872a7da2cd441155527c1ce5ccb7f122b59a3f33879052417eb44dd7e757f204b78ff7f8ec54f0cbd313f368b371c75508da44a21b03c0ff14ab17a1e1
6
+ metadata.gz: 1661949302202ec3f98a1dd462228c0665cc8747b1bbbdf42dc5ee2e9011c4f513df2d30206570dedc943d64eee0dc1f9f3a953bc16ef4d0bb0073c14212e7cb
7
+ data.tar.gz: 45be464372780cb563481e5f702d9f4b899ea628754c3952fd321792601e88936734d46d3893f55390bf3df709c877f30cc3350d1074defae57ae4599d5ca4c2
@@ -1,4 +1,13 @@
1
1
  module Importr
2
2
  module ApplicationHelper
3
+
4
+ def websocket_url_service
5
+ Importr::Config.websocket_url_service
6
+ end
7
+
8
+ def websocket_client_script
9
+ Importr::Config.websocket_client_script
10
+ end
11
+
3
12
  end
4
13
  end
@@ -1,4 +1,4 @@
1
- = javascript_include_tag "#{root_url(:port => 8000)}faye/client.js"
1
+ = javascript_include_tag "#{websocket_client_script}"
2
2
  = render "importr/admin/data_imports/ws_client"
3
3
 
4
4
  .attributes_table
@@ -1,7 +1,8 @@
1
1
  :javascript
2
2
  (function() {
3
3
 
4
- var client = new Faye.Client("#{root_url(port: 8000)}faye", { retry: 5 });
4
+
5
+ var client = new Faye.Client("#{websocket_url_service}", { retry: 5 });
5
6
 
6
7
  function update_row_count(message) {
7
8
  if (typeof(message.processed_rows) != 'undefined') {
@@ -1,6 +1,8 @@
1
1
  module Importr
2
2
  module ActiveAdmin
3
-
3
+
4
+ ::ActiveAdmin::ViewHelpers.send(:include , Importr::ApplicationHelper)
5
+
4
6
  def data_import_interface(importer_type = nil)
5
7
  klass = config.resource_class.name
6
8
  importer_type ||= "#{klass}Importer".constantize
@@ -7,7 +7,8 @@ module Importr
7
7
  yield self
8
8
  end
9
9
 
10
- mattr_accessor :web_socket_class, :web_socket_method
10
+ mattr_accessor :web_socket_class, :web_socket_method,
11
+ :websocket_url_service, :websocket_client_script
11
12
 
12
13
 
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module Importr
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernesto Garcia
@@ -212,7 +212,7 @@ files:
212
212
  - lib/tasks/importr_tasks.rake
213
213
  - MIT-LICENSE
214
214
  - Rakefile
215
- homepage: http://todo.cl
215
+ homepage: https://github.com/continuum/importr
216
216
  licenses: []
217
217
  metadata: {}
218
218
  post_install_message: