motion-objc-runtime 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,10 +1,8 @@
1
1
  # motion-objc-runtime
2
2
 
3
3
  motion-objc-runtime exposes the Objective-C runtime API. This allows
4
- RubyMotion access building blocks necessary to provide the
5
- metaprogramming capabilities currently lacking in RubyMotion. By
6
- exposing the ObjC runtime, `define_method` and other metaprogramming
7
- staples can be enabled for RubyMotion apps.
4
+ RubyMotion to access building blocks necessary to perform advanced
5
+ metaprogramming capabilities in RubyMotion.
8
6
 
9
7
  The Objective-C runtime is exposed the same way RubyMotion exposes C
10
8
  functions from UIKit and other iOS frameworks, via BrideSupport files
@@ -32,16 +32,16 @@ end
32
32
  #
33
33
  # This depends on the RubyMotion toolchain. If it changes structure,
34
34
  # the technique used here will break.
35
- class << Motion::Project::App
36
- real_setup = instance_method(:setup).bind(Motion::Project::App)
35
+ class Motion::Project::App
36
+ real_setup = method(:setup)
37
37
 
38
38
  # Define a new setup method that calls the real setup method and
39
39
  # then, if necessary, generate the bridgesupport file and add it to
40
40
  # the configuration.
41
- define_method :setup do |&block|
41
+ define_singleton_method(:setup) do |&block|
42
42
  real_setup.call(&block)
43
43
  generate_bridgesupport(config.variables)
44
- configs.each_value do |app|
44
+ @configs.each_value do |app|
45
45
  unless app.bridgesupport_files.include? BRIDGESUPPORT_FILE
46
46
  app.bridgesupport_files << BRIDGESUPPORT_FILE
47
47
  end
@@ -3,7 +3,7 @@ Gem::Specification.new do |gem|
3
3
  gem.name = 'motion-objc-runtime'
4
4
  gem.description = 'Exposes Objective-C runtime in RubyMotion'
5
5
  gem.homepage = "https://github.com/kastiglione/#{gem.name}"
6
- gem.version = '0.0.4'
6
+ gem.version = '0.0.5'
7
7
 
8
8
  gem.authors = ['Dave Lee']
9
9
  gem.email = ['dave@kastiglione.com']
@@ -13,9 +13,7 @@ Gem::Specification.new do |gem|
13
13
 
14
14
  gem.summary = <<-END.gsub(/^ +/, '')
15
15
  motion-objc-runtime exposes the Objective-C runtime API. This
16
- allows RubyMotion access building blocks necessary to provide the
17
- metaprogramming capabilities currently lacking in RubyMotion. By
18
- exposing the ObjC runtime, #define_method and other
19
- metaprogramming staples can be enabled for RubyMotion apps.
16
+ allows RubyMotion access building blocks necessary to provide
17
+ advanced metaprogramming capabilities in RubyMotion.
20
18
  END
21
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-objc-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-18 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Exposes Objective-C runtime in RubyMotion
15
15
  email:
@@ -47,8 +47,8 @@ rubyforge_project:
47
47
  rubygems_version: 1.8.24
48
48
  signing_key:
49
49
  specification_version: 3
50
- summary: ! 'motion-objc-runtime exposes the Objective-C runtime API. This allows RubyMotion
51
- access building blocks necessary to provide the metaprogramming capabilities currently
52
- lacking in RubyMotion. By exposing the ObjC runtime, #define_method and other metaprogramming
53
- staples can be enabled for RubyMotion apps.'
50
+ summary: motion-objc-runtime exposes the Objective-C runtime API. This allows RubyMotion
51
+ access building blocks necessary to provide advanced metaprogramming capabilities
52
+ in RubyMotion.
54
53
  test_files: []
54
+ has_rdoc: