remote-controller 0.1.0 → 0.1.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.
- data/README.rdoc +1 -1
- data/Rakefile +1 -1
- data/lib/remote_controller/version.rb +1 -1
- data/remote-controller.gemspec +3 -1
- data/test/remote_controller_cookies_container_test.rb +3 -1
- metadata +53 -50
    
        data/README.rdoc
    CHANGED
    
    | @@ -31,7 +31,7 @@ Can invoke actions of remote controllers. Can send any data including files. Doe | |
| 31 31 |  | 
| 32 32 | 
             
              #Reports controller is bound to 'http://my-application.com/reports'
         | 
| 33 33 | 
             
              reports                    = RemoteController::Base.new('http://my-application.com/reports')
         | 
| 34 | 
            -
               | 
| 34 | 
            +
              reports.cookies_container = cookies_container #Reusing cookies container to preserve the same session...
         | 
| 35 35 |  | 
| 36 36 | 
             
              # POST http://my-application.com/sessions/create
         | 
| 37 37 | 
             
              # POST body is in multipart POST form. It has two parts: 
         | 
    
        data/Rakefile
    CHANGED
    
    
    
        data/remote-controller.gemspec
    CHANGED
    
    | @@ -2,7 +2,7 @@ require File.expand_path('../lib/remote_controller/version', __FILE__) | |
| 2 2 |  | 
| 3 3 | 
             
            Gem::Specification.new do |s|
         | 
| 4 4 | 
             
              s.name        = 'remote-controller'
         | 
| 5 | 
            -
              s.version     = RemoteController::VERSION
         | 
| 5 | 
            +
              s.version     = RemoteController::VERSION.dup
         | 
| 6 6 | 
             
              s.platform    = Gem::Platform::RUBY
         | 
| 7 7 | 
             
              s.authors     = ['Evgeny Myasishchev']
         | 
| 8 8 | 
             
              s.email       = ['evgeny.myasishchev@gmail.com']
         | 
| @@ -13,6 +13,8 @@ Gem::Specification.new do |s| | |
| 13 13 | 
             
              s.rubyforge_project = 'remote-controller'
         | 
| 14 14 |  | 
| 15 15 | 
             
              s.add_development_dependency 'http-testing', '>= 0.1.3'
         | 
| 16 | 
            +
              s.add_development_dependency 'rake'
         | 
| 17 | 
            +
              s.add_development_dependency 'rdoc'
         | 
| 16 18 |  | 
| 17 19 | 
             
              s.files         = `git ls-files`.split("\n")
         | 
| 18 20 | 
             
              s.test_files    = `git ls-files -- {test}/*`.split("\n")
         | 
| @@ -48,7 +48,9 @@ class RemoteControllerCookiesContainerTest < Test::Unit::TestCase | |
| 48 48 | 
             
                cookies_str = "auth_token=tooken; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT, _session=9999; path=/; HttpOnly"
         | 
| 49 49 | 
             
                @container.process(cookies_str)
         | 
| 50 50 |  | 
| 51 | 
            -
                assert_equal "_session | 
| 51 | 
            +
                assert_equal @container["_session"].value, '9999'
         | 
| 52 | 
            +
                assert_equal @container["auth_token"].value, 'tooken'
         | 
| 53 | 
            +
                # assert_equal "_session=9999; auth_token=tooken;", @container.to_header
         | 
| 52 54 | 
             
              end 
         | 
| 53 55 |  | 
| 54 56 | 
             
              def test_empty?
         | 
    
        metadata
    CHANGED
    
    | @@ -1,46 +1,56 @@ | |
| 1 | 
            -
            --- !ruby/object:Gem::Specification | 
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: remote-controller
         | 
| 3 | 
            -
            version: !ruby/object:Gem::Version | 
| 4 | 
            -
               | 
| 5 | 
            -
               | 
| 6 | 
            -
              - 0
         | 
| 7 | 
            -
              - 1
         | 
| 8 | 
            -
              - 0
         | 
| 9 | 
            -
              version: 0.1.0
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.1.1
         | 
| 5 | 
            +
              prerelease: 
         | 
| 10 6 | 
             
            platform: ruby
         | 
| 11 | 
            -
            authors: | 
| 7 | 
            +
            authors:
         | 
| 12 8 | 
             
            - Evgeny Myasishchev
         | 
| 13 9 | 
             
            autorequire: 
         | 
| 14 10 | 
             
            bindir: bin
         | 
| 15 11 | 
             
            cert_chain: []
         | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
            dependencies: 
         | 
| 20 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 12 | 
            +
            date: 2012-01-03 00:00:00.000000000 Z
         | 
| 13 | 
            +
            dependencies:
         | 
| 14 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 21 15 | 
             
              name: http-testing
         | 
| 22 | 
            -
               | 
| 23 | 
            -
             | 
| 24 | 
            -
                requirements: | 
| 25 | 
            -
                - -  | 
| 26 | 
            -
                  - !ruby/object:Gem::Version | 
| 27 | 
            -
                    segments: 
         | 
| 28 | 
            -
                    - 0
         | 
| 29 | 
            -
                    - 1
         | 
| 30 | 
            -
                    - 3
         | 
