motion-wiretap 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ unless defined?(Motion::Project::Config)
2
+ raise "The motion-wiretap gem must be required within a RubyMotion project Rakefile."
3
+ end
4
+
5
+
6
+ Motion::Project::App.setup do |app|
7
+ # scans app.files until it finds app/ (the default)
8
+ # if found, it inserts just before those files, otherwise it will insert to
9
+ # the end of the list
10
+ insert_point = app.files.find_index { |file| file =~ /^(?:\.\/)?app\// } || 0
11
+
12
+ app.files.insert(insert_point, File.join(File.dirname(__FILE__), "motion-wiretap/version.rb"))
13
+ app.files.insert(insert_point, *Dir.glob(File.join(File.dirname(__FILE__), "motion-wiretap/#{app.template.to_s}/*.rb")))
14
+ app.files.insert(insert_point, *Dir.glob(File.join(File.dirname(__FILE__), "motion-wiretap/all/*.rb")))
15
+ end
@@ -1,5 +1,4 @@
1
1
  class NSObject
2
- attr_accessor :motion_wiretap_observers
3
2
 
4
3
  def wiretap(property, &block)
5
4
  MotionWiretap::WiretapKvo.new(self, property, &block)
@@ -1,3 +1,3 @@
1
1
  module MotionWiretap
2
- Version = '0.2.0'
2
+ Version = '0.2.1'
3
3
  end
@@ -23,7 +23,7 @@ DESC
23
23
 
24
24
  gem.homepage = 'https://github.com/colinta/motion-wiretap'
25
25
 
26
- gem.files = Dir.glob('lib/motion-wiretap/**/*.rb') + ['README.md', 'motion-wiretap.gemspec']
26
+ gem.files = Dir.glob('lib/**/*.rb') + ['README.md', 'motion-wiretap.gemspec']
27
27
  gem.test_files = gem.files.grep(%r{^spec/})
28
28
 
29
29
  gem.require_paths = ['lib']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-wiretap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -47,6 +47,7 @@ files:
47
47
  - lib/motion-wiretap/osx/wiretap_exts_osx.rb
48
48
  - lib/motion-wiretap/osx/wiretap_osx.rb
49
49
  - lib/motion-wiretap/version.rb
50
+ - lib/motion-wiretap.rb
50
51
  - README.md
51
52
  - motion-wiretap.gemspec
52
53
  homepage: https://github.com/colinta/motion-wiretap