producteev 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.
- data/lib/producteev/activities.rb +4 -4
- data/lib/producteev/api.rb +2 -2
- data/lib/producteev/client.rb +1 -1
- data/lib/producteev/dashboards.rb +16 -16
- data/lib/producteev/labels.rb +6 -6
- data/lib/producteev/tasks.rb +26 -26
- data/lib/producteev/version.rb +1 -1
- metadata +5 -5
| @@ -6,19 +6,19 @@ module Producteev | |
| 6 6 | 
             
                  end
         | 
| 7 7 |  | 
| 8 8 | 
             
                  def show_activities(options = {})
         | 
| 9 | 
            -
                    return @api. | 
| 9 | 
            +
                    return @api.send_request("/activities/show_activities.json",options)
         | 
| 10 10 | 
             
                  end
         | 
| 11 11 |  | 
| 12 12 | 
             
                  def show_notifications(options = {})
         | 
| 13 | 
            -
                    return @api. | 
| 13 | 
            +
                    return @api.send_request("/activities/show_notifications.json",options)
         | 
| 14 14 | 
             
                  end
         | 
| 15 15 |  | 
| 16 16 | 
             
                  def notifications_set_read(options = {})
         | 
| 17 | 
            -
                    return @api. | 
| 17 | 
            +
                    return @api.send_request("/activities/notifications_set_read.json",options)
         | 
| 18 18 | 
             
                  end
         | 
| 19 19 |  | 
| 20 20 | 
             
                  def set_read(options = {})
         | 
| 21 | 
            -
                    return @api. | 
| 21 | 
            +
                    return @api.send_request("/activities/set_read.json",options)
         | 
| 22 22 | 
             
                  end
         | 
| 23 23 | 
             
              end
         | 
| 24 24 | 
             
            end
         | 
    
        data/lib/producteev/api.rb
    CHANGED
    
    | @@ -12,7 +12,7 @@ module Producteev | |
| 12 12 |  | 
| 13 13 | 
             
                  def login(email,password)
         | 
| 14 14 | 
             
                    param = {:email => email, :password => password}
         | 
| 15 | 
            -
                    @token = self. | 
| 15 | 
            +
                    @token = self.send_request("/users/login.json",param)['login']['token']
         | 
| 16 16 | 
             
                  end
         | 
| 17 17 |  | 
| 18 18 | 
             
                  def generate_signature(parameters)
         | 
| @@ -32,7 +32,7 @@ module Producteev | |
| 32 32 | 
             
                  end
         | 
| 33 33 |  | 
| 34 34 |  | 
| 35 | 
            -
                  def  | 
| 35 | 
            +
                  def send_request(path, options={})
         | 
| 36 36 | 
             
                    options.merge!({:api_key => @apikey})
         | 
| 37 37 |  | 
| 38 38 | 
             
                    if @token != nil
         | 
    
        data/lib/producteev/client.rb
    CHANGED
    
    
| @@ -6,67 +6,67 @@ module Producteev | |
| 6 6 | 
             
                  end
         | 
| 7 7 |  | 
| 8 8 | 
             
                  def create(options = {})
         | 
| 9 | 
            -
                    return @api. | 
| 9 | 
            +
                    return @api.send_request("/dashboards/create.json",options)
         | 
| 10 10 | 
             
                  end
         | 
| 11 11 |  | 
| 12 12 | 
             
                  def view(options = {})
         | 
| 13 | 
            -
                    return @api. | 
| 13 | 
            +
                    return @api.send_request("/dashboards/view.json",options)
         | 
| 14 14 | 
             
                  end
         | 
| 15 15 |  | 
| 16 16 | 
             
                  def show_list(options = {})
         | 
| 17 | 
            -
                    return @api. | 
| 17 | 
            +
                    return @api.send_request("/dashboards/show_list.json",options)
         | 
| 18 18 | 
             
                  end
         | 
| 19 19 |  | 
| 20 20 | 
             
                  def access(options = {})
         | 
| 21 | 
            -
                    return @api. | 
| 21 | 
            +
                    return @api.send_request("/dashboards/access.json",options)
         | 
| 22 22 | 
             
                  end
         | 
| 23 23 |  | 
| 24 24 | 
             
                  def leave(options = {})
         | 
| 25 | 
            -
                    return @api. | 
| 25 | 
            +
                    return @api.send_request("/dashboards/leave.json",options)
         | 
| 26 26 | 
             
                  end
         | 
| 27 27 |  | 
| 28 28 | 
             
                  def set_title(options = {})
         | 
| 29 | 
            -
                    return @api. | 
| 29 | 
            +
                    return @api.send_request("/dashboards/set_title.json",options)
         | 
| 30 30 | 
             
                  end
         | 
| 31 31 |  | 
| 32 32 | 
             
                  def set_smart_labels(options = {})
         | 
| 33 | 
            -
                    return @api. | 
| 33 | 
            +
                    return @api.send_request("/dashboards/set_smart_labels.json",options)
         | 
| 34 34 | 
             
                  end
         | 
| 35 35 |  | 
| 36 36 | 
             
                  def delete(options = {})
         | 
| 37 | 
            -
                    return @api. | 
| 37 | 
            +
                    return @api.send_request("/dashboards/delete.json",options)
         | 
| 38 38 | 
             
                  end
         | 
| 39 39 |  | 
| 40 40 | 
             
                  def tasks(options = {})
         | 
| 41 | 
            -
                    return @api. | 
| 41 | 
            +
                    return @api.send_request("/dashboards/tasks.json",options)
         | 
| 42 42 | 
             
                  end
         | 
| 43 43 |  | 
| 44 44 | 
             
                  def confirm(options = {})
         | 
| 45 | 
            -
                    return @api. | 
| 45 | 
            +
                    return @api.send_request("/dashboards/confirm.json",options)
         | 
| 46 46 | 
             
                  end
         | 
| 47 47 |  | 
| 48 48 | 
             
                  def refuse(options = {})
         | 
| 49 | 
            -
                    return @api. | 
| 49 | 
            +
                    return @api.send_request("/dashboards/refuse.json",options)
         | 
| 50 50 | 
             
                  end
         | 
| 51 51 |  | 
| 52 52 | 
             
                  def invite_user_by_id(options = {})
         | 
| 53 | 
            -
                    return @api. | 
| 53 | 
            +
                    return @api.send_request("/dashboards/invite_user_by_id.json",options)
         | 
| 54 54 | 
             
                  end
         | 
| 55 55 |  | 
| 56 56 | 
             
                  def invite_user_by_email(options = {})
         | 
| 57 | 
            -
                    return @api. | 
| 57 | 
            +
                    return @api.send_request("/dashboards/invite_user_by_email.json",options)
         | 
| 58 58 | 
             
                  end
         | 
| 59 59 |  | 
| 60 60 | 
             
                  def need_upgrade_list(options = {})
         | 
| 61 | 
            -
                    return @api. | 
| 61 | 
            +
                    return @api.send_request("/dashboards/need_upgrade_list.json",options)
         | 
| 62 62 | 
             
                  end
         | 
| 63 63 |  | 
| 64 64 | 
             
                  def needs_upgrade(options = {})
         | 
| 65 | 
            -
                    return @api. | 
| 65 | 
            +
                    return @api.send_request("/dashboards/needs_upgrade.json",options)
         | 
| 66 66 | 
             
                  end
         | 
| 67 67 |  | 
| 68 68 | 
             
                  def reorder(options = {})
         | 
| 69 | 
            -
                    return @api. | 
| 69 | 
            +
                    return @api.send_request("/dashboards/reorder.json",options)
         | 
| 70 70 | 
             
                  end
         | 
| 71 71 |  | 
| 72 72 | 
             
              end
         | 
    
        data/lib/producteev/labels.rb
    CHANGED
    
    | @@ -6,27 +6,27 @@ module Producteev | |
| 6 6 | 
             
                  end
         | 
| 7 7 |  | 
| 8 8 | 
             
                  def create(options = {})
         | 
| 9 | 
            -
                    return @api. | 
| 9 | 
            +
                    return @api.send_request("/labels/create.json",options)
         | 
| 10 10 | 
             
                  end
         | 
| 11 11 |  | 
| 12 12 | 
             
                  def delete(options = {})
         | 
| 13 | 
            -
                    return @api. | 
| 13 | 
            +
                    return @api.send_request("/labels/delete.json",options)
         | 
| 14 14 | 
             
                  end
         | 
| 15 15 |  | 
| 16 16 | 
             
                  def view(options = {})
         | 
| 17 | 
            -
                    return @api. | 
| 17 | 
            +
                    return @api.send_request("/labels/view.json",options)
         | 
| 18 18 | 
             
                  end
         | 
| 19 19 |  | 
| 20 20 | 
             
                  def show_list(options = {})
         | 
| 21 | 
            -
                    return @api. | 
| 21 | 
            +
                    return @api.send_request("/labels/show_list.json",options)
         | 
| 22 22 | 
             
                  end
         | 
| 23 23 |  | 
| 24 24 | 
             
                  def tasks(options = {})
         | 
| 25 | 
            -
                    return @api. | 
| 25 | 
            +
                    return @api.send_request("/labels/tasks.json",options)
         | 
| 26 26 | 
             
                  end
         | 
| 27 27 |  | 
| 28 28 | 
             
                  def set_title(options = {})
         | 
| 29 | 
            -
                    return @api. | 
| 29 | 
            +
                    return @api.send_request("/labels/set_title.json",options)
         | 
| 30 30 | 
             
                  end
         | 
| 31 31 | 
             
              end
         | 
| 32 32 | 
             
            end
         | 
    
        data/lib/producteev/tasks.rb
    CHANGED
    
    | @@ -6,107 +6,107 @@ module Producteev | |
| 6 6 | 
             
                  end
         | 
| 7 7 |  | 
| 8 8 | 
             
                  def create(options = {})
         | 
| 9 | 
            -
                    return @api. | 
| 9 | 
            +
                    return @api.send_request("/tasks/create.json",options)
         | 
| 10 10 | 
             
                  end
         | 
| 11 11 |  | 
| 12 12 | 
             
                  def delete(options = {})
         | 
| 13 | 
            -
                    return @api. | 
| 13 | 
            +
                    return @api.send_request("/tasks/delete.json",options)
         | 
| 14 14 | 
             
                  end
         | 
| 15 15 |  | 
| 16 16 | 
             
                  def view(options = {})
         | 
| 17 | 
            -
                    return @api. | 
| 17 | 
            +
                    return @api.send_request("/tasks/view.json",options)
         | 
| 18 18 | 
             
                  end
         | 
| 19 19 |  | 
| 20 20 | 
             
                  def show_list(options = {})
         | 
| 21 | 
            -
                    return @api. | 
| 21 | 
            +
                    return @api.send_request("/tasks/show_list.json",options)
         | 
| 22 22 | 
             
                  end
         | 
| 23 23 |  | 
| 24 24 | 
             
                  def my_tasks(options = {})
         | 
| 25 | 
            -
                    return @api. | 
| 25 | 
            +
                    return @api.send_request("/tasks/show_list.json",options)
         | 
| 26 26 | 
             
                  end
         | 
| 27 27 |  | 
| 28 28 | 
             
                  def my_tasks(options = {})
         | 
| 29 | 
            -
                    return @api. | 
| 29 | 
            +
                    return @api.send_request("/tasks/archived.json",options)
         | 
| 30 30 | 
             
                  end
         | 
