cheat 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/cheat.rb +5 -1
  2. data/lib/cheat/version.rb +1 -1
  3. metadata +10 -9
@@ -2,6 +2,10 @@
2
2
  require 'pager'
3
3
  RUBY_PLATFORM = PLATFORM unless defined? RUBY_PLATFORM # Ruby 1.8 compatibility
4
4
 
5
+ def mswin?
6
+ (RUBY_PLATFORM =~ /(:?mswin|mingw)/) || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
7
+ end
8
+
5
9
  module Cheat
6
10
  include Pager
7
11
  extend self
@@ -187,7 +191,7 @@ module Cheat
187
191
  end
188
192
 
189
193
  def cache_dir
190
- RUBY_PLATFORM =~ /win32/ ? win32_cache_dir : File.join(File.expand_path("~"), ".cheat")
194
+ mswin? ? win32_cache_dir : File.join(File.expand_path("~"), ".cheat")
191
195
  end
192
196
 
193
197
  def win32_cache_dir
@@ -1,3 +1,3 @@
1
1
  module Cheat
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,32 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
5
4
  prerelease:
5
+ version: 1.3.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris Wanstrath
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-06 00:00:00.000000000 Z
12
+ date: 2012-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: pager
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
15
+ version_requirements: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.0'
20
+ none: false
21
+ name: pager
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
24
+ requirement: !ruby/object:Gem::Requirement
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
28
  version: '1.0'
29
+ none: false
30
30
  description: ! " cheat prints cheat sheets from cheat.errtheblog.com, a wiki-like\n
31
31
  \ repository of programming knowledge.\n"
32
32
  email: chris@ozmm.org
@@ -74,17 +74,17 @@ rdoc_options: []
74
74
  require_paths:
75
75
  - lib
76
76
  required_ruby_version: !ruby/object:Gem::Requirement
77
- none: false
78
77
  requirements:
79
78
  - - ! '>='
80
79
  - !ruby/object:Gem::Version
81
80
  version: '0'
82
- required_rubygems_version: !ruby/object:Gem::Requirement
83
81
  none: false
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
83
  requirements:
85
84
  - - ! '>='
86
85
  - !ruby/object:Gem::Version
87
86
  version: '0'
87
+ none: false
88
88
  requirements: []
89
89
  rubyforge_project:
90
90
  rubygems_version: 1.8.23
@@ -92,3 +92,4 @@ signing_key:
92
92
  specification_version: 3
93
93
  summary: cheat prints cheat sheets from cheat.errtheblog.com
94
94
  test_files: []
95
+ has_rdoc: false