flight_plan_cli 0.4.0 → 0.4.1
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/VERSION +1 -1
- data/lib/flight_plan_cli/commands/list.rb +5 -1
- data/lib/flight_plan_cli/commands/release.rb +18 -0
- metadata +3 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1810e692ec7b8c0be42e10fddedcfbe259723b1b
         | 
| 4 | 
            +
              data.tar.gz: 8b0f6ca9815a9177796481556bc192dcac748f6f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 54d03ae9f528ef6f8f9f057c252248c9edab40cf8bc902b1ccb54512c51b18c982369e9ce70471d86d250bae08d7efc406b8343952ba98c6a7fb917dbc37382f
         | 
| 7 | 
            +
              data.tar.gz: e5c34f4ba0842a27f6be3d14650667e991d61a155309d9cb1aca606c9c327888e7c2d33b2d3cdec7f520bcb0d154c8e0610994578bc929b72f2beae13c86ab4e
         | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.4. | 
| 1 | 
            +
            0.4.1
         | 
| @@ -55,7 +55,7 @@ module FlightPlanCli | |
| 55 55 | 
             
                  end
         | 
| 56 56 |  | 
| 57 57 | 
             
                  def print_ticket(ticket)
         | 
| 58 | 
            -
                    checked_out =  | 
| 58 | 
            +
                    checked_out = git_current_branch =~ /##{ticket['remote_number']}[^0-9]/
         | 
| 59 59 | 
             
                    line =
         | 
| 60 60 | 
             
                      "  #{ticket['remote_number']}".colorize(Color::ISSUE_NO) +
         | 
| 61 61 | 
             
                      " #{ticket['remote_title']} ".colorize(Color::ISSUE)
         | 
| @@ -63,6 +63,10 @@ module FlightPlanCli | |
| 63 63 |  | 
| 64 64 | 
             
                    puts line
         | 
| 65 65 | 
             
                  end
         | 
| 66 | 
            +
             | 
| 67 | 
            +
                  def git_current_branch
         | 
| 68 | 
            +
                    @git_current_branch ||= git.current_branch
         | 
| 69 | 
            +
                  end
         | 
| 66 70 | 
             
                end
         | 
| 67 71 | 
             
              end
         | 
| 68 72 | 
             
            end
         | 
| @@ -0,0 +1,18 @@ | |
| 1 | 
            +
            module FlightPlanCli
         | 
| 2 | 
            +
              module Commands
         | 
| 3 | 
            +
                class Release
         | 
| 4 | 
            +
                  include FlightPlanCli::Clients::FlightPlan
         | 
| 5 | 
            +
             | 
| 6 | 
            +
                  def process
         | 
| 7 | 
            +
                    release = flight_plan.create_release
         | 
| 8 | 
            +
                    p release
         | 
| 9 | 
            +
                    repo_release = release['repo_releases'].first
         | 
| 10 | 
            +
                    puts "Created #{repo_release['repo']['name']} release \"#{release['title']}\" with the following tickets:"
         | 
| 11 | 
            +
                    repo_release['board_tickets'].each do |board_ticket|
         | 
| 12 | 
            +
                      ticket = board_ticket['ticket']
         | 
| 13 | 
            +
                      puts "  ##{ticket['remote_number']} - #{ticket['remote_title']}"
         | 
| 14 | 
            +
                    end
         | 
| 15 | 
            +
                  end
         | 
| 16 | 
            +
                end
         | 
| 17 | 
            +
              end
         | 
| 18 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: flight_plan_cli
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.4. | 
| 4 | 
            +
              version: 0.4.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - John Cleary
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2018-05- | 
| 11 | 
            +
            date: 2018-05-31 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -180,6 +180,7 @@ files: | |
| 180 180 | 
             
            - lib/flight_plan_cli/clients/git.rb
         | 
| 181 181 | 
             
            - lib/flight_plan_cli/commands/checkout.rb
         | 
| 182 182 | 
             
            - lib/flight_plan_cli/commands/list.rb
         | 
| 183 | 
            +
            - lib/flight_plan_cli/commands/release.rb
         | 
| 183 184 | 
             
            - lib/flight_plan_cli/initializer.rb
         | 
| 184 185 | 
             
            - lib/flight_plan_cli/settings.rb
         | 
| 185 186 | 
             
            - lib/flight_plan_cli/version.rb
         |