gitlab 3.2.0 → 3.3.0
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.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +195 -0
- data/README.md +12 -0
- data/lib/gitlab.rb +5 -0
- data/lib/gitlab/cli.rb +6 -0
- data/lib/gitlab/cli_helpers.rb +40 -3
- data/lib/gitlab/client.rb +1 -0
- data/lib/gitlab/client/labels.rb +55 -0
- data/lib/gitlab/client/merge_requests.rb +20 -2
- data/lib/gitlab/client/projects.rb +18 -9
- data/lib/gitlab/client/repositories.rb +84 -4
- data/lib/gitlab/configuration.rb +1 -1
- data/lib/gitlab/help.rb +2 -2
- data/lib/gitlab/objectified_hash.rb +4 -0
- data/lib/gitlab/request.rb +18 -6
- data/lib/gitlab/shell.rb +42 -4
- data/lib/gitlab/shell_history.rb +61 -0
- data/lib/gitlab/version.rb +1 -1
- data/spec/fixtures/compare_merge_request_diff.json +31 -0
- data/spec/fixtures/label.json +1 -0
- data/spec/fixtures/labels.json +1 -0
- data/spec/fixtures/{comment_merge_request.json → merge_request_comment.json} +0 -0
- data/spec/fixtures/project_commit_comment.json +1 -0
- data/spec/fixtures/project_commit_comments.json +1 -0
- data/spec/fixtures/project_tag_annotated.json +1 -0
- data/spec/fixtures/project_tag_lightweight.json +1 -0
- data/spec/fixtures/raw_file.json +2 -0
- data/spec/fixtures/shell_history.json +2 -0
- data/spec/fixtures/tree.json +1 -0
- data/spec/gitlab/client/branches_spec.rb +12 -31
- data/spec/gitlab/client/labels_spec.rb +68 -0
- data/spec/gitlab/client/merge_requests_spec.rb +39 -17
- data/spec/gitlab/client/projects_spec.rb +1 -1
- data/spec/gitlab/client/repositories_spec.rb +110 -5
- data/spec/gitlab/client/system_hooks_spec.rb +3 -3
- data/spec/gitlab/objectified_hash_spec.rb +19 -1
- data/spec/gitlab/request_spec.rb +4 -3
- data/spec/gitlab/shell_history_spec.rb +53 -0
- data/spec/gitlab_spec.rb +21 -1
- metadata +32 -21
- data/spec/fixtures/create_branch.json +0 -1
- data/spec/fixtures/create_merge_request.json +0 -1
- data/spec/fixtures/project_delete_key.json +0 -8
- data/spec/fixtures/protect_branch.json +0 -1
- data/spec/fixtures/system_hook_test.json +0 -1
- data/spec/fixtures/tag.json +0 -1
- data/spec/fixtures/unprotect_branch.json +0 -1
- data/spec/fixtures/update_merge_request.json +0 -1
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: gitlab
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3. | 
| 4 | 
            +
              version: 3.3.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Nihad Abbasov
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014- | 
| 11 | 
            +
            date: 2014-12-22 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: httparty
         | 
| @@ -90,6 +90,7 @@ extra_rdoc_files: [] | |
| 90 90 | 
             
            files:
         | 
| 91 91 | 
             
            - ".gitignore"
         | 
| 92 92 | 
             
            - ".travis.yml"
         | 
| 93 | 
            +
            - CONTRIBUTING.md
         | 
| 93 94 | 
             
            - Gemfile
         | 
| 94 95 | 
             
            - LICENSE.txt
         | 
| 95 96 | 
             
            - README.md
         | 
| @@ -104,6 +105,7 @@ files: | |
| 104 105 | 
             
            - lib/gitlab/client/branches.rb
         | 
| 105 106 | 
             
            - lib/gitlab/client/groups.rb
         | 
| 106 107 | 
             
            - lib/gitlab/client/issues.rb
         | 
| 108 | 
            +
            - lib/gitlab/client/labels.rb
         | 
