datashift 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -5
- data/LICENSE.txt +26 -26
- data/README.markdown +305 -303
- data/README.rdoc +19 -19
- data/Rakefile +93 -93
- data/VERSION +1 -1
- data/datashift-0.1.0.gem +0 -0
- data/datashift.gemspec +152 -136
- data/lib/applications/jruby/jexcel_file.rb +408 -408
- data/lib/applications/jruby/word.rb +79 -79
- data/lib/datashift.rb +152 -152
- data/lib/datashift/exceptions.rb +11 -11
- data/lib/datashift/file_definitions.rb +353 -353
- data/lib/datashift/mapping_file_definitions.rb +87 -87
- data/lib/datashift/method_detail.rb +275 -275
- data/lib/datashift/method_dictionary.rb +209 -209
- data/lib/datashift/method_mapper.rb +90 -90
- data/lib/generators/csv_generator.rb +36 -36
- data/lib/generators/excel_generator.rb +122 -122
- data/lib/generators/generator_base.rb +13 -13
- data/lib/helpers/core_ext/to_b.rb +24 -24
- data/lib/helpers/spree_helper.rb +153 -155
- data/lib/java/poi-3.7/LICENSE +507 -507
- data/lib/java/poi-3.7/NOTICE +21 -21
- data/lib/java/poi-3.7/RELEASE_NOTES.txt +115 -115
- data/lib/loaders/csv_loader.rb +98 -98
- data/lib/loaders/excel_loader.rb +155 -155
- data/lib/loaders/loader_base.rb +420 -420
- data/lib/loaders/spreadsheet_loader.rb +136 -136
- data/lib/loaders/spree/image_loader.rb +63 -64
- data/lib/loaders/spree/product_loader.rb +248 -250
- data/public/spree/products/large/DEMO_001_ror_bag.jpeg +0 -0
- data/public/spree/products/large/DEMO_002_Powerstation.jpg +0 -0
- data/public/spree/products/large/DEMO_003_ror_mug.jpeg +0 -0
- data/public/spree/products/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/public/spree/products/mini/DEMO_002_Powerstation.jpg +0 -0
- data/public/spree/products/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/public/spree/products/original/DEMO_001_ror_bag.jpeg +0 -0
- data/public/spree/products/original/DEMO_002_Powerstation.jpg +0 -0
- data/public/spree/products/original/DEMO_003_ror_mug.jpeg +0 -0
- data/public/spree/products/product/DEMO_001_ror_bag.jpeg +0 -0
- data/public/spree/products/product/DEMO_002_Powerstation.jpg +0 -0
- data/public/spree/products/product/DEMO_003_ror_mug.jpeg +0 -0
- data/public/spree/products/small/DEMO_001_ror_bag.jpeg +0 -0
- data/public/spree/products/small/DEMO_002_Powerstation.jpg +0 -0
- data/public/spree/products/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/csv_loader_spec.rb +30 -30
- data/spec/datashift_spec.rb +26 -26
- data/spec/db/migrate/20110803201325_create_test_bed.rb +85 -85
- data/spec/excel_exporter_spec.rb +78 -78
- data/spec/excel_generator_spec.rb +78 -78
- data/spec/excel_loader_spec.rb +223 -223
- data/spec/file_definitions.rb +141 -141
- data/spec/fixtures/ProjectsDefaults.yml +29 -29
- data/spec/fixtures/config/database.yml +27 -24
- data/spec/fixtures/datashift_Spree_db.sqlite +0 -0
- data/spec/fixtures/interact_models_db.sqlite +0 -0
- data/spec/fixtures/negative/SpreeProdMiss1Mandatory.csv +4 -4
- data/spec/fixtures/negative/SpreeProdMissManyMandatory.csv +4 -4
- data/spec/fixtures/spree/SpreeProducts.csv +4 -4
- data/spec/fixtures/spree/SpreeProductsMultiColumn.csv +4 -4
- data/spec/fixtures/spree/SpreeProductsSimple.csv +4 -4
- data/spec/fixtures/spree/SpreeProductsWithImages.csv +4 -0
- data/spec/fixtures/spree/SpreeZoneExample.csv +5 -5
- data/spec/fixtures/test_model_defs.rb +57 -57
- data/spec/loader_spec.rb +120 -120
- data/spec/method_dictionary_spec.rb +242 -242
- data/spec/method_mapper_spec.rb +41 -41
- data/spec/spec_helper.rb +116 -116
- data/spec/spree_generator_spec.rb +64 -64
- data/spec/spree_loader_spec.rb +324 -327
- data/spec/spree_method_mapping_spec.rb +214 -214
- data/tasks/config/seed_fu_product_template.erb +15 -15
- data/tasks/config/tidy_config.txt +12 -12
- data/tasks/db_tasks.rake +65 -65
- data/tasks/excel_generator.rake +78 -78
- data/tasks/file_tasks.rake +36 -36
- data/tasks/import/csv.rake +49 -49
- data/tasks/import/excel.rake +71 -71
- data/tasks/spree/image_load.rake +108 -108
- data/tasks/spree/product_loader.rake +43 -43
- data/tasks/word_to_seedfu.rake +166 -166
- data/test/helper.rb +18 -18
- data/test/test_interact.rb +7 -7
- metadata +22 -3
- data/spec/fixtures/interact_spree_db.sqlite +0 -0
data/README.rdoc
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
= DataShift
|
2
|
-
|
3
|
-
Description goes here.
|
4
|
-
|
5
|
-
== Contributing to DataShift
|
6
|
-
|
7
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
-
* Fork the project.
|
10
|
-
* Start a feature/bugfix branch.
|
11
|
-
* Commit and push until you are happy with your contribution.
|
12
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
-
|
15
|
-
== Copyright
|
16
|
-
|
17
|
-
Copyright (c) 2012 Thomas Statter. See LICENSE.txt for
|
18
|
-
further details.
|
19
|
-
|
1
|
+
= DataShift
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to DataShift
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2012 Thomas Statter. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
CHANGED
@@ -1,94 +1,94 @@
|
|
1
|
-
# Copyright:: (c) Autotelik Media Ltd 2011
|
2
|
-
# Author :: Tom Statter
|
3
|
-
# Date :: Aug 2010
|
4
|
-
#
|
5
|
-
# License:: MIT - Free, OpenSource
|
6
|
-
#
|
7
|
-
# Details:: Gem::Specification for DataShift gem.
|
8
|
-
#
|
9
|
-
# Provides classes for moving data between a number of enterprise
|
10
|
-
# type applications, files and databases.
|
11
|
-
#
|
12
|
-
# Provides support for moving data between .xls (Excel/OpenOffice)
|
13
|
-
# Spreedsheets via JRuby and AR, enabling direct import/export of
|
14
|
-
# ActiveRecord models with all their associations from database.
|
15
|
-
#
|
16
|
-
# Provides support for moving data between csv files and AR, enabling direct
|
17
|
-
# import/export of AR models and their associations from database.
|
18
|
-
#
|
19
|
-
# Provides rake tasks specifically tailored for uploading or exporting
|
20
|
-
# Spree Products, associations and Images
|
21
|
-
#
|
22
|
-
## encoding: utf-8
|
23
|
-
|
24
|
-
require 'rubygems'
|
25
|
-
#require 'bundler'
|
26
|
-
#begin
|
27
|
-
# Bundler.setup(:default, :development)
|
28
|
-
#rescue Bundler::BundlerError => e
|
29
|
-
# $stderr.puts e.message
|
30
|
-
# $stderr.puts "Run `bundle install` to install missing gems"
|
31
|
-
# exit e.status_code
|
32
|
-
#end
|
33
|
-
require 'rake'
|
34
|
-
|
35
|
-
require 'lib/datashift'
|
36
|
-
|
37
|
-
require 'jeweler'
|
38
|
-
Jeweler::Tasks.new do |gem|
|
39
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
40
|
-
gem.name = DataShift.gem_name
|
41
|
-
gem.homepage = "http://github.com/autotelik/datashift"
|
42
|
-
gem.license = "MIT"
|
43
|
-
gem.summary = %Q{ Shift data betwen applications and Active Record}
|
44
|
-
gem.description = %Q{A suite of tools to move data between ActiveRecord models,databases,applications like Excel/Open Office, files and projects including Spree}
|
45
|
-
gem.email = "rubygems@autotelik.co.uk"
|
46
|
-
gem.authors = ["Thomas Statter"]
|
47
|
-
# dependencies defined in Gemfile
|
48
|
-
end
|
49
|
-
Jeweler::RubygemsDotOrgTasks.new
|
50
|
-
|
51
|
-
require 'rake/testtask'
|
52
|
-
Rake::TestTask.new(:test) do |test|
|
53
|
-
test.libs << 'lib' << 'test'
|
54
|
-
test.pattern = 'test/**/test_*.rb'
|
55
|
-
test.verbose = true
|
56
|
-
end
|
57
|
-
|
58
|
-
task :default => :test
|
59
|
-
|
60
|
-
require 'rdoc/task'
|
61
|
-
Rake::RDocTask.new do |rdoc|
|
62
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
63
|
-
|
64
|
-
rdoc.rdoc_dir = 'rdoc'
|
65
|
-
rdoc.title = "DataShift #{version}"
|
66
|
-
rdoc.rdoc_files.include('README*')
|
67
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
68
|
-
end
|
69
|
-
|
70
|
-
# Add in our own Tasks
|
71
|
-
|
72
|
-
desc 'Build gem and install in one step'
|
73
|
-
task :build, :version do |t, args|
|
74
|
-
|
75
|
-
v = (args[:version] || ENV['version'])
|
76
|
-
|
77
|
-
# Bump the VERSION file in library
|
78
|
-
File.open( File.join('VERSION'), 'w') do |f|
|
79
|
-
f << "#{v}\n"
|
80
|
-
end if v
|
81
|
-
|
82
|
-
system("jruby -S gem build datashift.gemspec")
|
83
|
-
#Rake::Task[:gem].invoke
|
84
|
-
|
85
|
-
version = DataShift.gem_version
|
86
|
-
puts "Installing version #{version}"
|
87
|
-
|
88
|
-
gem = "#{DataShift.gem_name}-#{version}.gem"
|
89
|
-
cmd = "jruby -S gem install --no-ri --no-rdoc #{gem}"
|
90
|
-
system(cmd)
|
91
|
-
end
|
92
|
-
|
93
|
-
# Long parameter lists so ensure rake -T produces nice wide output
|
1
|
+
# Copyright:: (c) Autotelik Media Ltd 2011
|
2
|
+
# Author :: Tom Statter
|
3
|
+
# Date :: Aug 2010
|
4
|
+
#
|
5
|
+
# License:: MIT - Free, OpenSource
|
6
|
+
#
|
7
|
+
# Details:: Gem::Specification for DataShift gem.
|
8
|
+
#
|
9
|
+
# Provides classes for moving data between a number of enterprise
|
10
|
+
# type applications, files and databases.
|
11
|
+
#
|
12
|
+
# Provides support for moving data between .xls (Excel/OpenOffice)
|
13
|
+
# Spreedsheets via JRuby and AR, enabling direct import/export of
|
14
|
+
# ActiveRecord models with all their associations from database.
|
15
|
+
#
|
16
|
+
# Provides support for moving data between csv files and AR, enabling direct
|
17
|
+
# import/export of AR models and their associations from database.
|
18
|
+
#
|
19
|
+
# Provides rake tasks specifically tailored for uploading or exporting
|
20
|
+
# Spree Products, associations and Images
|
21
|
+
#
|
22
|
+
## encoding: utf-8
|
23
|
+
|
24
|
+
require 'rubygems'
|
25
|
+
#require 'bundler'
|
26
|
+
#begin
|
27
|
+
# Bundler.setup(:default, :development)
|
28
|
+
#rescue Bundler::BundlerError => e
|
29
|
+
# $stderr.puts e.message
|
30
|
+
# $stderr.puts "Run `bundle install` to install missing gems"
|
31
|
+
# exit e.status_code
|
32
|
+
#end
|
33
|
+
require 'rake'
|
34
|
+
|
35
|
+
require 'lib/datashift'
|
36
|
+
|
37
|
+
require 'jeweler'
|
38
|
+
Jeweler::Tasks.new do |gem|
|
39
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
40
|
+
gem.name = DataShift.gem_name
|
41
|
+
gem.homepage = "http://github.com/autotelik/datashift"
|
42
|
+
gem.license = "MIT"
|
43
|
+
gem.summary = %Q{ Shift data betwen applications and Active Record}
|
44
|
+
gem.description = %Q{A suite of tools to move data between ActiveRecord models,databases,applications like Excel/Open Office, files and projects including Spree}
|
45
|
+
gem.email = "rubygems@autotelik.co.uk"
|
46
|
+
gem.authors = ["Thomas Statter"]
|
47
|
+
# dependencies defined in Gemfile
|
48
|
+
end
|
49
|
+
Jeweler::RubygemsDotOrgTasks.new
|
50
|
+
|
51
|
+
require 'rake/testtask'
|
52
|
+
Rake::TestTask.new(:test) do |test|
|
53
|
+
test.libs << 'lib' << 'test'
|
54
|
+
test.pattern = 'test/**/test_*.rb'
|
55
|
+
test.verbose = true
|
56
|
+
end
|
57
|
+
|
58
|
+
task :default => :test
|
59
|
+
|
60
|
+
require 'rdoc/task'
|
61
|
+
Rake::RDocTask.new do |rdoc|
|
62
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
63
|
+
|
64
|
+
rdoc.rdoc_dir = 'rdoc'
|
65
|
+
rdoc.title = "DataShift #{version}"
|
66
|
+
rdoc.rdoc_files.include('README*')
|
67
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
68
|
+
end
|
69
|
+
|
70
|
+
# Add in our own Tasks
|
71
|
+
|
72
|
+
desc 'Build gem and install in one step'
|
73
|
+
task :build, :version do |t, args|
|
74
|
+
|
75
|
+
v = (args[:version] || ENV['version'])
|
76
|
+
|
77
|
+
# Bump the VERSION file in library
|
78
|
+
File.open( File.join('VERSION'), 'w') do |f|
|
79
|
+
f << "#{v}\n"
|
80
|
+
end if v
|
81
|
+
|
82
|
+
system("jruby -S gem build datashift.gemspec")
|
83
|
+
#Rake::Task[:gem].invoke
|
84
|
+
|
85
|
+
version = DataShift.gem_version
|
86
|
+
puts "Installing version #{version}"
|
87
|
+
|
88
|
+
gem = "#{DataShift.gem_name}-#{version}.gem"
|
89
|
+
cmd = "jruby -S gem install --no-ri --no-rdoc #{gem}"
|
90
|
+
system(cmd)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Long parameter lists so ensure rake -T produces nice wide output
|
94
94
|
ENV['RAKE_COLUMNS'] = '180'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1
|
1
|
+
0.2.1
|
data/datashift-0.1.0.gem
ADDED
Binary file
|
data/datashift.gemspec
CHANGED
@@ -1,136 +1,152 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = "datashift"
|
8
|
-
s.version = "0.1
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Thomas Statter"]
|
12
|
-
s.date = "2012-02-
|
13
|
-
s.description = "A suite of tools to move data between ActiveRecord models,databases,applications like Excel/Open Office, files and projects including Spree"
|
14
|
-
s.email = "rubygems@autotelik.co.uk"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.markdown",
|
18
|
-
"README.rdoc"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
".document",
|
22
|
-
"LICENSE.txt",
|
23
|
-
"README.markdown",
|
24
|
-
"README.rdoc",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"datashift-0.1.0.gem",
|
28
|
-
"datashift.gemspec",
|
29
|
-
"lib/applications/jruby/jexcel_file.rb",
|
30
|
-
"lib/applications/jruby/word.rb",
|
31
|
-
"lib/datashift.rb",
|
32
|
-
"lib/datashift/exceptions.rb",
|
33
|
-
"lib/datashift/file_definitions.rb",
|
34
|
-
"lib/datashift/mapping_file_definitions.rb",
|
35
|
-
"lib/datashift/method_detail.rb",
|
36
|
-
"lib/datashift/method_dictionary.rb",
|
37
|
-
"lib/datashift/method_mapper.rb",
|
38
|
-
"lib/generators/csv_generator.rb",
|
39
|
-
"lib/generators/excel_generator.rb",
|
40
|
-
"lib/generators/generator_base.rb",
|
41
|
-
"lib/helpers/core_ext/to_b.rb",
|
42
|
-
"lib/helpers/spree_helper.rb",
|
43
|
-
"lib/java/poi-3.7/._poi-3.7-20101029.jar5645100390082102460.tmp",
|
44
|
-
"lib/java/poi-3.7/LICENSE",
|
45
|
-
"lib/java/poi-3.7/NOTICE",
|
46
|
-
"lib/java/poi-3.7/RELEASE_NOTES.txt",
|
47
|
-
"lib/java/poi-3.7/lib/commons-logging-1.1.jar",
|
48
|
-
"lib/java/poi-3.7/lib/junit-3.8.1.jar",
|
49
|
-
"lib/java/poi-3.7/lib/log4j-1.2.13.jar",
|
50
|
-
"lib/java/poi-3.7/ooxml-lib/dom4j-1.6.1.jar",
|
51
|
-
"lib/java/poi-3.7/ooxml-lib/geronimo-stax-api_1.0_spec-1.0.jar",
|
52
|
-
"lib/java/poi-3.7/ooxml-lib/xmlbeans-2.3.0.jar",
|
53
|
-
"lib/java/poi-3.7/poi-3.7-20101029.jar",
|
54
|
-
"lib/java/poi-3.7/poi-examples-3.7-20101029.jar",
|
55
|
-
"lib/java/poi-3.7/poi-ooxml-3.7-20101029.jar",
|
56
|
-
"lib/java/poi-3.7/poi-ooxml-schemas-3.7-20101029.jar",
|
57
|
-
"lib/java/poi-3.7/poi-scratchpad-3.7-20101029.jar",
|
58
|
-
"lib/loaders/csv_loader.rb",
|
59
|
-
"lib/loaders/excel_loader.rb",
|
60
|
-
"lib/loaders/loader_base.rb",
|
61
|
-
"lib/loaders/spreadsheet_loader.rb",
|
62
|
-
"lib/loaders/spree/image_loader.rb",
|
63
|
-
"lib/loaders/spree/product_loader.rb",
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"spec/
|
80
|
-
"spec/
|
81
|
-
"spec/
|
82
|
-
"spec/
|
83
|
-
"spec/
|
84
|
-
"spec/
|
85
|
-
"spec/
|
86
|
-
"spec/fixtures/
|
87
|
-
"spec/fixtures/
|
88
|
-
"spec/fixtures/
|
89
|
-
"spec/fixtures/
|
90
|
-
"spec/fixtures/
|
91
|
-
"spec/fixtures/
|
92
|
-
"spec/fixtures/
|
93
|
-
"spec/fixtures/
|
94
|
-
"spec/fixtures/
|
95
|
-
"spec/fixtures/
|
96
|
-
"spec/fixtures/
|
97
|
-
"spec/fixtures/
|
98
|
-
"spec/fixtures/
|
99
|
-
"spec/fixtures/
|
100
|
-
"spec/fixtures/
|
101
|
-
"spec/
|
102
|
-
"spec/
|
103
|
-
"spec/
|
104
|
-
"spec/
|
105
|
-
"spec/
|
106
|
-
"spec/
|
107
|
-
"spec/
|
108
|
-
"
|
109
|
-
"
|
110
|
-
"
|
111
|
-
"
|
112
|
-
"
|
113
|
-
"
|
114
|
-
"
|
115
|
-
"
|
116
|
-
"
|
117
|
-
"
|
118
|
-
"
|
119
|
-
"
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "datashift"
|
8
|
+
s.version = "0.2.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Thomas Statter"]
|
12
|
+
s.date = "2012-02-29"
|
13
|
+
s.description = "A suite of tools to move data between ActiveRecord models,databases,applications like Excel/Open Office, files and projects including Spree"
|
14
|
+
s.email = "rubygems@autotelik.co.uk"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.markdown",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
"LICENSE.txt",
|
23
|
+
"README.markdown",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"datashift-0.1.0.gem",
|
28
|
+
"datashift.gemspec",
|
29
|
+
"lib/applications/jruby/jexcel_file.rb",
|
30
|
+
"lib/applications/jruby/word.rb",
|
31
|
+
"lib/datashift.rb",
|
32
|
+
"lib/datashift/exceptions.rb",
|
33
|
+
"lib/datashift/file_definitions.rb",
|
34
|
+
"lib/datashift/mapping_file_definitions.rb",
|
35
|
+
"lib/datashift/method_detail.rb",
|
36
|
+
"lib/datashift/method_dictionary.rb",
|
37
|
+
"lib/datashift/method_mapper.rb",
|
38
|
+
"lib/generators/csv_generator.rb",
|
39
|
+
"lib/generators/excel_generator.rb",
|
40
|
+
"lib/generators/generator_base.rb",
|
41
|
+
"lib/helpers/core_ext/to_b.rb",
|
42
|
+
"lib/helpers/spree_helper.rb",
|
43
|
+
"lib/java/poi-3.7/._poi-3.7-20101029.jar5645100390082102460.tmp",
|
44
|
+
"lib/java/poi-3.7/LICENSE",
|
45
|
+
"lib/java/poi-3.7/NOTICE",
|
46
|
+
"lib/java/poi-3.7/RELEASE_NOTES.txt",
|
47
|
+
"lib/java/poi-3.7/lib/commons-logging-1.1.jar",
|
48
|
+
"lib/java/poi-3.7/lib/junit-3.8.1.jar",
|
49
|
+
"lib/java/poi-3.7/lib/log4j-1.2.13.jar",
|
50
|
+
"lib/java/poi-3.7/ooxml-lib/dom4j-1.6.1.jar",
|
51
|
+
"lib/java/poi-3.7/ooxml-lib/geronimo-stax-api_1.0_spec-1.0.jar",
|
52
|
+
"lib/java/poi-3.7/ooxml-lib/xmlbeans-2.3.0.jar",
|
53
|
+
"lib/java/poi-3.7/poi-3.7-20101029.jar",
|
54
|
+
"lib/java/poi-3.7/poi-examples-3.7-20101029.jar",
|
55
|
+
"lib/java/poi-3.7/poi-ooxml-3.7-20101029.jar",
|
56
|
+
"lib/java/poi-3.7/poi-ooxml-schemas-3.7-20101029.jar",
|
57
|
+
"lib/java/poi-3.7/poi-scratchpad-3.7-20101029.jar",
|
58
|
+
"lib/loaders/csv_loader.rb",
|
59
|
+
"lib/loaders/excel_loader.rb",
|
60
|
+
"lib/loaders/loader_base.rb",
|
61
|
+
"lib/loaders/spreadsheet_loader.rb",
|
62
|
+
"lib/loaders/spree/image_loader.rb",
|
63
|
+
"lib/loaders/spree/product_loader.rb",
|
64
|
+
"public/spree/products/large/DEMO_001_ror_bag.jpeg",
|
65
|
+
"public/spree/products/large/DEMO_002_Powerstation.jpg",
|
66
|
+
"public/spree/products/large/DEMO_003_ror_mug.jpeg",
|
67
|
+
"public/spree/products/mini/DEMO_001_ror_bag.jpeg",
|
68
|
+
"public/spree/products/mini/DEMO_002_Powerstation.jpg",
|
69
|
+
"public/spree/products/mini/DEMO_003_ror_mug.jpeg",
|
70
|
+
"public/spree/products/original/DEMO_001_ror_bag.jpeg",
|
71
|
+
"public/spree/products/original/DEMO_002_Powerstation.jpg",
|
72
|
+
"public/spree/products/original/DEMO_003_ror_mug.jpeg",
|
73
|
+
"public/spree/products/product/DEMO_001_ror_bag.jpeg",
|
74
|
+
"public/spree/products/product/DEMO_002_Powerstation.jpg",
|
75
|
+
"public/spree/products/product/DEMO_003_ror_mug.jpeg",
|
76
|
+
"public/spree/products/small/DEMO_001_ror_bag.jpeg",
|
77
|
+
"public/spree/products/small/DEMO_002_Powerstation.jpg",
|
78
|
+
"public/spree/products/small/DEMO_003_ror_mug.jpeg",
|
79
|
+
"spec/csv_loader_spec.rb",
|
80
|
+
"spec/datashift_spec.rb",
|
81
|
+
"spec/db/migrate/20110803201325_create_test_bed.rb",
|
82
|
+
"spec/excel_exporter_spec.rb",
|
83
|
+
"spec/excel_generator_spec.rb",
|
84
|
+
"spec/excel_loader_spec.rb",
|
85
|
+
"spec/file_definitions.rb",
|
86
|
+
"spec/fixtures/BadAssociationName.xls",
|
87
|
+
"spec/fixtures/DemoNegativeTesting.xls",
|
88
|
+
"spec/fixtures/ProjectsDefaults.yml",
|
89
|
+
"spec/fixtures/ProjectsMultiCategories.xls",
|
90
|
+
"spec/fixtures/ProjectsMultiCategoriesHeaderLookup.xls",
|
91
|
+
"spec/fixtures/ProjectsSingleCategories.xls",
|
92
|
+
"spec/fixtures/SimpleProjects.xls",
|
93
|
+
"spec/fixtures/config/database.yml",
|
94
|
+
"spec/fixtures/datashift_Spree_db.sqlite",
|
95
|
+
"spec/fixtures/images/DEMO_001_ror_bag.jpeg",
|
96
|
+
"spec/fixtures/images/DEMO_002_Powerstation.jpg",
|
97
|
+
"spec/fixtures/images/DEMO_003_ror_mug.jpeg",
|
98
|
+
"spec/fixtures/images/DEMO_004_ror_ringer.jpeg",
|
99
|
+
"spec/fixtures/interact_models_db.sqlite",
|
100
|
+
"spec/fixtures/negative/SpreeProdMiss1Mandatory.csv",
|
101
|
+
"spec/fixtures/negative/SpreeProdMiss1Mandatory.xls",
|
102
|
+
"spec/fixtures/negative/SpreeProdMissManyMandatory.csv",
|
103
|
+
"spec/fixtures/negative/SpreeProdMissManyMandatory.xls",
|
104
|
+
"spec/fixtures/simple_export_spec.xls",
|
105
|
+
"spec/fixtures/simple_template_spec.xls",
|
106
|
+
"spec/fixtures/spree/SpreeProducts.csv",
|
107
|
+
"spec/fixtures/spree/SpreeProducts.xls",
|
108
|
+
"spec/fixtures/spree/SpreeProductsMultiColumn.csv",
|
109
|
+
"spec/fixtures/spree/SpreeProductsMultiColumn.xls",
|
110
|
+
"spec/fixtures/spree/SpreeProductsSimple.csv",
|
111
|
+
"spec/fixtures/spree/SpreeProductsSimple.xls",
|
112
|
+
"spec/fixtures/spree/SpreeProductsWithImages.csv",
|
113
|
+
"spec/fixtures/spree/SpreeProductsWithImages.xls",
|
114
|
+
"spec/fixtures/spree/SpreeZoneExample.csv",
|
115
|
+
"spec/fixtures/spree/SpreeZoneExample.xls",
|
116
|
+
"spec/fixtures/test_model_defs.rb",
|
117
|
+
"spec/loader_spec.rb",
|
118
|
+
"spec/method_dictionary_spec.rb",
|
119
|
+
"spec/method_mapper_spec.rb",
|
120
|
+
"spec/spec_helper.rb",
|
121
|
+
"spec/spree_generator_spec.rb",
|
122
|
+
"spec/spree_loader_spec.rb",
|
123
|
+
"spec/spree_method_mapping_spec.rb",
|
124
|
+
"tasks/config/seed_fu_product_template.erb",
|
125
|
+
"tasks/config/tidy_config.txt",
|
126
|
+
"tasks/db_tasks.rake",
|
127
|
+
"tasks/excel_generator.rake",
|
128
|
+
"tasks/file_tasks.rake",
|
129
|
+
"tasks/import/csv.rake",
|
130
|
+
"tasks/import/excel.rake",
|
131
|
+
"tasks/spree/image_load.rake",
|
132
|
+
"tasks/spree/product_loader.rake",
|
133
|
+
"tasks/word_to_seedfu.rake",
|
134
|
+
"test/helper.rb",
|
135
|
+
"test/test_interact.rb"
|
136
|
+
]
|
137
|
+
s.homepage = "http://github.com/autotelik/datashift"
|
138
|
+
s.licenses = ["MIT"]
|
139
|
+
s.require_paths = ["lib"]
|
140
|
+
s.rubygems_version = "1.8.15"
|
141
|
+
s.summary = "Shift data betwen applications and Active Record"
|
142
|
+
|
143
|
+
if s.respond_to? :specification_version then
|
144
|
+
s.specification_version = 3
|
145
|
+
|
146
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
147
|
+
else
|
148
|
+
end
|
149
|
+
else
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|