Skip to content
Browse files

Made modifications to allow tests to pass taking into account

path changes made in previous commit.
  • Loading branch information...
1 parent 9164d82 commit a045cea4d12022862d6233456cbeda9273687a86 @sxross committed
Showing with 4 additions and 16 deletions.
  1. +1 −0 .gitignore
  2. +2 −4 Rakefile
  3. +0 −12 lib/motion_model.rb
  4. +1 −0 motion_model.gemspec
View
1 .gitignore
@@ -6,3 +6,4 @@ resources/*.storyboardc
.DS_Store
doc/**/*.*
doc
+*.gem
View
6 Rakefile
@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
-# require 'rubygems'
-# require 'bundler'
-# Bundler.require
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.delegate_class = 'FakeDelegate'
- app.files = (app.files.select { |f| f =~ /app\/lib/ } + app.files).uniq
+ app.files = Dir.glob('./lib/motion_model/**/*.rb')
+ app.files = (Dir.glob('./app/**/*.rb') + app.files).uniq
end
View
12 lib/motion_model.rb
@@ -3,15 +3,3 @@
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")}
View
1 motion_model.gemspec
@@ -9,6 +9,7 @@ Gem::Specification.new do |gem|
gem.homepage = "https://github.com/sxross/MotionModel"
gem.files = `git ls-files`.split($\)
+ puts "gem files are #{`git ls-files`.split($\)}"
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "motion_model"
gem.require_paths = ["lib"]

0 comments on commit a045cea

Please sign in to comment.
Something went wrong with that request. Please try again.