| 107 109 | 
             
            - lib/gitlab/client/merge_requests.rb
         | 
| 108 110 | 
             
            - lib/gitlab/client/milestones.rb
         | 
| 109 111 | 
             
            - lib/gitlab/client/notes.rb
         | 
| @@ -118,12 +120,11 @@ files: | |
| 118 120 | 
             
            - lib/gitlab/objectified_hash.rb
         | 
| 119 121 | 
             
            - lib/gitlab/request.rb
         | 
| 120 122 | 
             
            - lib/gitlab/shell.rb
         | 
| 123 | 
            +
            - lib/gitlab/shell_history.rb
         | 
| 121 124 | 
             
            - lib/gitlab/version.rb
         | 
| 122 125 | 
             
            - spec/fixtures/branch.json
         | 
| 123 126 | 
             
            - spec/fixtures/branches.json
         | 
| 124 | 
            -
            - spec/fixtures/ | 
| 125 | 
            -
            - spec/fixtures/create_branch.json
         | 
| 126 | 
            -
            - spec/fixtures/create_merge_request.json
         | 
| 127 | 
            +
            - spec/fixtures/compare_merge_request_diff.json
         | 
| 127 128 | 
             
            - spec/fixtures/error_already_exists.json
         | 
| 128 129 | 
             
            - spec/fixtures/group.json
         | 
| 129 130 | 
             
            - spec/fixtures/group_create.json
         | 
| @@ -135,7 +136,10 @@ files: | |
| 135 136 | 
             
            - spec/fixtures/issues.json
         | 
| 136 137 | 
             
            - spec/fixtures/key.json
         | 
| 137 138 | 
             
            - spec/fixtures/keys.json
         | 
| 139 | 
            +
            - spec/fixtures/label.json
         | 
| 140 | 
            +
            - spec/fixtures/labels.json
         | 
| 138 141 | 
             
            - spec/fixtures/merge_request.json
         | 
| 142 | 
            +
            - spec/fixtures/merge_request_comment.json
         | 
| 139 143 | 
             
            - spec/fixtures/merge_request_comments.json
         | 
| 140 144 | 
             
            - spec/fixtures/merge_requests.json
         | 
| 141 145 | 
             
            - spec/fixtures/milestone.json
         | 
| @@ -144,9 +148,10 @@ files: | |
| 144 148 | 
             
            - spec/fixtures/notes.json
         | 
| 145 149 | 
             
            - spec/fixtures/project.json
         | 
| 146 150 | 
             
            - spec/fixtures/project_commit.json
         | 
| 151 | 
            +
            - spec/fixtures/project_commit_comment.json
         | 
| 152 | 
            +
            - spec/fixtures/project_commit_comments.json
         | 
| 147 153 | 
             
            - spec/fixtures/project_commit_diff.json
         | 
| 148 154 | 
             
            - spec/fixtures/project_commits.json
         | 
| 149 | 
            -
            - spec/fixtures/project_delete_key.json
         | 
| 150 155 | 
             
            - spec/fixtures/project_events.json
         | 
| 151 156 | 
             
            - spec/fixtures/project_for_user.json
         | 
| 152 157 | 
             
            - spec/fixtures/project_fork_link.json
         | 
| @@ -155,26 +160,27 @@ files: | |
| 155 160 | 
             
            - spec/fixtures/project_issues.json
         | 
| 156 161 | 
             
            - spec/fixtures/project_key.json
         | 
| 157 162 | 
             
            - spec/fixtures/project_keys.json
         | 
| 163 | 
            +
            - spec/fixtures/project_tag_annotated.json
         | 
| 164 | 
            +
            - spec/fixtures/project_tag_lightweight.json
         | 
| 158 165 | 
             
            - spec/fixtures/project_tags.json
         | 
| 159 166 | 
             
            - spec/fixtures/projects.json
         | 
| 160 | 
            -
            - spec/fixtures/ | 
| 167 | 
            +
            - spec/fixtures/raw_file.json
         | 
