datashift 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/.document +5 -5
  2. data/Gemfile +28 -25
  3. data/LICENSE.txt +26 -26
  4. data/README.markdown +302 -285
  5. data/README.rdoc +19 -19
  6. data/Rakefile +93 -95
  7. data/VERSION +5 -5
  8. data/datashift.gemspec +162 -178
  9. data/lib/applications/jruby/jexcel_file.rb +396 -396
  10. data/lib/applications/jruby/word.rb +79 -79
  11. data/lib/datashift.rb +152 -113
  12. data/lib/datashift/exceptions.rb +11 -11
  13. data/lib/datashift/file_definitions.rb +353 -353
  14. data/lib/datashift/mapping_file_definitions.rb +87 -87
  15. data/lib/datashift/method_detail.rb +236 -236
  16. data/lib/datashift/method_mapper.rb +256 -256
  17. data/lib/generators/csv_generator.rb +36 -36
  18. data/lib/generators/excel_generator.rb +121 -121
  19. data/lib/generators/generator_base.rb +13 -13
  20. data/lib/helpers/core_ext/to_b.rb +24 -24
  21. data/lib/helpers/spree_helper.rb +131 -131
  22. data/lib/java/poi-3.7/LICENSE +507 -507
  23. data/lib/java/poi-3.7/NOTICE +21 -21
  24. data/lib/java/poi-3.7/RELEASE_NOTES.txt +115 -115
  25. data/lib/loaders/csv_loader.rb +98 -98
  26. data/lib/loaders/excel_loader.rb +154 -149
  27. data/lib/loaders/loader_base.rb +403 -331
  28. data/lib/loaders/spreadsheet_loader.rb +136 -136
  29. data/lib/loaders/spree/image_loader.rb +45 -45
  30. data/lib/loaders/spree/product_loader.rb +224 -224
  31. data/spec/csv_loader_spec.rb +30 -30
  32. data/spec/datashift_spec.rb +26 -26
  33. data/spec/db/migrate/20110803201325_create_test_bed.rb +85 -85
  34. data/spec/excel_generator_spec.rb +78 -78
  35. data/spec/excel_loader_spec.rb +204 -176
  36. data/spec/file_definitions.rb +141 -141
  37. data/spec/fixtures/.~lock.ProjectsSingleCategories.xls# +1 -0
  38. data/spec/fixtures/ProjectsDefaults.yml +29 -0
  39. data/spec/fixtures/config/database.yml +24 -24
  40. data/spec/fixtures/interact_models_db.sqlite +0 -0
  41. data/spec/fixtures/interact_spree_db.sqlite +0 -0
  42. data/spec/fixtures/negative/SpreeProdMiss1Mandatory.csv +4 -4
  43. data/spec/fixtures/negative/SpreeProdMissManyMandatory.csv +4 -4
  44. data/spec/fixtures/spree/SpreeProducts.csv +4 -4
  45. data/spec/fixtures/spree/SpreeProductsMultiColumn.csv +4 -4
  46. data/spec/fixtures/spree/SpreeProductsSimple.csv +4 -4
  47. data/spec/fixtures/spree/SpreeZoneExample.csv +5 -5
  48. data/spec/fixtures/test_model_defs.rb +57 -57
  49. data/spec/loader_spec.rb +120 -120
  50. data/spec/method_mapper_spec.rb +237 -237
  51. data/spec/spec_helper.rb +115 -115
  52. data/spec/spree_generator_spec.rb +64 -64
  53. data/spec/spree_loader_spec.rb +310 -310
  54. data/spec/spree_method_mapping_spec.rb +214 -214
  55. data/tasks/config/seed_fu_product_template.erb +15 -15
  56. data/tasks/config/tidy_config.txt +12 -12
  57. data/tasks/db_tasks.rake +65 -64
  58. data/tasks/excel_generator.rake +78 -78
  59. data/tasks/file_tasks.rake +36 -36
  60. data/tasks/import/csv.rake +49 -49
  61. data/tasks/import/excel.rake +71 -66
  62. data/tasks/spree/image_load.rake +108 -108
  63. data/tasks/spree/product_loader.rake +43 -43
  64. data/tasks/word_to_seedfu.rake +166 -166
  65. data/test/helper.rb +18 -18
  66. data/test/test_interact.rb +7 -7
  67. metadata +7 -38
  68. data/Gemfile.lock +0 -211
  69. data/bin/autospec +0 -16
  70. data/bin/convert_to_should_syntax +0 -16
  71. data/bin/erubis +0 -16
  72. data/bin/htmldiff +0 -16
  73. data/bin/jeweler +0 -16
  74. data/bin/ldiff +0 -16
  75. data/bin/nokogiri +0 -16
  76. data/bin/rackup +0 -16
  77. data/bin/rails +0 -16
  78. data/bin/rake +0 -16
  79. data/bin/rake2thor +0 -16
  80. data/bin/ri +0 -16
  81. data/bin/rspec +0 -16
  82. data/bin/spree +0 -16
  83. data/bin/thor +0 -16
  84. data/bin/tilt +0 -16
  85. 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
