roqua-gem 0.0.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/.document +5 -0
 - data/.rspec +1 -0
 - data/.travis.yml +3 -0
 - data/Gemfile +17 -0
 - data/Gemfile.lock +39 -0
 - data/LICENSE.txt +20 -0
 - data/README.markdown +17 -0
 - data/Rakefile +49 -0
 - data/VERSION +1 -0
 - data/lib/roqua-gem.rb +6 -0
 - data/lib/roqua/answer.rb +33 -0
 - data/lib/roqua/site.rb +23 -0
 - data/roqua-gem.gemspec +77 -0
 - data/spec/cassettes/RoQua_Site/_answers.yml +44 -0
 - data/spec/roqua/answer_spec.rb +46 -0
 - data/spec/roqua/site_spec.rb +27 -0
 - data/spec/spec_helper.rb +18 -0
 - metadata +155 -0
 
    
        data/.document
    ADDED
    
    
    
        data/.rspec
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --color
         
     | 
    
        data/.travis.yml
    ADDED
    
    
    
        data/Gemfile
    ADDED
    
    | 
         @@ -0,0 +1,17 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            source "http://rubygems.org"
         
     | 
| 
      
 2 
     | 
    
         
            +
            # Add dependencies required to use your gem here.
         
     | 
| 
      
 3 
     | 
    
         
            +
            # Example:
         
     | 
| 
      
 4 
     | 
    
         
            +
            #   gem "activesupport", ">= 2.3.5"
         
     | 
| 
      
 5 
     | 
    
         
            +
            gem "rest-client"
         
     | 
| 
      
 6 
     | 
    
         
            +
            gem "addressable"
         
     | 
| 
      
 7 
     | 
    
         
            +
            gem "json"
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            # Add dependencies to develop your gem here.
         
     | 
| 
      
 10 
     | 
    
         
            +
            # Include everything needed to run rake, tests, features, etc.
         
     | 
| 
      
 11 
     | 
    
         
            +
            group :development do
         
     | 
| 
      
 12 
     | 
    
         
            +
              gem "rspec"
         
     | 
| 
      
 13 
     | 
    
         
            +
              gem "jeweler", "~> 1.6.4"
         
     | 
| 
      
 14 
     | 
    
         
            +
              gem "rcov", ">= 0"
         
     | 
| 
      
 15 
     | 
    
         
            +
              gem "vcr", ">= 2.0.0.rc1"
         
     | 
| 
      
 16 
     | 
    
         
            +
              gem "fakeweb"
         
     | 
| 
      
 17 
     | 
    
         
            +
            end
         
     | 
    
        data/Gemfile.lock
    ADDED
    
    | 
         @@ -0,0 +1,39 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            GEM
         
     | 
| 
      
 2 
     | 
    
         
            +
              remote: http://rubygems.org/
         
     | 
| 
      
 3 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 4 
     | 
    
         
            +
                addressable (2.2.6)
         
     | 
| 
      
 5 
     | 
    
         
            +
                diff-lcs (1.1.3)
         
     | 
| 
      
 6 
     | 
    
         
            +
                fakeweb (1.3.0)
         
     | 
| 
      
 7 
     | 
    
         
            +
                git (1.2.5)
         
     | 
| 
      
 8 
     | 
    
         
            +
                jeweler (1.6.4)
         
     | 
| 
      
 9 
     | 
    
         
            +
                  bundler (~> 1.0)
         
     | 
| 
      
 10 
     | 
    
         
            +
                  git (>= 1.2.5)
         
     | 
| 
      
 11 
     | 
    
         
            +
                  rake
         
     | 
| 
      
 12 
     | 
    
         
            +
                json (1.6.4)
         
     | 
| 
      
 13 
     | 
    
         
            +
                mime-types (1.17.2)
         
     | 
| 
      
 14 
     | 
    
         
            +
                rake (0.9.2.2)
         
     | 
| 
      
 15 
     | 
    
         
            +
                rcov (0.9.11)
         
     | 
| 
      
 16 
     | 
    
         
            +
                rest-client (1.6.7)
         
     | 
| 
      
 17 
     | 
    
         
            +
                  mime-types (>= 1.16)
         
     | 
| 
      
 18 
     | 
    
         
            +
                rspec (2.8.0)
         
     | 
| 
      
 19 
     | 
    
         
            +
                  rspec-core (~> 2.8.0)
         
     | 
| 
      
 20 
     | 
    
         
            +
                  rspec-expectations (~> 2.8.0)
         
     | 
| 
      
 21 
     | 
    
         
            +
                  rspec-mocks (~> 2.8.0)
         
     | 
| 
      
 22 
     | 
    
         
            +
                rspec-core (2.8.0)
         
     | 
| 
      
 23 
     | 
    
         
            +
                rspec-expectations (2.8.0)
         
     | 
| 
      
 24 
     | 
    
         
            +
                  diff-lcs (~> 1.1.2)
         
     | 
| 
      
 25 
     | 
    
         
            +
                rspec-mocks (2.8.0)
         
     | 
| 
      
 26 
     | 
    
         
            +
                vcr (2.0.0.rc1)
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            PLATFORMS
         
     | 
| 
      
 29 
     | 
    
         
            +
              ruby
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            DEPENDENCIES
         
     | 
