flexmls_gems 0.2.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.
- data/.gitignore +13 -0
 - data/Gemfile +4 -0
 - data/Gemfile.lock +37 -0
 - data/LICENSE +14 -0
 - data/README.md +32 -0
 - data/Rakefile +5 -0
 - data/VERSION +1 -0
 - data/flexmls_gems.gemspec +28 -0
 - data/lib/flexmls_gems.rb +8 -0
 - data/lib/flexmls_gems/git_helper.rb +93 -0
 - data/lib/flexmls_gems/task_helper.rb +78 -0
 - data/lib/flexmls_gems/tasks.rb +4 -0
 - data/lib/flexmls_gems/tasks/gems.rb +3 -0
 - data/lib/flexmls_gems/tasks/rdoc.rb +12 -0
 - data/lib/flexmls_gems/tasks/spec.rb +10 -0
 - data/lib/flexmls_gems/version.rb +3 -0
 - data/lib/flexmls_gems/version_helper.rb +66 -0
 - data/spec/git_helper_spec.rb +54 -0
 - data/spec/spec_helper.rb +9 -0
 - data/spec/version_helper_spec.rb +39 -0
 - metadata +166 -0
 
    
        data/.gitignore
    ADDED
    
    
    
        data/Gemfile
    ADDED
    
    
    
        data/Gemfile.lock
    ADDED
    
    | 
         @@ -0,0 +1,37 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            PATH
         
     | 
| 
      
 2 
     | 
    
         
            +
              remote: .
         
     | 
| 
      
 3 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 4 
     | 
    
         
            +
                flexmls_gems (0.2.0)
         
     | 
| 
      
 5 
     | 
    
         
            +
                  grit (~> 2.4.1)
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            GEM
         
     | 
| 
      
 8 
     | 
    
         
            +
              remote: http://rubygems.org/
         
     | 
| 
      
 9 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 10 
     | 
    
         
            +
                builder (2.1.2)
         
     | 
| 
      
 11 
     | 
    
         
            +
                ci_reporter (1.6.5)
         
     | 
| 
      
 12 
     | 
    
         
            +
                  builder (>= 2.1.2)
         
     | 
| 
      
 13 
     | 
    
         
            +
                diff-lcs (1.1.2)
         
     | 
| 
      
 14 
     | 
    
         
            +
                grit (2.4.1)
         
     | 
| 
      
 15 
     | 
    
         
            +
                  diff-lcs (~> 1.1)
         
     | 
| 
      
 16 
     | 
    
         
            +
                  mime-types (~> 1.15)
         
     | 
| 
      
 17 
     | 
    
         
            +
                mime-types (1.16)
         
     | 
| 
      
 18 
     | 
    
         
            +
                rake (0.9.2)
         
     | 
| 
      
 19 
     | 
    
         
            +
                rcov (0.9.9)
         
     | 
| 
      
 20 
     | 
    
         
            +
                rspec (2.3.0)
         
     | 
| 
      
 21 
     | 
    
         
            +
                  rspec-core (~> 2.3.0)
         
     | 
| 
      
 22 
     | 
    
         
            +
                  rspec-expectations (~> 2.3.0)
         
     | 
| 
      
 23 
     | 
    
         
            +
                  rspec-mocks (~> 2.3.0)
         
     | 
| 
      
 24 
     | 
    
         
            +
                rspec-core (2.3.1)
         
     | 
| 
      
 25 
     | 
    
         
            +
                rspec-expectations (2.3.0)
         
     | 
| 
      
 26 
     | 
    
         
            +
                  diff-lcs (~> 1.1.2)
         
     | 
| 
      
 27 
     | 
    
         
            +
                rspec-mocks (2.3.0)
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
            PLATFORMS
         
     | 
| 
      
 30 
     | 
    
         
            +
              ruby
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
            DEPENDENCIES
         
     | 
| 
      
 33 
     | 
    
         
            +
              ci_reporter (~> 1.6.3)
         
     | 
| 
      
 34 
     | 
    
         
            +
              flexmls_gems!
         
     | 
| 
      
 35 
     | 
    
         
            +
              rake
         
     | 
| 
      
 36 
     | 
    
         
            +
              rcov (~> 0.9.9)
         
     | 
| 
      
 37 
     | 
    
         
            +
              rspec (~> 2.3.0)
         
     | 
    
        data/LICENSE
    ADDED
    
    | 
         @@ -0,0 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            Copyright 2011 Financial Business Systems, Inc.
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
      
 4 
     | 
    
         
            +
            you may not use this file except in compliance with the License.
         
     | 
| 
      
 5 
     | 
    
         
            +
            You may obtain a copy of the License at
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
                http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            Unless required by applicable law or agreed to in writing, software
         
     | 
| 
      
 10 
     | 
    
         
            +
            distributed under the License is distributed on an "AS IS" BASIS,
         
     | 
| 
      
 11 
     | 
    
         
            +
            WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         
     | 
| 
      
 12 
     | 
    
         
            +
            See the License for the specific language governing permissions and
         
     | 
| 
      
 13 
     | 
    
         
            +
            limitations under the License.
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
    
        data/README.md
    ADDED
    
    | 
         @@ -0,0 +1,32 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            flexmls Gems
         
     | 
| 
      
 2 
     | 
    
         
            +
            =====================
         
     | 
| 
      
 3 
     | 
    
         
            +
            Library and rake tasks for gem management 
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            Documentation
         
     | 
| 
      
 6 
     | 
    
         
            +
            -------------
         
     | 
| 
      
 7 
     | 
    
         
            +
            Moving from tools like Jeweler and Hoe that manage gemspecs in some abstracted manner that requires 
         
     | 
| 
      
 8 
     | 
    
         
            +
            constant regeneration, this project relies on gems using "the Bundler way" of gemspec driven gem 
         
     | 
| 
      
 9 
     | 
    
         
            +
            development, but adds some of the nice other tools that Jeweler provides to dry up Rakefiles. This
         
     | 
| 
      
 10 
     | 
    
         
            +
            project is so dry, it uses itself to build itself!
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            Installation
         
     | 
| 
      
 13 
     | 
    
         
            +
            ------------------------
         
     | 
| 
      
 14 
     | 
    
         
            +
                gem install flexmls_gems
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            Usage Examples
         
     | 
| 
      
 17 
     | 
    
         
            +
            ------------------------
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            #### Rakefile
         
     | 