- File.read( File.join( 'VERSION') ).match(/.*(\d+.\d+.\d+)/)
25
-
26
- require 'rubygems'
27
- require 'bundler'
28
- begin
29
- Bundler.setup(:default, :development)
30
- rescue Bundler::BundlerError => e
31
- $stderr.puts e.message
32
- $stderr.puts "Run `bundle install` to install missing gems"
33
- exit e.status_code
34
- end
35
- require 'rake'
36
-
37
- require 'lib/datashift'
38
-
39
- require 'jeweler'
40
- Jeweler::Tasks.new do |gem|
41
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
42
- gem.name = DataShift.gem_name
43
- gem.homepage = "http://github.com/autotelik/datashift"
44
- gem.license = "MIT"
45
- gem.summary = %Q{ Shift data betwen applications and Active Record}
46
- gem.description = %Q{A suite of tools to move data between ActiveRecord models,databases,applications like Excel/Open Office, files and projects including Spree}
47
- gem.email = "rubygems@autotelik.co.uk"
48
- gem.authors = ["Thomas Statter"]
49
- # dependencies defined in Gemfile
50
- end
51
- Jeweler::RubygemsDotOrgTasks.new
52
-
53
- require 'rake/testtask'
54
- Rake::TestTask.new(:test) do |test|
55
- test.libs << 'lib' << 'test'
56
- test.pattern = 'test/**/test_*.rb'
57
- test.verbose = true
58
- end
59
-
60
- task :default => :test
61
-
62
- require 'rdoc/task'
63
- Rake::RDocTask.new do |rdoc|
64
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
65
-
66
- rdoc.rdoc_dir = 'rdoc'
67
- rdoc.title = "DataShift #{version}"
68
- rdoc.rdoc_files.include('README*')
69
- rdoc.rdoc_files.include('lib/**/*.rb')
70
- end
71
-
72
- # Add in our own Tasks
73
-
74
- desc 'Build gem and install in one step'
75
- task :build, :version do |t, args|
76
-
77
- v = (args[:version] || ENV['version'])
78
-
79
- # Bump the VERSION file in library
80
- File.open( File.join('VERSION'), 'w') do |f|
81
- f << "#{v}\n"
82
- end if v
83
-
84
- system("jruby -S gem build datashift.gemspec")
85
- #Rake::Task[:gem].invoke
86
-
87
- version = DataShift.gem_version
88
- puts "Installing version #{version}"
89
-
90
- gem = "#{DataShift.gem_name}-#{version}.gem"
91
- cmd = "jruby -S gem install --no-ri --no-rdoc #{gem}"
92
- system(cmd)
93
- end
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.1
2
-
3
- module DataShift
4
- 0.0.1
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.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-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.executables = ["autospec", "convert_to_should_syntax", "erubis", "htmldiff", "jeweler", "ldiff", "nokogiri", "rackup", "rails", "rake", "rake2thor", "ri", "rspec", "spree", "thor", "tilt", "tt"]
16
- s.extra_rdoc_files = [
17
- "LICENSE.txt",
18
- "README.markdown",
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- ".document",
23
- "Gemfile",
24
- "Gemfile.lock",
25
- "LICENSE.txt",
26
- "README.markdown",
27
- "README.rdoc",
28
- "Rakefile",
29
- "VERSION",
30
- "bin/autospec",
31
- "bin/convert_to_should_syntax",
32
- "bin/erubis",
33
- "bin/htmldiff",
34
- "bin/jeweler",
35
- "bin/ldiff",
36
- "bin/nokogiri",
37
- "bin/rackup",
38
- "bin/rails",
39
- "bin/rake",
40
- "bin/rake2thor",
41
- "bin/ri",
42
- "bin/rspec",
43
- "bin/spree",
44
- "bin/thor",
45
- "bin/tilt",
46
- "bin/tt",
47
- "datashift.gemspec",
48
- "lib/applications/jruby/jexcel_file.rb",
49
- "lib/applications/jruby/word.rb",
50
- "lib/datashift.rb",
51
- "lib/datashift/exceptions.rb",
52
- "lib/datashift/file_definitions.rb",
53
- "lib/datashift/mapping_file_definitions.rb",
54
- "lib/datashift/method_detail.rb",
55
- "lib/datashift/method_mapper.rb",
56
- "lib/generators/csv_generator.rb",
57
- "lib/generators/excel_generator.rb",
58
- "lib/generators/generator_base.rb",
59
- "lib/helpers/core_ext/to_b.rb",
60
- "lib/helpers/spree_helper.rb",
61
- "lib/java/poi-3.7/._poi-3.7-20101029.jar5645100390082102460.tmp",
62
- "lib/java/poi-3.7/LICENSE",
63
- "lib/java/poi-3.7/NOTICE",
64
- "lib/java/poi-3.7/RELEASE_NOTES.txt",
65
- "lib/java/poi-3.7/lib/commons-logging-1.1.jar",
66
- "lib/java/poi-3.7/lib/junit-3.8.1.jar",
67
- "lib/java/poi-3.7/lib/log4j-1.2.13.jar",
68
- "lib/java/poi-3.7/ooxml-lib/dom4j-1.6.1.jar",
69
- "lib/java/poi-3.7/ooxml-lib/geronimo-stax-api_1.0_spec-1.0.jar",
70
- "lib/java/poi-3.7/ooxml-lib/xmlbeans-2.3.0.jar",
71
- "lib/java/poi-3.7/poi-3.7-20101029.jar",
72
- "lib/java/poi-3.7/poi-examples-3.7-20101029.jar",
73
- "lib/java/poi-3.7/poi-ooxml-3.7-20101029.jar",
74
- "lib/java/poi-3.7/poi-ooxml-schemas-3.7-20101029.jar",
75
- "lib/java/poi-3.7/poi-scratchpad-3.7-20101029.jar",
76
- "lib/loaders/csv_loader.rb",
77
- "lib/loaders/excel_loader.rb",
78
- "lib/loaders/loader_base.rb",
79
- "lib/loaders/spreadsheet_loader.rb",
80
- "lib/loaders/spree/image_loader.rb",
81
- "lib/loaders/spree/product_loader.rb",
82
- "spec/csv_loader_spec.rb",
83
- "spec/datashift_spec.rb",
84
- "spec/db/migrate/20110803201325_create_test_bed.rb",
85
- "spec/excel_generator_spec.rb",
86
- "spec/excel_loader_spec.rb",
87
- "spec/file_definitions.rb",
88
- "spec/fixtures/BadAssociationName.xls",
89
- "spec/fixtures/DemoNegativeTesting.xls",
90
- "spec/fixtures/ProjectsMultiCategories.xls",
91
- "spec/fixtures/ProjectsSingleCategories.xls",
92
- "spec/fixtures/SimpleProjects.xls",
93
- "spec/fixtures/config/database.yml",
94
- "spec/fixtures/interact_models_db.sqlite",
95
- "spec/fixtures/interact_spree_db.sqlite",
96
- "spec/fixtures/negative/SpreeProdMiss1Mandatory.csv",
97
- "spec/fixtures/negative/SpreeProdMiss1Mandatory.xls",
98
- "spec/fixtures/negative/SpreeProdMissManyMandatory.csv",
99
- "spec/fixtures/negative/SpreeProdMissManyMandatory.xls",
100
- "spec/fixtures/simple_export_spec.xls",
101
- "spec/fixtures/simple_template_spec.xls",
102
- "spec/fixtures/spree/SpreeProducts.csv",
103
- "spec/fixtures/spree/SpreeProducts.xls",
104
- "spec/fixtures/spree/SpreeProductsMultiColumn.csv",
105
- "spec/fixtures/spree/SpreeProductsMultiColumn.xls",
106
- "spec/fixtures/spree/SpreeProductsSimple.csv",
107
- "spec/fixtures/spree/SpreeProductsSimple.xls",
108
- "spec/fixtures/spree/SpreeZoneExample.csv",
109
- "spec/fixtures/spree/SpreeZoneExample.xls",
110
- "spec/fixtures/test_model_defs.rb",
111
- "spec/loader_spec.rb",
112
- "spec/method_mapper_spec.rb",
113
- "spec/spec_helper.rb",
114
- "spec/spree_generator_spec.rb",
115
- "spec/spree_loader_spec.rb",
116
- "spec/spree_method_mapping_spec.rb",
117
- "tasks/config/seed_fu_product_template.erb",
118
- "tasks/config/tidy_config.txt",
119
- "tasks/db_tasks.rake",
120
- "tasks/excel_generator.rake",
121
- "tasks/file_tasks.rake",
122
- "tasks/import/csv.rake",
123
- "tasks/import/excel.rake",
124
- "tasks/spree/image_load.rake",
125
- "tasks/spree/product_loader.rake",
126
- "tasks/word_to_seedfu.rake",
127
- "test/helper.rb",
128
- "test/test_interact.rb"
129
- ]
130
- s.homepage = "http://github.com/autotelik/datashift"
131
- s.licenses = ["MIT"]
132
- s.require_paths = ["lib"]
133
- s.rubygems_version = "1.8.15"
134
- s.summary = "Shift data betwen applications and Active Record"
135
-
136
- if s.respond_to? :specification_version then
137
- s.specification_version = 3
138
-
139
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
140
- s.add_development_dependency(%q<rails>, ["= 3.1.3"])
141
- s.add_development_dependency(%q<activerecord>, ["= 3.1.3"])
142
- s.add_development_dependency(%q<activesupport>, ["= 3.1.3"])
143
- s.add_development_dependency(%q<jruby-openssl>, [">= 0"])
144
- s.add_development_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
145
- s.add_development_dependency(%q<spree>, ["= 0.70.3"])
146
- s.add_development_dependency(%q<rspec>, [">= 0"])
147
- s.add_development_dependency(%q<shoulda>, [">= 0"])
148
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
149
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
150
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
151
- else
152
- s.add_dependency(%q<rails>, ["= 3.1.3"])
153
- s.add_dependency(%q<activerecord>, ["= 3.1.3"])
154
- s.add_dependency(%q<activesupport>, ["= 3.1.3"])
155
- s.add_dependency(%q<jruby-openssl>, [">= 0"])
156
- s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
157
- s.add_dependency(%q<spree>, ["= 0.70.3"])
158
- s.add_dependency(%q<rspec>, [">= 0"])
159
- s.add_dependency(%q<shoulda>, [">= 0"])
160
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
161
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
162
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
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
+