keycutter 0.1.0 → 0.1.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/CHANGELOG CHANGED
@@ -1,4 +1,7 @@
1
1
  == Changelog
2
2
 
3
+ === 0.1.1
4
+ * Lazy load Keycutter after the command has been invoked
5
+
3
6
  === 0.1.0
4
7
  * Initial release
@@ -1,6 +1,5 @@
1
1
  require 'keycutter/version'
2
2
  require 'keycutter/configuration'
3
- require 'keycutter/keys_command'
4
3
  require 'keycutter/testing' if ENV['FAKEWEB']
5
4
 
6
5
  module Keycutter
@@ -1,3 +1,3 @@
1
1
  module Keycutter
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,4 +1,3 @@
1
- require 'rubygems/command'
2
1
  require 'rubygems/gemcutter_utilities'
3
2
 
4
3
  class Gem::Commands::KeysCommand < Gem::Command
@@ -37,6 +36,8 @@ class Gem::Commands::KeysCommand < Gem::Command
37
36
  end
38
37
 
39
38
  def execute
39
+ require 'keycutter'
40
+
40
41
  options[:list] = !(options[:use] || options[:remove] || options[:add])
41
42
 
42
43
  if options[:add] then
@@ -1,4 +1,6 @@
1
1
  require 'rubygems/command_manager'
2
2
 
3
- require 'keycutter'
4
- Gem::CommandManager.instance.register_command :keys
3
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.3.6')
4
+ Gem::CommandManager.instance.register_command :keys
5
+ end
6
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycutter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh French
@@ -47,9 +47,9 @@ files:
47
47
  - keycutter.gemspec
48
48
  - lib/keycutter.rb
49
49
  - lib/keycutter/configuration.rb
50
- - lib/keycutter/keys_command.rb
51
50
  - lib/keycutter/testing.rb
52
51
  - lib/keycutter/version.rb
52
+ - lib/rubygems/commands/keys_command.rb
53
53
  - lib/rubygems_plugin.rb
54
54
  - spec/configuration_spec.rb
55
55
  - spec/spec_helper.rb