datashift 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/.document +5 -0
  2. data/Gemfile +25 -0
  3. data/Gemfile.lock +211 -0
  4. data/LICENSE.txt +27 -0
  5. data/README.markdown +286 -0
  6. data/README.rdoc +19 -0
  7. data/Rakefile +96 -0
  8. data/VERSION +5 -0
  9. data/bin/autospec +16 -0
  10. data/bin/convert_to_should_syntax +16 -0
  11. data/bin/erubis +16 -0
  12. data/bin/htmldiff +16 -0
  13. data/bin/jeweler +16 -0
  14. data/bin/ldiff +16 -0
  15. data/bin/nokogiri +16 -0
  16. data/bin/rackup +16 -0
  17. data/bin/rails +16 -0
  18. data/bin/rake +16 -0
  19. data/bin/rake2thor +16 -0
  20. data/bin/ri +16 -0
  21. data/bin/rspec +16 -0
  22. data/bin/spree +16 -0
  23. data/bin/thor +16 -0
  24. data/bin/tilt +16 -0
  25. data/bin/tt +16 -0
  26. data/datashift.gemspec +178 -0
  27. data/lib/applications/jruby/jexcel_file.rb +397 -0
  28. data/lib/applications/jruby/word.rb +79 -0
  29. data/lib/datashift.rb +114 -0
  30. data/lib/datashift/exceptions.rb +12 -0
  31. data/lib/datashift/file_definitions.rb +353 -0
  32. data/lib/datashift/mapping_file_definitions.rb +88 -0
  33. data/lib/datashift/method_detail.rb +237 -0
  34. data/lib/datashift/method_mapper.rb +257 -0
  35. data/lib/generators/csv_generator.rb +36 -0
  36. data/lib/generators/excel_generator.rb +122 -0
  37. data/lib/generators/generator_base.rb +14 -0
  38. data/lib/helpers/core_ext/to_b.rb +24 -0
  39. data/lib/helpers/spree_helper.rb +131 -0
  40. data/lib/java/poi-3.7/._poi-3.7-20101029.jar5645100390082102460.tmp +0 -0
  41. data/lib/java/poi-3.7/LICENSE +507 -0
  42. data/lib/java/poi-3.7/NOTICE +21 -0
  43. data/lib/java/poi-3.7/RELEASE_NOTES.txt +115 -0
  44. data/lib/java/poi-3.7/lib/commons-logging-1.1.jar +0 -0
  45. data/lib/java/poi-3.7/lib/junit-3.8.1.jar +0 -0
  46. data/lib/java/poi-3.7/lib/log4j-1.2.13.jar +0 -0
  47. data/lib/java/poi-3.7/ooxml-lib/dom4j-1.6.1.jar +0 -0
  48. data/lib/java/poi-3.7/ooxml-lib/geronimo-stax-api_1.0_spec-1.0.jar +0 -0
  49. data/lib/java/poi-3.7/ooxml-lib/xmlbeans-2.3.0.jar +0 -0
  50. data/lib/java/poi-3.7/poi-3.7-20101029.jar +0 -0
  51. data/lib/java/poi-3.7/poi-examples-3.7-20101029.jar +0 -0
  52. data/lib/java/poi-3.7/poi-ooxml-3.7-20101029.jar +0 -0
  53. data/lib/java/poi-3.7/poi-ooxml-schemas-3.7-20101029.jar +0 -0
  54. data/lib/java/poi-3.7/poi-scratchpad-3.7-20101029.jar +0 -0
  55. data/lib/loaders/csv_loader.rb +99 -0
  56. data/lib/loaders/excel_loader.rb +150 -0
  57. data/lib/loaders/loader_base.rb +332 -0
  58. data/lib/loaders/spreadsheet_loader.rb +137 -0
  59. data/lib/loaders/spree/image_loader.rb +46 -0
  60. data/lib/loaders/spree/product_loader.rb +225 -0
  61. data/spec/csv_loader_spec.rb +31 -0
  62. data/spec/datashift_spec.rb +27 -0
  63. data/spec/db/migrate/20110803201325_create_test_bed.rb +85 -0
  64. data/spec/excel_generator_spec.rb +79 -0
  65. data/spec/excel_loader_spec.rb +177 -0
  66. data/spec/file_definitions.rb +141 -0
  67. data/spec/fixtures/BadAssociationName.xls +0 -0
  68. data/spec/fixtures/DemoNegativeTesting.xls +0 -0
  69. data/spec/fixtures/ProjectsMultiCategories.xls +0 -0
  70. data/spec/fixtures/ProjectsSingleCategories.xls +0 -0
  71. data/spec/fixtures/SimpleProjects.xls +0 -0
  72. data/spec/fixtures/config/database.yml +25 -0
  73. data/spec/fixtures/interact_models_db.sqlite +0 -0
  74. data/spec/fixtures/interact_spree_db.sqlite +0 -0
  75. data/spec/fixtures/negative/SpreeProdMiss1Mandatory.csv +4 -0
  76. data/spec/fixtures/negative/SpreeProdMiss1Mandatory.xls +0 -0
  77. data/spec/fixtures/negative/SpreeProdMissManyMandatory.csv +4 -0
  78. data/spec/fixtures/negative/SpreeProdMissManyMandatory.xls +0 -0
  79. data/spec/fixtures/simple_export_spec.xls +0 -0
  80. data/spec/fixtures/simple_template_spec.xls +0 -0
  81. data/spec/fixtures/spree/SpreeProducts.csv +4 -0
  82. data/spec/fixtures/spree/SpreeProducts.xls +0 -0
  83. data/spec/fixtures/spree/SpreeProductsMultiColumn.csv +4 -0
  84. data/spec/fixtures/spree/SpreeProductsMultiColumn.xls +0 -0
  85. data/spec/fixtures/spree/SpreeProductsSimple.csv +4 -0
  86. data/spec/fixtures/spree/SpreeProductsSimple.xls +0 -0
  87. data/spec/fixtures/spree/SpreeZoneExample.csv +5 -0
  88. data/spec/fixtures/spree/SpreeZoneExample.xls +0 -0
  89. data/spec/fixtures/test_model_defs.rb +57 -0
  90. data/spec/loader_spec.rb +121 -0
  91. data/spec/method_mapper_spec.rb +238 -0
  92. data/spec/spec_helper.rb +116 -0
  93. data/spec/spree_generator_spec.rb +65 -0
  94. data/spec/spree_loader_spec.rb +311 -0
  95. data/spec/spree_method_mapping_spec.rb +215 -0
  96. data/tasks/config/seed_fu_product_template.erb +15 -0
  97. data/tasks/config/tidy_config.txt +13 -0
  98. data/tasks/db_tasks.rake +65 -0
  99. data/tasks/excel_generator.rake +79 -0
  100. data/tasks/file_tasks.rake +37 -0
  101. data/tasks/import/csv.rake +50 -0
  102. data/tasks/import/excel.rake +67 -0
  103. data/tasks/spree/image_load.rake +109 -0
  104. data/tasks/spree/product_loader.rake +44 -0
  105. data/tasks/word_to_seedfu.rake +167 -0
  106. data/test/helper.rb +18 -0
  107. data/test/test_interact.rb +7 -0
  108. metadata +301 -0
