my_zeo 0.4.3 → 0.4.4
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/lib/my_zeo.rb +11 -2
 - metadata +4 -4
 
    
        data/lib/my_zeo.rb
    CHANGED
    
    | 
         @@ -15,7 +15,7 @@ class MyZeo 
     | 
|
| 
       15 
15 
     | 
    
         
             
                MyZeo.base_uri opts[:base_url] if opts[:base_url] 
         
     | 
| 
       16 
16 
     | 
    
         
             
              end
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
              #  
     | 
| 
      
 18 
     | 
    
         
            +
              # BULK API
         
     | 
| 
       19 
19 
     | 
    
         
             
              # *************************************************************************************************************************************
         
     | 
| 
       20 
20 
     | 
    
         
             
              def subscribe_to_notify_link(callback_url)
         
     | 
| 
       21 
21 
     | 
    
         
             
                "#{self.class.base_uri}/subscribeToNotify?key=#{@api_key}&userid=#{@user_id}&callback=#{callback_url}"
         
     | 
| 
         @@ -39,6 +39,11 @@ class MyZeo 
     | 
|
| 
       39 
39 
     | 
    
         
             
                MyZeo.get("/getBulkSleepRecordsSinceDate?key=#{@api_key}", :query => {:userid => @user_id, :date => date }).recursive_symbolize_keys!
         
     | 
| 
       40 
40 
     | 
    
         
             
              end
         
     | 
| 
       41 
41 
     | 
    
         | 
| 
      
 42 
     | 
    
         
            +
              def j_spring_security_logout
         
     | 
| 
      
 43 
     | 
    
         
            +
                logout_url_base = self.base_uri.split('/api/').first
         
     | 
| 
      
 44 
     | 
    
         
            +
                get("#{logout_url_base}/j_spring_security_logout")
         
     | 
| 
      
 45 
     | 
    
         
            +
              end
         
     | 
| 
      
 46 
     | 
    
         
            +
              
         
     | 
| 
       42 
47 
     | 
    
         
             
              # *************************************************************************************************************************************
         
     | 
| 
       43 
48 
     | 
    
         | 
| 
       44 
49 
     | 
    
         
             
              def get_overall_average_zq_score
         
     | 
| 
         @@ -114,7 +119,11 @@ class MyZeo 
     | 
|
| 
       114 
119 
     | 
    
         
             
              end
         
     | 
| 
       115 
120 
     | 
    
         | 
| 
       116 
121 
     | 
    
         
             
              def logout
         
     | 
| 
       117 
     | 
    
         
            -
                MyZeo.get("/logout?key=#{@api_key}") 
     | 
| 
      
 122 
     | 
    
         
            +
                MyZeo.get("/logout?key=#{@api_key}")
         
     | 
| 
      
 123 
     | 
    
         
            +
              end
         
     | 
| 
      
 124 
     | 
    
         
            +
              
         
     | 
| 
      
 125 
     | 
    
         
            +
              def secure_logout
         
     | 
| 
      
 126 
     | 
    
         
            +
                MyZeo.get("#{self.class.base_uri.split('/api/').first}/j_spring_security_logout")
         
     | 
| 
       118 
127 
     | 
    
         
             
              end
         
     | 
| 
       119 
128 
     | 
    
         | 
| 
       120 
129 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: my_zeo
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 7
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 4
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.4. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 4
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.4.4
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - Haris Amin
         
     | 
| 
         @@ -15,7 +15,7 @@ autorequire: 
     | 
|
| 
       15 
15 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
16 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            date:  
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2011-02-03 00:00:00 -05:00
         
     | 
| 
       19 
19 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       20 
20 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       21 
21 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |