repomd_parser 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c44f103253457a15dfc434bf37629d8627d62a9b
4
- data.tar.gz: db2b9f8314f2066f634da7410fe6e7b073a94386
2
+ SHA256:
3
+ metadata.gz: f66b992112b4ddbe3d7a9c3059334212693df24d75e7602d1c81783ecfc3541b
4
+ data.tar.gz: 4f45b6566455f64bb6e8d955ad875c8d57aeb8e5a86afb09d432587897ccf11d
5
5
  SHA512:
6
- metadata.gz: 41ce955e4ab8505ec66d395d6f59f6d1aad10b569b9786c413506cf8aef109f912a71b84ec851a200ea8accd1d7bc44419000a66cf08af4cde045a27c2289682
7
- data.tar.gz: 25171d224794d1294faa4e9f8c21edd09aab1e676c30cc4ac0d3ff8a80b08ce6a31ad9c0f9b04ea65ff8e546f4e8d2cb737a2d0b07a2ea481c8bada8866405be
6
+ metadata.gz: 7746d5eee7cdd68ad593de3cf13b53ac779faf183c31a48fa1dcf0161aac62335010a1d881c0e6d0baddbb668bc14dc3902be4df9b87730018908227807f785e
7
+ data.tar.gz: 4c8a404fa99ec5aae9213b97582a65cc7c4b59e0dfe675c9596effcb0cf1ebe7e89ea2951038a926c131d2ad3659e5df0dc8f992eb7feb801887444a5a293abe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- repomd_parser (0.1.0)
4
+ repomd_parser (0.1.2)
5
5
  nokogiri (~> 1.8, >= 1.8.4)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  RPM repository metadata parser.
4
4
 
5
+ For tools that use `RepomdParser`, see [repo-tools](https://github.com/ikapelyukhin/repo-tools) repository.
6
+
5
7
  This gem can parse `repomd.xml`, `primary.xml` and `deltainfo.xml` metadata files of the RPM repository,
6
8
  providing a way to get access to the list of packages in the repo and the details of each individual package (name, size, checksum, etc.)
7
9
 
@@ -64,6 +66,10 @@ Represents a file referenced in the metadata file. Has the following accessors:
64
66
  * `size` in bytes.
65
67
  * `arch`.
66
68
 
69
+ ## Caveats
70
+
71
+ * Relies on the file name to determine if the file is compressed (automatically decompresses `.gz` files)
72
+
67
73
  ## Development
68
74
 
69
75
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -42,7 +42,7 @@ class RepomdParser::RepomdXmlParser
42
42
  checksum_type: hash[:checksum][:type],
43
43
  checksum: hash[:checksum][:value],
44
44
  type: type,
45
- size: hash[:size][:value].to_i
45
+ size: hash[:size] ? hash[:size][:value].to_i : nil
46
46
  )
47
47
  end
48
48
 
@@ -16,5 +16,5 @@
16
16
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
17
 
18
18
  module RepomdParser
19
- VERSION = '0.1.1'
19
+ VERSION = '0.1.2'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repomd_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kapelyukhin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-20 00:00:00.000000000 Z
11
+ date: 2018-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.6.13
133
+ rubygems_version: 2.7.7
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: RPM repository metadata (RepoMD) parser