motion-wiretap 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/README.md +1 -1
 - data/lib/motion-wiretap/all/signal.rb +3 -11
 - data/lib/motion-wiretap/all/wiretap.rb +1 -1
 - data/lib/motion-wiretap/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8a0ba74d89d7665f5da90026f2547c5a6b76ca5f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: aad024532ba78acde032d7b77f9beabdd37e1212
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: d534884d01c3d1f90ebcb09550007cdfb1fab5351162c2e6e5d43d2aa1ede4e87f533a8ac822f74cef120ea2f6fea0ef612e439a818cb70e1cd664c73a6d04f5
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: aef50be40d464e1642d8da25eebfc3fa1046180e870b5a750ed67d8db1ddb90efb77fae5281df137d1cac0ac03149e00ee920d628fe0c382195d21c5d87691aa
         
     | 
    
        data/README.md
    CHANGED
    
    
| 
         @@ -33,17 +33,9 @@ module MotionWiretap 
     | 
|
| 
       33 
33 
     | 
    
         
             
                #     signal.next(1, 5)    # works great, @added will be 6
         
     | 
| 
       34 
34 
     | 
    
         
             
                #     signal.next([1, 5])  # this works, too, because of how args are assigned to blocks in ruby
         
     | 
| 
       35 
35 
     | 
    
         
             
                #     signal.next(1)  # a will be 1 and b will be nil (error!)
         
     | 
| 
       36 
     | 
    
         
            -
                def next( 
     | 
| 
       37 
     | 
    
         
            -
                  if values. 
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
                    value = [value].concat values
         
     | 
| 
       40 
     | 
    
         
            -
                    @value = value
         
     | 
| 
       41 
     | 
    
         
            -
                    trigger_changed(*value)
         
     | 
| 
       42 
     | 
    
         
            -
                  else
         
     | 
| 
       43 
     | 
    
         
            -
                    raise "don't do that please" if value == SINGLETON
         
     | 
| 
       44 
     | 
    
         
            -
                    @value = value
         
     | 
| 
       45 
     | 
    
         
            -
                    trigger_changed(@value)
         
     | 
| 
       46 
     | 
    
         
            -
                  end
         
     | 
| 
      
 36 
     | 
    
         
            +
                def next(*values)
         
     | 
| 
      
 37 
     | 
    
         
            +
                  raise "don't do that please" if values.include? SINGLETON
         
     | 
| 
      
 38 
     | 
    
         
            +
                  trigger_changed(*values)
         
     | 
| 
       47 
39 
     | 
    
         
             
                end
         
     | 
| 
       48 
40 
     | 
    
         | 
| 
       49 
41 
     | 
    
         
             
                def complete
         
     | 
| 
         @@ -445,11 +445,11 @@ module MotionWiretap 
     | 
|
| 
       445 
445 
     | 
    
         
             
              class WiretapNotification < Wiretap
         
     | 
| 
       446 
446 
     | 
    
         | 
| 
       447 
447 
     | 
    
         
             
                def initialize(notification, object, block)
         
     | 
| 
      
 448 
     | 
    
         
            +
                  super(&block)
         
     | 
| 
       448 
449 
     | 
    
         
             
                  @notification = notification
         
     | 
| 
       449 
450 
     | 
    
         
             
                  @object = object
         
     | 
| 
       450 
451 
     | 
    
         | 
| 
       451 
452 
     | 
    
         
             
                  NSNotificationCenter.defaultCenter.addObserver(self, selector: 'notify:', name: @notification, object: @object)
         
     | 
| 
       452 
     | 
    
         
            -
                  listen(&block) if block
         
     | 
| 
       453 
453 
     | 
    
         
             
                end
         
     | 
| 
       454 
454 
     | 
    
         | 
| 
       455 
455 
     | 
    
         
             
                def notify(notification)
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: motion-wiretap
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.1.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Colin T.A. Gray
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2014- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2014-04-08 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: |
         
     | 
| 
       14 
14 
     | 
    
         
             
              ReactiveCocoa is an amazing system, and RubyMotion could benefit from the
         
     |