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.
Files changed (38) hide show
  1. data/bin/go-import +6 -2
  2. data/lib/go_import/model/deal_class_settings.rb +2 -0
  3. data/lib/go_import/model/rootmodel.rb +1 -1
  4. data/lib/go_import.rb +0 -1
  5. data/sources/VISMA/.gitignore +14 -0
  6. data/sources/VISMA/.go_import/runner.rb +77 -0
  7. data/sources/VISMA/Database/KONTAKT.DBF +0 -0
  8. data/sources/VISMA/Database/KUND.DBF +0 -0
  9. data/sources/VISMA/Gemfile +5 -0
  10. data/sources/VISMA/converter.rb +104 -0
  11. data/sources/VISMA/tomodel.rb +202 -0
  12. data/sources/csv/Gemfile +1 -1
  13. data/sources/custom/.gitignore +14 -0
  14. data/sources/custom/.go_import/runner.rb +30 -0
  15. data/sources/custom/Gemfile +4 -0
  16. data/sources/custom/converter.rb +29 -0
  17. data/sources/easy/.go_import/runner.rb +74 -86
  18. data/sources/easy/Gemfile +1 -1
  19. data/sources/easy/converter.rb +21 -147
  20. data/sources/excel/Gemfile +1 -1
  21. data/sources/excel/converter.rb +1 -1
  22. metadata +14 -18
  23. data/sources/csv/Rakefile.rb +0 -7
  24. data/sources/csv/spec/exporter_spec.rb +0 -17
  25. data/sources/csv/spec/sample_data/coworkers.csv +0 -2
  26. data/sources/csv/spec/sample_data/deals.csv +0 -2
  27. data/sources/csv/spec/sample_data/organizations.csv +0 -2
  28. data/sources/csv/spec/sample_data/persons.csv +0 -2
  29. data/sources/csv/spec/spec_helper.rb +0 -30
  30. data/sources/easy/Rakefile.rb +0 -7
  31. data/sources/easy/spec/exporter_spec.rb +0 -10
  32. data/sources/easy/spec/sample_data/Company.txt +0 -649
  33. data/sources/easy/spec/spec_helper.rb +0 -30
  34. data/sources/excel/Rakefile.rb +0 -7
  35. data/sources/excel/spec/sample_data/sample.xlsx +0 -0
  36. data/sources/excel/spec/spec_helper.rb +0 -26
  37. data/sources/excel/spec/tomodel_spec.rb +0 -18
  38. /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