cheat 1.3.1 → 1.3.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/lib/cheat.rb +5 -1
- data/lib/cheat/version.rb +1 -1
- metadata +10 -9
data/lib/cheat.rb
CHANGED
|
@@ -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
|
-
|
|
194
|
+
mswin? ? win32_cache_dir : File.join(File.expand_path("~"), ".cheat")
|
|
191
195
|
end
|
|
192
196
|
|
|
193
197
|
def win32_cache_dir
|
data/lib/cheat/version.rb
CHANGED
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-
|
|
12
|
+
date: 2012-12-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
|
|
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
|
-
|
|
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
|