| 
      
 32 
     | 
    
         
            +
              addressable
         
     | 
| 
      
 33 
     | 
    
         
            +
              fakeweb
         
     | 
| 
      
 34 
     | 
    
         
            +
              jeweler (~> 1.6.4)
         
     | 
| 
      
 35 
     | 
    
         
            +
              json
         
     | 
| 
      
 36 
     | 
    
         
            +
              rcov
         
     | 
| 
      
 37 
     | 
    
         
            +
              rest-client
         
     | 
| 
      
 38 
     | 
    
         
            +
              rspec
         
     | 
| 
      
 39 
     | 
    
         
            +
              vcr (>= 2.0.0.rc1)
         
     | 
    
        data/LICENSE.txt
    ADDED
    
    | 
         @@ -0,0 +1,20 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            Copyright (c) 2012 Marten Veldthuis
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Permission is hereby granted, free of charge, to any person obtaining
         
     | 
| 
      
 4 
     | 
    
         
            +
            a copy of this software and associated documentation files (the
         
     | 
| 
      
 5 
     | 
    
         
            +
            "Software"), to deal in the Software without restriction, including
         
     | 
| 
      
 6 
     | 
    
         
            +
            without limitation the rights to use, copy, modify, merge, publish,
         
     | 
| 
      
 7 
     | 
    
         
            +
            distribute, sublicense, and/or sell copies of the Software, and to
         
     | 
| 
      
 8 
     | 
    
         
            +
            permit persons to whom the Software is furnished to do so, subject to
         
     | 
| 
      
 9 
     | 
    
         
            +
            the following conditions:
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            The above copyright notice and this permission notice shall be
         
     | 
| 
      
 12 
     | 
    
         
            +
            included in all copies or substantial portions of the Software.
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         
     | 
| 
      
 15 
     | 
    
         
            +
            EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         
     | 
| 
      
 16 
     | 
    
         
            +
            MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         
     | 
| 
      
 17 
     | 
    
         
            +
            NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         
     | 
| 
      
 18 
     | 
    
         
            +
            LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         
     | 
| 
      
 19 
     | 
    
         
            +
            OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         
     | 
| 
      
 20 
     | 
    
         
            +
            WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         
     | 
    
        data/README.markdown
    ADDED
    
    | 
         @@ -0,0 +1,17 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # roqua-gem
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            ## Contributing to roqua-gem
         
     | 
| 
      
 6 
     | 
    
         
            +
             
         
     | 
| 
      
 7 
     | 
    
         
            +
            * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
         
     | 
| 
      
 8 
     | 
    
         
            +
            * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
         
     | 
| 
      
 9 
     | 
    
         
            +
            * Fork the project
         
     | 
| 
      
 10 
     | 
    
         
            +
            * Start a feature/bugfix branch
         
     | 
| 
      
 11 
     | 
    
         
            +
            * Commit and push until you are happy with your contribution
         
     | 
| 
      
 12 
     | 
    
         
            +
            * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
         
     | 
| 
      
 13 
     | 
    
         
            +
            * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            ## Copyright
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            Copyright (c) 2012 RGOc. See LICENSE.txt for further details.
         
     | 
    
        data/Rakefile
    ADDED
    
    | 
         @@ -0,0 +1,49 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # encoding: utf-8
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            require 'rubygems'
         
     | 
| 
      
 4 
     | 
    
         
            +
            require 'bundler'
         
     | 
| 
      
 5 
     | 
    
         
            +
            begin
         
     | 
| 
      
 6 
     | 
    
         
            +
              Bundler.setup(:default, :development)
         
     | 
| 
      
 7 
     | 
    
         
            +
            rescue Bundler::BundlerError => e
         
     | 
| 
      
 8 
     | 
    
         
            +
              $stderr.puts e.message
         
     | 
| 
      
 9 
     | 
    
         
            +
              $stderr.puts "Run `bundle install` to install missing gems"
         
     | 
| 
      
 10 
     | 
    
         
            +
              exit e.status_code
         
     | 
| 
      
 11 
     | 
    
         
            +
            end
         
     | 
| 
      
 12 
     | 
    
         
            +
            require 'rake'
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            require 'jeweler'
         
     | 
| 
      
 15 
     | 
    
         
            +
            Jeweler::Tasks.new do |gem|
         
     | 
| 
      
 16 
     | 
    
         
            +
              # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
         
     | 
| 
      
 17 
     | 
    
         
            +
              gem.name = "roqua-gem"
         
     | 
| 
      
 18 
     | 
    
         
            +
              gem.homepage = "http://github.com/roqua/roqua-gem"
         
     | 
| 
      
 19 
     | 
    
         
            +
              gem.license = "MIT"
         
     | 
| 
      
 20 
     | 
    
         
            +
              gem.summary = %Q{API client gem for RoQua}
         
     | 
| 
      
 21 
     | 
    
         
            +
              gem.description = %Q{A wrapper for the RoQua API (internal usage only for now)}
         
     | 
| 
      
 22 
     | 
    
         
            +
              gem.email = "team@roqua.nl"
         
     | 
| 
      
 23 
     | 
    
         
            +
              gem.authors = ["Marten Veldthuis"]
         
     | 
| 
      
 24 
     | 
    
         
            +
              # dependencies defined in Gemfile
         
     | 
| 
      
 25 
     | 
    
         
            +
            end
         
     | 
| 
      
 26 
     | 
    
         
            +
            Jeweler::RubygemsDotOrgTasks.new
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            require 'rspec/core'
         
     | 
| 
      
 29 
     | 
    
         
            +
            require 'rspec/core/rake_task'
         
     | 
| 
      
 30 
     | 
    
         
            +
            RSpec::Core::RakeTask.new(:spec) do |spec|
         
     | 
| 
      
 31 
     | 
    
         
            +
              spec.pattern = FileList['spec/**/*_spec.rb']
         
     | 
| 
      
 32 
     | 
    
         
            +
            end
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
            RSpec::Core::RakeTask.new(:rcov) do |spec|
         
     | 
| 
      
 35 
     | 
    
         
            +
              spec.pattern = 'spec/**/*_spec.rb'
         
     | 
| 
      
 36 
     | 
    
         
            +
              spec.rcov = true
         
     | 
| 
      
 37 
     | 
    
         
            +
            end
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
            task :default => :spec
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
            require 'rake/rdoctask'
         
     | 
| 
      
 42 
     | 
    
         
            +
            Rake::RDocTask.new do |rdoc|
         
     | 
| 
      
 43 
     | 
    
         
            +
              version = File.exist?('VERSION') ? File.read('VERSION') : ""
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
      
 45 
     | 
    
         
            +
              rdoc.rdoc_dir = 'rdoc'
         
     | 
| 
      
 46 
     | 
    
         
            +
              rdoc.title = "roqua-gem #{version}"
         
     | 
| 
      
 47 
     | 
    
         
            +
              rdoc.rdoc_files.include('README*')
         
     | 
| 
      
 48 
     | 
    
         
            +
              rdoc.rdoc_files.include('lib/**/*.rb')
         
     | 
| 
      
 49 
     | 
    
         
            +
            end
         
     | 
    
        data/VERSION
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            0.0.1
         
     | 
    
        data/lib/roqua-gem.rb
    ADDED
    
    
    
        data/lib/roqua/answer.rb
    ADDED
    
    | 
         @@ -0,0 +1,33 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module RoQua
         
     | 
| 
      
 2 
     | 
    
         
            +
              class Answer
         
     | 
| 
      
 3 
     | 
    
         
            +
                attr_accessor :attributes
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
                def initialize(attributes)
         
     | 
| 
      
 6 
     | 
    
         
            +
                  @attributes = attributes
         
     | 
| 
      
 7 
     | 
    
         
            +
                end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                def id
         
     | 
| 
      
 10 
     | 
    
         
            +
                  @attributes["_id"]
         
     | 
| 
      
 11 
     | 
    
         
            +
                end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                def completed?
         
     | 
| 
      
 14 
     | 
    
         
            +
                  @attributes["is_completed"]
         
     | 
| 
      
 15 
     | 
    
         
            +
                end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
                def created_at
         
     | 
| 
      
 18 
     | 
    
         
            +
                  Time.parse(attributes["created_at"])
         
     | 
| 
      
 19 
     | 
    
         
            +
                end
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                def updated_at
         
     | 
| 
      
 22 
     | 
    
         
            +
                  Time.parse(attributes["updated_at"])
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def completed_at
         
     | 
| 
      
 26 
     | 
    
         
            +
                  Time.parse(attributes["completed_at"])
         
     | 
| 
      
 27 
     | 
    
         
            +
                end
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
                def method_missing(name, *args)
         
     | 
| 
      
 30 
     | 
    
         
            +
                  @attributes.fetch(name.to_s)
         
     | 
| 
      
 31 
     | 
    
         
            +
                end
         
     | 
| 
      
 32 
     | 
    
         
            +
              end
         
     | 
| 
      
 33 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/roqua/site.rb
    ADDED
    
    | 
         @@ -0,0 +1,23 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module RoQua
         
     | 
| 
      
 2 
     | 
    
         
            +
              class Site
         
     | 
| 
      
 3 
     | 
    
         
            +
                attr_accessor :url
         
     | 
| 
      
 4 
     | 
    
         
            +
                attr_accessor :username
         
     | 
| 
      
 5 
     | 
    
         
            +
                attr_accessor :password
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
                def initialize(base_url, username, password)
         
     | 
| 
      
 8 
     | 
    
         
            +
                  @url = Addressable::URI.parse(base_url)
         
     | 
| 
      
 9 
     | 
    
         
            +
                  @url.user = username
         
     | 
| 
      
 10 
     | 
    
         
            +
                  @url.password = password
         
     | 
| 
      
 11 
     | 
    
         
            +
                end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                def url
         
     | 
| 
      
 14 
     | 
    
         
            +
                  @url.dup
         
     | 
| 
      
 15 
     | 
    
         
            +
                end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
                def answers(options = {})
         
     | 
| 
      
 18 
     | 
    
         
            +
                  response = RestClient.get(url.to_s + "/patients/#{options[:patient_id]}/questionnaires/#{options[:questionnaire_key]}/answers")
         
     | 
| 
      
 19 
     | 
    
         
            +
                  json = JSON.parse(response)
         
     | 
| 
      
 20 
     | 
    
         
            +
                  json.map { |item| Answer.new(item) }
         
     | 
| 
      
 21 
     | 
    
         
            +
                end
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
      
 23 
     | 
    
         
            +
            end
         
     | 
    
        data/roqua-gem.gemspec
    ADDED
    
    | 
         @@ -0,0 +1,77 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Generated by jeweler
         
     | 
| 
      
 2 
     | 
    
         
            +
            # DO NOT EDIT THIS FILE DIRECTLY
         
     | 
| 
      
 3 
     | 
    
         
            +
            # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
         
     | 
| 
      
 4 
     | 
    
         
            +
            # -*- encoding: utf-8 -*-
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            Gem::Specification.new do |s|
         
     | 
| 
      
 7 
     | 
    
         
            +
              s.name = "roqua-gem"
         
     | 
| 
      
 8 
     | 
    
         
            +
              s.version = "0.0.1"
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         
     | 
| 
      
 11 
     | 
    
         
            +
              s.authors = ["Marten Veldthuis"]
         
     | 
| 
      
 12 
     | 
    
         
            +
              s.date = "2012-01-13"
         
     | 
| 
      
 13 
     | 
    
         
            +
              s.description = "A wrapper for the RoQua API (internal usage only for now)"
         
     | 
| 
      
 14 
     | 
    
         
            +
              s.email = "team@roqua.nl"
         
     | 
| 
      
 15 
     | 
    
         
            +
              s.extra_rdoc_files = [
         
     | 
| 
      
 16 
     | 
    
         
            +
                "LICENSE.txt",
         
     | 
| 
      
 17 
     | 
    
         
            +
                "README.markdown"
         
     | 
| 
      
 18 
     | 
    
         
            +
              ]
         
     | 
| 
      
 19 
     | 
    
         
            +
              s.files = [
         
     | 
| 
      
 20 
     | 
    
         
            +
                ".document",
         
     | 
| 
      
 21 
     | 
    
         
            +
                ".rspec",
         
     | 
| 
      
 22 
     | 
    
         
            +
                ".travis.yml",
         
     | 
| 
      
 23 
     | 
    
         
            +
                "Gemfile",
         
     | 
| 
      
 24 
     | 
    
         
            +
                "Gemfile.lock",
         
     | 
| 
      
 25 
     | 
    
         
            +
                "LICENSE.txt",
         
     | 
| 
      
 26 
     | 
    
         
            +
                "README.markdown",
         
     | 
| 
      
 27 
     | 
    
         
            +
                "Rakefile",
         
     | 
| 
      
 28 
     | 
    
         
            +
                "VERSION",
         
     | 
| 
      
 29 
     | 
    
         
            +
                "lib/roqua-gem.rb",
         
     | 
| 
      
 30 
     | 
    
         
            +
                "lib/roqua/answer.rb",
         
     | 
| 
      
 31 
     | 
    
         
            +
                "lib/roqua/site.rb",
         
     | 
| 
      
 32 
     | 
    
         
            +
                "roqua-gem.gemspec",
         
     | 
| 
      
 33 
     | 
    
         
            +
                "spec/cassettes/RoQua_Site/_answers.yml",
         
     | 
| 
      
 34 
     | 
    
         
            +
                "spec/roqua/answer_spec.rb",
         
     | 
| 
      
 35 
     | 
    
         
            +
                "spec/roqua/site_spec.rb",
         
     | 
| 
      
 36 
     | 
    
         
            +
                "spec/spec_helper.rb"
         
     | 
| 
      
 37 
     | 
    
         
            +
              ]
         
     | 
| 
      
 38 
     | 
    
         
            +
              s.homepage = "http://github.com/roqua/roqua-gem"
         
     | 
| 
      
 39 
     | 
    
         
            +
              s.licenses = ["MIT"]
         
     | 
| 
      
 40 
     | 
    
         
            +
              s.require_paths = ["lib"]
         
     | 
| 
      
 41 
     | 
    
         
            +
              s.rubygems_version = "1.8.11"
         
     | 
| 
      
 42 
     | 
    
         
            +
              s.summary = "API client gem for RoQua"
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
              if s.respond_to? :specification_version then
         
     | 
| 
      
 45 
     | 
    
         
            +
                s.specification_version = 3
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
         
     | 
| 
      
 48 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<rest-client>, [">= 0"])
         
     | 
| 
      
 49 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<addressable>, [">= 0"])
         
     | 
| 
      
 50 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<json>, [">= 0"])
         
     | 
| 
      
 51 
     | 
    
         
            +
                  s.add_development_dependency(%q<rspec>, [">= 0"])
         
     | 
| 
      
 52 
     | 
    
         
            +
                  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
         
     | 
| 
      
 53 
     | 
    
         
            +
                  s.add_development_dependency(%q<rcov>, [">= 0"])
         
     | 
| 
      
 54 
     | 
    
         
            +
                  s.add_development_dependency(%q<vcr>, [">= 2.0.0.rc1"])
         
     | 
| 
      
 55 
     | 
    
         
            +
                  s.add_development_dependency(%q<fakeweb>, [">= 0"])
         
     | 
| 
      
 56 
     | 
    
         
            +
                else
         
     | 
| 
      
 57 
     | 
    
         
            +
                  s.add_dependency(%q<rest-client>, [">= 0"])
         
     | 
| 
      
 58 
     | 
    
         
            +
                  s.add_dependency(%q<addressable>, [">= 0"])
         
     | 
| 
      
 59 
     | 
    
         
            +
                  s.add_dependency(%q<json>, [">= 0"])
         
     | 
| 
      
 60 
     | 
    
         
            +
                  s.add_dependency(%q<rspec>, [">= 0"])
         
     | 
| 
      
 61 
     | 
    
         
            +
                  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
         
     | 
| 
      
 62 
     | 
    
         
            +
                  s.add_dependency(%q<rcov>, [">= 0"])
         
     | 
| 
      
 63 
     | 
    
         
            +
                  s.add_dependency(%q<vcr>, [">= 2.0.0.rc1"])
         
     | 
| 
      
 64 
     | 
    
         
            +
                  s.add_dependency(%q<fakeweb>, [">= 0"])
         
     | 
| 
      
 65 
     | 
    
         
            +
                end
         
     | 
| 
      
 66 
     | 
    
         
            +
              else
         
     | 
| 
      
 67 
     | 
    
         
            +
                s.add_dependency(%q<rest-client>, [">= 0"])
         
     | 
| 
      
 68 
     | 
    
         
            +
                s.add_dependency(%q<addressable>, [">= 0"])
         
     | 
| 
      
 69 
     | 
    
         
            +
                s.add_dependency(%q<json>, [">= 0"])
         
     | 
| 
      
 70 
     | 
    
         
            +
                s.add_dependency(%q<rspec>, [">= 0"])
         
     | 
| 
      
 71 
     | 
    
         
            +
                s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
         
     | 
| 
      
 72 
     | 
    
         
            +
                s.add_dependency(%q<rcov>, [">= 0"])
         
     | 
| 
      
 73 
     | 
    
         
            +
                s.add_dependency(%q<vcr>, [">= 2.0.0.rc1"])
         
     | 
| 
      
 74 
     | 
    
         
            +
                s.add_dependency(%q<fakeweb>, [">= 0"])
         
     | 
| 
      
 75 
     | 
    
         
            +
              end
         
     | 
| 
      
 76 
     | 
    
         
            +
            end
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
         @@ -0,0 +1,44 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            http_interactions:
         
     | 
| 
      
 3 
     | 
    
         
            +
            - request:
         
     | 
| 
      
 4 
     | 
    
         
            +
                method: get
         
     | 
| 
      
 5 
     | 
    
         
            +
                uri: http://testuser:testpass@rgoc.roqua.dev/api/v1/patients/123/questionnaires/honos/answers
         
     | 
| 
      
 6 
     | 
    
         
            +
                body: ''
         
     | 
| 
      
 7 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 8 
     | 
    
         
            +
                  accept:
         
     | 
| 
      
 9 
     | 
    
         
            +
                  - ! '*/*; q=0.5, application/xml'
         
     | 
| 
      
 10 
     | 
    
         
            +
                  accept-encoding:
         
     | 
| 
      
 11 
     | 
    
         
            +
                  - gzip, deflate
         
     | 
| 
      
 12 
     | 
    
         
            +
                  user-agent:
         
     | 
| 
      
 13 
     | 
    
         
            +
                  - Ruby
         
     | 
| 
      
 14 
     | 
    
         
            +
                  authorization:
         
     | 
| 
      
 15 
     | 
    
         
            +
                  - Basic dGVzdHVzZXI6dGVzdHBhc3M=
         
     | 
| 
      
 16 
     | 
    
         
            +
              response:
         
     | 
| 
      
 17 
     | 
    
         
            +
                status:
         
     | 
| 
      
 18 
     | 
    
         
            +
                  code: 200
         
     | 
| 
      
 19 
     | 
    
         
            +
                  message: OK
         
     | 
| 
      
 20 
     | 
    
         
            +
                headers:
         
     | 
| 
      
 21 
     | 
    
         
            +
                  date:
         
     | 
| 
      
 22 
     | 
    
         
            +
                  - Fri, 13 Jan 2012 14:58:41 GMT
         
     | 
| 
      
 23 
     | 
    
         
            +
                  server:
         
     | 
| 
      
 24 
     | 
    
         
            +
                  - Apache/2.2.20 (Ubuntu)
         
     | 
| 
      
 25 
     | 
    
         
            +
                  x-powered-by:
         
     | 
| 
      
 26 
     | 
    
         
            +
                  - Phusion Passenger (mod_rails/mod_rack) 3.0.9
         
     | 
| 
      
 27 
     | 
    
         
            +
                  x-ua-compatible:
         
     | 
| 
      
 28 
     | 
    
         
            +
                  - IE=Edge
         
     | 
| 
      
 29 
     | 
    
         
            +
                  etag:
         
     | 
| 
      
 30 
     | 
    
         
            +
                  - ! '"8dacf0db0641ec4786b03e49c77f8e47"'
         
     | 
| 
      
 31 
     | 
    
         
            +
                  cache-control:
         
     | 
| 
      
 32 
     | 
    
         
            +
                  - max-age=0, private, must-revalidate
         
     | 
