Sketchup::Version submodule beta 0.1.1

Moderator: Jim

Sketchup::Version submodule beta 0.1.1

Postby Dan Rathbun » Thu Jan 27, 2011 6:44 pm


Sketchup::Version submodule beta 0.1.1
sketchup_version_submodule.rb
See next post for module dictionary.


Call for critique, discussion, etc.


Issues:
  • Need max build numbers for each MR to set MAINT constant correctly.
~
0.1.1
  • Added corrections stated in 3rd post.
  • Corrected notes at start of file where examples referenced a method that was renamed float()
  • Corrected parts() method Examples for versions less than 6.
  • Added Examples for whole() method.
0
Last edited by Dan Rathbun on Thu Jan 27, 2011 10:19 pm, edited 1 time in total.
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    Re: Sketchup::Version submodule

    Postby Dan Rathbun » Thu Jan 27, 2011 6:45 pm


    Sketchup::Version submodule
    Module Dictionary

    SINGLETON METHODS

    module_release_date()
      Returns the release date of THIS module, in YYYY-MM-DD form.
    module_version()
      Returns the version of THIS module.


    CONSTANTS

    MAJOR
      Integer for major version number.
    MINOR
      Integer for minor version number.
    MAINT
      Integer for maintenance release number.
    BUILD
      Integer for build number.
    WHOLE
      Bignum Integer containing all version information in form:
      (MAJOR*1_000_000_000)+(MINOR*10_000_000)+(MAINT*100_000)+(BUILD)

    FIXED
      Float in form: (MAJOR*10_000)+(MINOR*100)+(MAINT)+(BUILD/100_000)
    FLOAT
      Float in form: MAJOR + (MINOR/100)
    SUVER
      Float in form: MAJOR.MINOR

    PARTS
      Array of Integer, in form [MAJOR,MINOR,MAINT,BUILD]
    TEXT
      String in form "MAJOR.MINOR.MAINT.BUILD".



    MODULE FUNCTIONS

    ARRAY METHODS

    parts() : Returns PARTS

    FLOAT METHODS

    fixed() : Returns FIXED
    float() : Returns FLOAT
    suver() : Returns SUVER
    ver() : (alias) Returns SUVER

    INTEGER METHODS

    build() : Returns BUILD
    maint() : Returns MAINT
    major() : Returns MAJOR
    minor() : Returns MINOR
    whole() : Returns WHOLE

    STRING METHODS

    text() : Returns TEXT
    0
      I'm not here much anymore. But a PM will fire email notifications.
      User avatar
      Dan Rathbun 
      PluginStore Author
      PluginStore Author
       

      Re: Sketchup::Version submodule beta 0.1.0

      Postby Dan Rathbun » Thu Jan 27, 2011 8:22 pm

      Line 171 I'll set to if BUILD > 4870 for now until I know for sure the max build number for 8.0M1

      Line 173 needs to be: elsif BUILD > 4005
      not if BUILD > 4005
      0
        I'm not here much anymore. But a PM will fire email notifications.
        User avatar
        Dan Rathbun 
        PluginStore Author
        PluginStore Author
         

        Re: Sketchup::Version submodule beta 0.1.1

        Postby Dan Rathbun » Fri Dec 21, 2012 3:41 am

        Made corrections, added Examples.

        Now beta ver 0.1.1
        0


        Last bumped by Dan Rathbun on Fri Dec 21, 2012 3:41 am.
          I'm not here much anymore. But a PM will fire email notifications.
          User avatar
          Dan Rathbun 
          PluginStore Author
          PluginStore Author
           

          SketchUcation One-Liner Adverts

          by Ad Machine » 5 minutes ago



          Ad Machine 
          Robot
           



           

          Return to Skx Extension Library

          Who is online

          Users browsing this forum: No registered users and 1 guest

          Visit our sponsors: