phoenix_rails 0.0.2 → 0.0.3
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/lib/phoenix_rails/client.rb +1 -1
- data/lib/phoenix_rails/request.rb +1 -6
- data/lib/phoenix_rails.rb +4 -3
- metadata +15 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 07e18266697359f00544d23ec180e6764d4fcf75
         | 
| 4 | 
            +
              data.tar.gz: e0c8605fa553cd6580e01e3bf4336d60ef87fd7f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8c4f1eb3ba2d049e6a76d7e6170b34833224d6e91578afd2b28ae51fea156ef0cce5b84ec4956e159cc3e6b83ba2fdb330bd5f3b5d8206b225e3d0647ac2925d
         | 
| 7 | 
            +
              data.tar.gz: 29ddc5afed6554f33cdc7b2a7d11ff8cdbc739180b8204b958b52aab13067d5ae596242cc05b4c811d008794b848764c1d3f9045118aec819567d5f6fe68f317
         | 
    
        data/lib/phoenix_rails/client.rb
    CHANGED
    
    
| @@ -8,13 +8,8 @@ module PhoenixRails | |
| 8 8 |  | 
| 9 9 | 
             
                def initialize(client, verb, uri, params, body = nil)
         | 
| 10 10 | 
             
                  @client, @verb, @uri = client, verb, uri
         | 
| 11 | 
            -
                  @head = {}
         | 
| 12 | 
            -
             | 
| 11 | 
            +
                  @head = { 'Content-Type' => 'application/json'}
         | 
| 13 12 | 
             
                  @body = body
         | 
| 14 | 
            -
                  if body
         | 
| 15 | 
            -
                    params[:body_md5] = Digest::MD5.hexdigest(body)
         | 
| 16 | 
            -
                    @head['Content-Type'] = 'application/json'
         | 
| 17 | 
            -
                  end
         | 
| 18 13 |  | 
| 19 14 | 
             
                  request = Signature::Request.new(verb.to_s.upcase, uri.path, params)
         | 
| 20 15 | 
             
                  request.sign(client.authentication_token)
         | 
    
        data/lib/phoenix_rails.rb
    CHANGED
    
    | @@ -36,6 +36,7 @@ class PhoenixRails | |
| 36 36 | 
             
              end
         | 
| 37 37 | 
             
            end
         | 
| 38 38 |  | 
| 39 | 
            -
            require ' | 
| 40 | 
            -
            require ' | 
| 41 | 
            -
            require ' | 
| 39 | 
            +
            require 'phoenix_rails/channel'
         | 
| 40 | 
            +
            require 'phoenix_rails/request'
         | 
| 41 | 
            +
            require 'phoenix_rails/resource'
         | 
| 42 | 
            +
            require 'phoenix_rails/client'
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: phoenix_rails
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Nguyen Le
         | 
| @@ -38,6 +38,20 @@ dependencies: | |
| 38 38 | 
             
                - - "~>"
         | 
| 39 39 | 
             
                  - !ruby/object:Gem::Version
         | 
| 40 40 | 
             
                    version: '1.0'
         | 
| 41 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 42 | 
            +
              name: ruby
         | 
| 43 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 | 
            +
                requirements:
         | 
| 45 | 
            +
                - - "~>"
         | 
| 46 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            +
                    version: 2.0.0
         | 
| 48 | 
            +
              type: :runtime
         | 
| 49 | 
            +
              prerelease: false
         | 
| 50 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 | 
            +
                requirements:
         | 
| 52 | 
            +
                - - "~>"
         | 
| 53 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            +
                    version: 2.0.0
         | 
| 41 55 | 
             
            description: Gem for pushing event to a Phoenix server for realtime
         | 
| 42 56 | 
             
            email: nathanle89@gmail.com
         | 
| 43 57 | 
             
            executables: []
         |