patchy 1.0.0b2 → 1.0.0b3
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.md +8 -3
- data/bin/patchy +6 -0
- data/lib/patchy/version.rb +1 -1
- metadata +6 -3
data/README.md
CHANGED
@@ -21,8 +21,13 @@ specify it as the second argument:
|
|
21
21
|
patchy 1234 2-3-stable
|
22
22
|
|
23
23
|
What this will do is to to check out the base branch (`master` or what you
|
24
|
-
specify), do a `git pull` to make sure it's up to date,
|
25
|
-
`1234` branch in this case
|
24
|
+
specify), do a `git pull` to make sure it's up to date, create a
|
25
|
+
`1234` branch in this case, and then finally create a Rails application and
|
26
|
+
point it to the newly created ticket branch in your local copy of the Rails
|
27
|
+
repository in the `Gemfile`.
|
28
|
+
|
29
|
+
*Note:* The Rails application will only be created if your base branch is
|
30
|
+
`master`.
|
26
31
|
|
27
32
|
### Finishing
|
28
33
|
|
@@ -45,7 +50,7 @@ commit message. Patchy shows you which commands it runs and asks you to approve
|
|
45
50
|
the output of certain critical commands before moving on.
|
46
51
|
|
47
52
|
I encourage you to take a look at the source code (in `bin/patchy`). It's only
|
48
|
-
|
53
|
+
61 lines "long" and helps you understand what exactly Patchy does for you.
|
49
54
|
|
50
55
|
## Copyright
|
51
56
|
|
data/bin/patchy
CHANGED
@@ -34,6 +34,12 @@ if ARGV[0] =~ /^\d+$/
|
|
34
34
|
end
|
35
35
|
run("git pull")
|
36
36
|
run("git checkout -b #{ticket}")
|
37
|
+
if base_branch == 'master'
|
38
|
+
run("bin/rails new railties/tmp/ticket_#{ticket} --dev")
|
39
|
+
File.open("railties/tmp/ticket_#{ticket}/Gemfile", 'r+') do |f|
|
40
|
+
f.write(f.read.sub(/gem 'rails', :path => '(.+)'/, "gem 'rails', :git => '\\1', :branch => '#{ticket}'"))
|
41
|
+
end
|
42
|
+
end
|
37
43
|
else
|
38
44
|
message = ARGV[0]
|
39
45
|
ticket = current_branch
|
data/lib/patchy/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patchy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 415574163
|
4
5
|
prerelease: true
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
9
|
+
- 0b3
|
10
|
+
version: 1.0.0b3
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- David Trasbo
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-06-
|
18
|
+
date: 2010-06-30 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|
@@ -45,6 +46,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
46
|
requirements:
|
46
47
|
- - ">="
|
47
48
|
- !ruby/object:Gem::Version
|
49
|
+
hash: 3
|
48
50
|
segments:
|
49
51
|
- 0
|
50
52
|
version: "0"
|
@@ -53,6 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
55
|
requirements:
|
54
56
|
- - ">"
|
55
57
|
- !ruby/object:Gem::Version
|
58
|
+
hash: 25
|
56
59
|
segments:
|
57
60
|
- 1
|
58
61
|
- 3
|