datashift 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -5
- data/Gemfile +28 -25
- data/LICENSE.txt +26 -26
- data/README.markdown +302 -285
- data/README.rdoc +19 -19
- data/Rakefile +93 -95
- data/VERSION +5 -5
- data/datashift.gemspec +162 -178
- data/lib/applications/jruby/jexcel_file.rb +396 -396
- data/lib/applications/jruby/word.rb +79 -79
- data/lib/datashift.rb +152 -113
- 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 +236 -236
- data/lib/datashift/method_mapper.rb +256 -256
- data/lib/generators/csv_generator.rb +36 -36
- data/lib/generators/excel_generator.rb +121 -121
- data/lib/generators/generator_base.rb +13 -13
- data/lib/helpers/core_ext/to_b.rb +24 -24
- data/lib/helpers/spree_helper.rb +131 -131
- 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 +154 -149
- data/lib/loaders/loader_base.rb +403 -331
- data/lib/loaders/spreadsheet_loader.rb +136 -136
- data/lib/loaders/spree/image_loader.rb +45 -45
- data/lib/loaders/spree/product_loader.rb +224 -224
- 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_generator_spec.rb +78 -78
- data/spec/excel_loader_spec.rb +204 -176
- data/spec/file_definitions.rb +141 -141
- data/spec/fixtures/.~lock.ProjectsSingleCategories.xls# +1 -0
- data/spec/fixtures/ProjectsDefaults.yml +29 -0
- data/spec/fixtures/config/database.yml +24 -24
- data/spec/fixtures/interact_models_db.sqlite +0 -0
- data/spec/fixtures/interact_spree_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/SpreeZoneExample.csv +5 -5
- data/spec/fixtures/test_model_defs.rb +57 -57
- data/spec/loader_spec.rb +120 -120
- data/spec/method_mapper_spec.rb +237 -237
- data/spec/spec_helper.rb +115 -115
- data/spec/spree_generator_spec.rb +64 -64
- data/spec/spree_loader_spec.rb +310 -310
- 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 -64
- 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 -66
- 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 +7 -38
- data/Gemfile.lock +0 -211
- data/bin/autospec +0 -16
- data/bin/convert_to_should_syntax +0 -16
- data/bin/erubis +0 -16
- data/bin/htmldiff +0 -16
- data/bin/jeweler +0 -16
- data/bin/ldiff +0 -16
- data/bin/nokogiri +0 -16
- data/bin/rackup +0 -16
- data/bin/rails +0 -16
- data/bin/rake +0 -16
- data/bin/rake2thor +0 -16
- data/bin/ri +0 -16
- data/bin/rspec +0 -16
- data/bin/spree +0 -16
- data/bin/thor +0 -16
- data/bin/tilt +0 -16
- data/bin/tt +0 -16
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,96 +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
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
require '
|
36
|
-
|
37
|
-
require '
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
gem.
|
43
|
-
gem.
|
44
|
-
gem.
|
45
|
-
gem.
|
46
|
-
gem.
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
test.
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
task
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
rdoc.
|
67
|
-
rdoc.
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
# 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
|
96
94
|
ENV['RAKE_COLUMNS'] = '180'
|
data/VERSION
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
0.0.
|
2
|
-
|
3
|
-
module DataShift
|
4
|
-
0.0.
|
5
|
-
end
|
1
|
+
0.0.2
|
2
|
+
|
3
|
+
module DataShift
|
4
|
+
VERSION=0.0.2
|
5
|
+
end
|
data/datashift.gemspec
CHANGED
@@ -1,178 +1,162 @@
|
|
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.0.
|
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.
|
16
|
-
|
17
|
-
"
|
18
|
-
"README.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"lib/
|
49
|
-
"lib/
|
50
|
-
"lib/
|
51
|
-
"lib/
|
52
|
-
"lib/
|
53
|
-
"lib/
|
54
|
-
"lib/
|
55
|
-
"lib/
|
56
|
-
"lib/
|
57
|
-
"lib/
|
58
|
-
"lib/
|
59
|
-
"lib/
|
60
|
-
"lib/
|
61
|
-
"lib/
|
62
|
-
"lib/
|
63
|
-
"lib/
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"spec/
|
83
|
-
"spec/
|
84
|
-
"spec/
|
85
|
-
"spec/
|
86
|
-
"spec/
|
87
|
-
"spec/
|
88
|
-
"spec/fixtures/
|
89
|
-
"spec/fixtures/
|
90
|
-
"spec/fixtures/
|
91
|
-
"spec/fixtures/
|
92
|
-
"spec/fixtures/
|
93
|
-
"spec/fixtures/
|
94
|
-
"spec/fixtures/
|
95
|
-
"spec/
|
96
|
-
"spec/
|
97
|
-
"spec/
|
98
|
-
"spec/
|
99
|
-
"spec/
|
100
|
-
"spec/
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"
|
104
|
-
"
|
105
|
-
"
|
106
|
-
"
|
107
|
-
"
|
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
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
s.
|
141
|
-
s.
|
142
|
-
s.
|
143
|
-
s.
|
144
|
-
s.
|
145
|
-
s.
|
146
|
-
s.
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
end
|
164
|
-
else
|
165
|
-
s.add_dependency(%q<rails>, ["= 3.1.3"])
|
166
|
-
s.add_dependency(%q<activerecord>, ["= 3.1.3"])
|
167
|
-
s.add_dependency(%q<activesupport>, ["= 3.1.3"])
|
168
|
-
s.add_dependency(%q<jruby-openssl>, [">= 0"])
|
169
|
-
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
170
|
-
s.add_dependency(%q<spree>, ["= 0.70.3"])
|
171
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
172
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
173
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
174
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
175
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
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.0.2"
|
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-12"
|
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
|
+
"Gemfile",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.markdown",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"datashift-0.0.2.gem",
|
29
|
+
"datashift.gemspec",
|
30
|
+
"lib/applications/jruby/jexcel_file.rb",
|
31
|
+
"lib/applications/jruby/word.rb",
|
32
|
+
"lib/datashift.rb",
|
33
|
+
"lib/datashift/exceptions.rb",
|
34
|
+
"lib/datashift/file_definitions.rb",
|
35
|
+
"lib/datashift/mapping_file_definitions.rb",
|
36
|
+
"lib/datashift/method_detail.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
|
+
"spec/csv_loader_spec.rb",
|
65
|
+
"spec/datashift_spec.rb",
|
66
|
+
"spec/db/migrate/20110803201325_create_test_bed.rb",
|
67
|
+
"spec/excel_generator_spec.rb",
|
68
|
+
"spec/excel_loader_spec.rb",
|
69
|
+
"spec/file_definitions.rb",
|
70
|
+
"spec/fixtures/.~lock.ProjectsSingleCategories.xls#",
|
71
|
+
"spec/fixtures/BadAssociationName.xls",
|
72
|
+
"spec/fixtures/DemoNegativeTesting.xls",
|
73
|
+
"spec/fixtures/ProjectsDefaults.yml",
|
74
|
+
"spec/fixtures/ProjectsMultiCategories.xls",
|
75
|
+
"spec/fixtures/ProjectsSingleCategories.xls",
|
76
|
+
"spec/fixtures/SimpleProjects.xls",
|
77
|
+
"spec/fixtures/config/database.yml",
|
78
|
+
"spec/fixtures/interact_models_db.sqlite",
|
79
|
+
"spec/fixtures/interact_spree_db.sqlite",
|
80
|
+
"spec/fixtures/negative/SpreeProdMiss1Mandatory.csv",
|
81
|
+
"spec/fixtures/negative/SpreeProdMiss1Mandatory.xls",
|
82
|
+
"spec/fixtures/negative/SpreeProdMissManyMandatory.csv",
|
83
|
+
"spec/fixtures/negative/SpreeProdMissManyMandatory.xls",
|
84
|
+
"spec/fixtures/simple_export_spec.xls",
|
85
|
+
"spec/fixtures/simple_template_spec.xls",
|
86
|
+
"spec/fixtures/spree/SpreeProducts.csv",
|
87
|
+
"spec/fixtures/spree/SpreeProducts.xls",
|
88
|
+
"spec/fixtures/spree/SpreeProductsMultiColumn.csv",
|
89
|
+
"spec/fixtures/spree/SpreeProductsMultiColumn.xls",
|
90
|
+
"spec/fixtures/spree/SpreeProductsSimple.csv",
|
91
|
+
"spec/fixtures/spree/SpreeProductsSimple.xls",
|
92
|
+
"spec/fixtures/spree/SpreeZoneExample.csv",
|
93
|
+
"spec/fixtures/spree/SpreeZoneExample.xls",
|
94
|
+
"spec/fixtures/test_model_defs.rb",
|
95
|
+
"spec/loader_spec.rb",
|
96
|
+
"spec/method_mapper_spec.rb",
|
97
|
+
"spec/spec_helper.rb",
|
98
|
+
"spec/spree_generator_spec.rb",
|
99
|
+
"spec/spree_loader_spec.rb",
|
100
|
+
"spec/spree_method_mapping_spec.rb",
|
101
|
+
"tasks/config/seed_fu_product_template.erb",
|
102
|
+
"tasks/config/tidy_config.txt",
|
103
|
+
"tasks/db_tasks.rake",
|
104
|
+
"tasks/excel_generator.rake",
|
105
|
+
"tasks/file_tasks.rake",
|
106
|
+
"tasks/import/csv.rake",
|
107
|
+
"tasks/import/excel.rake",
|
108
|
+
"tasks/spree/image_load.rake",
|
109
|
+
"tasks/spree/product_loader.rake",
|
110
|
+
"tasks/word_to_seedfu.rake",
|
111
|
+
"test/helper.rb",
|
112
|
+
"test/test_interact.rb"
|
113
|
+
]
|
114
|
+
s.homepage = "http://github.com/autotelik/datashift"
|
115
|
+
s.licenses = ["MIT"]
|
116
|
+
s.require_paths = ["lib"]
|
117
|
+
s.rubygems_version = "1.8.15"
|
118
|
+
s.summary = "Shift data betwen applications and Active Record"
|
119
|
+
|
120
|
+
if s.respond_to? :specification_version then
|
121
|
+
s.specification_version = 3
|
122
|
+
|
123
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
124
|
+
s.add_development_dependency(%q<rails>, ["= 3.1.3"])
|
125
|
+
s.add_development_dependency(%q<activerecord>, ["= 3.1.3"])
|
126
|
+
s.add_development_dependency(%q<activesupport>, ["= 3.1.3"])
|
127
|
+
s.add_development_dependency(%q<jruby-openssl>, [">= 0"])
|
128
|
+
s.add_development_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
129
|
+
s.add_development_dependency(%q<spree>, ["= 0.70.3"])
|
130
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
131
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
132
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
133
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
134
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
135
|
+
else
|
136
|
+
s.add_dependency(%q<rails>, ["= 3.1.3"])
|
137
|
+
s.add_dependency(%q<activerecord>, ["= 3.1.3"])
|
138
|
+
s.add_dependency(%q<activesupport>, ["= 3.1.3"])
|
139
|
+
s.add_dependency(%q<jruby-openssl>, [">= 0"])
|
140
|
+
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
141
|
+
s.add_dependency(%q<spree>, ["= 0.70.3"])
|
142
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
143
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
144
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
145
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
146
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
147
|
+
end
|
148
|
+
else
|
149
|
+
s.add_dependency(%q<rails>, ["= 3.1.3"])
|
150
|
+
s.add_dependency(%q<activerecord>, ["= 3.1.3"])
|
151
|
+
s.add_dependency(%q<activesupport>, ["= 3.1.3"])
|
152
|
+
s.add_dependency(%q<jruby-openssl>, [">= 0"])
|
153
|
+
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
154
|
+
s.add_dependency(%q<spree>, ["= 0.70.3"])
|
155
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
156
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
157
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
158
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
159
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|