see_as_vee 0.2.3 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6d49ad14b471e22bf90f591dbc347accbaa2f19
4
- data.tar.gz: e29cd885d70b59111886a7eedf98d1905b5f830f
3
+ metadata.gz: 529772ecb2b914387975a2eb9e3db531dc46fc94
4
+ data.tar.gz: 48ea69cda5a0c08c466326fe91a8f9edbb4f4eb4
5
5
  SHA512:
6
- metadata.gz: a1dbdd59c833a5c97913f3c964fc20181e58c3446f570ad694d28f3e1023cb65763b200ed2889a48a7c017c2d0e85b4d1e4481bff3849188fb32eb4aea5b75ab
7
- data.tar.gz: 3f2e0317c11ea405df2f8386eb55ca1cba1928bb4094300615b9d6432a46db2bd1772a3f215d4d7c0b53407bd8564cc945ee1c235089129afb33d3ea91dd960f
6
+ metadata.gz: c037c08d99e6bc9b1da15fd006ba53ff24671b3e6880e6abc66b8c12fd23bd1b2a16b6043e548d404d4df226f8df600bcf887ae1fdc75c3255036bdebaadaca1
7
+ data.tar.gz: 6959cd72d7cc06590d5fd0d333255927507c106ef3c2bb712381a935e62ff4e51d01483c2c47f397bbb4c0e0530a7c9f44a7f080d07e699f634c86d40dfc1894
data/.codeclimate.yml ADDED
@@ -0,0 +1,26 @@
1
+ ---
2
+ engines:
3
+ duplication:
4
+ enabled: true
5
+ config:
6
+ languages:
7
+ - ruby
8
+ - javascript
9
+ - python
10
+ - php
11
+ fixme:
12
+ enabled: true
13
+ rubocop:
14
+ enabled: true
15
+ ratings:
16
+ paths:
17
+ - "**.inc"
18
+ - "**.js"
19
+ - "**.jsx"
20
+ - "**.module"
21
+ - "**.php"
22
+ - "**.py"
23
+ - "**.rb"
24
+ exclude_paths:
25
+ - features/
26
+ - spec/
data/.travis.yml CHANGED
@@ -1,4 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.1.8
4
+ - 2.2.0
4
5
  before_install: gem install bundler -v 1.10.6
6
+
7
+ addons:
8
+ code_climate:
9
+ repo_token: 2e5471e8b02ecddecb5452adf02b990d8203698ab6ae919b40ce179f4a8a926a
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in see_as_vee.gemspec
4
4
  gemspec
5
+ gem "codeclimate-test-reporter", group: :test, require: nil
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # SeeAsVee
2
2
 
3
+ [![Build Status](https://travis-ci.org/am-kantox/see_as_vee.svg?branch=master)](https://travis-ci.org/am-kantox/see_as_vee)
4
+ [![Code Climate](https://codeclimate.com/github/am-kantox/see_as_vee/badges/gpa.svg)](https://codeclimate.com/github/am-kantox/see_as_vee)
5
+ [![Test Coverage](https://codeclimate.com/github/am-kantox/see_as_vee/badges/coverage.svg)](https://codeclimate.com/github/am-kantox/see_as_vee/coverage)
6
+ [![Issue Count](https://codeclimate.com/github/am-kantox/see_as_vee/badges/issue_count.svg)](https://codeclimate.com/github/am-kantox/see_as_vee)
7
+
3
8
  Easy dealing with CSV import, including, but not limited to:
4
9
 
5
10
  ✓ import in any format: `String`, `csv`, `xlsx`;
@@ -10,7 +10,7 @@ module SeeAsVee
10
10
  else
11
11
  raise SeeAsVee::Exceptions::BadInputError.new(whatever)
12
12
  end
13
- if (Kernel.const_defined?('FileMagic'))
13
+ if Kernel.const_defined?('FileMagic')
14
14
  [file, Privates.handler_name(FileMagic.new.file(file.path))]
15
15
  else
16
16
  [file, Privates.handler_by_ext(file.path[/(?<=\.).*\z/])]
@@ -43,7 +43,7 @@ module SeeAsVee
43
43
  module_function :handler_name
44
44
 
45
45
  def handler_by_ext ext
46
- ext.to_sym if %w|xlsx csv|.include?(ext)
46
+ ext.to_sym if %w(xlsx csv).include?(ext)
47
47
  end
48
48
  module_function :handler_by_ext
49
49
 
@@ -8,7 +8,7 @@ module SeeAsVee
8
8
  fg_color: "FFFFFFFF",
9
9
  sz: 14,
10
10
  border: { style: :thin, color: "FFFF0000" }
11
- }.freeze
11
+ } # don’t .freeze because asxlx wants to modify it
12
12
 
13
13
  attr_reader :rows, :formatters, :checkers
14
14
  def initialize whatever, formatters: {}, checkers: {}
@@ -1,3 +1,3 @@
1
1
  module SeeAsVee
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4".freeze
3
3
  end
data/lib/see_as_vee.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  begin
2
2
  require 'filemagic'
3
3
  rescue LoadError => e
4
+ # OK, we do not have filemagick, no worries
4
5
  end
5
6
 
6
7
  require 'axlsx'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: see_as_vee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksei Matiushkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-08 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_xlsx_reader
@@ -130,6 +130,7 @@ executables: []
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
+ - ".codeclimate.yml"
133
134
  - ".gitignore"
134
135
  - ".rspec"
135
136
  - ".rubocop.yml"