serialport 1.1.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +14 -0
- data/.travis.yml +12 -0
- data/CHANGELOG +2 -0
- data/CHECKLIST +4 -9
- data/Gemfile +3 -0
- data/README +3 -3
- data/Rakefile +19 -25
- data/ext/native/extconf.rb +0 -0
- data/ext/native/serialport.h +1 -1
- data/lib/serialport.rb +2 -1
- data/lib/serialport/version.rb +3 -0
- data/serialport.gemspec +11 -41
- metadata +71 -45
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YjhhZjQ2NzM3OTQ3MWE4OWVjYTExZjBhYTZjYmQ5ODU1NWJjMGYwYg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YzdmNGE3OWMwYTJkYjVkZDNmNWFjMTA1ODJiM2MwNjJlOTM2ZmRlYQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YmFlNzg3OTg0NzM3MjY3NjY2NDU1NjY0MTA2NGNhZDFjZWM2NWZjZmJiYmYw
|
10
|
+
YmZiNzliMTYwYjEyNjE1YmI3ZGM1ZGZkYjFiNzg3OTMzZTNiMTE2MWMwMmQ1
|
11
|
+
NjJlNDU3ODliMDhjMGY0NWZkOWJjNWM3MzYxNzlmMDAzZGNkYzA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OGE1YWVhYmJjZjJlMTM4ZDMyMzgwYzcwY2FiZTFjNGI5YjI0MjZmN2IyNWY4
|
14
|
+
NmFkM2M1NjVhYjcyNTc3NTRmYTYzOTEwOTQ2YzhlYzAzOWEyN2U1MWRlZTA1
|
15
|
+
MjUwYTdkOWQ5ZTZmOWE1NzUzMTE2MWU2ZTY1MDg2MjIyNmM3ODY=
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CHANGELOG
CHANGED
data/CHECKLIST
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
# Ruby-Serialport Gem Pre-Push Checklist
|
2
|
-
|
3
|
-
*
|
4
|
-
* Update
|
2
|
+
|
3
|
+
* Update ext/native/serialport.h (#define RUBY_SERIAL_PORT_VERSION)
|
4
|
+
* Update lib/serialport/version.rb
|
5
5
|
* Update CHANGELOG
|
6
|
-
* Update README
|
7
|
-
* rake install
|
8
|
-
* TEST
|
9
|
-
* rake release
|
10
|
-
* gem update serialport
|
11
|
-
* TEST
|
6
|
+
* Update README
|
data/Gemfile
ADDED
data/README
CHANGED
@@ -42,11 +42,11 @@ Ruby's copy of miniterm.c !
|
|
42
42
|
|
43
43
|
Optional modem_parameters:
|
44
44
|
|
45
|
-
|
45
|
+
baud -> anInteger: from 50 to 1000000, depends on platform.
|
46
46
|
|
47
|
-
|
47
|
+
data_bits -> anInteger: from 5 to 8 (4 is allowed on Windows)
|
48
48
|
|
49
|
-
|
49
|
+
stop_bits -> anInteger: 1 or 2 (1.5 is not supported)
|
50
50
|
|
51
51
|
parity -> anInteger: SerialPort::NONE, SerialPort::EVEN,
|
52
52
|
SerialPort::ODD, SerialPort::MARK, SerialPort::SPACE
|
data/Rakefile
CHANGED
@@ -1,33 +1,27 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
1
|
|
4
|
-
|
2
|
+
# :build
|
3
|
+
# :install
|
4
|
+
# :release
|
5
|
+
require "bundler/gem_tasks"
|
6
|
+
|
7
|
+
# :clean
|
8
|
+
# :clobber
|
9
|
+
# :compile
|
10
|
+
# :compile:serialport
|
5
11
|
require "rake/extensiontask"
|
6
12
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
gemspec.summary = "Library for using RS-232 serial ports."
|
12
|
-
gemspec.description = "Ruby/SerialPort is a Ruby library that provides a class for using RS-232 serial ports."
|
13
|
-
gemspec.email = "hector@hectorparra.com"
|
14
|
-
gemspec.homepage = 'http://github.com/hparra/ruby-serialport/'
|
15
|
-
gemspec.authors = ['Guillaume Pierronnet', 'Alan Stern', 'Daniel E. Shipton', 'Tobin Richard', 'Hector Parra', 'Ryan C. Payne']
|
16
|
-
gemspec.has_rdoc = true
|
17
|
-
gemspec.extensions << 'ext/native/extconf.rb'
|
13
|
+
CLOBBER << FileList["doc"]
|
14
|
+
CLOBBER << FileList["pkg"]
|
15
|
+
|
16
|
+
GEMSPEC = eval File.read File.expand_path("../serialport.gemspec", __FILE__)
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|
24
|
-
Jeweler::GemcutterTasks.new
|
25
|
-
rescue LoadError
|
26
|
-
puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
|
18
|
+
Rake::ExtensionTask.new "serialport", GEMSPEC do |ext|
|
19
|
+
ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
|
20
|
+
ext.ext_dir = "ext/native"
|
27
21
|
end
|
28
22
|
|
29
|
-
|
30
|
-
|
31
|
-
rm_rf(Dir['pkg'], :verbose => true)
|
23
|
+
# add your default gem packing task
|
24
|
+
Gem::PackageTask.new(GEMSPEC) do |pkg|
|
32
25
|
end
|
33
26
|
|
27
|
+
task :default => [:clean, :clobber, :compile, :test]
|
data/ext/native/extconf.rb
CHANGED
File without changes
|
data/ext/native/serialport.h
CHANGED
data/lib/serialport.rb
CHANGED
data/serialport.gemspec
CHANGED
@@ -1,52 +1,22 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/serialport/version', __FILE__)
|
5
3
|
|
6
4
|
Gem::Specification.new do |s|
|
7
5
|
s.name = "serialport"
|
8
|
-
s.version =
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
|
+
s.version = SerialPort::VERSION
|
11
7
|
s.authors = ["Guillaume Pierronnet", "Alan Stern", "Daniel E. Shipton", "Tobin Richard", "Hector Parra", "Ryan C. Payne"]
|
12
|
-
s.
|
8
|
+
s.summary = "Library for using RS-232 serial ports."
|
13
9
|
s.description = "Ruby/SerialPort is a Ruby library that provides a class for using RS-232 serial ports."
|
14
10
|
s.email = "hector@hectorparra.com"
|
15
|
-
s.extensions = ["ext/native/extconf.rb", "ext/native/extconf.rb"]
|
16
|
-
s.extra_rdoc_files = [
|
17
|
-
"LICENSE",
|
18
|
-
"README"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
"CHANGELOG",
|
22
|
-
"CHECKLIST",
|
23
|
-
"LICENSE",
|
24
|
-
"MANIFEST",
|
25
|
-
"README",
|
26
|
-
"Rakefile",
|
27
|
-
"VERSION",
|
28
|
-
"ext/native/extconf.rb",
|
29
|
-
"ext/native/posix_serialport_impl.c",
|
30
|
-
"ext/native/serialport.c",
|
31
|
-
"ext/native/serialport.h",
|
32
|
-
"ext/native/win_serialport_impl.c",
|
33
|
-
"lib/serialport.rb",
|
34
|
-
"serialport.gemspec",
|
35
|
-
"test/miniterm.rb",
|
36
|
-
"test/set_readtimeout.rb"
|
37
|
-
]
|
38
11
|
s.homepage = "http://github.com/hparra/ruby-serialport/"
|
39
|
-
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = "1.8.24"
|
41
|
-
s.summary = "Library for using RS-232 serial ports."
|
42
12
|
|
43
|
-
|
44
|
-
|
13
|
+
s.add_development_dependency "bundler"
|
14
|
+
s.add_development_dependency "rake"
|
15
|
+
s.add_development_dependency "rake-compiler", ">= 0.4.1"
|
45
16
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.files = `git ls-files`.split($\)
|
19
|
+
s.extensions = "ext/native/extconf.rb"
|
20
|
+
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
21
|
+
s.extra_rdoc_files = ["LICENSE", "README"]
|
51
22
|
end
|
52
|
-
|
metadata
CHANGED
@@ -1,15 +1,9 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: serialport
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 1.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.1
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Guillaume Pierronnet
|
14
8
|
- Alan Stern
|
15
9
|
- Daniel E. Shipton
|
@@ -19,68 +13,100 @@ authors:
|
|
19
13
|
autorequire:
|
20
14
|
bindir: bin
|
21
15
|
cert_chain: []
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
16
|
+
date: 2013-10-26 00:00:00.000000000 Z
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
19
|
+
name: bundler
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ! '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '0'
|
25
|
+
type: :development
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ! '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: rake
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
type: :development
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake-compiler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.4.1
|
53
|
+
type: :development
|
54
|
+
prerelease: false
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ! '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.4.1
|
60
|
+
description: Ruby/SerialPort is a Ruby library that provides a class for using RS-232
|
61
|
+
serial ports.
|
27
62
|
email: hector@hectorparra.com
|
28
63
|
executables: []
|
29
|
-
|
30
|
-
extensions:
|
64
|
+
extensions:
|
31
65
|
- ext/native/extconf.rb
|
32
|
-
extra_rdoc_files:
|
66
|
+
extra_rdoc_files:
|
33
67
|
- LICENSE
|
34
68
|
- README
|
35
|
-
files:
|
69
|
+
files:
|
70
|
+
- .gitignore
|
71
|
+
- .travis.yml
|
36
72
|
- CHANGELOG
|
37
73
|
- CHECKLIST
|
74
|
+
- Gemfile
|
38
75
|
- LICENSE
|
39
76
|
- MANIFEST
|
40
77
|
- README
|
41
78
|
- Rakefile
|
42
|
-
- VERSION
|
43
79
|
- ext/native/extconf.rb
|
44
80
|
- ext/native/posix_serialport_impl.c
|
45
81
|
- ext/native/serialport.c
|
46
82
|
- ext/native/serialport.h
|
47
83
|
- ext/native/win_serialport_impl.c
|
48
84
|
- lib/serialport.rb
|
85
|
+
- lib/serialport/version.rb
|
49
86
|
- serialport.gemspec
|
50
87
|
- test/miniterm.rb
|
51
88
|
- test/set_readtimeout.rb
|
52
89
|
homepage: http://github.com/hparra/ruby-serialport/
|
53
90
|
licenses: []
|
54
|
-
|
91
|
+
metadata: {}
|
55
92
|
post_install_message:
|
56
93
|
rdoc_options: []
|
57
|
-
|
58
|
-
require_paths:
|
94
|
+
require_paths:
|
59
95
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
none: false
|
71
|
-
requirements:
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
hash: 3
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ! '>='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ! '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
78
106
|
requirements: []
|
79
|
-
|
80
107
|
rubyforge_project:
|
81
|
-
rubygems_version:
|
108
|
+
rubygems_version: 2.0.3
|
82
109
|
signing_key:
|
83
|
-
specification_version:
|
110
|
+
specification_version: 4
|
84
111
|
summary: Library for using RS-232 serial ports.
|
85
112
|
test_files: []
|
86
|
-
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.1.0
|