arr-pm 0.0.3 → 0.0.4
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.
Potentially problematic release.
This version of arr-pm might be problematic. Click here for more details.
- data/.batcave/manifest +1 -1
- data/Makefile +4 -0
- data/arr-pm.gemspec +1 -1
- data/lib/arr-pm/file.rb +4 -3
- data/test/docs.rb +2 -0
- metadata +4 -4
data/.batcave/manifest
CHANGED
data/Makefile
CHANGED
data/arr-pm.gemspec
CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |spec|
|
|
2
2
|
files = %x{git ls-files}.split("\n")
|
3
3
|
|
4
4
|
spec.name = "arr-pm"
|
5
|
-
spec.version = "0.0.
|
5
|
+
spec.version = "0.0.4"
|
6
6
|
spec.summary = "RPM reader and writer library"
|
7
7
|
spec.description = "This library allows to you to read and write rpm " \
|
8
8
|
"packages. Written in pure ruby because librpm is not available " \
|
data/lib/arr-pm/file.rb
CHANGED
@@ -132,12 +132,13 @@ class RPM::File
|
|
132
132
|
|
133
133
|
def operator(flag)
|
134
134
|
have = lambda do |mask|
|
135
|
-
return flag &
|
135
|
+
return (flag & mask) == mask
|
136
136
|
end
|
137
|
-
|
137
|
+
|
138
138
|
return "<=" if have.call(FLAG_LESS | FLAG_EQUAL)
|
139
|
-
return "<" if have.call(FLAG_LESS)
|
140
139
|
return ">=" if have.call(FLAG_GREATER | FLAG_EQUAL)
|
140
|
+
return "=" if have.call(FLAG_EQUAL)
|
141
|
+
return "<" if have.call(FLAG_LESS)
|
141
142
|
return ">" if have.call(FLAG_GREATER)
|
142
143
|
end # def operator
|
143
144
|
|
data/test/docs.rb
CHANGED
@@ -11,6 +11,8 @@ describe "documentation tests" do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
test "All classes, methods, modules, and constants must be documented" do
|
14
|
+
# YARD's parser works best in ruby 1.9.x, so skip 1.8.x
|
15
|
+
skip if RUBY_VERSION < "1.9.2"
|
14
16
|
# Note, the 'find the undocumented things' code here is
|
15
17
|
# copied mostly from: YARD 0.7.5's lib/yard/cli/stats.rb
|
16
18
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arr-pm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cabin
|
16
|
-
requirement: &
|
16
|
+
requirement: &9998020 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>'
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *9998020
|
25
25
|
description: This library allows to you to read and write rpm packages. Written in
|
26
26
|
pure ruby because librpm is not available on all systems
|
27
27
|
email:
|