Permalink
Browse files

Initial commit

  • Loading branch information...
Paul Engel
Paul Engel committed Jan 18, 2013
0 parents commit 7d35a6d846d85bbb3c631fba89a138c4dcc90762
Showing with 175 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +5 −0 CHANGELOG.rdoc
  3. +18 −0 Gemfile
  4. +20 −0 MIT-LICENSE
  5. +37 −0 README.md
  6. +9 −0 Rakefile
  7. +1 −0 VERSION
  8. +28 −0 lib/lock-o-motion.rb
  9. +7 −0 lib/lock-o-motion/version.rb
  10. +16 −0 lock-o-motion.gemspec
  11. +8 −0 script/console
  12. +7 −0 test/test_helper.rb
  13. +13 −0 test/unit/test_lock-o-motion.rb
@@ -0,0 +1,6 @@
+.DS_Store
+.bundle
+.rvmrc
+Gemfile.lock
+doc
+pkg
@@ -0,0 +1,5 @@
+= LockOMotion CHANGELOG
+
+== Version 0.1.0 (January xx, 2013)
+
+* Initial release
18 Gemfile
@@ -0,0 +1,18 @@
+source "http://rubygems.org"
+
+gemspec
+
+group :gem_default do
+ gem "lock-o-motion", :path => "."
+end
+
+group :gem_development do
+ gem "pry"
+end
+
+group :gem_test do
+ gem "minitest"
+ gem "mocha"
+ gem "pry"
+ gem "rake"
+end
@@ -0,0 +1,20 @@
+Copyright (c) 2012 Paul Engel
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,37 @@
+# LockOMotion
+
+Require RubyGems (including their dependencies) within RubyMotion Apps
+
+## Introduction
+
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+## Installation
+
+### Add `LockOMotion` to your Gemfile
+
+ gem "lock-o-motion"
+
+### Install the gem dependencies
+
+ $ bundle
+
+## Usage
+
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+## Contact me
+
+For support, remarks and requests, please mail me at [paul.engel@holder.nl](mailto:paul.engel@holder.nl).
+
+## License
+
+Copyright (c) 2012 Paul Engel, released under the MIT license
+
+[http://holder.nl](http://holder.nl) - [http://codehero.es](http://codehero.es) - [http://gettopup.com](http://gettopup.com) - [http://github.com/archan937](http://github.com/archan937) - [http://twitter.com/archan937](http://twitter.com/archan937) - [paul.engel@holder.nl](mailto:paul.engel@holder.nl)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,9 @@
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
+require "rake/testtask"
+
+task :default => :test
+
+Rake::TestTask.new do |test|
+ test.pattern = "test/**/test_*.rb"
+end
@@ -0,0 +1 @@
+0.1.0
@@ -0,0 +1,28 @@
+require "fileutils"
+require "lock-o-motion/version"
+
+module LockOMotion
+ extend self
+
+ def setup
+ unless defined?(Motion::Project::Config)
+ raise "This file must be required within a RubyMotion project Rakefile."
+ end
+
+ Motion::Project::App.setup do |app|
+ Dir["vendor/motion/*/lib/**/*.rb"].each do |file|
+ app.files.unshift file
+ end
+ end
+ end
+
+ # TODO: Provide as Rake task
+ def bundle
+ `bundle install --path vendor/motion/tmp --without development test`
+ Dir["vendor/motion/tmp/ruby/*/gems/*"].each do |dir|
+ FileUtils.mv dir, "vendor/motion"
+ end
+ FileUtils.rm_rf "vendor/motion/tmp"
+ end
+
+end
@@ -0,0 +1,7 @@
+module LockOMotion #:nodoc:
+ MAJOR = 0
+ MINOR = 1
+ TINY = 0
+
+ VERSION = [MAJOR, MINOR, TINY].join(".")
+end
@@ -0,0 +1,16 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |gem|
+ gem.authors = ["Paul Engel"]
+ gem.email = ["paul.engel@holder.nl"]
+ gem.summary = %q{Require RubyGems (including their dependencies) within RubyMotion Apps}
+ gem.description = %q{Require RubyGems (including their dependencies) within RubyMotion Apps}
+ gem.homepage = "https://github.com/archan937/lock-o-motion"
+
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.name = "lock-o-motion"
+ gem.require_paths = ["lib"]
+ gem.version = "0.1.0"
+end
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+require "rubygems"
+require "bundler"
+
+Bundler.require :gem_default, :gem_development
+
+puts "Loading LockOMotion development environment (#{LockOMotion::VERSION})"
+Pry.start
@@ -0,0 +1,7 @@
+require "rubygems"
+require "bundler"
+
+require "minitest/unit"
+require "minitest/autorun"
+
+Bundler.require :gem_default, :gem_test
@@ -0,0 +1,13 @@
+require File.expand_path("../../test_helper", __FILE__)
+
+module Unit
+ class TestLockOMotion < MiniTest::Unit::TestCase
+
+ describe LockOMotion do
+ it "should work" do
+ assert true
+ end
+ end
+
+ end
+end

0 comments on commit 7d35a6d

Please sign in to comment.