flooose-gemedit 0.10.0 → 0.10.1
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/lib/gemedit/edit_command.rb +6 -4
- data/lib/gemedit/version.rb +1 -3
- metadata +4 -4
data/lib/gemedit/edit_command.rb
CHANGED
|
@@ -80,10 +80,12 @@ class Gem::Commands::EditCommand < Gem::Command
|
|
|
80
80
|
say " #{spec.full_name} #{spec.full_gem_path}" if Gem.configuration.verbose
|
|
81
81
|
%Q{"#{spec.full_gem_path}"}
|
|
82
82
|
end
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
if options[:git]
|
|
84
|
+
say "Initializing empty git repository in #{paths}" if Gem.configuration.verbose
|
|
85
|
+
paths.each{|path| system('git init #{path}')}
|
|
86
|
+
say "Creating initial commit" if Gem.configuration.verbose
|
|
87
|
+
paths.each{|path| system("cd #{path} && git add ./ && git commit -m 'Gemedit generated commit'")}
|
|
88
|
+
end
|
|
87
89
|
cmd = "#{options[:editor]} #{paths.join(' ')}"
|
|
88
90
|
say "Running `#{cmd}`" if Gem.configuration.verbose
|
|
89
91
|
exec cmd unless options[:dryrun]
|
data/lib/gemedit/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flooose-gemedit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 53
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 10
|
|
9
|
-
-
|
|
10
|
-
version: 0.10.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.10.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- !binary |
|
|
@@ -21,7 +21,7 @@ date: 2010-10-19 00:00:00 +02:00
|
|
|
21
21
|
default_executable:
|
|
22
22
|
dependencies: []
|
|
23
23
|
|
|
24
|
-
description:
|
|
24
|
+
description: "'git init' and a first commit before editing gem"
|
|
25
25
|
email: skeptikos@gmail.com
|
|
26
26
|
executables: []
|
|
27
27
|
|