motion-bundler | Use Ruby gems and mock require statements within RubyMotion | Data Migration library

 by   archan937 Ruby Version: Current License: MIT

kandi X-RAY | motion-bundler Summary

kandi X-RAY | motion-bundler Summary

motion-bundler is a Ruby library typically used in Migration, Data Migration applications. motion-bundler has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

RubyMotion has united two great programming communities: the Ruby and iOS community. We are no longer forced to develop native iOS applications (for iPhone and iPad) using Objective-C and XCode anymore because we can choose using Ruby with any kind of text editor. Ruby gives us a lot of benefits like the beauty and flexibility of the language. Also, the Ruby community is driven by its enormous amount of open source libraries which are packed as so called "Ruby gems". Bundler is the Ruby standard for managing all the gem dependencies used within a Ruby project. There are limitations though as you cannot use any random Ruby gem you want to. It either has to be RubyMotion aware (like BubbleWrap) or RubyMotion compatible (mostly when having as minimal gem dependencies as possible and not doing fancy Ruby stuff like code evaluation). Also, you cannot just require Ruby sources at runtime. You will have to specify them along with their mutual dependencies. This can give us a lot of headaches and so I have created a Ruby gem called MotionBundler. It will unobtrusively track and specify the required Ruby sources and their mutual dependencies of Ruby gems you want to use in your RubyMotion application.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              motion-bundler has a low active ecosystem.
              It has 103 star(s) with 11 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 6 open issues and 7 have been closed. On average issues are closed in 7 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of motion-bundler is current.

            kandi-Quality Quality

              motion-bundler has 0 bugs and 0 code smells.

            kandi-Security Security

              motion-bundler has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              motion-bundler code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              motion-bundler is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              motion-bundler releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              motion-bundler saves you 1972 person hours of effort in developing the same functionality from scratch.
              It has 4339 lines of code, 350 functions and 100 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed motion-bundler and discovered the below as its top functions. This is intended to give you an instant insight into motion-bundler implemented functionality, and help decide if they suit your requirements.
            • Determines the code for the given range .
            • Initiate the binary format .
            • Extracts a list of match codes .
            • Strip the block .
            • Tracks the given file
            • Write the output to the output buffer
            • Registers the files that are registered to be loaded .
            • Add a require to the list of dependencies .
            • Raise the command .
            Get all kandi verified functions for this library.

            motion-bundler Key Features

            No Key Features are available at this moment for motion-bundler.

            motion-bundler Examples and Code Snippets

            No Code Snippets are available at this moment for motion-bundler.

            Community Discussions

            Trending Discussions on motion-bundler

            QUESTION

            Can I use kindle-highlights gem with RubyMotion
            Asked 2017-Feb-16 at 00:49

            I'm trying to use kindle-highlights gem in RubyMotion. I found motion-bundler, that should help me bring these two together.

            According to FAQ from motion-bundler, not every gem will work.

            Can I use every random Ruby gem available?

            Unfortunately, no. You can only use Ruby gems which do not require libraries (e.g. psych.bundle) and do not use string evaluation at runtime (for instance using class_eval with a String).

            If I'm trying to use kindle-higlights I get the uninitialized constant error:

            (main)> 2017-02-14 10:13:41.606 HelloMotion[60710:1987881] app_delegate.rb:26:in `application:didFinishLaunchingWithOptions:': uninitialized constant AppDelegate::KindleHighlights (NameError) 2017-02-14 10:13:41.610 HelloMotion[60710:1987881] *** Terminating app due to uncaught exception 'NameError', reason: 'app_delegate.rb:26:in `application:didFinishLaunchingWithOptions:': uninitialized constant AppDelegate::KindleHighlights (NameError)

            So what i want to know is:

            • Can I use this gem?
            • Is this the error I should expect, if it is not meant to be?
            • Does "do not require libraries" mean, any library or just some, that kindle-highlights is using?
            • Any suggestions on how to proceed?
            ...

            ANSWER

            Answered 2017-Feb-16 at 00:49

            Couple of things:

            • Only gems that support Ruby 1.9 will work RubyMotion does not support newer versions of Ruby.
            • Gems that require a C-extension or depend on a Gem that requires a C-extension will not work
            • Gems with eval will not work

            motion-bundler is still a useful library and should help but the gem you want says it required Ruby 2.1.0, so I don't think it will work. If you want to try to make a gem RubyMotion compatible (without motion-bundler) you can try following this tutorial http://blog.motioninmotion.tv/gems-for-ruby-or-rubymotion/

            Source https://stackoverflow.com/questions/42223058

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install motion-bundler

            You need to setup your Gemfile by separating RubyMotion aware Ruby gems from the ones that are not. Put the RubyMotion unaware gems in the :motion Bundler group like this:.

            Support

            Please consult the GitHub repository Wiki pages for further information about MotionBundler.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/archan937/motion-bundler.git

          • CLI

            gh repo clone archan937/motion-bundler

          • sshUrl

            git@github.com:archan937/motion-bundler.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Data Migration Libraries

            Try Top Libraries by archan937

            templayed.js

            by archan937JavaScript

            csonv.js

            by archan937JavaScript

            ruby-mass

            by archan937Ruby

            topup

            by archan937JavaScript

            clickhouse

            by archan937JavaScript