helios 0.4.0 → 0.4.1
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/Gemfile.lock +4 -4
- data/README.md +5 -1
- data/lib/helios/backend/data.rb +0 -1
- data/lib/helios/backend/push-notification.rb +1 -1
- data/lib/helios/commands/console.rb +5 -0
- data/lib/helios/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: 7a75c56b14d0456d4558131f3aed4bdb64ff4746
         | 
| 4 | 
            +
              data.tar.gz: b58f34c91a32e0cebef0744c433cddf2b42adb40
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e04e4a761cf56e07b4462f257add5761875ce77a7693ba355293410691f9ad6d3ec0baadcf1b1c2bacbc06548fb100090b16a09581ca14975e29906ef444b816
         | 
| 7 | 
            +
              data.tar.gz: 7195c98339ae436b4ce6cbd037af1a2c5663166e155eb9d7135d64d155c8977e09cd409a5aea922c4fad66e4f7b71ce70b613ae7951cefc3ab34fe357dd64ed4
         | 
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                helios (0.4. | 
| 4 | 
            +
                helios (0.4.1)
         | 
| 5 5 | 
             
                  coffee-script (~> 2.2)
         | 
| 6 6 | 
             
                  commander (~> 4.1)
         | 
| 7 7 | 
             
                  compass (~> 0.12)
         | 
| @@ -77,7 +77,7 @@ GEM | |
| 77 77 | 
             
                  net-ssh (>= 2.1.3)
         | 
| 78 78 | 
             
                fog-json (1.0.0)
         | 
| 79 79 | 
             
                  multi_json (~> 1.0)
         | 
| 80 | 
            -
                fog-softlayer (0.3. | 
| 80 | 
            +
                fog-softlayer (0.3.16)
         | 
| 81 81 | 
             
                  fog-core
         | 
| 82 82 | 
             
                  fog-json
         | 
| 83 83 | 
             
                foreman (0.75.0)
         | 
| @@ -98,7 +98,7 @@ GEM | |
| 98 98 | 
             
                json (1.8.1)
         | 
| 99 99 | 
             
                mime-types (2.3)
         | 
| 100 100 | 
             
                mini_portile (0.6.0)
         | 
| 101 | 
            -
                minitest (5.4. | 
| 101 | 
            +
                minitest (5.4.1)
         | 
| 102 102 | 
             
                multi_json (1.10.1)
         | 
| 103 103 | 
             
                net-scp (1.2.1)
         | 
| 104 104 | 
             
                  net-ssh (>= 2.6.5)
         | 
| @@ -127,7 +127,7 @@ GEM | |
| 127 127 | 
             
                  sinatra (~> 1.3)
         | 
| 128 128 | 
             
                rack-protection (1.5.3)
         | 
| 129 129 | 
             
                  rack
         | 
| 130 | 
            -
                rack-push-notification (0.5. | 
| 130 | 
            +
                rack-push-notification (0.5.1)
         | 
| 131 131 | 
             
                  rack (~> 1.4)
         | 
| 132 132 | 
             
                  rack-contrib (~> 1.1)
         | 
| 133 133 | 
             
                  sequel (>= 3.0)
         | 
    
        data/README.md
    CHANGED
    
    | @@ -314,7 +314,11 @@ $ helios console | |
| 314 314 | 
             
            This command activates the services as configured by your Helios application, including any generated Core Data models. The `rack` module is automatically included on launch, allowing you to access everything more directly:
         | 
| 315 315 |  | 
| 316 316 | 
             
            ```ruby
         | 
| 317 | 
            -
            >  | 
| 317 | 
            +
            > Data::Artist.all #=> [...]
         | 
| 318 | 
            +
            > InAppPurchase::Receipt.all #=> [...]
         | 
| 319 | 
            +
            > Newsstand::Issue.all #=> [...]
         | 
| 320 | 
            +
            > Passbook::Passes.all #=> [...]
         | 
| 321 | 
            +
            > PushNotification::Device.all #=> [...]
         | 
| 318 322 | 
             
            ```
         | 
| 319 323 |  | 
| 320 324 | 
             
            ## Deploying to Heroku
         | 
    
        data/lib/helios/backend/data.rb
    CHANGED
    
    
| @@ -77,7 +77,7 @@ class Helios::Backend::PushNotification < Sinatra::Base | |
| 77 77 | 
             
                options.delete("aps")
         | 
| 78 78 |  | 
| 79 79 | 
             
                begin
         | 
| 80 | 
            -
                  notifications = tokens.collect{|token| Houston::Notification.new(options.update({device: token}))}
         | 
| 80 | 
            +
                  notifications = tokens.collect{|token| Houston::Notification.new(options.dup.update({device: token}))}
         | 
| 81 81 | 
             
                  client.push(*notifications)
         | 
| 82 82 |  | 
| 83 83 | 
             
                  status 204
         | 
| @@ -13,6 +13,11 @@ command :console do |c| | |
| 13 13 | 
             
                  Dotenv.load
         | 
| 14 14 | 
             
                  Sequel.connect(ENV['DATABASE_URL'])
         | 
| 15 15 |  | 
| 16 | 
            +
                  Rack::Scaffold.new(models: Dir['*.xcdatamodel*'])
         | 
| 17 | 
            +
                  Rack::Scaffold::Adapters::CoreData.constants.each do |constant|
         | 
| 18 | 
            +
                    Data.const_set(constant, Rack::Scaffold::Adapters::CoreData.const_get(constant))
         | 
| 19 | 
            +
                  end
         | 
| 20 | 
            +
             | 
| 16 21 | 
             
                  ARGV.clear
         | 
| 17 22 | 
             
                  IRB.start
         | 
| 18 23 | 
             
              end
         | 
    
        data/lib/helios/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: helios
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.4. | 
| 4 | 
            +
              version: 0.4.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Mattt Thompson
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014-08- | 
| 11 | 
            +
            date: 2014-08-30 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: commander
         |