| 
      
 20 
     | 
    
         
            +
                # Default gem tasks
         
     | 
| 
      
 21 
     | 
    
         
            +
                require 'flexmls_gems/tasks'
         
     | 
| 
      
 22 
     | 
    
         
            +
                # Enable rspec test tasks
         
     | 
| 
      
 23 
     | 
    
         
            +
                require 'flexmls_gems/tasks/spec'
         
     | 
| 
      
 24 
     | 
    
         
            +
                # Enable rdoc tasks
         
     | 
| 
      
 25 
     | 
    
         
            +
                require 'flexmls_gems/tasks/rdoc'
         
     | 
| 
      
 26 
     | 
    
         
            +
                
         
     | 
| 
      
 27 
     | 
    
         
            +
            TODO (and warning)
         
     | 
| 
      
 28 
     | 
    
         
            +
            ------------------------
         
     | 
| 
      
 29 
     | 
    
         
            +
            This project is just getting started, and is predominantly focused on solving my immediate gem 
         
     | 
| 
      
 30 
     | 
    
         
            +
            pain points. Use at your own risk. I would love to make the library more pluggable (like hoe) 
         
     | 
| 
      
 31 
     | 
    
         
            +
            to extract any non generic code, but for the time being it will all be stuffed into one gem.
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
    
        data/Rakefile
    ADDED
    
    
    
        data/VERSION
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            0.2.1
         
     | 
| 
         @@ -0,0 +1,28 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # -*- encoding: utf-8 -*-
         
     | 
| 
      
 2 
     | 
    
         
            +
            $:.push File.expand_path("../lib", __FILE__)
         
     | 
| 
      
 3 
     | 
    
         
            +
            require "flexmls_gems/version"
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            Gem::Specification.new do |s|
         
     | 
| 
      
 6 
     | 
    
         
            +
              s.name        = "flexmls_gems"
         
     | 
| 
      
 7 
     | 
    
         
            +
              s.version     = FlexmlsGems::VERSION
         
     | 
| 
      
 8 
     | 
    
         
            +
              s.authors     = ["Wade McEwen"]
         
     | 
| 
      
 9 
     | 
    
         
            +
              s.email       = ["wade@fbsdata.com"]
         
     | 
| 
      
 10 
     | 
    
         
            +
              s.homepage    = ""
         
     | 
| 
      
 11 
     | 
    
         
            +
              s.summary     = %q{Gem to manange common gem tasks}
         
     | 
| 
      
 12 
     | 
    
         
            +
              s.description = %q{This gem is set of tasks to aid gems and tasks that largely reflect a gem run with bundler}
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
              s.rubyforge_project = "flexmls_gems"
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
              s.files         = `git ls-files`.split("\n")
         
     | 
| 
      
 17 
     | 
    
         
            +
              s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
         
     | 
| 
      
 18 
     | 
    
         
            +
              s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
         
     | 
| 
      
 19 
     | 
    
         
            +
              s.require_paths = ["lib"]
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
              # specify any dependencies here; for example:
         
     | 
| 
      
 22 
     | 
    
         
            +
              # s.add_development_dependency "rspec"
         
     | 
| 
      
 23 
     | 
    
         
            +
              s.add_runtime_dependency "grit", '~> 2.4.1'
         
     | 
| 
      
 24 
     | 
    
         
            +
              s.add_development_dependency "rake"  
         
     | 
| 
      
 25 
     | 
    
         
            +
              s.add_development_dependency 'rspec', '~> 2.3.0'
         
     | 
| 
      
 26 
     | 
    
         
            +
              s.add_development_dependency 'ci_reporter', '~> 1.6.3'
         
     | 
| 
      
 27 
     | 
    
         
            +
              s.add_development_dependency 'rcov', '~> 0.9.9'
         
     | 
| 
      
 28 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/flexmls_gems.rb
    ADDED
    
    
| 
         @@ -0,0 +1,93 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'grit'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            module FlexmlsGems
         
     | 
| 
      
 4 
     | 
    
         
            +
              class GitError < StandardError ; end
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
              class GitHelper
         
     | 
| 
      
 7 
     | 
    
         
            +
                include Grit
         
     | 
| 
      
 8 
     | 
    
         
            +
                attr_reader :pwd, :version
         
     | 
| 
      
 9 
     | 
    
         
            +
                
         
     | 
| 
      
 10 
     | 
    
         
            +
                def initialize(dir, version)
         
     | 
| 
      
 11 
     | 
    
         
            +
                  @pwd = dir
         
     | 
| 
      
 12 
     | 
    
         
            +
                  @version = version
         
     | 
| 
      
 13 
     | 
    
         
            +
                end
         
     | 
| 
      
 14 
     | 
    
         
            +
                
         
     | 
| 
      
 15 
     | 
    
         
            +
                def check_status
         
     | 
| 
      
 16 
     | 
    
         
            +
                  changes = cmd_changes
         
     | 
| 
      
 17 
     | 
    
         
            +
                  raise GitError, "There are #{changes} outstanding changes in the repository.  Run 'git status' to address before tagging" if changes > 0
         
     | 
| 
      
 18 
     | 
    
         
            +
                end
         
     | 
| 
      
 19 
     | 
    
         
            +
                
         
     | 
| 
      
 20 
     | 
    
         
            +
                def check_remote
         
     | 
| 
      
 21 
     | 
    
         
            +
                  if cmd_remote_list.include? "origin"
         
     | 
| 
      
 22 
     | 
    
         
            +
                    matches = cmd_ls_remote
         
     | 
| 
      
 23 
     | 
    
         
            +
                    if matches != ""
         
     | 
| 
      
 24 
     | 
    
         
            +
                      raise GitError, "Git tag #{tag} already exists on the origin remote repository"
         
     | 
| 
      
 25 
     | 
    
         
            +
                    end
         
     | 
| 
      
 26 
     | 
    
         
            +
                  else
         
     | 
| 
      
 27 
     | 
    
         
            +
                    raise GitError, "Git origin is missing, have you setup a remote repository?"
         
     | 
| 
      
 28 
     | 
    
         
            +
                  end
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
                
         
     | 
| 
      
 31 
     | 
    
         
            +
                def tag
         
     | 
| 
      
 32 
     | 
    
         
            +
                  "v#{version.chomp}"
         
     | 
