rubyserial 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: 9ce647d8e2524f7be9f9eab6f12341b475a3e072
4
- data.tar.gz: d4cc73f4f41c8795d4737671cd2a6d437c0d122c
3
+ metadata.gz: c0f2623ceb9ee25081bab20c1bcc9b6fbc7f1439
4
+ data.tar.gz: 78b9b14fdf55405fda69d63439121be1bdacb5a4
5
5
  SHA512:
6
- metadata.gz: 879d9a30a186a56a896e05ae4b62201dba1be9e1d55b68f7c167411cd251f626bba1d66dcba87251af86fe6e32fccc787739e944d482f623f468107dd67bfe63
7
- data.tar.gz: a5111483592217d45747b19bc1ba2fe99f33e262bb20165ccb3b4ddef34d076e899e1855e212a5592890a7789de75fb1c1af26b1331345c7097d4730db0170dc
6
+ metadata.gz: 35e40ae4a5635f80f0181ac751c40506b41dd61ca6aeb2b9377e1f5f17b1516685e35e126ea4ca6fe3419530521c166c1eb661cbfbbf7550d8eac42a4062a687
7
+ data.tar.gz: bae11afaf890ef42e1eefa383628eb8eab8c8396ca4f18bab67851b4e503779710e8371048bc111f9d42c9f605bea51d390fe2cf6301de4f52e76a6a46aae48d
data/.travis.yml CHANGED
@@ -1,12 +1,13 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
- - 2.0.0
5
- - 2.1.0
4
+ - 2.0
5
+ - 2.1
6
+ - 2.2
6
7
  - ruby-head
7
8
  - jruby
8
9
  - jruby-head
9
- - rbx-2.2.10
10
+ - rbx-2
10
11
  matrix:
11
12
  allow_failures:
12
13
  - rvm: jruby-head
@@ -15,4 +16,4 @@ install:
15
16
  - sudo apt-get update && sudo apt-get install --force-yes socat
16
17
  script:
17
18
  - bundle install
18
- - bundle exec rspec -fd
19
+ - CODECLIMATE_REPO_TOKEN=70754a8aa666790236dbbb910727648f4dbb1f73a28f886d0b0c9e39a36b5a79 bundle exec rspec -fd
data/Gemfile CHANGED
@@ -3,3 +3,4 @@ source "http://rubygems.org"
3
3
 
4
4
  gemspec
5
5
  gem 'rspec', '~> 3.0.0'
6
+ gem "codeclimate-test-reporter", group: :test, require: nil
data/README.md CHANGED
@@ -8,6 +8,7 @@ The interface to RubySerial should be (mostly) compatible with other Ruby serial
8
8
 
9
9
  [![Build Status](https://travis-ci.org/hybridgroup/rubyserial.svg)](https://travis-ci.org/hybridgroup/rubyserial)
10
10
  [![Build status](https://ci.appveyor.com/api/projects/status/946nlaqy4443vb99/branch/master?svg=true)](https://ci.appveyor.com/project/zankich/rubyserial/branch/master)
11
+ [![Test Coverage](https://codeclimate.com/github/hybridgroup/rubyserial/badges/coverage.svg)](https://codeclimate.com/github/hybridgroup/rubyserial/coverage)
11
12
 
12
13
  ## Installation
13
14
 
data/appveyor.yml CHANGED
@@ -15,7 +15,8 @@ install:
15
15
  - ps: sleep 60
16
16
 
17
17
  test_script:
18
- - ps: rspec spec -fd
18
+ - SET CODECLIMATE_REPO_TOKEN=70754a8aa666790236dbbb910727648f4dbb1f73a28f886d0b0c9e39a36b5a79
19
+ - bundle exec rspec -fd
19
20
 
20
21
  environment:
21
22
  matrix:
@@ -1,5 +1,5 @@
1
1
  module RubySerial
2
2
  unless const_defined?('VERSION')
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -61,7 +61,7 @@ class Serial
61
61
  if count.read_int == 0
62
62
  nil
63
63
  else
64
- buff.read_string.unpack('C').first
64
+ buff.get_bytes(0, 1).bytes.first
65
65
  end
66
66
  end
67
67
 
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "codeclimate-test-reporter"
2
+ CodeClimate::TestReporter.start
1
3
  # This file was generated by the `rspec --init` command. Conventionally, all
2
4
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
5
  # The generated `.rspec` file contains `--require spec_helper` which will cause this
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyserial
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
  - Adrian Zankich
@@ -10,20 +10,20 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-05-24 00:00:00.000000000 Z
13
+ date: 2015-05-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ffi
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 1.9.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: 1.9.3
29
29
  description: FFI Ruby library for RS-232 serial port communication
@@ -32,9 +32,9 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
- - .gitignore
36
- - .rspec
37
- - .travis.yml
35
+ - ".gitignore"
36
+ - ".rspec"
37
+ - ".travis.yml"
38
38
  - Gemfile
39
39
  - LICENSE
40
40
  - README.md
@@ -60,19 +60,18 @@ require_paths:
60
60
  - lib
61
61
  required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - '>='
63
+ - - ">="
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
72
  rubyforge_project:
73
- rubygems_version: 2.2.1
73
+ rubygems_version: 2.4.5
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: FFI Ruby library for RS-232 serial port communication
77
77
  test_files: []
78
- has_rdoc: