Skip to content

Commit

Permalink
rearranged directory tree to gemify
Browse files Browse the repository at this point in the history
  • Loading branch information
sxross committed Aug 17, 2012
1 parent 462015e commit 9164d82
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/motion_model.rb
@@ -0,0 +1,17 @@
Motion::Project::App.setup do |app|
Dir.glob(File.join(File.dirname(__FILE__), "motion_model/**/*.rb")).each do |file|
app.files.unshift(file)
end
end

# Dir[File.join(File.dirname(__FILE__), 'nitron/data/model/**/*.rb')].each { |file| app.files.unshift(file) }
# Dir[File.join(File.dirname(__FILE__), 'nitron/data/relation/**/*.rb')].each { |file| app.files.unshift(file) }
#
# app.files.unshift(File.join(File.dirname(__FILE__), 'nitron/view_controller.rb'))
# app.files.unshift(File.join(File.dirname(__FILE__), 'nitron/ui/data_binding_support.rb'))
# app.files.unshift(File.join(File.dirname(__FILE__), 'nitron/ui/outlet_support.rb'))
# app.files.unshift(File.join(File.dirname(__FILE__), 'nitron/ui/action_support.rb'))
#
#
#
# %w(ext model validatable input_helpers).each{|file| require File.join(File.dirname(__FILE__), "app/lib/#{file}.rb")}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions lib/motion_model/version.rb
@@ -0,0 +1,3 @@
module MotionModel
VERSION = "0.1"
end
16 changes: 16 additions & 0 deletions motion_model.gemspec
@@ -0,0 +1,16 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/motion_model/version', __FILE__)

Gem::Specification.new do |gem|
gem.authors = ["Steve Ross"]
gem.email = ["sxross@gmail.com"]
gem.description = "Simple model and validation mixins for RubyMotion"
gem.summary = "Simple model and validation mixins for RubyMotion"
gem.homepage = "https://github.com/sxross/MotionModel"

gem.files = `git ls-files`.split($\)
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "motion_model"
gem.require_paths = ["lib"]
gem.version = MotionModel::VERSION
end

0 comments on commit 9164d82

Please sign in to comment.