kata 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. data/lib/kata/setup.rb +15 -10
  2. metadata +3 -9
data/lib/kata/setup.rb CHANGED
@@ -30,22 +30,27 @@ module Kata
30
30
  user_string = "-u '#{github.user}/token:#{github.token}'"
31
31
  repo_params = "-d 'name=#{repo_name}' -d 'description=code+kata+repo'"
32
32
 
33
- # Create the repo on github
34
- puts <<-EOF
35
- curl #{user_string} #{repo_params} #{github.url}repos/create
36
- EOF
33
+ Create the repo on github
37
34
  raise SystemCallError, 'unable to use curl to create repo on github' unless system <<-EOF
38
- curl #{user_string} #{repo_params} #{github.url}repos/create
35
+ echo -n 'Creating github repo...';
36
+ curl -s #{user_string} #{repo_params} #{github.url}repos/create 2> /dev/null;
37
+ echo 'complete'
39
38
  EOF
40
39
 
41
40
  # publish to github
42
41
  raise SystemCallError, 'unable to publish repo to github' unless system <<-EOF
42
+ echo -n 'Initializing repo...';
43
43
  cd #{repo_name};
44
- git init;
45
- git add README lib/ spec/;
46
- git commit -m 'starting kata';
47
- git remote add origin git@github.com:#{github.user}/#{repo_name}.git;
48
- git push origin master
44
+ git init 2> /dev/null;
45
+ git add README lib/ spec/ 2> /dev/null;
46
+ git commit -m 'starting kata' 2> /dev/null;
47
+ echo 'complete'
48
+ echo -n 'adding origin...'
49
+ git remote add origin git@github.com:#{github.user}/#{repo_name}.git 2> /dev/null;
50
+ echo 'complete'
51
+ echo -n 'pushing...'
52
+ git push origin master 2> /dev/null
53
+ echo 'complete'
49
54
  EOF
50
55
  end
51
56
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: kata
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.2
5
+ version: 1.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Wes
@@ -11,11 +11,12 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-03-12 00:00:00 -08:00
14
+ date: 2011-03-15 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler
19
+ prerelease: false
19
20
  requirement: &id001 !ruby/object:Gem::Requirement
20
21
  none: false
21
22
  requirements:
@@ -23,7 +24,6 @@ dependencies:
23
24
  - !ruby/object:Gem::Version
24
25
  version: 1.0.0
25
26
  type: :development
26
- prerelease: false
27
27
  version_requirements: *id001
28
28
  description: This DSL provides an easy way for you to write a code kata for pairing exercises or individual testing
29
29
  email: baywes@gmail.com
@@ -58,18 +58,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- hash: -513172246977383286
62
- segments:
63
- - 0
64
61
  version: "0"
65
62
  required_rubygems_version: !ruby/object:Gem::Requirement
66
63
  none: false
67
64
  requirements:
68
65
  - - ">="
69
66
  - !ruby/object:Gem::Version
70
- hash: -513172246977383286
71
- segments:
72
- - 0
73
67
  version: "0"
74
68
  requirements: []
75
69