| 
      
 33 
     | 
    
         
            +
                end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                def check_tags
         
     | 
| 
      
 36 
     | 
    
         
            +
                  if cmd_tags.include? tag
         
     | 
| 
      
 37 
     | 
    
         
            +
                    raise GitError, "The tag #{tag} already exists locally"
         
     | 
| 
      
 38 
     | 
    
         
            +
                  end
         
     | 
| 
      
 39 
     | 
    
         
            +
                end
         
     | 
| 
      
 40 
     | 
    
         
            +
                
         
     | 
| 
      
 41 
     | 
    
         
            +
                def release
         
     | 
| 
      
 42 
     | 
    
         
            +
                  check_status 
         
     | 
| 
      
 43 
     | 
    
         
            +
                  check_remote 
         
     | 
| 
      
 44 
     | 
    
         
            +
                  check_tags
         
     | 
| 
      
 45 
     | 
    
         
            +
                  cmd_add_tag
         
     | 
| 
      
 46 
     | 
    
         
            +
                  cmd_push_master      
         
     | 
| 
      
 47 
     | 
    
         
            +
                  cmd_push_tags
         
     | 
| 
      
 48 
     | 
    
         
            +
                end
         
     | 
| 
      
 49 
     | 
    
         
            +
                
         
     | 
| 
      
 50 
     | 
    
         
            +
                def commit_version
         
     | 
| 
      
 51 
     | 
    
         
            +
                  cmd_add "VERSION"
         
     | 
| 
      
 52 
     | 
    
         
            +
                  raise GitError, "Some uncommitted files are in the folder" unless cmd_changes == 1 
         
     | 
| 
      
 53 
     | 
    
         
            +
                  cmd_commit "Bumped version #{tag}" 
         
     | 
| 
      
 54 
     | 
    
         
            +
                end
         
     | 
| 
      
 55 
     | 
    
         
            +
                
         
     | 
| 
      
 56 
     | 
    
         
            +
                def git
         
     | 
| 
      
 57 
     | 
    
         
            +
                  @git = Repo.new(pwd) if @git.nil?
         
     | 
| 
      
 58 
     | 
    
         
            +
                  return @git
         
     | 
| 
      
 59 
     | 
    
         
            +
                end
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
                def cmd_add(file)
         
     | 
| 
      
 62 
     | 
    
         
            +
                  git.add(file)
         
     | 
| 
      
 63 
     | 
    
         
            +
                end
         
     | 
| 
      
 64 
     | 
    
         
            +
                def cmd_commit(message)
         
     | 
| 
      
 65 
     | 
    
         
            +
                  git.commit_index(message)
         
     | 
| 
      
 66 
     | 
    
         
            +
                end
         
     | 
| 
      
 67 
     | 
    
         
            +
                def cmd_changes
         
     | 
| 
      
 68 
     | 
    
         
            +
                  s = git.status
         
     | 
| 
      
 69 
     | 
    
         
            +
                  changes = s.changed.count + s.added.count + s.deleted.count
         
     | 
| 
      
 70 
     | 
    
         
            +
                end
         
     | 
| 
      
 71 
     | 
    
         
            +
                def cmd_tags
         
     | 
| 
      
 72 
     | 
    
         
            +
                  git.tags
         
     | 
| 
      
 73 
     | 
    
         
            +
                end
         
     | 
| 
      
 74 
     | 
    
         
            +
                def cmd_ls_remote
         
     | 
| 
      
 75 
     | 
    
         
            +
                  `git ls-remote --tags origin #{tag}`
         
     | 
| 
      
 76 
     | 
    
         
            +
                end
         
     | 
| 
      
 77 
     | 
    
         
            +
                def cmd_add_tag
         
     | 
| 
      
 78 
     | 
    
         
            +
                  `git tag -a #{tag} -m "Adding new tag '#{tag}'for release"`
         
     | 
| 
      
 79 
     | 
    
         
            +
                end
         
     | 
| 
      
 80 
     | 
    
         
            +
                def cmd_push_master
         
     | 
| 
      
 81 
     | 
    
         
            +
                  raise GitError, "HEAD is not on the master branch" unless git.head.name == "master" 
         
     | 
| 
      
 82 
     | 
    
         
            +
                  `git push origin master`
         
     | 
| 
      
 83 
     | 
    
         
            +
                end
         
     | 
| 
      
 84 
     | 
    
         
            +
                def cmd_push_tags
         
     | 
| 
      
 85 
     | 
    
         
            +
                  `git push origin --tags`
         
     | 
| 
      
 86 
     | 
    
         
            +
                end
         
     | 
| 
      
 87 
     | 
    
         
            +
                def cmd_remote_list
         
     | 
| 
      
 88 
     | 
    
         
            +
                  git.remote_list
         
     | 
| 
      
 89 
     | 
    
         
            +
                end
         
     | 
| 
      
 90 
     | 
    
         
            +
                
         
     | 
| 
      
 91 
     | 
    
         
            +
              end
         
     | 
| 
      
 92 
     | 
    
         
            +
            end
         
     | 
| 
      
 93 
     | 
    
         
            +
             
     | 
| 
         @@ -0,0 +1,78 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'rubygems/indexer'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            module FlexmlsGems
         
     | 
| 
      
 4 
     | 
    
         
            +
              class TaskHelper
         
     | 
| 
      
 5 
     | 
    
         
            +
                include Rake::DSL if defined? Rake::DSL
         
     | 
| 
      
 6 
     | 
    
         
            +
                
         
     | 
| 
      
 7 
     | 
    
         
            +
                attr_reader :pwd, :gemspec, :name, :version, :release_dir
         
     | 
| 
      
 8 
     | 
    
         
            +
                
         
     | 
| 
      
 9 
     | 
    
         
            +
                def initialize(opts={})
         
     | 
| 
      
 10 
     | 
    
         
            +
                  @pwd = opts[:dir] || Dir.pwd
         
     | 
| 
      
 11 
     | 
    
         
            +
                  gemspecs = opts[:name] ? [File.join(pwd, "#{opts[:name]}.gemspec")] : Dir[File.join(pwd, "*.gemspec")]
         
     | 
| 
      
 12 
     | 
    
         
            +
                  raise("FlexmlsGems expects one and only one gemspec in the root of the project.") unless gemspecs.size == 1
         
     | 
| 
      
 13 
     | 
    
         
            +
                  @gemspec = gemspecs.first
         
     | 
| 
      
 14 
     | 
    
         
            +
                  @name = opts[:name] || File.basename(gemspec, '.gemspec')
         
     | 
| 
      
 15 
     | 
    
         
            +
                  @version = Gem::Specification::load(gemspec).version
         
     | 
| 
      
 16 
     | 
    
         
            +
                  @release_dir = opts[:release] || '/opt/gems/dev'
         
     | 
| 
      
 17 
     | 
    
         
            +
                end
         
     | 
| 
      
 18 
     | 
    
         
            +
                
         
     | 
| 
      
 19 
     | 
    
         
            +
                def setup
         
     | 
| 
      
 20 
     | 
    
         
            +
                  namespace :flexmls do
         
     | 
| 
      
 21 
     | 
    
         
            +
                    desc "Release the gem internally"
         
     | 
| 
      
 22 
     | 
    
         
            +
                    task :release do
         
     | 
| 
      
 23 
     | 
    
         
            +
                      gems = Dir[File.join("#{pwd}/pkg", "#{name}-#{version}.gem")]
         
     | 
| 
      
 24 
     | 
    
         
            +
                      raise "No gems built, run rake build to create" if gems.empty?
         
     | 
| 
      
 25 
     | 
    
         
            +
                      FileUtils.cp gems, "#{release_dir}/gems"
         
     | 
| 
      
 26 
     | 
    
         
            +
                      i=Gem::Indexer.new release_dir
         
     | 
| 
      
 27 
     | 
    
         
            +
                      i.generate_index
         
     | 
| 
      
 28 
     | 
    
         
            +
                    end
         
     | 
| 
      
 29 
     | 
    
         
            +
                  end
         
     | 
| 
      
 30 
     | 
    
         
            +
                  namespace :version do
         
     | 
| 
      
 31 
     | 
    
         
            +
                    namespace :bump do
         
     | 
| 
      
 32 
     | 
    
         
            +
                      desc "Bump the major version [#{version}] by 1"
         
     | 
| 
      
 33 
     | 
    
         
            +
                      task :major => [:version] do
         
     | 
| 
      
 34 
     | 
    
         
            +
                        version_helper.bump_major.save
         
     | 
| 
      
 35 
     | 
    
         
            +
                        git_helper.commit_version
         
     | 
| 
      
 36 
     | 
    
         
            +
                        $stdout.puts "Updated version to #{version_helper}"
         
     | 
| 
      
 37 
     | 
    
         
            +
                      end
         
     | 
| 
      
 38 
     | 
    
         
            +
                      desc "Bump the a minor version [#{version}]  by 1"
         
     | 
| 
      
 39 
     | 
    
         
            +
                      task :minor => [:version] do
         
     | 
| 
      
 40 
     | 
    
         
            +
                        version_helper.bump_minor.save
         
     | 
| 
      
 41 
     | 
    
         
            +
                        git_helper.commit_version
         
     | 
| 
      
 42 
     | 
    
         
            +
                        $stdout.puts "Updated version to #{version_helper}"
         
     | 
| 
      
 43 
     | 
    
         
            +
                      end
         
     | 
| 
      
 44 
     | 
    
         
            +
                      desc "Bump the patch version by [#{version}] 1"
         
     | 
| 
      
 45 
     | 
    
         
            +
                      task :patch => [:version] do
         
     | 
| 
      
 46 
     | 
    
         
            +
                        version_helper.bump_patch.save
         
     | 
| 
      
 47 
     | 
    
         
            +
                        git_helper.commit_version
         
     | 
| 
      
 48 
     | 
    
         
            +
                        $stdout.puts "Updated version to #{version_helper}"
         
     | 
| 
      
 49 
     | 
    
         
            +
                      end
         
     | 
| 
      
 50 
     | 
    
         
            +
                    end
         
     | 
| 
      
 51 
     | 
    
         
            +
                  end
         
     | 
| 
      
 52 
     | 
    
         
            +
                  task :version do
         
     | 
| 
      
 53 
     | 
    
         
            +
                    $stdout.puts "The current version is #{version_helper}"
         
     | 
| 
      
 54 
     | 
    
         
            +
                  end
         
     | 
| 
      
 55 
     | 
    
         
            +
                  namespace :git do
         
     | 
| 
      
 56 
     | 
    
         
            +
                    desc "Tag and release v#{version} to git"
         
     | 
| 
      
 57 
     | 
    
         
            +
                    task :release do
         
     | 
| 
      
 58 
     | 
    
         
            +
                      git_helper.release
         
     | 
| 
      
 59 
     | 
    
         
            +
                      $stdout.puts "Released #{version}"
         
     | 
| 
      
 60 
     | 
    
         
            +
                    end
         
     | 
| 
      
 61 
     | 
    
         
            +
                  end
         
     | 
| 
      
 62 
     | 
    
         
            +
                end
         
     | 
| 
      
 63 
     | 
    
         
            +
                
         
     | 
| 
      
 64 
     | 
    
         
            +
                private 
         
     | 
| 
      
 65 
     | 
    
         
            +
                def version_helper
         
     | 
| 
      
 66 
     | 
    
         
            +
                  return @version_helper unless @version_helper.nil?
         
     | 
| 
      
 67 
     | 
    
         
            +
                  @version_helper = VersionHelper.new(pwd)
         
     | 
| 
      
 68 
     | 
    
         
            +
                  @version_helper.load
         
     | 
| 
      
 69 
     | 
    
         
            +
                  @version_helper
         
     | 
| 
      
 70 
     | 
    
         
            +
                end
         
     | 
| 
      
 71 
     | 
    
         
            +
                def git_helper
         
     | 
| 
      
 72 
     | 
    
         
            +
                  return @git_helper unless @git_helper.nil?
         
     | 
| 
      
 73 
     | 
    
         
            +
                  @git_helper = GitHelper.new(pwd, version_helper.to_s)
         
     | 
| 
      
 74 
     | 
    
         
            +
                end
         
     | 
| 
      
 75 
     | 
    
         
            +
                
         
     | 
| 
      
 76 
     | 
    
         
            +
              end
         
     | 
| 
      
 77 
     | 
    
         
            +
            end
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
         @@ -0,0 +1,12 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'rake/rdoctask'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            helper = FlexmlsGems::TaskHelper.new
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            Rake::RDocTask.new do |rdoc|
         
     | 
