wbailey / kata Goto Github PK
View Code? Open in Web Editor NEWA language for describing and taking code katas
A language for describing and taking code katas
$ 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>'
$
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.
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 the build tree so that it can easily support other languages besides ruby
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.