Module: Mutant::License Private
- Defined in:
- lib/mutant/license.rb,
lib/mutant/license/subscription.rb,
lib/mutant/license/subscription/commercial.rb,
lib/mutant/license/subscription/opensource.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: Subscription
Constant Summary collapse
- NAME =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'mutant-license'- VERSION =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'~> 0.1.0'- SLEEP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
40- UNLICENSED =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
IceNine.deep_freeze( [ "Soft fail, continuing in #{SLEEP} seconds", 'Next major version will enforce the license', 'See https://github.com/mbj/mutant#licensing' ] )
Class Method Summary collapse
- .apply(world) ⇒ Object private
- .load_mutant_license(world) ⇒ Object private
- .unlicensed(message) ⇒ Object private
Class Method Details
.apply(world) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/mutant/license.rb', line 18 def self.apply(world) soft_fail(world, license_result(world)) end |
.load_mutant_license(world) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 46 47 |
# File 'lib/mutant/license.rb', line 43 def self.load_mutant_license(world) Either .wrap_error(LoadError) { world.gem_method.call(NAME, VERSION) } .lmap(&method(:unlicensed)) end |
.unlicensed(message) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
49 50 51 |
# File 'lib/mutant/license.rb', line 49 def self.unlicensed() "[Mutant-License-Error]: #{message}" end |