lauriii / drupalcores

A project to generate a list of core contributers
http://drupalcores.com
MIT License
27 stars 38 forks source link

Removed use of globals in companies.rb #47

Closed pcambra closed 9 years ago

lewisnyman commented 9 years ago

I'm getting the errors:

Message:
    Command failed: ./companies.rb:64:in `block in <main>': undefined local variable or method `companies_info' for main:Object (NameError)
    from ./companies.rb:61:in `each'
    from ./companies.rb:61:in `<main>'

Details:
    killed: false
    code: 1
    signal: null
    stdout: 
    stderr: ./companies.rb:64:in `block in <main>': undefined local variable or method `companies_info' for main:Object (NameError)
    from ./companies.rb:61:in `each'
    from ./companies.rb:61:in `<main>'

If this because companies_info is still being defined with a $?

if File.exists? ('../data/company_infos.yml')
  $companies_info = YAML::load_file('../data/company_infos.yml')
else
  $companies_info = Hash.new(0)
end
pcambra commented 9 years ago

I was trying the config folder vs data and reverted a few lines extra, sorry