pry-theme 0.1.1 → 0.1.2

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.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Pry Theme changelog
2
2
  ===================
3
3
 
4
+ ### v0.1.2 (August 31, 2012)
5
+
6
+ * Removed uninstaller. Actually, adding it, was a terrible idea. Remove theme
7
+ files by hand, from now on.
8
+
4
9
  ### v0.1.1 (August 1, 2012)
5
10
 
6
11
  * Fixed bug in `--test` command not displaying current theme name;
@@ -1,3 +1,3 @@
1
1
  module PryTheme
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/pry-theme.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'pry-theme/version'
2
- require 'pry-theme/uninstaller'
3
2
  require 'pry-theme/helper'
4
3
  require 'pry-theme/palette'
5
4
  require 'pry-theme/term_notation'
@@ -152,12 +151,6 @@ module PryTheme
152
151
  Pry.output.puts "#{e}: wrong color value: `#{color}`. Typo?"
153
152
  end
154
153
 
155
- def self.install_gem_hooks
156
- Gem.post_uninstall do |u|
157
- Uninstaller.run(u) if u.spec.name == "pry-theme"
158
- end
159
- end
160
-
161
154
  def self.find_color(color, palette, &block)
162
155
  if color
163
156
  c = palette.colors.find do |palette_color|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-01 00:00:00.000000000 Z
12
+ date: 2012-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -96,10 +96,8 @@ files:
96
96
  - lib/pry-theme/rgb.rb
97
97
  - lib/pry-theme/term_notation.rb
98
98
  - lib/pry-theme/theme.rb
99
- - lib/pry-theme/uninstaller.rb
100
99
  - lib/pry-theme/version.rb
101
100
  - lib/pry-theme/when_started_hook.rb
102
- - lib/rubygems_plugin.rb
103
101
  - pry-theme.gemspec
104
102
  - screenshots/railscasts.png
105
103
  - screenshots/solarized.png
@@ -145,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
143
  version: '0'
146
144
  requirements: []
147
145
  rubyforge_project:
148
- rubygems_version: 1.8.23
146
+ rubygems_version: 1.8.24
149
147
  signing_key:
150
148
  specification_version: 3
151
149
  summary: Easy way to customize your Pry colors
@@ -1,20 +0,0 @@
1
- require 'fileutils'
2
-
3
- module PryTheme
4
- module Uninstaller
5
-
6
- def self.run(u)
7
- puts "Do you wish to delete #{THEME_DIR} directory with all Pry themes?"
8
- print "(y/n): "
9
-
10
- case $stdin.gets.chomp
11
- when "y"
12
- FileUtils.rm_rf(THEME_DIR)
13
- puts "Successfully deleted #{THEME_DIR} and all Pry themes."
14
- else
15
- puts "Nothing deleted. You can manually delete the directory."
16
- end
17
- end
18
-
19
- end
20
- end
@@ -1,8 +0,0 @@
1
- begin
2
- require 'pry'
3
- require 'pry-theme'
4
-
5
- PryTheme.install_gem_hooks
6
- rescue LoadError
7
- # Be silent when we can't load Pry (when it's uninstalled).
8
- end