jiraSOAP 0.2.3 → 0.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.
- data/lib/jiraSOAP.rb +3 -1
 - data/lib/jiraSOAP/macruby_stuff.rb +0 -3
 - data/lib/jiraSOAP/remoteAPI.rb +17 -14
 - metadata +3 -3
 
    
        data/lib/jiraSOAP.rb
    CHANGED
    
    
    
        data/lib/jiraSOAP/remoteAPI.rb
    CHANGED
    
    | 
         @@ -313,7 +313,10 @@ module RemoteAPI 
     | 
|
| 
       313 
313 
     | 
    
         
             
                true
         
     | 
| 
       314 
314 
     | 
    
         
             
              end
         
     | 
| 
       315 
315 
     | 
    
         | 
| 
       316 
     | 
    
         
            -
              #  
     | 
| 
      
 316 
     | 
    
         
            +
              # Requires you to set at least a project name, key, and lead.
         
     | 
| 
      
 317 
     | 
    
         
            +
              # However, it is also a good idea to set other project properties, such as
         
     | 
| 
      
 318 
     | 
    
         
            +
              # the permission scheme as the default permission scheme can be too
         
     | 
| 
      
 319 
     | 
    
         
            +
              # restrictive in most cases.
         
     | 
| 
       317 
320 
     | 
    
         
             
              # @param [JIRA::Project] project
         
     | 
| 
       318 
321 
     | 
    
         
             
              # @return [JIRA::Project]
         
     | 
| 
       319 
322 
     | 
    
         
             
              def create_project_with_project(project)
         
     | 
| 
         @@ -325,6 +328,19 @@ module RemoteAPI 
     | 
|
| 
       325 
328 
     | 
    
         
             
                JIRA::Project.project_with_xml_fragment frag
         
     | 
| 
       326 
329 
     | 
    
         
             
              end
         
     | 
| 
       327 
330 
     | 
    
         | 
| 
      
 331 
     | 
    
         
            +
              # @todo test this method
         
     | 
| 
      
 332 
     | 
    
         
            +
              # @param [String] project_name
         
     | 
| 
      
 333 
     | 
    
         
            +
              # @param [JIRA::Version] version
         
     | 
| 
      
 334 
     | 
    
         
            +
              # @return [boolean] true, throws an exception otherwise
         
     | 
| 
      
 335 
     | 
    
         
            +
              def release_version_for_project(project_name, version)
         
     | 
| 
      
 336 
     | 
    
         
            +
                response = invoke('soap:releaseVersion') { |msg|
         
     | 
| 
      
 337 
     | 
    
         
            +
                  msg.add 'soap:in0', @auth_token
         
     | 
| 
      
 338 
     | 
    
         
            +
                  msg.add 'soap:in1', project_name
         
     | 
| 
      
 339 
     | 
    
         
            +
                  msg.add 'soap:in2', version.id
         
     | 
| 
      
 340 
     | 
    
         
            +
                }
         
     | 
| 
      
 341 
     | 
    
         
            +
                true
         
     | 
| 
      
 342 
     | 
    
         
            +
              end
         
     | 
| 
      
 343 
     | 
    
         
            +
             
     | 
| 
       328 
344 
     | 
    
         
             
              # @todo test this method
         
     | 
| 
       329 
345 
     | 
    
         
             
              # @param [JIRA::Project] project
         
     | 
| 
       330 
346 
     | 
    
         
             
              # @return [JIRA::Project]
         
     | 
| 
         @@ -540,19 +556,6 @@ module RemoteAPI 
     | 
|
| 
       540 
556 
     | 
    
         
             
                }
         
     | 
| 
       541 
557 
     | 
    
         
             
              end
         
     | 
| 
       542 
558 
     | 
    
         | 
| 
       543 
     | 
    
         
            -
              # @todo test this method
         
     | 
| 
       544 
     | 
    
         
            -
              # @param [String] project_name
         
     | 
| 
       545 
     | 
    
         
            -
              # @param [JIRA::Version] version
         
     | 
| 
       546 
     | 
    
         
            -
              # @return [boolean] true, throws an exception otherwise
         
     | 
| 
       547 
     | 
    
         
            -
              def release_version_for_project(project_name, version)
         
     | 
| 
       548 
     | 
    
         
            -
                response = invoke('soap:releaseVersion') { |msg|
         
     | 
| 
       549 
     | 
    
         
            -
                  msg.add 'soap:in0', @auth_token
         
     | 
| 
       550 
     | 
    
         
            -
                  msg.add 'soap:in1', project_name
         
     | 
| 
       551 
     | 
    
         
            -
                  msg.add 'soap:in2', version.id
         
     | 
| 
       552 
     | 
    
         
            -
                }
         
     | 
| 
       553 
     | 
    
         
            -
                true
         
     | 
| 
       554 
     | 
    
         
            -
              end
         
     | 
| 
       555 
     | 
    
         
            -
             
     | 
| 
       556 
559 
     | 
    
         
             
              # @todo test this method
         
     | 
| 
       557 
560 
     | 
    
         
             
              # @param [String] id
         
     | 
| 
       558 
561 
     | 
    
         
             
              # @return [Fixnum]
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version 
     | 
|
| 
       4 
4 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       5 
5 
     | 
    
         
             
              segments: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              - 0
         
     | 
| 
       7 
     | 
    
         
            -
              - 2
         
     | 
| 
       8 
7 
     | 
    
         
             
              - 3
         
     | 
| 
       9 
     | 
    
         
            -
               
     | 
| 
      
 8 
     | 
    
         
            +
              - 0
         
     | 
| 
      
 9 
     | 
    
         
            +
              version: 0.3.0
         
     | 
| 
       10 
10 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       11 
11 
     | 
    
         
             
            authors: 
         
     | 
| 
       12 
12 
     | 
    
         
             
            - Mark Rada
         
     | 
| 
         @@ -14,7 +14,7 @@ autorequire: 
     | 
|
| 
       14 
14 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       15 
15 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
            date: 2010-10- 
     | 
| 
      
 17 
     | 
    
         
            +
            date: 2010-10-25 00:00:00 -04:00
         
     | 
| 
       18 
18 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       19 
19 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       20 
20 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |