Skip to content

Camelize consistently  #40

@TyJaYo

Description

@TyJaYo

I ran bundle exec rake onesie:new['blah_blah_blah_css'], which generated class BlahBlahBlahCss, which could not be found by the onesie runner, which was looking for BlahBlahBlahCSS. Can these be made consistent so the runner can always find the class?

Full trace:

BlahBlahBlahCSS: NameError uninitialized constant Onesie::Tasks::BlahBlahBlahCSS
Traceback (most recent call last):
        49: from /opt/rubies/ruby-2.7.8/bin/bundle:23:in `<main>'
        48: from /opt/rubies/ruby-2.7.8/bin/bundle:23:in `load'
        47: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/exe/bundle:36:in `<top (required)>'
        46: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
        45: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/exe/bundle:48:in `block in <top (required)>'
        44: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/cli.rb:25:in `start'
        43: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        42: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/cli.rb:31:in `dispatch'
        41: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        40: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        39: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        38: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/cli.rb:483:in `exec'
        37: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/cli/exec.rb:23:in `run'
        36: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/cli/exec.rb:58:in `kernel_load'
        35: from /opt/rubies/ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.3.18/lib/bundler/cli/exec.rb:58:in `load'
        34: from /usr/local/bundle/bin/rake:23:in `<top (required)>'
        33: from /usr/local/bundle/bin/rake:23:in `load'
        32: from /usr/local/bundle/gems/rake-13.1.0/exe/rake:27:in `<top (required)>'
        31: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/application.rb:80:in `run'
        30: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/application.rb:208:in `standard_exception_handling'
        29: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/application.rb:83:in `block in run'
        28: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/application.rb:132:in `top_level'
        27: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/application.rb:147:in `run_with_threads'
        26: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/application.rb:138:in `block in top_level'
        25: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/application.rb:138:in `each'
        24: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/application.rb:138:in `block (2 levels) in top_level'
        23: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/application.rb:182:in `invoke_task'
        22: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:188:in `invoke'
        21: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:199:in `invoke_with_call_chain'
        20: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:199:in `synchronize'
        19: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
        18: from /usr/local/bundle/gems/airbrake-13.0.2/lib/airbrake/rake.rb:17:in `execute'
        17: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:279:in `execute'
        16: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:279:in `each'
        15: from /usr/local/bundle/gems/rake-13.1.0/lib/rake/task.rb:279:in `block in execute'
        14: from /usr/local/bundle/bundler/gems/onesie-29a19b95c79e/lib/onesie/tasks/onesie.rake:42:in `block (2 levels) in <main>'
        13: from /usr/local/bundle/bundler/gems/onesie-29a19b95c79e/lib/onesie/manager.rb:38:in `run_task'
        12: from /usr/local/bundle/bundler/gems/onesie-29a19b95c79e/lib/onesie/runner.rb:14:in `perform'
        11: from /usr/local/bundle/bundler/gems/onesie-29a19b95c79e/lib/onesie/runner.rb:26:in `perform'
        10: from /usr/local/bundle/bundler/gems/onesie-29a19b95c79e/lib/onesie/runner.rb:26:in `each'
         9: from /usr/local/bundle/bundler/gems/onesie-29a19b95c79e/lib/onesie/runner.rb:27:in `block in perform'
         8: from /usr/local/bundle/bundler/gems/onesie-29a19b95c79e/lib/onesie/task_proxy.rb:12:in `run'
         7: from /usr/local/bundle/bundler/gems/onesie-29a19b95c79e/lib/onesie/task_proxy.rb:21:in `task'
         6: from /usr/local/bundle/bundler/gems/onesie-29a19b95c79e/lib/onesie/task_proxy.rb:35:in `load_task'
         5: from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/core_ext/string/inflections.rb:68:in `constantize'
         4: from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/inflector/methods.rb:281:in `constantize'
         3: from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/inflector/methods.rb:281:in `inject'
         2: from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/inflector/methods.rb:281:in `each'
         1: from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/inflector/methods.rb:285:in `block in constantize'
/usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/inflector/methods.rb:285:in `const_get': uninitialized constant Onesie::Tasks::BlahBlahBlahCSS (NameError)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions