rspreadsheet 0.4.1 → 0.4.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
2
  SHA1:
3
- metadata.gz: 88cd9c36fae6899582d7fed02831bb3b07d0e1a2
4
- data.tar.gz: 3c1101531b2fb416d20968aea2d927f303be9269
3
+ metadata.gz: ba8d928bfac03acfa731a5d4d44f380cdf6a5b49
4
+ data.tar.gz: f25cf83032b4d748337fe2601cf2060b69371214
5
5
  SHA512:
6
- metadata.gz: e90c357bf816cdfc28c6e35abab33558b20c20467a45ed187e9a2d2edda9db186052d66d37a988001feaa645b0010857d3cf5c9fea067b162553b044a867b1d1
7
- data.tar.gz: ac8a7b2def1b7ace32c901e4ef0f71a1059f13b2076ea6e7fb81736b2610892095048fd514a2a70b51e9e784271de9c028b2d55d6e622405e9e1aee71c86b892
6
+ metadata.gz: 73e568971ecdbfd2f3c19a5a8e3c171e2f2dba112fb2a3283f687568241b01e0cb292ee3677ca1ad2e223f9e159ce0ed5e9f8f823993d8b761b3590a1f13dd97
7
+ data.tar.gz: 22f35a0dd81b4e980d5d1ce2e50b6dbe2e13ca715061d3659378398bd7fe44871da7c50c23563a98108274f87502a292b1970f922477e242951be4e4ad7c7f71
data/DEVEL_BLOG.md CHANGED
@@ -4,9 +4,8 @@ See [GUIDE.md](GUIDE.md#conventions) for syntax conventions.
4
4
 
5
5
  After you have cloned the source run `bundle` command in gem directory to install needed tools. If there are any errors try to
6
6
 
7
- 1. Make sure that necessary tools are installed. In debian based distros you may try this `apt-get install make gcc`. In other distros, use their native way to install tools.
8
- 2. If you have installed `ruby-libxml` than you may want to comment out the line containing libxml-ruby dependency in rspreadseet.gemspec file before running bundle.
9
- 3. Comment out `guard` and `guard-rspec` lines from gemfile if you use ruby version less than 2.2.1.
7
+ 1. Make sure that necessary tools are installed. In debian based distros you may try this `apt-get install make gcc`. In other distros, use their native way to install tool.
8
+ 2. Comment out `guard` and `guard-rspec` lines from gemfile if you use ruby version less than 2.2.1.
10
9
 
11
10
  ## Ideas/wishlist
12
11
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://api.travis-ci.org/gorn/rspreadsheet.svg?branch=master)](https://travis-ci.org/gorn/rspreadsheet) [![Coverage Status](https://coveralls.io/repos/gorn/rspreadsheet/badge.svg?branch=master&service=github)](https://coveralls.io/r/gorn/rspreadsheet) [![User opinion wanted](https://badge.waffle.io/gorn/rspreadsheet.png?label=user opinion wanted&title=User opinion wanted)](https://waffle.io/gorn/rspreadsheet)
1
+ [![Build Status](https://api.travis-ci.org/gorn/rspreadsheet.svg?branch=master)](https://travis-ci.org/gorn/rspreadsheet) [![Coverage Status](https://coveralls.io/repos/gorn/rspreadsheet/badge.svg?branch=master&service=github)](https://coveralls.io/r/gorn/rspreadsheet) [![User opinion wanted](https://img.shields.io/badge/user%20opinion%20wanted-yes-blue.svg)](https://github.com/gorn/rspreadsheet/projects/1)
2
2
 
3
3
  # rspreadsheet
4
4
 
@@ -1,3 +1,3 @@
1
1
  module Rspreadsheet
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
data/rspreadsheet.gemspec CHANGED
@@ -18,12 +18,15 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- def self.package_installed?(pkgname)
22
- system("dpkg-query -l #{pkgname} | grep -q '^i'")
21
+ def self.package_natively_installed?(pkgname)
22
+ # if the shell fails, the system command returns nil. In that case we assume that the package is NOT installed. It might be overkill, because I am supresing the stderr as well
23
+ (system("dpkg-query -l #{pkgname} 2>/dev/null | grep -q '^i'")==true) or # debian based
24
+ (system("rpm -qa 2>/dev/null | grep -q '#{pkgname}' ")==true) or # rpm based
25
+ (system("pkg_info -q -e #{pkgname} >/dev/null 2>&1")==true) # openbsd and alike
23
26
  end
24
27
 
25
28
  # runtime dependencies
26
- unless package_installed?('ruby-libxml')
29
+ unless package_natively_installed?('ruby-libxml')
27
30
  spec.add_runtime_dependency 'libxml-ruby', '~>2.7' # parsing XML files
28
31
  end
29
32
  spec.add_runtime_dependency 'rubyzip', '~>1.1' # opening zip files
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspreadsheet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub A.Těšínský
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-19 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip