my_scripts 0.0.2 → 0.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.
- data/VERSION +1 -1
- data/bin/gitcp +14 -2
- data/bin/jew +26 -0
- data/bin/mybones +5 -4
- data/bin/rabbit +1 -1
- data/my_scripts.gemspec +4 -3
- metadata +4 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/bin/gitcp
CHANGED
@@ -1,10 +1,22 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# Show usage message and exit
|
4
|
+
def usage
|
5
|
+
puts "Usage:
|
6
|
+
#{__FILE__} [bump] Commit message goes here"
|
7
|
+
exit 1
|
8
|
+
end
|
9
|
+
|
10
|
+
usage if ARGV.empty?
|
11
|
+
|
2
12
|
# If first Arg is a number, it indicates version bump
|
3
13
|
bump = ARGV[0].to_i > 0 ? ARGV.shift.to_i : 0
|
4
14
|
message = ARGV.empty? ? 'Commit' : ARGV.join(' ')
|
5
15
|
message += " #{Time.now.to_s[0..-6]}"
|
16
|
+
|
6
17
|
puts "Committing (versionup =#{bump}) with message: #{message}"
|
7
|
-
|
18
|
+
|
19
|
+
system %Q[git add --all]
|
8
20
|
system %Q[git commit -a -m "#{message}" --author arvicco]
|
9
21
|
case bump
|
10
22
|
when 1..9
|
data/bin/jew
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# Show usage message and exit
|
4
|
+
def usage
|
5
|
+
puts "Usage:
|
6
|
+
#{__FILE__} [bump] Commit message goes here"
|
7
|
+
exit 1
|
8
|
+
end
|
9
|
+
|
10
|
+
usage if ARGV.empty?
|
11
|
+
|
12
|
+
p ARGV
|
13
|
+
case ARGV.size
|
14
|
+
when 1 then
|
15
|
+
project = ARGV[0]
|
16
|
+
system "bones create --github \"FIXME: Description for #{project}\" -s basic #{project}"
|
17
|
+
when 2 then
|
18
|
+
project = ARGV[0]
|
19
|
+
descr = ARGV[1]
|
20
|
+
system "bones create --github \"#{descr}\" -s basic #{project}"
|
21
|
+
else
|
22
|
+
puts "Usage: #{ARGV[0]} project_name \"description\""
|
23
|
+
exit 1
|
24
|
+
end
|
25
|
+
|
26
|
+
system "jeweler --rspec --cucumber --create-repo --summary "Learning Win32" --description "Experiments with Ruby on Windows using Win32OLE, Win32API and friends" win_exp"
|
data/bin/mybones
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
#/usr/bin/env ruby
|
2
|
+
|
3
|
+
p ARGV
|
4
|
+
case ARGV.size
|
4
5
|
when 1 then
|
5
6
|
project = ARGV[0]
|
6
7
|
system "bones create --github \"FIXME: Description for #{project}\" -s basic #{project}"
|
7
8
|
when 2 then
|
8
9
|
project = ARGV[0]
|
9
|
-
descr = ARGV[1]
|
10
|
+
descr = ARGV[1]
|
10
11
|
system "bones create --github \"#{descr}\" -s basic #{project}"
|
11
12
|
else
|
12
13
|
puts "Usage: #{ARGV[0]} project_name \"description\""
|
data/bin/rabbit
CHANGED
data/my_scripts.gemspec
CHANGED
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{my_scripts}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["arvicco"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-22}
|
13
13
|
s.description = %q{Collection of simple scripts (mostly dev-related)}
|
14
14
|
s.email = %q{arvitallian@gmail.com}
|
15
|
-
s.executables = ["gitcp", "mybones", "rabbit"]
|
15
|
+
s.executables = ["gitcp", "jew", "mybones", "rabbit"]
|
16
16
|
s.extra_rdoc_files = [
|
17
17
|
"LICENSE",
|
18
18
|
"README.rdoc"
|
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
"Rakefile",
|
26
26
|
"VERSION",
|
27
27
|
"bin/gitcp",
|
28
|
+
"bin/jew",
|
28
29
|
"bin/mybones",
|
29
30
|
"bin/rabbit",
|
30
31
|
"features/my_scripts.feature",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_scripts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- arvicco
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-22 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -36,6 +36,7 @@ description: Collection of simple scripts (mostly dev-related)
|
|
36
36
|
email: arvitallian@gmail.com
|
37
37
|
executables:
|
38
38
|
- gitcp
|
39
|
+
- jew
|
39
40
|
- mybones
|
40
41
|
- rabbit
|
41
42
|
extensions: []
|
@@ -51,6 +52,7 @@ files:
|
|
51
52
|
- Rakefile
|
52
53
|
- VERSION
|
53
54
|
- bin/gitcp
|
55
|
+
- bin/jew
|
54
56
|
- bin/mybones
|
55
57
|
- bin/rabbit
|
56
58
|
- features/my_scripts.feature
|