| 161 168 | 
             
            - spec/fixtures/session.json
         | 
| 169 | 
            +
            - spec/fixtures/shell_history.json
         | 
| 162 170 | 
             
            - spec/fixtures/snippet.json
         | 
| 163 171 | 
             
            - spec/fixtures/snippets.json
         | 
| 164 172 | 
             
            - spec/fixtures/system_hook.json
         | 
| 165 | 
            -
            - spec/fixtures/system_hook_test.json
         | 
| 166 173 | 
             
            - spec/fixtures/system_hooks.json
         | 
| 167 | 
            -
            - spec/fixtures/tag.json
         | 
| 168 174 | 
             
            - spec/fixtures/team_member.json
         | 
| 169 175 | 
             
            - spec/fixtures/team_members.json
         | 
| 170 | 
            -
            - spec/fixtures/ | 
| 171 | 
            -
            - spec/fixtures/update_merge_request.json
         | 
| 176 | 
            +
            - spec/fixtures/tree.json
         | 
| 172 177 | 
             
            - spec/fixtures/user.json
         | 
| 173 178 | 
             
            - spec/fixtures/users.json
         | 
| 174 179 | 
             
            - spec/gitlab/cli_spec.rb
         | 
| 175 180 | 
             
            - spec/gitlab/client/branches_spec.rb
         | 
| 176 181 | 
             
            - spec/gitlab/client/groups_spec.rb
         | 
| 177 182 | 
             
            - spec/gitlab/client/issues_spec.rb
         | 
| 183 | 
            +
            - spec/gitlab/client/labels_spec.rb
         | 
| 178 184 | 
             
            - spec/gitlab/client/merge_requests_spec.rb
         | 
| 179 185 | 
             
            - spec/gitlab/client/milestones_spec.rb
         | 
| 180 186 | 
             
            - spec/gitlab/client/notes_spec.rb
         | 
| @@ -185,6 +191,7 @@ files: | |
| 185 191 | 
             
            - spec/gitlab/client/users_spec.rb
         | 
| 186 192 | 
             
            - spec/gitlab/objectified_hash_spec.rb
         | 
| 187 193 | 
             
            - spec/gitlab/request_spec.rb
         | 
| 194 | 
            +
            - spec/gitlab/shell_history_spec.rb
         | 
| 188 195 | 
             
            - spec/gitlab_spec.rb
         | 
| 189 196 | 
             
            - spec/spec_helper.rb
         | 
| 190 197 | 
             
            homepage: https://github.com/narkoz/gitlab
         | 
| @@ -206,16 +213,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 206 213 | 
             
                  version: '0'
         | 
| 207 214 | 
             
            requirements: []
         | 
| 208 215 | 
             
            rubyforge_project: 
         | 
| 209 | 
            -
            rubygems_version: 2. | 
| 216 | 
            +
            rubygems_version: 2.3.0
         | 
| 210 217 | 
             
            signing_key: 
         | 
| 211 218 | 
             
            specification_version: 4
         | 
| 212 219 | 
             
            summary: A Ruby wrapper and CLI for the GitLab API
         | 
| 213 220 | 
             
            test_files:
         | 
| 214 221 | 
             
            - spec/fixtures/branch.json
         | 
| 215 222 | 
             
            - spec/fixtures/branches.json
         | 
| 216 | 
            -
            - spec/fixtures/ | 
| 217 | 
            -
            - spec/fixtures/create_branch.json
         | 
| 218 | 
            -
            - spec/fixtures/create_merge_request.json
         | 
| 223 | 
            +
            - spec/fixtures/compare_merge_request_diff.json
         | 
| 219 224 | 
             
            - spec/fixtures/error_already_exists.json
         | 
| 220 225 | 
             
            - spec/fixtures/group.json
         | 
| 221 226 | 
             
            - spec/fixtures/group_create.json
         | 
| @@ -227,7 +232,10 @@ test_files: | |
| 227 232 | 
             
            - spec/fixtures/issues.json
         | 
