mincore 0.0.6 → 0.0.7
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/mincore.rb +7 -0
- metadata +66 -42
- checksums.yaml +0 -7
data/lib/mincore.rb
CHANGED
@@ -147,6 +147,13 @@ static VALUE _cachedel(char *filename, int count) {
|
|
147
147
|
C_CODE
|
148
148
|
end
|
149
149
|
|
150
|
+
# Returns the number of system pages required to store file in memory
|
151
|
+
def numpages
|
152
|
+
pagesize = self.class.PAGESIZE
|
153
|
+
(self.stat.size + pagesize -1 ) / pagesize
|
154
|
+
end
|
155
|
+
|
156
|
+
|
150
157
|
# Attempts to delete cached pages of a file, one or more times
|
151
158
|
#
|
152
159
|
# Example:
|
metadata
CHANGED
@@ -1,72 +1,96 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mincore
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Reda NOUSHI
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
17
|
+
|
18
|
+
date: 2013-11-06 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
14
21
|
name: RubyInline
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.10.1
|
20
|
-
type: :runtime
|
21
22
|
prerelease: false
|
22
|
-
|
23
|
-
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
24
26
|
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 45
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 10
|
32
|
+
- 1
|
26
33
|
version: 3.10.1
|
27
|
-
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
28
37
|
name: RubyInline
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 3.10.1
|
34
|
-
type: :development
|
35
38
|
prerelease: false
|
36
|
-
|
37
|
-
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
38
42
|
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 45
|
45
|
+
segments:
|
46
|
+
- 3
|
47
|
+
- 10
|
48
|
+
- 1
|
40
49
|
version: 3.10.1
|
50
|
+
type: :development
|
51
|
+
version_requirements: *id002
|
41
52
|
description: Provides cache inspection and deletion for a specific file.
|
42
53
|
email: reda_noushi@yahoo.com
|
43
54
|
executables: []
|
55
|
+
|
44
56
|
extensions: []
|
57
|
+
|
45
58
|
extra_rdoc_files: []
|
46
|
-
|
59
|
+
|
60
|
+
files:
|
47
61
|
- lib/mincore.rb
|
48
62
|
homepage: http://github.com/noushi/ruby-mincore
|
49
|
-
licenses:
|
63
|
+
licenses:
|
50
64
|
- GPLv2
|
51
|
-
metadata: {}
|
52
65
|
post_install_message:
|
53
66
|
rdoc_options: []
|
54
|
-
|
67
|
+
|
68
|
+
require_paths:
|
55
69
|
- lib
|
56
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 3
|
76
|
+
segments:
|
77
|
+
- 0
|
78
|
+
version: "0"
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
hash: 3
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
version: "0"
|
66
88
|
requirements: []
|
89
|
+
|
67
90
|
rubyforge_project:
|
68
|
-
rubygems_version:
|
91
|
+
rubygems_version: 1.8.15
|
69
92
|
signing_key:
|
70
|
-
specification_version:
|
93
|
+
specification_version: 3
|
71
94
|
summary: Ruby bindings for Linux cache manipulation
|
72
95
|
test_files: []
|
96
|
+
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 98b506d5836b4c7af83663e696ce8f2d140c9a35
|
4
|
-
data.tar.gz: 29da48d0939707d0f06c7c071b6ccc41912fea4f
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: fb2cc82ce91b24463f547e51916a0e1276bab44522c55d0dc0da93f67e50fff0424b5beddce0b1b0257d1b973fab7bc14202651aec20167926c2345a1df20111
|
7
|
-
data.tar.gz: 2d746af2343472f78fd48ef3b94a9eac4eb048da172fb9c61c06b616e4250bbbb0f1a6f1e12a7f3d462108e5790bcf97c5ff0b0ae6b46e4a0dc2ed5246a8cf64
|