| 
      
 33 
     | 
    
         
            +
                  x-runtime:
         
     | 
| 
      
 34 
     | 
    
         
            +
                  - '0.589433'
         
     | 
| 
      
 35 
     | 
    
         
            +
                  content-length:
         
     | 
| 
      
 36 
     | 
    
         
            +
                  - '401'
         
     | 
| 
      
 37 
     | 
    
         
            +
                  status:
         
     | 
| 
      
 38 
     | 
    
         
            +
                  - '200'
         
     | 
| 
      
 39 
     | 
    
         
            +
                  content-type:
         
     | 
| 
      
 40 
     | 
    
         
            +
                  - application/json
         
     | 
| 
      
 41 
     | 
    
         
            +
                body: ! '[{"_id":"51801","active":true,"created_at":"2011-02-07T18:43:57Z","patient_id":"123","questionnaire_id":5,"questionnaire_key":"honos","test":null,"token":"3d89c98fa68361f6","updated_at":"2011-11-29T13:59:15Z","value":{"v_2":"a4","v_3":"a4","v_1":"a4"},"value_by_values":{"v_2":"3","v_3":"3","v_1":"3"},"id":"51801","value_by_values":{"v_2":"3","v_3":"3","v_1":"3"},"scores":null,"is_completed":false},{"_id":"51802","active":true,"created_at":"2011-02-07T18:43:57Z","patient_id":"123","questionnaire_id":5,"questionnaire_key":"honos","test":null,"token":"3d89c98fa68361f6","updated_at":"2011-11-29T13:59:15Z","value":{"v_2":"a4","v_3":"a4","v_1":"a4"},"value_by_values":{"v_2":"3","v_3":"3","v_1":"3"},"id":"51801","value_by_values":{"v_2":"3","v_3":"3","v_1":"3"},"scores":null,"is_completed":false},{"_id":"51803","active":true,"created_at":"2011-02-07T18:43:57Z","patient_id":"123","questionnaire_id":5,"questionnaire_key":"honos","test":null,"token":"3d89c98fa68361f6","updated_at":"2011-11-29T13:59:15Z","value":{"v_2":"a4","v_3":"a4","v_1":"a4"},"value_by_values":{"v_2":"3","v_3":"3","v_1":"3"},"id":"51801","value_by_values":{"v_2":"3","v_3":"3","v_1":"3"},"scores":null,"is_completed":false}]'
         
     | 
| 
      
 42 
     | 
    
         
            +
                http_version: '1.1'
         
     | 
| 
      
 43 
     | 
    
         
            +
              recorded_at: Fri, 13 Jan 2012 14:58:41 GMT
         
     | 
| 
      
 44 
     | 
    
         
            +
            recorded_with: VCR 2.0.0.rc1
         
     | 
| 
         @@ -0,0 +1,46 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'spec_helper'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            describe RoQua::Answer do
         
     | 
| 
      
 4 
     | 
    
         
            +
              describe "#initialize" do 
         
     | 
| 
      
 5 
     | 
    
         
            +
                it "takes a hash" do
         
     | 
| 
      
 6 
     | 
    
         
            +
                  RoQua::Answer.new("_id" => "1").should be
         
     | 
| 
      
 7 
     | 
    
         
            +
                end
         
     | 
| 
      
 8 
     | 
    
         
            +
              end
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
              describe "#id" do
         
     | 
| 
      
 11 
     | 
    
         
            +
                it "translates to _id" do
         
     | 
| 
      
 12 
     | 
    
         
            +
                  RoQua::Answer.new("_id" => "123").id.should == "123"
         
     | 
| 
      
 13 
     | 
    
         
            +
                end
         
     | 
| 
      
 14 
     | 
    
         
            +
              end
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
              describe "#completed?" do
         
     | 
| 
      
 17 
     | 
    
         
            +
                it "translates to is_completed" do
         
     | 
| 
      
 18 
     | 
    
         
            +
                  RoQua::Answer.new("is_completed" => true).completed?.should be_true
         
     | 
| 
      
 19 
     | 
    
         
            +
                end
         
     | 
| 
      
 20 
     | 
    
         
            +
              end
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
              describe "#created_at" do
         
     | 
| 
      
 23 
     | 
    
         
            +
                it "returns a Time object" do
         
     | 
| 
      
 24 
     | 
    
         
            +
                  RoQua::Answer.new("created_at" => "2011-03-17T11:07:19Z").created_at.should be_a(Time)
         
     | 
| 
      
 25 
     | 
    
         
            +
                end
         
     | 
| 
      
 26 
     | 
    
         
            +
              end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              describe "#updated_at" do
         
     | 
| 
      
 29 
     | 
    
         
            +
                it "returns a Time object" do
         
     | 
| 
      
 30 
     | 
    
         
            +
                  RoQua::Answer.new("updated_at" => "2011-03-17T11:07:19Z").updated_at.should be_a(Time)
         
     | 
| 
      
 31 
     | 
    
         
            +
                end
         
     | 
| 
      
 32 
     | 
    
         
            +
              end
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
              describe "#completed_at" do
         
     | 
| 
      
 35 
     | 
    
         
            +
                it "returns a Time object" do
         
     | 