| 228 233 | 
             
            - spec/fixtures/key.json
         | 
| 229 234 | 
             
            - spec/fixtures/keys.json
         | 
| 235 | 
            +
            - spec/fixtures/label.json
         | 
| 236 | 
            +
            - spec/fixtures/labels.json
         | 
| 230 237 | 
             
            - spec/fixtures/merge_request.json
         | 
| 238 | 
            +
            - spec/fixtures/merge_request_comment.json
         | 
| 231 239 | 
             
            - spec/fixtures/merge_request_comments.json
         | 
| 232 240 | 
             
            - spec/fixtures/merge_requests.json
         | 
| 233 241 | 
             
            - spec/fixtures/milestone.json
         | 
| @@ -236,9 +244,10 @@ test_files: | |
| 236 244 | 
             
            - spec/fixtures/notes.json
         | 
| 237 245 | 
             
            - spec/fixtures/project.json
         | 
| 238 246 | 
             
            - spec/fixtures/project_commit.json
         | 
| 247 | 
            +
            - spec/fixtures/project_commit_comment.json
         | 
| 248 | 
            +
            - spec/fixtures/project_commit_comments.json
         | 
| 239 249 | 
             
            - spec/fixtures/project_commit_diff.json
         | 
| 240 250 | 
             
            - spec/fixtures/project_commits.json
         | 
| 241 | 
            -
            - spec/fixtures/project_delete_key.json
         | 
| 242 251 | 
             
            - spec/fixtures/project_events.json
         | 
| 243 252 | 
             
            - spec/fixtures/project_for_user.json
         | 
| 244 253 | 
             
            - spec/fixtures/project_fork_link.json
         | 
| @@ -247,26 +256,27 @@ test_files: | |
| 247 256 | 
             
            - spec/fixtures/project_issues.json
         | 
| 248 257 | 
             
            - spec/fixtures/project_key.json
         | 
| 249 258 | 
             
            - spec/fixtures/project_keys.json
         | 
| 259 | 
            +
            - spec/fixtures/project_tag_annotated.json
         | 
| 260 | 
            +
            - spec/fixtures/project_tag_lightweight.json
         | 
| 250 261 | 
             
            - spec/fixtures/project_tags.json
         | 
| 251 262 | 
             
            - spec/fixtures/projects.json
         | 
| 252 | 
            -
            - spec/fixtures/ | 
| 263 | 
            +
            - spec/fixtures/raw_file.json
         | 
| 253 264 | 
             
            - spec/fixtures/session.json
         | 
| 265 | 
            +
            - spec/fixtures/shell_history.json
         | 
| 254 266 | 
             
            - spec/fixtures/snippet.json
         | 
| 255 267 | 
             
            - spec/fixtures/snippets.json
         | 
| 256 268 | 
             
            - spec/fixtures/system_hook.json
         | 
| 257 | 
            -
            - spec/fixtures/system_hook_test.json
         | 
| 258 269 | 
             
            - spec/fixtures/system_hooks.json
         | 
| 259 | 
            -
            - spec/fixtures/tag.json
         | 
| 260 270 | 
             
            - spec/fixtures/team_member.json
         | 
| 261 271 | 
             
            - spec/fixtures/team_members.json
         | 
| 262 | 
            -
            - spec/fixtures/ | 
| 263 | 
            -
            - spec/fixtures/update_merge_request.json
         | 
| 272 | 
            +
            - spec/fixtures/tree.json
         | 
| 264 273 | 
             
            - spec/fixtures/user.json
         | 
| 265 274 | 
             
            - spec/fixtures/users.json
         | 
| 266 275 | 
             
            - spec/gitlab/cli_spec.rb
         | 
| 267 276 | 
             
            - spec/gitlab/client/branches_spec.rb
         | 
| 268 277 | 
             
            - spec/gitlab/client/groups_spec.rb
         | 
| 269 278 | 
             
            - spec/gitlab/client/issues_spec.rb
         | 
