gem-eit 0.5.0 → 0.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9433001c3fa6829ff678bcb6f5e179823c5a35db
4
- data.tar.gz: 08ff472bc1846f1827671f7cc4bd3bd6231cf1fd
3
+ metadata.gz: 524f7c37f2f957e42e335ca2bf252e544e573872
4
+ data.tar.gz: e12c2842a8e16b364c28263ab7ec590e013a39cf
5
5
  SHA512:
6
- metadata.gz: a67ffeb54ca539ed47de059c4761ae3968b3e85d2e2f955a1af8b0890d567ac3b8cda1704f40708516170e46b8f1f55fd3f97d19d4c7f0031bc13b8413915c8e
7
- data.tar.gz: aeb7c1603d3405ecd6d58c9388252195050a524643b5dbd1fbd7cc5b1bb853894f0572998d998accdc65b409a5c19f3c58e1201657e083a53adc6eb8e0238ea5
6
+ metadata.gz: 5bcf764d3df469a2b1aa518d5f396ce32a80944b7a6c820c3e023a4a0f066ad067ed4e491e8942ff8d907467d6e8a00f7896b3a7cb0ff6602f2657e8874dc86d
7
+ data.tar.gz: 8013ce3e9a05a661a4e781e381f31986896eed7b0fc2451cf2ee58dee8e15e87fdb052766992618ee7ca663a7505e458944dd71e8e899b0ca19fc4d363bdc216
data/CHANGES.md ADDED
@@ -0,0 +1,9 @@
1
+ # CHANGES
2
+
3
+ ## gem-eit 0.5.1 -- 2013-11-22
4
+
5
+ * Fixed a bug where we're using `eit` command instead of $EDITOR.
6
+
7
+ ## gem-eit 0.5.0 -- 2013-11-22
8
+
9
+ * Birthday!
data/README.md CHANGED
@@ -11,9 +11,8 @@ by Lin Jen-Shin ([godfat](http://godfat.org))
11
11
 
12
12
  Edit the gem for a given name or edit the file for a given require path.
13
13
 
14
- Also checkout [gem-cd][], [gem-grep][].
14
+ Also checkout [gem-grep][].
15
15
 
16
- [gem-cd]: https://github.com/godfat/gem-cd
17
16
  [gem-grep]: https://github.com/godfat/gem-grep
18
17
 
19
18
  ## WHY eit?
data/Rakefile CHANGED
@@ -8,6 +8,6 @@ end
8
8
 
9
9
  Gemgem.init(dir) do |s|
10
10
  s.name = 'gem-eit'
11
- s.version = '0.5.0'
11
+ s.version = '0.5.1'
12
12
  s.add_runtime_dependency('gem-path')
13
13
  end
data/gem-eit.gemspec CHANGED
@@ -1,19 +1,20 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: gem-eit 0.5.0 ruby lib
2
+ # stub: gem-eit 0.5.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "gem-eit"
6
- s.version = "0.5.0"
6
+ s.version = "0.5.1"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Lin Jen-Shin (godfat)"]
10
10
  s.date = "2013-11-22"
11
- s.description = "Edit the gem for a given name or edit the file for a given require path.\n\nAlso checkout [gem-cd][], [gem-grep][].\n\n[gem-cd]: https://github.com/godfat/gem-cd\n[gem-grep]: https://github.com/godfat/gem-grep"
11
+ s.description = "Edit the gem for a given name or edit the file for a given require path.\n\nAlso checkout [gem-grep][].\n\n[gem-grep]: https://github.com/godfat/gem-grep"
12
12
  s.email = ["godfat (XD) godfat.org"]
13
13
  s.files = [
14
14
  ".gitignore",
15
15
  ".gitmodules",
16
16
  ".travis.yml",
17
+ "CHANGES.md",
17
18
  "LICENSE",
18
19
  "README.md",
19
20
  "Rakefile",
@@ -21,6 +21,15 @@ class Gem::Commands::EitCommand < Gem::Command
21
21
  Gem::DefaultUserInteraction.use_ui(ui) do
22
22
  Gem::GemRunner.new.run(['path'] + options[:args])
23
23
  end
24
- exec('eit', ui.outs.string.strip)
24
+ exec(eit, ui.outs.string.strip)
25
+ end
26
+
27
+ def exec *args
28
+ say(args.join(' '))
29
+ super
30
+ end
31
+
32
+ def eit
33
+ ENV['EIT_EDITOR'] || ENV['EDITOR'] || 'vim'
25
34
  end
26
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-eit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lin Jen-Shin (godfat)
@@ -27,9 +27,8 @@ dependencies:
27
27
  description: |-
28
28
  Edit the gem for a given name or edit the file for a given require path.
29
29
 
30
- Also checkout [gem-cd][], [gem-grep][].
30
+ Also checkout [gem-grep][].
31
31
 
32
- [gem-cd]: https://github.com/godfat/gem-cd
33
32
  [gem-grep]: https://github.com/godfat/gem-grep
34
33
  email:
35
34
  - godfat (XD) godfat.org
@@ -40,6 +39,7 @@ files:
40
39
  - .gitignore
41
40
  - .gitmodules
42
41
  - .travis.yml
42
+ - CHANGES.md
43
43
  - LICENSE
44
44
  - README.md
45
45
  - Rakefile