| 31 31 |  | 
| 32 32 | 
             
                  def my_team_tasks(options = {})
         | 
| 33 | 
            -
                    return @api. | 
| 33 | 
            +
                    return @api.send_request("/tasks/my_team_tasks.json",options)
         | 
| 34 34 | 
             
                  end
         | 
| 35 35 |  | 
| 36 36 | 
             
                  def set_title(options = {})
         | 
| 37 | 
            -
                    return @api. | 
| 37 | 
            +
                    return @api.send_request("/tasks/set_title.json",options)
         | 
| 38 38 | 
             
                  end
         | 
| 39 39 |  | 
| 40 40 | 
             
                  def set_status(options = {})
         | 
| 41 | 
            -
                    return @api. | 
| 41 | 
            +
                    return @api.send_request("/tasks/set_status.json",options)
         | 
| 42 42 | 
             
                  end
         | 
| 43 43 |  | 
| 44 44 | 
             
                  def set_star(options = {})
         | 
| 45 | 
            -
                    return @api. | 
| 45 | 
            +
                    return @api.send_request("/tasks/set_star.json",options)
         | 
| 46 46 | 
             
                  end
         | 
| 47 47 |  | 
| 48 48 | 
             
                  def set_responsible(options = {})
         | 
| 49 | 
            -
                    return @api. | 
| 49 | 
            +
                    return @api.send_request("/tasks/set_responsible.json",options)
         | 
| 50 50 | 
             
                  end
         | 
| 51 51 |  | 
| 52 52 | 
             
                  def unset_responsible(options = {})
         | 
| 53 | 
            -
                    return @api. | 
| 53 | 
            +
                    return @api.send_request("/tasks/unset_responsible.json",options)
         | 
| 54 54 | 
             
                  end
         | 
| 55 55 |  | 
| 56 56 | 
             
                  def set_deadline(options = {})
         | 
| 57 | 
            -
                    return @api. | 
| 57 | 
            +
                    return @api.send_request("/tasks/set_deadline.json",options)
         | 
| 58 58 | 
             
                  end
         | 
| 59 59 |  | 
| 60 60 | 
             
                  def unset_deadline(options = {})
         | 
| 61 | 
            -
                    return @api. | 
| 61 | 
            +
                    return @api.send_request("/tasks/unset_deadline.json",options)
         | 
| 62 62 | 
             
                  end
         | 
| 63 63 |  | 
| 64 64 | 
             
                  def set_reminder(options = {})
         | 
| 65 | 
            -
                    return @api. | 
| 65 | 
            +
                    return @api.send_request("/tasks/set_reminder.json",options)
         | 
| 66 66 | 
             
                  end
         | 
| 67 67 |  | 
| 68 68 | 
             
                  def set_repeating(options = {})
         | 
| 69 | 
            -
                    return @api. | 
| 69 | 
            +
                    return @api.send_request("/tasks/set_repeating.json",options)
         | 
| 70 70 | 
             
                  end
         | 
| 71 71 |  | 
| 72 72 | 
             
                  def unset_repeating(options = {})
         | 
| 73 | 
            -
                    return @api. | 
| 73 | 
            +
                    return @api.send_request("/tasks/unset_repeating.json",options)
         | 
| 74 74 | 
             
                  end
         | 
| 75 75 |  | 
| 76 76 | 
             
                  def labels(options = {})
         | 
| 77 | 
            -
                    return @api. | 
| 77 | 
            +
                    return @api.send_request("/tasks/labels.json",options)
         | 
| 78 78 | 
             
                  end
         | 
| 79 79 |  | 
| 80 80 | 
             
                  def change_labels(options = {})
         | 
| 81 | 
            -
                    return @api. | 
| 81 | 
            +
                    return @api.send_request("/tasks/change_labels.json",options)
         | 
| 82 82 | 
             
                  end
         | 