| 
      
 6 
     | 
    
         
            +
              files =['lib/**/*.rb']
         
     | 
| 
      
 7 
     | 
    
         
            +
              rdoc.rdoc_files.add(files)
         
     | 
| 
      
 8 
     | 
    
         
            +
              rdoc.main = "README.md" # page to start on
         
     | 
| 
      
 9 
     | 
    
         
            +
              rdoc.title = "#{helper.name} #{helper.version} Docs"
         
     | 
| 
      
 10 
     | 
    
         
            +
              rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
         
     | 
| 
      
 11 
     | 
    
         
            +
              rdoc.options << '--line-numbers'
         
     | 
| 
      
 12 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,10 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'ci/reporter/rake/rspec'
         
     | 
| 
      
 2 
     | 
    
         
            +
            require "rspec"
         
     | 
| 
      
 3 
     | 
    
         
            +
            require 'rspec/core/rake_task'
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            RSpec::Core::RakeTask.new do |t|
         
     | 
| 
      
 6 
     | 
    
         
            +
              t.rspec_opts = ["-c", "-f progress"]
         
     | 
| 
      
 7 
     | 
    
         
            +
              t.pattern = 'spec/**/*_spec.rb'
         
     | 
| 
      
 8 
     | 
    
         
            +
              t.rcov = true
         
     | 
| 
      
 9 
     | 
    
         
            +
              t.rcov_opts = %w{--exclude /usr/local/rvm/gems/,bundle,spec}
         
     | 
| 
      
 10 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,66 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
             
     | 
| 
      
 2 
     | 
    
         
            +
            module FlexmlsGems
         
     | 
| 
      
 3 
     | 
    
         
            +
              class VersionHelper
         
     | 
| 
      
 4 
     | 
    
         
            +
                
         
     | 
| 
      
 5 
     | 
    
         
            +
                def initialize(pwd=Dir.pwd)
         
     | 
| 
      
 6 
     | 
    
         
            +
                  @pwd = pwd
         
     | 
| 
      
 7 
     | 
    
         
            +
                  reset
         
     | 
| 
      
 8 
     | 
    
         
            +
                end
         
     | 
| 
      
 9 
     | 
    
         
            +
                
         
     | 
| 
      
 10 
     | 
    
         
            +
                attr_reader :major, :minor, :patch, :build
         
     | 
| 
      
 11 
     | 
    
         
            +
                
         
     | 
| 
      
 12 
     | 
    
         
            +
                def load
         
     | 
| 
      
 13 
     | 
    
         
            +
                  parse(File.read(path))
         
     | 
| 
      
 14 
     | 
    
         
            +
                end
         
     | 
| 
      
 15 
     | 
    
         
            +
                
         
     | 
| 
      
 16 
     | 
    
         
            +
                def parse(string)
         
     | 
| 
      
 17 
     | 
    
         
            +
                  version_string = string.chomp
         
     | 
| 
      
 18 
     | 
    
         
            +
                  if version_string =~ /^(\d+)\.(\d+)\.(\d+)(?:\.(.*?))?$/
         
     | 
| 
      
 19 
     | 
    
         
            +
                    reset($1.to_i, $2.to_i, $3.to_i, $4)
         
     | 
| 
      
 20 
     | 
    
         
            +
                  end
         
     | 
| 
      
 21 
     | 
    
         
            +
                end
         
     | 
| 
      
 22 
     | 
    
         
            +
                
         
     | 
| 
      
 23 
     | 
    
         
            +
                def path
         
     | 
| 
      
 24 
     | 
    
         
            +
                  File.join(@pwd,'VERSION')
         
     | 
| 
      
 25 
     | 
    
         
            +
                end
         
     | 
| 
      
 26 
     | 
    
         
            +
                
         
     | 
| 
      
 27 
     | 
    
         
            +
                def bump_major
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @major += 1
         
     | 
| 
      
 29 
     | 
    
         
            +
                  @minor = 0
         
     | 
| 
      
 30 
     | 
    
         
            +
                  @patch = 0
         
     | 
| 
      
 31 
     | 
    
         
            +
                  @build = nil
         
     | 
| 
      
 32 
     | 
    
         
            +
                  self
         
     | 
| 
      
 33 
     | 
    
         
            +
                end
         
     | 
| 
      
 34 
     | 
    
         
            +
                
         
     | 
| 
      
 35 
     | 
    
         
            +
                def bump_minor
         
     | 
| 
      
 36 
     | 
    
         
            +
                  @minor += 1
         
     | 
| 
      
 37 
     | 
    
         
            +
                  @patch = 0
         
     | 
| 
      
 38 
     | 
    
         
            +
                  @build = nil
         
     | 
| 
      
 39 
     | 
    
         
            +
                  self
         
     | 
| 
      
 40 
     | 
    
         
            +
                end
         
     | 
| 
      
 41 
     | 
    
         
            +
                
         
     | 
| 
      
 42 
     | 
    
         
            +
                def bump_patch
         
     | 
| 
      
 43 
     | 
    
         
            +
                  @patch += 1
         
     | 
| 
      
 44 
     | 
    
         
            +
                  @build = nil
         
     | 
| 
      
 45 
     | 
    
         
            +
                  self
         
     | 
| 
      
 46 
     | 
    
         
            +
                end
         
     | 
| 
      
 47 
     | 
    
         
            +
                
         
     | 
| 
      
 48 
     | 
    
         
            +
                def reset(major=0, minor=0, patch=0, build=nil)
         
     | 
| 
      
 49 
     | 
    
         
            +
                  @major = major
         
     | 
| 
      
 50 
     | 
    
         
            +
                  @minor = minor
         
     | 
| 
      
 51 
     | 
    
         
            +
                  @patch = patch
         
     | 
| 
      
 52 
     | 
    
         
            +
                  @build = build
         
     | 
| 
      
 53 
     | 
    
         
            +
                  self
         
     | 
| 
      
 54 
     | 
    
         
            +
                end
         
     | 
| 
      
 55 
     | 
    
         
            +
                
         
     | 
| 
      
 56 
     | 
    
         
            +
                def to_s
         
     | 
| 
      
 57 
     | 
    
         
            +
                  [major,minor,patch,build].compact.join('.')
         
     | 
| 
      
 58 
     | 
    
         
            +
                end
         
     | 
| 
      
 59 
     | 
    
         
            +
                
         
     | 
| 
      
 60 
     | 
    
         
            +
                def save
         
     | 
| 
      
 61 
     | 
    
         
            +
                  File.open(path,'w') { |f| f.write to_s }
         
     | 
| 
      
 62 
     | 
    
         
            +
                end
         
     | 
| 
      
 63 
     | 
    
         
            +
                
         
     | 
| 
      
 64 
     | 
    
         
            +
              end
         
     | 
| 
      
 65 
     | 
    
         
            +
             
     | 
| 
      
 66 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,54 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require './spec/spec_helper'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            TEST_VERSION = "1.0.0"
         
     | 
| 
      
 4 
     | 
    
         
            +
            describe FlexmlsGems::GitHelper do
         
     | 
| 
      
 5 
     | 
    
         
            +
              subject { FlexmlsGems::GitHelper.new("",TEST_VERSION) }
         
     | 
| 
      
 6 
     | 
    
         
            +
              it "should tag the release in the remote repository" do
         
     | 
| 
      
 7 
     | 
    
         
            +
                subject.stub(:cmd_changes){ 0 }
         
     | 
| 
      
 8 
     | 
    
         
            +
                subject.stub(:cmd_tags){ [] }
         
     | 
| 
      
 9 
     | 
    
         
            +
                subject.stub(:cmd_ls_remote){ "" }
         
     | 
| 
      
 10 
     | 
    
         
            +
                subject.stub(:cmd_add_tag)
         
     | 
| 
      
 11 
     | 
    
         
            +
                subject.stub(:cmd_push_master)
         
     | 
| 
      
 12 
     | 
    
         
            +
                subject.stub(:cmd_push_tags)
         
     | 
| 
      
 13 
     | 
    
         
            +
                subject.stub(:cmd_remote_list){ ["origin"] }
         
     | 
| 
      
 14 
     | 
    
         
            +
                
         
     | 
| 
      
 15 
     | 
    
         
            +
                subject.should_receive(:cmd_add_tag).once
         
     | 
| 
      
 16 
     | 
    
         
            +
                subject.should_receive(:cmd_push_master).once
         
     | 
| 
      
 17 
     | 
    
         
            +
                subject.should_receive(:cmd_push_tags).once
         
     | 
| 
      
 18 
     | 
    
         
            +
                
         
     | 
| 
      
 19 
     | 
    
         
            +
                subject.release
         
     | 
| 
      
 20 
     | 
    
         
            +
              end
         
     | 
| 
      
 21 
     | 
    
         
            +
              
         
     | 
| 
      
 22 
     | 
    
         
            +
              it "should halt release when there are status changes" do
         
     | 
| 
      
 23 
     | 
    
         
            +
                subject.stub(:cmd_changes){ 1 }
         
     | 
| 
      
 24 
     | 
    
         
            +
                expect {subject.release}.to raise_error(FlexmlsGems::GitError)
         
     | 
| 
      
 25 
     | 
    
         
            +
              end
         
     | 
| 
      
 26 
     | 
    
         
            +
              it "should halt release when the is already a matching #{TEST_VERSION} tag" do
         
     | 
| 
      
 27 
     | 
    
         
            +
                subject.stub(:cmd_changes){ 0 }
         
     | 
| 
      
 28 
     | 
    
         
            +
                subject.stub(:cmd_tags){ ["v#{TEST_VERSION}"] }
         
     | 
| 
      
 29 
     | 
    
         
            +
                expect {subject.release}.to raise_error(FlexmlsGems::GitError)
         
     | 
| 
      
 30 
     | 
    
         
            +
              end
         
     | 
| 
      
 31 
     | 
    
         
            +
              it "should halt release when the origin already has the #{TEST_VERSION} tag" do
         
     | 
| 
      
 32 
     | 
    
         
            +
                subject.stub(:cmd_changes){ 0 }
         
     | 
| 
      
 33 
     | 
    
         
            +
                subject.stub(:cmd_tags){ [] }
         
     | 
| 
      
 34 
     | 
    
         
            +
                subject.stub(:cmd_ls_remote){ "OMGIHAVEATAGALREADY" }
         
     | 
| 
      
 35 
     | 
    
         
            +
                subject.stub(:cmd_remote_list){ ["origin"] }
         
     | 
| 
      
 36 
     | 
    
         
            +
                expect {subject.release}.to raise_error(FlexmlsGems::GitError)
         
     | 
| 
      
 37 
     | 
    
         
            +
              end
         
     | 
| 
      
 38 
     | 
    
         
            +
              it "should halt release when there is no origin remote" do
         
     | 
| 
      
 39 
     | 
    
         
            +
                 subject.stub(:cmd_changes){ 0 }
         
     | 
| 
      
 40 
     | 
    
         
            +
                 subject.stub(:cmd_tags){ [] }
         
     | 
| 
      
 41 
     | 
    
         
            +
                 subject.stub(:cmd_ls_remote){ "" }
         
     | 
| 
      
 42 
     | 
    
         
            +
                 subject.stub(:cmd_remote_list){ ["someotherplace"] }
         
     | 
| 
      
 43 
     | 
    
         
            +
                 expect {subject.release}.to raise_error(FlexmlsGems::GitError)
         
     | 
| 
      
 44 
     | 
    
         
            +
              end
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
              it "should commit the git version" do
         
     | 
| 
      
 47 
     | 
    
         
            +
                subject.stub(:cmd_changes){ 1 }
         
     | 
| 
      
 48 
     | 
    
         
            +
                subject.should_receive(:cmd_add).with("VERSION").once
         
     | 
| 
      
 49 
     | 
    
         
            +
                subject.should_receive(:cmd_commit).with("Bumped version v#{TEST_VERSION}").once
         
     | 
| 
      
 50 
     | 
    
         
            +
                subject.commit_version
         
     | 
| 
      
 51 
     | 
    
         
            +
              end
         
     | 
| 
      
 52 
     | 
    
         
            +
              
         
     | 
| 
      
 53 
     | 
    
         
            +
              
         
     | 
| 
      
 54 
     | 
    
         
            +
            end
         
     | 
    
        data/spec/spec_helper.rb
    ADDED
    
    | 
         @@ -0,0 +1,9 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require "rubygems"
         
     | 
| 
      
 2 
     | 
    
         
            +
            require "rspec"
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
         
     | 
| 
      
 5 
     | 
    
         
            +
            path = File.expand_path(File.dirname(__FILE__) + "/../lib/")
         
     | 
| 
      
 6 
     | 
    
         
            +
            $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            require 'flexmls_gems'
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
         @@ -0,0 +1,39 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require './spec/spec_helper'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            describe FlexmlsGems::VersionHelper do
         
     | 
| 
      
 5 
     | 
    
         
            +
              let(:old_version) { described_class.new.reset(1,2,3) } 
         
     | 
| 
      
 6 
     | 
    
         
            +
              let(:pre_version) { described_class.new.reset(1,2,3,"pre") } 
         
     | 
| 
      
 7 
     | 
    
         
            +
              context "increment" do
         
     | 
| 
      
 8 
     | 
    
         
            +
                it "should bump the major version" do
         
     | 
| 
      
 9 
     | 
    
         
            +
                  subject.bump_major.to_s().should eq("1.0.0")
         
     | 
| 
      
 10 
     | 
    
         
            +
                  old_version.bump_major.to_s().should eq("2.0.0")
         
     | 
| 
      
 11 
     | 
    
         
            +
                  pre_version.bump_major.to_s().should eq("2.0.0")
         
     | 
| 
      
 12 
     | 
    
         
            +
                end
         
     | 
| 
      
 13 
     | 
    
         
            +
                it "should bump the minor version" do
         
     | 
| 
      
 14 
     | 
    
         
            +
                  subject.bump_minor.to_s().should eq("0.1.0")
         
     | 
| 
      
 15 
     | 
    
         
            +
                  old_version.bump_minor.to_s().should eq("1.3.0")
         
     | 
| 
      
 16 
     | 
    
         
            +
                  pre_version.bump_minor.to_s().should eq("1.3.0")
         
     | 
| 
      
 17 
     | 
    
         
            +
                end
         
     | 
| 
      
 18 
     | 
    
         
            +
                it "should bump the patch version" do
         
     | 
| 
      
 19 
     | 
    
         
            +
                  subject.bump_patch.to_s().should eq("0.0.1")
         
     | 
| 
      
 20 
     | 
    
         
            +
                  old_version.bump_patch.to_s().should eq("1.2.4")
         
     | 
| 
      
 21 
     | 
    
         
            +
                  pre_version.bump_patch.to_s().should eq("1.2.4")
         
     | 
| 
      
 22 
     | 
    
         
            +
                end
         
     | 
| 
      
 23 
     | 
    
         
            +
              end
         
     | 
| 
      
 24 
     | 
    
         
            +
              context "File IO"
         
     | 
| 
      
 25 
     | 
    
         
            +
                it "should save a new version" do
         
     | 
| 
      
 26 
     | 
    
         
            +
                  Dir.mktmpdir do |dir|
         
     | 
| 
      
 27 
     | 
    
         
            +
                    file = "#{dir}/VERSION"
         
     | 
| 
      
 28 
     | 
    
         
            +
                    File.open(file,"w") {|f| f.write "1.2.3" }
         
     | 
| 
      
 29 
     | 
    
         
            +
                    helper = FlexmlsGems::VersionHelper.new(dir)
         
     | 
| 
      
 30 
     | 
    
         
            +
                    helper.load
         
     | 
| 
      
 31 
     | 
    
         
            +
                    helper.major.should eq(1)
         
     | 
| 
      
 32 
     | 
    
         
            +
                    helper.minor.should eq(2)
         
     | 
| 
      
 33 
     | 
    
         
            +
                    helper.patch.should eq(3)
         
     | 
| 
      
 34 
     | 
    
         
            +
                    helper.bump_major.save
         
     | 
| 
      
 35 
     | 
    
         
            +
                    File.read(file).chomp.should eq "2.0.0"
         
     | 
| 
      
 36 
     | 
    
         
            +
                  end
         
     | 
| 
      
 37 
     | 
    
         
            +
                end
         
     | 
| 
      
 38 
     | 
    
         
            +
              
         
     | 
| 
      
 39 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,166 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification 
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: flexmls_gems
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version 
         
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 21
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
      
 6 
     | 
    
         
            +
              segments: 
         
     | 
| 
      
 7 
     | 
    
         
            +
              - 0
         
     | 
| 
      
 8 
     | 
    
         
            +
              - 2
         
     | 
| 
      
 9 
     | 
    
         
            +
              - 1
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.2.1
         
     | 
| 
      
 11 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 12 
     | 
    
         
            +
            authors: 
         
     | 
| 
      
 13 
     | 
    
         
            +
            - Wade McEwen
         
     | 
| 
      
 14 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 15 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 16 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2011-08-26 00:00:00 -05:00
         
     | 
| 
      
 19 
     | 
    
         
            +
            default_executable: 
         
     | 
| 
      
 20 
     | 
    
         
            +
            dependencies: 
         
     | 
| 
      
 21 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 22 
     | 
    
         
            +
              name: grit
         
     | 
| 
      
 23 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 24 
     | 
    
         
            +
              requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 25 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 26 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 27 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 28 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 29 
     | 
    
         
            +
                    hash: 29
         
     | 
| 
      
 30 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 31 
     | 
    
         
            +
                    - 2
         
     | 
| 
      
 32 
     | 
    
         
            +
                    - 4
         
     | 
| 
      
 33 
     | 
    
         
            +
                    - 1
         
     | 
| 
      
 34 
     | 
    
         
            +
                    version: 2.4.1
         
     | 
| 
      
 35 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 36 
     | 
    
         
            +
              version_requirements: *id001
         
     | 
| 
      
 37 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 38 
     | 
    
         
            +
              name: rake
         
     | 
| 
      
 39 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 40 
     | 
    
         
            +
              requirement: &id002 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 41 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 42 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 43 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 44 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 45 
     | 
    
         
            +
                    hash: 3
         
     | 
| 
      
 46 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 47 
     | 
    
         
            +
                    - 0
         
     | 
| 
      
 48 
     | 
    
         
            +
                    version: "0"
         
     | 
| 
      
 49 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 50 
     | 
    
         
            +
              version_requirements: *id002
         
     | 
| 
      
 51 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 52 
     | 
    
         
            +
              name: rspec
         
     | 
| 
      
 53 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 54 
     | 
    
         
            +
              requirement: &id003 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 55 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 56 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 57 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 58 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 59 
     | 
    
         
            +
                    hash: 3
         
     | 
| 
      
 60 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 61 
     | 
    
         
            +
                    - 2
         
     | 
| 
      
 62 
     | 
    
         
            +
                    - 3
         
     | 
| 
      
 63 
     | 
    
         
            +
                    - 0
         
     | 
| 
      
 64 
     | 
    
         
            +
                    version: 2.3.0
         
     | 
| 
      
 65 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 66 
     | 
    
         
            +
              version_requirements: *id003
         
     | 
| 
      
 67 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 68 
     | 
    
         
            +
              name: ci_reporter
         
     | 
| 
      
 69 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 70 
     | 
    
         
            +
              requirement: &id004 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 71 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 72 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 73 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 74 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 75 
     | 
    
         
            +
                    hash: 9
         
     | 
| 
      
 76 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 77 
     | 
    
         
            +
                    - 1
         
     | 
| 
      
 78 
     | 
    
         
            +
                    - 6
         
     | 
| 
      
 79 
     | 
    
         
            +
                    - 3
         
     | 
| 
      
 80 
     | 
    
         
            +
                    version: 1.6.3
         
     | 
| 
      
 81 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 82 
     | 
    
         
            +
              version_requirements: *id004
         
     | 
| 
      
 83 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 84 
     | 
    
         
            +
              name: rcov
         
     | 
| 
      
 85 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 86 
     | 
    
         
            +
              requirement: &id005 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 87 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 88 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 89 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 90 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 91 
     | 
    
         
            +
                    hash: 41
         
     | 
| 
      
 92 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 93 
     | 
    
         
            +
                    - 0
         
     | 
| 
      
 94 
     | 
    
         
            +
                    - 9
         
     | 
| 
      
 95 
     | 
    
         
            +
                    - 9
         
     | 
| 
      
 96 
     | 
    
         
            +
                    version: 0.9.9
         
     | 
| 
      
 97 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 98 
     | 
    
         
            +
              version_requirements: *id005
         
     | 
| 
      
 99 
     | 
    
         
            +
            description: This gem is set of tasks to aid gems and tasks that largely reflect a gem run with bundler
         
     | 
| 
      
 100 
     | 
    
         
            +
            email: 
         
     | 
| 
      
 101 
     | 
    
         
            +
            - wade@fbsdata.com
         
     | 
| 
      
 102 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 107 
     | 
    
         
            +
             
     | 
| 
      
 108 
     | 
    
         
            +
            files: 
         
     | 
| 
      
 109 
     | 
    
         
            +
            - .gitignore
         
     | 
| 
      
 110 
     | 
    
         
            +
            - Gemfile
         
     | 
| 
      
 111 
     | 
    
         
            +
            - Gemfile.lock
         
     | 
| 
      
 112 
     | 
    
         
            +
            - LICENSE
         
     | 
| 
      
 113 
     | 
    
         
            +
            - README.md
         
     | 
| 
      
 114 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 115 
     | 
    
         
            +
            - VERSION
         
     | 
| 
      
 116 
     | 
    
         
            +
            - flexmls_gems.gemspec
         
     | 
| 
      
 117 
     | 
    
         
            +
            - lib/flexmls_gems.rb
         
     | 
| 
      
 118 
     | 
    
         
            +
            - lib/flexmls_gems/git_helper.rb
         
     | 
| 
      
 119 
     | 
    
         
            +
            - lib/flexmls_gems/task_helper.rb
         
     | 
| 
      
 120 
     | 
    
         
            +
            - lib/flexmls_gems/tasks.rb
         
     | 
| 
      
 121 
     | 
    
         
            +
            - lib/flexmls_gems/tasks/gems.rb
         
     | 
| 
      
 122 
     | 
    
         
            +
            - lib/flexmls_gems/tasks/rdoc.rb
         
     | 
| 
      
 123 
     | 
    
         
            +
            - lib/flexmls_gems/tasks/spec.rb
         
     | 
| 
      
 124 
     | 
    
         
            +
            - lib/flexmls_gems/version.rb
         
     | 
| 
      
 125 
     | 
    
         
            +
            - lib/flexmls_gems/version_helper.rb
         
     | 
| 
      
 126 
     | 
    
         
            +
            - spec/git_helper_spec.rb
         
     | 
| 
      
 127 
     | 
    
         
            +
            - spec/spec_helper.rb
         
     | 
| 
      
 128 
     | 
    
         
            +
            - spec/version_helper_spec.rb
         
     | 
| 
      
 129 
     | 
    
         
            +
            has_rdoc: true
         
     | 
| 
      
 130 
     | 
    
         
            +
            homepage: ""
         
     | 
| 
      
 131 
     | 
    
         
            +
            licenses: []
         
     | 
| 
      
 132 
     | 
    
         
            +
             
     | 
| 
      
 133 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 134 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
      
 136 
     | 
    
         
            +
            require_paths: 
         
     | 
| 
      
 137 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 138 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 139 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 140 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 141 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 142 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 143 
     | 
    
         
            +
                  hash: 3
         
     | 
| 
      
 144 
     | 
    
         
            +
                  segments: 
         
     | 
| 
      
 145 
     | 
    
         
            +
                  - 0
         
     | 
| 
      
 146 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
      
 147 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 148 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 149 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 150 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 151 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 152 
     | 
    
         
            +
                  hash: 3
         
     | 
| 
      
 153 
     | 
    
         
            +
                  segments: 
         
     | 
| 
      
 154 
     | 
    
         
            +
                  - 0
         
     | 
| 
      
 155 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
      
 156 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 157 
     | 
    
         
            +
             
     | 
| 
      
 158 
     | 
    
         
            +
            rubyforge_project: flexmls_gems
         
     | 
| 
      
 159 
     | 
    
         
            +
            rubygems_version: 1.6.2
         
     | 
| 
      
 160 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 161 
     | 
    
         
            +
            specification_version: 3
         
     | 
| 
      
 162 
     | 
    
         
            +
            summary: Gem to manange common gem tasks
         
     | 
| 
      
 163 
     | 
    
         
            +
            test_files: 
         
     | 
| 
      
 164 
     | 
    
         
            +
            - spec/git_helper_spec.rb
         
     | 
| 
      
 165 
     | 
    
         
            +
            - spec/spec_helper.rb
         
     | 
| 
      
 166 
     | 
    
         
            +
            - spec/version_helper_spec.rb
         
     |