Closed bhavinmdesai closed 6 years ago
@bhavinmdesai badge()
is the action that still exists in fastlane and is deprecated. Once you added the badge plugin to fastlane you'll have to change your code to use add_badge()
, as that's the action defined in the plugin you just installed.
I have a similar error when I download in my machine 'fastlane-plugin-badge' version 1.1.0 an execute rake
.
| ~/Dev/source/fastlane-plugin-badge-master | => rake ${HOME_DIR}/.rbenv/versions/2.5.1/bin/ruby -I${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rspec-support-3.8.0/lib:${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.0/lib ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.0/exe/rspec --pattern spec/**{,/*/**}/*_spec.rb
Fastlane::Actions::AddBadgeAction
prints a message (FAILED - 1)
Failures:
1) Fastlane::Actions::AddBadgeAction#run prints a message Failure/Error: Badge::Runner.new.run('.', options)
NameError:
uninitialized constant BadgeBridge::Bridge::Badge
Did you mean? BadgeBridge::Bridge
# ./lib/fastlane/plugin/badge/helper/badge_helper.rb:10:in 'run'
# ./lib/fastlane/plugin/badge/helper/badge_helper.rb:26:in 'run'
# ./lib/fastlane/plugin/badge/actions/add_badge_action.rb:6:in 'run'
# ./spec/badge_action_spec.rb:6:in 'block (3 levels) in <top (required)>'
Finished in 0.07637 seconds (files took 2.13 seconds to load) 1 example, 1 failure
Failed examples:
rspec ./spec/badge_action_spec.rb:3 # Fastlane::Actions::AddBadgeAction#run prints a message
${HOME_DIR}/.rbenv/versions/2.5.1/bin/ruby -I${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rspec-support-3.8.0/lib:${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.0/lib ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rspec-core-3.8.0/exe/rspec --pattern spec/**{,/*/**}/*_spec.rb failed
| ~/Dev/source/fastlane-plugin-badge-master | => gem list bad*
LOCAL GEMS
badge (0.9.1) fastlane-plugin-badge (1.1.0)
I am closing this since @tutipeti posted the answer. @elvin-vega Please create a new issue with a proper reproduction case so I can take a look at this issue.
Couple of issues:
Please Help! Thanks
Here is the output from Fastlane: