nov-iknow 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Iknow::Version
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- REVISION = 2
4
+ REVISION = 3
5
5
  class << self
6
6
  def to_version
7
7
  "#{MAJOR}.#{MINOR}.#{REVISION}"
@@ -95,6 +95,7 @@ class Iknow::User < Iknow::Base
95
95
 
96
96
  def study(params = {})
97
97
  params[:application] ||= 'iknow'
98
+ return nil unless ['iknow', 'dictation', 'brainspeed', ].include?(params[:application])
98
99
  hash = Iknow::RestClient::User.study_results(params.merge(:username => self.username))
99
100
  self.deserialize(hash, :as => Iknow::User::Study)
100
101
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nov-iknow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov