Class: FunWith::Gems::Mechanic

Inherits:
Object
  • Object
show all
Defined in:
lib/fun_with/gems/mechanic.rb

Instance Method Summary collapse

Instance Method Details

#bump_version(gem_const) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fun_with/gems/mechanic.rb', line 5

def bump_version( gem_const )
  if Validator.new.validate( gem_const )
  # if tests pass and gem is valid
  
    # run rake version:bump:patch
  
    # git commit
  
    # git push
  
    # add branch v<VERSION>
  
    # rake install
  
    # gem push
  
  else
    puts "Failed"
  end
end