| 83 83 |  | 
| 84 84 | 
             
                  def set_workspace(options = {})
         | 
| 85 | 
            -
                    return @api. | 
| 85 | 
            +
                    return @api.send_request("/tasks/set_workspace.json",options)
         | 
| 86 86 | 
             
                  end
         | 
| 87 87 |  | 
| 88 88 | 
             
                  def note_view(options = {})
         | 
| 89 | 
            -
                    return @api. | 
| 89 | 
            +
                    return @api.send_request("/tasks/note_view.json",options)
         | 
| 90 90 | 
             
                  end
         | 
| 91 91 |  | 
| 92 92 | 
             
                  def notes_get(options = {})
         | 
| 93 | 
            -
                    return @api. | 
| 93 | 
            +
                    return @api.send_request("/tasks/notes_get.json",options)
         | 
| 94 94 | 
             
                  end
         | 
| 95 95 |  | 
| 96 96 | 
             
                  def note_create(options = {})
         | 
| 97 | 
            -
                    return @api. | 
| 97 | 
            +
                    return @api.send_request("/tasks/note_create.json",options)
         | 
| 98 98 | 
             
                  end
         | 
| 99 99 |  | 
| 100 100 | 
             
                  def note_delete(options = {})
         | 
| 101 | 
            -
                    return @api. | 
| 101 | 
            +
                    return @api.send_request("/tasks/note_delete.json",options)
         | 
| 102 102 | 
             
                  end
         | 
| 103 103 |  | 
| 104 104 | 
             
                  def activity_view(options = {})
         | 
| 105 | 
            -
                    return @api. | 
| 105 | 
            +
                    return @api.send_request("/tasks/activity_view.json",options)
         | 
| 106 106 | 
             
                  end
         | 
| 107 107 |  | 
| 108 108 | 
             
                  def activities_get(options = {})
         | 
| 109 | 
            -
                    return @api. | 
| 109 | 
            +
                    return @api.send_request("/tasks/activities_get.json",options)
         | 
| 110 110 | 
             
                  end
         | 
| 111 111 | 
             
              end
         | 
| 112 112 | 
             
            end
         | 
    
        data/lib/producteev/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: producteev
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.3
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -13,7 +13,7 @@ date: 2012-01-26 00:00:00.000000000 Z | |
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: httparty
         | 
| 16 | 
            -
              requirement: & | 
| 16 | 
            +
              requirement: &22266440 !ruby/object:Gem::Requirement
         | 
| 17 17 | 
             
                none: false
         | 
| 18 18 | 
             
                requirements:
         | 
| 19 19 | 
             
                - - ! '>='
         | 
| @@ -21,10 +21,10 @@ dependencies: | |
| 21 21 | 
             
                    version: '0'
         | 
| 22 22 | 
             
              type: :runtime
         | 
| 23 23 | 
             
              prerelease: false
         | 
| 24 | 
            -
              version_requirements: * | 
| 24 | 
            +
              version_requirements: *22266440
         | 
| 25 25 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 26 26 | 
             
              name: json
         | 
| 27 | 
            -
              requirement: & | 
| 27 | 
            +
              requirement: &22265820 !ruby/object:Gem::Requirement
         | 
| 28 28 | 
             
                none: false
         | 
| 29 29 | 
             
                requirements:
         | 
| 30 30 | 
             
                - - ! '>='
         | 
| @@ -32,7 +32,7 @@ dependencies: | |
| 32 32 | 
             
                    version: '0'
         | 
| 33 33 | 
             
              type: :runtime
         | 
| 34 34 | 
             
              prerelease: false
         | 
| 35 | 
            -
              version_requirements: * | 
| 35 | 
            +
              version_requirements: *22265820
         | 
| 36 36 | 
             
            description: Api client for producteev
         | 
| 37 37 | 
             
            email: steve@thatbytes.co.uk
         | 
| 38 38 | 
             
            executables: []
         |