fruit_to_lime 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  require 'fileutils'
2
2
  require 'tmpdir'
3
3
 
4
- def execute_command_with_success(cmd)
4
+ def execute_command_with_success_for_template(cmd, template)
5
5
  system(cmd)
6
6
  if ! $?.success?
7
7
  puts "Failed with #{$?}"
8
- raise "failed! #{cmd}"
8
+ raise "failed! #{cmd} for template #{template}"
9
9
  end
10
10
  end
11
11
 
@@ -29,7 +29,7 @@ describe 'Templating' do
29
29
  templating.list().each {|t|
30
30
  templating.unpack t, unpack_path
31
31
  Dir.chdir(File.expand_path(t, unpack_path)) do
32
- execute_command_with_success('rake spec')
32
+ execute_command_with_success_for_template('rake spec', t)
33
33
  end
34
34
  }
35
35
  end
@@ -21,7 +21,7 @@ class ToModel
21
21
 
22
22
  def to_model(organization_file_name)
23
23
  rootmodel = FruitToLime::RootModel.new
24
- configure model
24
+ configure rootmodel
25
25
  if organization_file_name != nil
26
26
  organization_file_data = File.open(organization_file_name, 'r').read.encode('UTF-8',"ISO-8859-1")
27
27
  rows = FruitToLime::CsvHelper::text_to_hashes(organization_file_data)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fruit_to_lime
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: