No description or website provided.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
mrblib
test
.gitignore
.travis.yml
.travis_build_config.rb
LICENSE
README.md
Rakefile
mrbgem.rake

README.md

mruby-versioncmp Build Status

VersionCmp class

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem github: 'hfm/mruby-versioncmp'
end

example

v1 = VersionCmp.new("1.0.0")
v2 = VersionCmp.new("1.0.1")

if v1 < v2
  p "v1 is smaller than v2"
else
  p "v1 is bigger than v2"
end

License

under the MIT License:

  • see LICENSE file