Giter VIP home page Giter VIP logo

kata's People

Contributors

charl avatar ckuhn avatar jasonnoble avatar lloydchang avatar richardiux avatar wbailey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kata's Issues

Github repo creation is broken due to Github.com API upgrade

$ bundle exec kata setup ../calculator.rb
/Users/jasonn/workspace/kata/lib/kata/setup/base.rb:29:in `create_repo': Unable to determine github api token (Exception)
from /Users/jasonn/workspace/kata/bin/kata:79:in `<top (required)>'
from /Users/jasonn/.rvm/gems/ruby-1.9.3-p194@code_katas/bin/kata:23:in `load'
from /Users/jasonn/.rvm/gems/ruby-1.9.3-p194@code_katas/bin/kata:23:in `<main>'
$

Add Commit upon completion of requirement

Right now you have to shell out to commit your changes that you make upon completing each requirement. It would be great if after you respond yes to completing a requirement if it automatically did the git add/commit/push for you.

kata/setup/base.rb:65:in `repo_name=': undefined method `gsub' for nil:NilClass (NoMethodError)

I'm trying to setup kata to do a little practice and I'm getting this undefined method error:

spinlock~/kata/calculator$kata setup calculator.rb
/Users/spinlock/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/kata-1.3.2/lib/kata/setup/base.rb:65:in `repo_name=': undefined method `gsub' for nil:NilClass (NoMethodError)
    from /Users/spinlock/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/kata-1.3.2/lib/kata/setup/base.rb:12:in `initialize'
    from /Users/spinlock/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/kata-1.3.2/bin/kata:77:in `new'
    from /Users/spinlock/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/kata-1.3.2/bin/kata:77:in `<top (required)>'
    from /Users/spinlock/.rbenv/versions/1.9.3-p448/bin/kata:23:in `load'
    from /Users/spinlock/.rbenv/versions/1.9.3-p448/bin/kata:23:in `<main>'

I've seen this using both rbenv and rvm so I think it's independent of my setup.

Here's the method that's failing:

  def repo_name=(kata_name
    @repo_name = "#{kata_name.gsub(/( |-)\1?/, '_')}-#{Time.now.strftime('%Y-%m-%d-%H%M%S')}".downcase
  end

which is called from initialize:

  def initialize(kata_name = 'kata')
    self.kata_name = kata_name
    self.repo_name = kata_name
  end

I don't get why kata_name is nil as it looks like it should be a string to me.

Refactor Build Tree

Refactor the build tree so that it can easily support other languages besides ruby

No submodule mapping found in .gitmodules for path 'kata.wiki'

Hello @wbailey

After git merging kata.wiki from 2229b0e updating how we use rvm

git submodule reports an error
No submodule mapping found in .gitmodules for path 'kata.wiki'
with exit code of 1

When your time kindly permits, perhaps this might be fixable by running
git add .gitmodules && git commit -s && git push origin master

Thank you.

Steps to reproduce this issue:

$ git clone git://github.com/wbailey/kata.git wbailey_kata.git \
    && cd $_ && git submodule; echo $?
Cloning into 'wbailey_kata.git'...
remote: Counting objects: 583, done.
remote: Compressing objects: 100% (274/274), done.
remote: Total 583 (delta 258), reused 578 (delta 253)
Receiving objects: 100% (583/583), 88.87 KiB | 31 KiB/s, done.
Resolving deltas: 100% (258/258), done.
No submodule mapping found in .gitmodules for path 'kata.wiki'
1

README Fix

Apologies for submitting a new 'issue' for something on the readme. Wanted to let you know that the README link to the codekata.com site uses the www. subdomain but the site itself does not have a DNS record for that subdomain. http://codekata.com does resolve just fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.