| 
      
 36 
     | 
    
         
            +
                  RoQua::Answer.new("completed_at" => "2011-03-17T11:07:19Z").completed_at.should be_a(Time)
         
     | 
| 
      
 37 
     | 
    
         
            +
                end
         
     | 
| 
      
 38 
     | 
    
         
            +
              end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
              describe "other attributes" do
         
     | 
| 
      
 41 
     | 
    
         
            +
                it "looks up in the given attributes" do
         
     | 
| 
      
 42 
     | 
    
         
            +
                  attributes = {"something" => stub}
         
     | 
| 
      
 43 
     | 
    
         
            +
                  RoQua::Answer.new(attributes).something.should == attributes["something"]
         
     | 
| 
      
 44 
     | 
    
         
            +
                end
         
     | 
| 
      
 45 
     | 
    
         
            +
              end
         
     | 
| 
      
 46 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,27 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require "spec_helper"
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            describe RoQua::Site do
         
     | 
| 
      
 4 
     | 
    
         
            +
              let(:base_url) { "http://rgoc.roqua.dev/api/v1" }
         
     | 
| 
      
 5 
     | 
    
         
            +
              let(:username) { "testuser" }
         
     | 
| 
      
 6 
     | 
    
         
            +
              let(:password) { "testpass" }
         
     | 
| 
      
 7 
     | 
    
         
            +
              let(:site) { RoQua::Site.new(base_url, username, password) }
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
              describe "#initialize" do
         
     | 
| 
      
 10 
     | 
    
         
            +
                it "takes a base url a username and a password" do
         
     | 
| 
      
 11 
     | 
    
         
            +
                  site.should be_a(RoQua::Site)
         
     | 
| 
      
 12 
     | 
    
         
            +
                end
         
     | 
| 
      
 13 
     | 
    
         
            +
              end
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
              describe "#answers" do
         
     | 
| 
      
 16 
     | 
    
         
            +
                use_vcr_cassette
         
     | 
| 
      
 17 
     | 
    
         
            +
                let(:answers) { site.answers(:patient_id => "123", :questionnaire_key => "honos") }
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
                it "returns a list of answers" do
         
     | 
| 
      
 20 
     | 
    
         
            +
                  answers.should have(3).answers
         
     | 
| 
      
 21 
     | 
    
         
            +
                end
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                it "should return Answer objects" do
         
     | 
| 
      
 24 
     | 
    
         
            +
                  answers[0].should be_an(RoQua::Answer)
         
     | 
| 
      
 25 
     | 
    
         
            +
                end
         
     | 
| 
      
 26 
     | 
    
         
            +
              end
         
     | 
| 
      
 27 
     | 
    
         
            +
            end
         
     | 
    
        data/spec/spec_helper.rb
    ADDED
    
    | 
         @@ -0,0 +1,18 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
         
     | 
| 
      
 2 
     | 
    
         
            +
            $LOAD_PATH.unshift(File.dirname(__FILE__))
         
     | 
| 
      
 3 
     | 
    
         
            +
            require 'rspec'
         
     | 
| 
      
 4 
     | 
    
         
            +
            require 'vcr'
         
     | 
| 
      
 5 
     | 
    
         
            +
            require 'roqua-gem'
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            # Requires supporting files with custom matchers and macros, etc,
         
     | 
| 
      
 8 
     | 
    
         
            +
            # in ./support/ and its subdirectories.
         
     | 
| 
      
 9 
     | 
    
         
            +
            Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            VCR.configure do |config|
         
     | 
| 
      
 12 
     | 
    
         
            +
              config.cassette_library_dir = "spec/cassettes"
         
     | 
| 
      
 13 
     | 
    
         
            +
              config.hook_into :fakeweb
         
     | 
| 
      
 14 
     | 
    
         
            +
            end
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            RSpec.configure do |config|
         
     | 
| 
      
 17 
     | 
    
         
            +
              config.extend VCR::RSpec::Macros
         
     | 
| 
      
 18 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,155 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: roqua-gem
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.1
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
      
 6 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 7 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 8 
     | 
    
         
            +
            - Marten Veldthuis
         
     | 
| 
      
 9 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 10 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 11 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2012-01-13 00:00:00.000000000 Z
         
     | 
| 
      
 13 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 14 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 15 
     | 
    
         
            +
              name: rest-client
         
     | 
| 
      
 16 
     | 
    
         
            +
              requirement: &13803220 !ruby/object:Gem::Requirement
         
     | 
| 
      
 17 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 18 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 19 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 20 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 21 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 22 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 23 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 24 
     | 
    
         
            +
              version_requirements: *13803220
         
     | 
| 
      
 25 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 26 
     | 
    
         
            +
              name: addressable
         
     | 
| 
      
 27 
     | 
    
         
            +
              requirement: &13818060 !ruby/object:Gem::Requirement
         
     | 
| 
      
 28 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 29 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 30 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 31 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 32 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 33 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 34 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 35 
     | 
    
         
            +
              version_requirements: *13818060
         
     | 
| 
      
 36 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 37 
     | 
    
         
            +
              name: json
         
     | 
| 
      
 38 
     | 
    
         
            +
              requirement: &13817020 !ruby/object:Gem::Requirement
         
     | 
