Permalink
Browse files

Merge pull request #5 from tbugai/master

Convert the project to be a gem
  • Loading branch information...
2 parents ef37097 + dcc3ac7 commit 22e4471daea78f601ab1eedfd777051d759ccdf2 @jonathanpenn jonathanpenn committed Nov 19, 2012
View
@@ -1 +0,0 @@
-1.9.3-p194
View
@@ -1,3 +1,5 @@
source :rubygems
+gem 'rake'
gem 'kicker', '3.0.0pre1'
+gem 'motion_data', :path => '.'
View
@@ -1,3 +1,8 @@
+PATH
+ remote: ./
+ specs:
+ motion_data (0.0.3)
+
GEM
remote: http://rubygems.org/
specs:
@@ -8,6 +13,7 @@ GEM
rb-fchange (~> 0.0.5)
rb-fsevent (~> 0.9.1)
rb-inotify (~> 0.8.8)
+ rake (0.9.2.2)
rb-fchange (0.0.5)
ffi
rb-fsevent (0.9.1)
@@ -19,3 +25,5 @@ PLATFORMS
DEPENDENCIES
kicker (= 3.0.0pre1)
+ motion_data!
+ rake
View
@@ -5,19 +5,19 @@ Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'MotionData'
app.files = %w{
- app/schema.rb
- app/store_coordinator.rb
- app/context.rb
- app/predicate.rb
- app/managed_object.rb
- app/scope.rb
+ lib/motion-data/schema.rb
+ lib/motion-data/store_coordinator.rb
+ lib/motion-data/context.rb
+ lib/motion-data/predicate.rb
+ lib/motion-data/managed_object.rb
+ lib/motion-data/scope.rb
app/test_models.rb
app/app_delegate.rb
}
app.frameworks += %w{ CoreData }
- app.vendor_project('ext', :static)
+ app.vendor_project('vendor/motion-data/ext', :static)
end
task 'spec' do
View
@@ -1,22 +1,11 @@
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
+require 'motion_data'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'Recipes'
-
- app.files = %w{
- schema.rb
- store_coordinator.rb
- context.rb
- predicate.rb
- managed_object.rb
- scope.rb
- }.map { |f| "../../app/#{f}" } + Dir.glob('app/**/*.rb')
-
- app.frameworks += %w{ CoreData }
- app.vendor_project('../../ext', :static)
end
desc "Run app with Core Data SQLDebug enabled"
View
@@ -0,0 +1,13 @@
+Motion::Project::App.setup do |app|
+ %w{
+ scope.rb
+ managed_object.rb
+ predicate.rb
+ context.rb
+ store_coordinator.rb
+ schema.rb
+ }.map { |f| File.join(File.dirname(__FILE__), "motion_data/#{f}") }.each { |f| app.files.unshift(f) }
+
+ app.frameworks += %w{ CoreData }
+ app.vendor_project(File.expand_path(File.join(File.dirname(__FILE__), "../vendor/motion_data/ext")), :static)
+end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,3 @@
+module MotionData
+ VERSION = "0.0.3"
+end
View
@@ -0,0 +1,16 @@
+# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/motion_data/version', __FILE__)
+
+Gem::Specification.new do |gem|
+ gem.authors = ["alloy"]
+ gem.email = [""]
+ gem.description = "MotionData for RubyMotion"
+ gem.summary = "MotionData for RubyMotion"
+ gem.homepage = "http://github.com/alloy/MotionData"
+
+ gem.files = `git ls-files`.split($\)
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
+ gem.name = "motion_data"
+ gem.require_paths = ["lib"]
+ gem.version = MotionData::VERSION
+end
@@ -0,0 +1,3 @@
+#ifdef __OBJC__
+# import <UIKit/UIKit.h>
+#endif
Binary file not shown.
@@ -0,0 +1,29 @@
+<?xml version='1.0'?>
+<signatures version='1.0'>
+<class name='MotionDataManagedObjectBase'>
+<method selector='defineNamedScopeMethod:' class_method='true'>
+<arg index='0' name='name' type='@' declared_type='NSString*'/>
+<retval type='v' declared_type='void'/>
+</method>
+<method selector='definePropertyPredicateAccessor:' class_method='true'>
+<arg index='0' name='name' type='@' declared_type='NSString*'/>
+<retval type='v' declared_type='void'/>
+</method>
+<method selector='defineRelationshipMethod:' class_method='true'>
+<arg index='0' name='name' type='@' declared_type='NSString*'/>
+<retval type='v' declared_type='void'/>
+</method>
+<method selector='relationshipByName:'>
+<arg index='0' name='name' type='@' declared_type='NSString*'/>
+<retval type='@' declared_type='id'/>
+</method>
+<method selector='rubyBooleanValueForKey:'>
+<arg index='0' name='name' type='@' declared_type='NSString*'/>
+<retval type='@' declared_type='id'/>
+</method>
+<method selector='scopeByName:' class_method='true'>
+<arg index='0' name='name' type='@' declared_type='NSString*'/>
+<retval type='@' declared_type='id'/>
+</method>
+</class>
+</signatures>

0 comments on commit 22e4471

Please sign in to comment.