| 16 | 
            +
              requirement: &70194421489300 !ruby/object:Gem::Requirement
         | 
| 17 | 
            +
                none: false
         | 
| 18 | 
            +
                requirements:
         | 
| 19 | 
            +
                - - ! '>='
         | 
| 20 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 31 21 | 
             
                    version: 0.1.3
         | 
| 32 22 | 
             
              type: :development
         | 
| 33 | 
            -
               | 
| 23 | 
            +
              prerelease: false
         | 
| 24 | 
            +
              version_requirements: *70194421489300
         | 
| 25 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 26 | 
            +
              name: rake
         | 
| 27 | 
            +
              requirement: &70194421488360 !ruby/object:Gem::Requirement
         | 
| 28 | 
            +
                none: false
         | 
| 29 | 
            +
                requirements:
         | 
| 30 | 
            +
                - - ! '>='
         | 
| 31 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 32 | 
            +
                    version: '0'
         | 
| 33 | 
            +
              type: :development
         | 
| 34 | 
            +
              prerelease: false
         | 
| 35 | 
            +
              version_requirements: *70194421488360
         | 
| 36 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 37 | 
            +
              name: rdoc
         | 
| 38 | 
            +
              requirement: &70194421487020 !ruby/object:Gem::Requirement
         | 
| 39 | 
            +
                none: false
         | 
| 40 | 
            +
                requirements:
         | 
| 41 | 
            +
                - - ! '>='
         | 
| 42 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 43 | 
            +
                    version: '0'
         | 
| 44 | 
            +
              type: :development
         | 
| 45 | 
            +
              prerelease: false
         | 
| 46 | 
            +
              version_requirements: *70194421487020
         | 
| 34 47 | 
             
            description: Library to simplify remote controller actions invocation.
         | 
| 35 | 
            -
            email: | 
| 48 | 
            +
            email:
         | 
| 36 49 | 
             
            - evgeny.myasishchev@gmail.com
         | 
| 37 50 | 
             
            executables: []
         | 
| 38 | 
            -
             | 
| 39 51 | 
             
            extensions: []
         | 
| 40 | 
            -
             | 
| 41 52 | 
             
            extra_rdoc_files: []
         | 
| 42 | 
            -
             | 
| 43 | 
            -
            files: 
         | 
| 53 | 
            +
            files:
         | 
| 44 54 | 
             
            - .gitignore
         | 
| 45 55 | 
             
            - Gemfile
         | 
| 46 56 | 
             
            - MIT-LICENSE
         | 
| @@ -71,35 +81,28 @@ files: | |
| 71 81 | 
             
            - test/remote_controller_test_multipart_test.rb
         | 
| 72 82 | 
             
            - test/test_helper.rb
         | 
| 73 83 | 
             
            - tmp/.gitkeep
         | 
| 74 | 
            -
            has_rdoc: true
         | 
| 75 84 | 
             
            homepage: http://github.com/evgeny-myasishchev/remote-controller
         | 
| 76 85 | 
             
            licenses: []
         | 
| 77 | 
            -
             | 
| 78 86 | 
             
            post_install_message: 
         | 
| 79 87 | 
             
            rdoc_options: []
         | 
| 80 | 
            -
             | 
| 81 | 
            -
            require_paths: 
         | 
| 88 | 
            +
            require_paths:
         | 
| 82 89 | 
             
            - lib
         | 
| 83 | 
            -
            required_ruby_version: !ruby/object:Gem::Requirement | 
| 84 | 
            -
               | 
| 85 | 
            -
               | 
| 86 | 
            -
             | 
| 87 | 
            -
             | 
| 88 | 
            -
                   | 
| 89 | 
            -
             | 
| 90 | 
            -
             | 
| 91 | 
            -
              requirements: | 
| 92 | 
            -
              - -  | 
| 93 | 
            -
                - !ruby/object:Gem::Version | 
| 94 | 
            -
                   | 
| 95 | 
            -
                  - 0
         | 
| 96 | 
            -
                  version: "0"
         | 
| 90 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 91 | 
            +
              none: false
         | 
| 92 | 
            +
              requirements:
         | 
| 93 | 
            +
              - - ! '>='
         | 
| 94 | 
            +
                - !ruby/object:Gem::Version
         | 
| 95 | 
            +
                  version: '0'
         | 
| 96 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 97 | 
            +
              none: false
         | 
| 98 | 
            +
              requirements:
         | 
| 99 | 
            +
              - - ! '>='
         | 
| 100 | 
            +
                - !ruby/object:Gem::Version
         | 
| 101 | 
            +
                  version: '0'
         | 
| 97 102 | 
             
            requirements: []
         | 
| 98 | 
            -
             | 
| 99 103 | 
             
            rubyforge_project: remote-controller
         | 
| 100 | 
            -
            rubygems_version: 1. | 
| 104 | 
            +
            rubygems_version: 1.8.10
         | 
| 101 105 | 
             
            signing_key: 
         | 
| 102 106 | 
             
            specification_version: 3
         | 
| 103 107 | 
             
            summary: Helps to invoke actions of remote controllers.
         | 
| 104 108 | 
             
            test_files: []
         | 
| 105 | 
            -
             |