kwoon 0.0.1 → 0.0.2
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/README.markdown +6 -3
- data/lib/kwoon/cli.rb +10 -3
- data/lib/kwoon/version.rb +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -19,6 +19,10 @@ a remote Git repository.
|
|
19
19
|
rvm use 1.9.2
|
20
20
|
|
21
21
|
(Kwoon should run fine in 1.8 implementations too.)
|
22
|
+
|
23
|
+
gem update bundler
|
24
|
+
|
25
|
+
(You need Bundler 1.0.2 for kwoon to install correctly)
|
22
26
|
|
23
27
|
### kwoon
|
24
28
|
|
@@ -38,14 +42,13 @@ Answer "y" when asked if you trust the .rvmrc file.
|
|
38
42
|
|
39
43
|
Initialise Git:
|
40
44
|
|
41
|
-
kwoon git <remote_git_repo>
|
45
|
+
kwoon git [<remote_git_repo>]
|
42
46
|
|
43
47
|
e.g.
|
44
48
|
|
45
49
|
kwoon git git@github.com:account_name/repo_name.git
|
46
50
|
|
47
|
-
You
|
48
|
-
(It doesn't have to exist at this point, though.)
|
51
|
+
You don't have to specify a remote repository if you aren't going to publish your changes.
|
49
52
|
|
50
53
|
Next start a pairing session:
|
51
54
|
|
data/lib/kwoon/cli.rb
CHANGED
@@ -65,11 +65,18 @@ module Kwoon
|
|
65
65
|
end
|
66
66
|
|
67
67
|
desc "git GIT_REMOTE_REPO", 'Initialise Git and set the remote repo (e.g. "kwoon git user@git.host:repo.git")'
|
68
|
-
def git(remote_repo_name)
|
68
|
+
def git(remote_repo_name = nil)
|
69
69
|
repo = Grit::Repo.init(".")
|
70
70
|
|
71
|
-
|
72
|
-
|
71
|
+
if remote_repo_name
|
72
|
+
puts "*** Configuring Git to point to #{remote_repo_name}"
|
73
|
+
repo.config["push.default"] = "current"
|
74
|
+
repo.remote_add("origin", remote_repo_name)
|
75
|
+
puts
|
76
|
+
else
|
77
|
+
puts "*** Configuring Git without a remote repo"
|
78
|
+
puts
|
79
|
+
end
|
73
80
|
|
74
81
|
repo.add(".")
|
75
82
|
repo.commit_index("Initialise Kata")
|
data/lib/kwoon/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ashley Moran
|
@@ -108,7 +108,7 @@ rubyforge_project: kwoon
|
|
108
108
|
rubygems_version: 1.3.7
|
109
109
|
signing_key:
|
110
110
|
specification_version: 3
|
111
|
-
summary: kwoon-0.0.
|
111
|
+
summary: kwoon-0.0.2
|
112
112
|
test_files:
|
113
113
|
- features/descriptions/create.feature
|
114
114
|
- features/descriptions/git.feature
|