go_import 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/go-import +6 -2
- data/lib/go_import/model/deal_class_settings.rb +2 -0
- data/lib/go_import/model/rootmodel.rb +1 -1
- data/lib/go_import.rb +0 -1
- data/sources/VISMA/.gitignore +14 -0
- data/sources/VISMA/.go_import/runner.rb +77 -0
- data/sources/VISMA/Database/KONTAKT.DBF +0 -0
- data/sources/VISMA/Database/KUND.DBF +0 -0
- data/sources/VISMA/Gemfile +5 -0
- data/sources/VISMA/converter.rb +104 -0
- data/sources/VISMA/tomodel.rb +202 -0
- data/sources/csv/Gemfile +1 -1
- data/sources/custom/.gitignore +14 -0
- data/sources/custom/.go_import/runner.rb +30 -0
- data/sources/custom/Gemfile +4 -0
- data/sources/custom/converter.rb +29 -0
- data/sources/easy/.go_import/runner.rb +74 -86
- data/sources/easy/Gemfile +1 -1
- data/sources/easy/converter.rb +21 -147
- data/sources/excel/Gemfile +1 -1
- data/sources/excel/converter.rb +1 -1
- metadata +14 -18
- data/sources/csv/Rakefile.rb +0 -7
- data/sources/csv/spec/exporter_spec.rb +0 -17
- data/sources/csv/spec/sample_data/coworkers.csv +0 -2
- data/sources/csv/spec/sample_data/deals.csv +0 -2
- data/sources/csv/spec/sample_data/organizations.csv +0 -2
- data/sources/csv/spec/sample_data/persons.csv +0 -2
- data/sources/csv/spec/spec_helper.rb +0 -30
- data/sources/easy/Rakefile.rb +0 -7
- data/sources/easy/spec/exporter_spec.rb +0 -10
- data/sources/easy/spec/sample_data/Company.txt +0 -649
- data/sources/easy/spec/spec_helper.rb +0 -30
- data/sources/excel/Rakefile.rb +0 -7
- data/sources/excel/spec/sample_data/sample.xlsx +0 -0
- data/sources/excel/spec/spec_helper.rb +0 -26
- data/sources/excel/spec/tomodel_spec.rb +0 -18
- /data/sources/excel/{template.xlsx → sample-data.xlsx} +0 -0
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
-
#require File.expand_path("../../config/environment", __FILE__)
|
3
|
-
#require 'rspec/autorun'
|
4
|
-
|
5
|
-
RSpec.configure do |config|
|
6
|
-
# ## Mock Framework
|
7
|
-
#
|
8
|
-
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
9
|
-
#
|
10
|
-
# config.mock_with :mocha
|
11
|
-
# config.mock_with :flexmock
|
12
|
-
# config.mock_with :rr
|
13
|
-
|
14
|
-
# Run specs in random order to surface order dependencies. If you find an
|
15
|
-
# order dependency and want to debug it, you can fix the order by providing
|
16
|
-
# the seed, which is printed after each run.
|
17
|
-
# --seed 1234
|
18
|
-
config.order = "random"
|
19
|
-
|
20
|
-
# Allow both should and expect syntax
|
21
|
-
# http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
22
|
-
config.expect_with :rspec do |c|
|
23
|
-
c.syntax = [:should, :expect]
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
require 'tomodel'
|
5
|
-
|
6
|
-
describe 'Model' do
|
7
|
-
before(:all) do
|
8
|
-
converter = Converter.new
|
9
|
-
samplefile = File.join(File.dirname(__FILE__), '..', 'template.xlsx')
|
10
|
-
@rootmodel = converter.to_model(samplefile)
|
11
|
-
end
|
12
|
-
|
13
|
-
it "will find something with a name" do
|
14
|
-
organization = @rootmodel.organizations[0]
|
15
|
-
organization.name.length.should > 0
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
File without changes
|