| 279 | 
            +
            - spec/gitlab/client/labels_spec.rb
         | 
| 270 280 | 
             
            - spec/gitlab/client/merge_requests_spec.rb
         | 
| 271 281 | 
             
            - spec/gitlab/client/milestones_spec.rb
         | 
| 272 282 | 
             
            - spec/gitlab/client/notes_spec.rb
         | 
| @@ -277,5 +287,6 @@ test_files: | |
| 277 287 | 
             
            - spec/gitlab/client/users_spec.rb
         | 
| 278 288 | 
             
            - spec/gitlab/objectified_hash_spec.rb
         | 
| 279 289 | 
             
            - spec/gitlab/request_spec.rb
         | 
| 290 | 
            +
            - spec/gitlab/shell_history_spec.rb
         | 
| 280 291 | 
             
            - spec/gitlab_spec.rb
         | 
| 281 292 | 
             
            - spec/spec_helper.rb
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            {"name":"api","commit":{ "id":"f7dd067490fe57505f7226c3b54d3127d2f7fd46","message":"API: expose issues project id","parent_ids":["949b1df930bedace1dbd755aaa4a82e8c451a616"],"authored_date":"2012-07-25T04:22:21-07:00","author_name":"Nihad Abbasov","author_email":"narkoz.2008@gmail.com","committed_date":"2012-07-25T04:22:21-07:00","committer_name":"Nihad Abbasov","committer_email":"narkoz.2008@gmail.com"},"protected": false}
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            {"id":2,"target_branch":"master","source_branch":"api","project_id":3,"title":"New feature","closed":false,"merged":false,"author":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-10-19T05:56:05Z"},"assignee":{"id":2,"email":"jack@example.com","name":"Jack Smith","blocked":false,"created_at":"2012-10-19T05:56:14Z"}}
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            {"name":"api","commit":{"id":"f7dd067490fe57505f7226c3b54d3127d2f7fd46","parents":[{"id":"949b1df930bedace1dbd755aaa4a82e8c451a616"}],"tree":"f8c4b21c036339f92fcc5482aa28a41250553b27","message":"API: expose issues project id","author":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"committer":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"authored_date":"2012-07-25T04:22:21-07:00","committed_date":"2012-07-25T04:22:21-07:00"},"protected":true}
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            { "event_name": "project_create", "name": "Ruby", "path": "ruby", "project_id": 1, "owner_name": "Someone", "owner_email": "example@gitlabhq.com" }
         | 
    
        data/spec/fixtures/tag.json
    DELETED
    
    | @@ -1 +0,0 @@ | |
| 1 | 
            -
            {"name": "v1.0.0","commit": {"id": "2695effb5807a22ff3d138d593fd856244e155e7","parents": [],"message": "Initial commit","authored_date": "2012-05-28T04:42:42-07:00","author_name": "John Smith","author email": "john@example.com","committer_name": "Jack Smith","committed_date": "2012-05-28T04:42:42-07:00","committer_email": "jack@example.com"},"protected": false}
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            {"name":"api","commit":{"id":"f7dd067490fe57505f7226c3b54d3127d2f7fd46","parents":[{"id":"949b1df930bedace1dbd755aaa4a82e8c451a616"}],"tree":"f8c4b21c036339f92fcc5482aa28a41250553b27","message":"API: expose issues project id","author":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"committer":{"name":"Nihad Abbasov","email":"narkoz.2008@gmail.com"},"authored_date":"2012-07-25T04:22:21-07:00","committed_date":"2012-07-25T04:22:21-07:00"},"protected":false}
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            {"id":1,"target_branch":"master","source_branch":"api","project_id":3,"title":"A different new feature","closed":false,"merged":false,"author":{"id":1,"email":"john@example.com","name":"John Smith","blocked":false,"created_at":"2012-10-19T05:56:05Z"},"assignee":{"id":2,"email":"jack@example.com","name":"Jack Smith","blocked":false,"created_at":"2012-10-19T05:56:14Z"}}
         |