| 
      
 39 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 40 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 41 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 42 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 43 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 44 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 45 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 46 
     | 
    
         
            +
              version_requirements: *13817020
         
     | 
| 
      
 47 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 48 
     | 
    
         
            +
              name: rspec
         
     | 
| 
      
 49 
     | 
    
         
            +
              requirement: &13814780 !ruby/object:Gem::Requirement
         
     | 
| 
      
 50 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 51 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 52 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 53 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 54 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 55 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 56 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 57 
     | 
    
         
            +
              version_requirements: *13814780
         
     | 
| 
      
 58 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 59 
     | 
    
         
            +
              name: jeweler
         
     | 
| 
      
 60 
     | 
    
         
            +
              requirement: &13812420 !ruby/object:Gem::Requirement
         
     | 
| 
      
 61 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 62 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 63 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 64 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 65 
     | 
    
         
            +
                    version: 1.6.4
         
     | 
| 
      
 66 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 67 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 68 
     | 
    
         
            +
              version_requirements: *13812420
         
     | 
| 
      
 69 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 70 
     | 
    
         
            +
              name: rcov
         
     | 
| 
      
 71 
     | 
    
         
            +
              requirement: &13876240 !ruby/object:Gem::Requirement
         
     | 
| 
      
 72 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 73 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 74 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 75 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 76 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 77 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 78 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 79 
     | 
    
         
            +
              version_requirements: *13876240
         
     | 
| 
      
 80 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 81 
     | 
    
         
            +
              name: vcr
         
     | 
| 
      
 82 
     | 
    
         
            +
              requirement: &13875040 !ruby/object:Gem::Requirement
         
     | 
| 
      
 83 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 84 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 85 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 86 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 87 
     | 
    
         
            +
                    version: 2.0.0.rc1
         
     | 
| 
      
 88 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 89 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 90 
     | 
    
         
            +
              version_requirements: *13875040
         
     | 
| 
      
 91 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 92 
     | 
    
         
            +
              name: fakeweb
         
     | 
| 
      
 93 
     | 
    
         
            +
              requirement: &13872460 !ruby/object:Gem::Requirement
         
     | 
| 
      
 94 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 95 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 96 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 97 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 98 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 99 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 100 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 101 
     | 
    
         
            +
              version_requirements: *13872460
         
     | 
| 
      
 102 
     | 
    
         
            +
            description: A wrapper for the RoQua API (internal usage only for now)
         
     | 
| 
      
 103 
     | 
    
         
            +
            email: team@roqua.nl
         
     | 
| 
      
 104 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 105 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 106 
     | 
    
         
            +
            extra_rdoc_files:
         
     | 
| 
      
 107 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 108 
     | 
    
         
            +
            - README.markdown
         
     | 
| 
      
 109 
     | 
    
         
            +
            files:
         
     | 
| 
      
 110 
     | 
    
         
            +
            - .document
         
     | 
| 
      
 111 
     | 
    
         
            +
            - .rspec
         
     | 
| 
      
 112 
     | 
    
         
            +
            - .travis.yml
         
     | 
| 
      
 113 
     | 
    
         
            +
            - Gemfile
         
     | 
| 
      
 114 
     | 
    
         
            +
            - Gemfile.lock
         
     | 
| 
      
 115 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 116 
     | 
    
         
            +
            - README.markdown
         
     | 
| 
      
 117 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 118 
     | 
    
         
            +
            - VERSION
         
     | 
| 
      
 119 
     | 
    
         
            +
            - lib/roqua-gem.rb
         
     | 
| 
      
 120 
     | 
    
         
            +
            - lib/roqua/answer.rb
         
     | 
| 
      
 121 
     | 
    
         
            +
            - lib/roqua/site.rb
         
     | 
| 
      
 122 
     | 
    
         
            +
            - roqua-gem.gemspec
         
     | 
| 
      
 123 
     | 
    
         
            +
            - spec/cassettes/RoQua_Site/_answers.yml
         
     | 
| 
      
 124 
     | 
    
         
            +
            - spec/roqua/answer_spec.rb
         
     | 
| 
      
 125 
     | 
    
         
            +
            - spec/roqua/site_spec.rb
         
     | 
| 
      
 126 
     | 
    
         
            +
            - spec/spec_helper.rb
         
     | 
| 
      
 127 
     | 
    
         
            +
            homepage: http://github.com/roqua/roqua-gem
         
     | 
| 
      
 128 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 129 
     | 
    
         
            +
            - MIT
         
     | 
| 
      
 130 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 131 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 132 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 133 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 134 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 135 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 136 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 137 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 138 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 139 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 140 
     | 
    
         
            +
                  segments:
         
     | 
| 
      
 141 
     | 
    
         
            +
                  - 0
         
     | 
| 
      
 142 
     | 
    
         
            +
                  hash: -1930033585848403716
         
     | 
| 
      
 143 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 144 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 145 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 146 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 147 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 148 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 149 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 150 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 151 
     | 
    
         
            +
            rubygems_version: 1.8.11
         
     | 
| 
      
 152 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 153 
     | 
    
         
            +
            specification_version: 3
         
     | 
| 
      
 154 
     | 
    
         
            +
            summary: API client gem for RoQua
         
     | 
| 
      
 155 
     | 
    
         
            +
            test_files: []
         
     |