data/README.rdoc ADDED
@@ -0,0 +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
+
data/Rakefile ADDED
@@ -0,0 +1,96 @@
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
96
+ ENV['RAKE_COLUMNS'] = '180'
data/VERSION ADDED
@@ -0,0 +1,5 @@
1
+ 0.0.1
2
+
3
+ module DataShift
4
+ 0.0.1
5
+ end
data/bin/autospec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'autospec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec-core', 'autospec')
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'convert_to_should_syntax' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('shoulda', 'convert_to_should_syntax')
data/bin/erubis ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'erubis' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('erubis', 'erubis')
data/bin/htmldiff ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'htmldiff' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('diff-lcs', 'htmldiff')
data/bin/jeweler ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'jeweler' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('jeweler', 'jeweler')
data/bin/ldiff ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'ldiff' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('diff-lcs', 'ldiff')
data/bin/nokogiri ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'nokogiri' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('nokogiri', 'nokogiri')
data/bin/rackup ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rackup' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rack', 'rackup')
data/bin/rails ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rails' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rails', 'rails')
data/bin/rake ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rake', 'rake')
data/bin/rake2thor ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake2thor' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('thor', 'rake2thor')
data/bin/ri ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'ri' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rdoc', 'ri')
data/bin/rspec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rspec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec-core', 'rspec')
data/bin/spree ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'spree' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('spree', 'spree')
data/bin/thor ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'thor' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('thor', 'thor')
data/bin/tilt ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'tilt' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('tilt', 'tilt')
data/bin/tt ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'tt' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('treetop', 'tt')
data/datashift.gemspec ADDED
@@ -0,0 +1,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.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
+