serialport 1.1.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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=
@@ -0,0 +1,14 @@
1
+ .DS_Store
2
+ /pkg
3
+ /doc
4
+ /tmp
5
+ /ext/native/*.bundle
6
+ /ext/native/*.log
7
+ /ext/native/*.o
8
+ /ext/native/*.so
9
+ /ext/native/Makefile
10
+ .*.swp
11
+ tags
12
+ *.gem
13
+ *.bundle
14
+ Gemfile.lock
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ script: "bundle exec rake test"
3
+ rvm:
4
+ - 1.8.7
5
+ - 1.9.2
6
+ - 1.9.3
7
+ - 2.0.0
8
+ compiler:
9
+ - clang
10
+ - gcc
11
+ before_script:
12
+ - rake compile
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ 1.2.0 => 10/25/2013: [NEW] rake-compiler, bundler, and travis ci integration
2
+
1
3
  1.1.0 => 05/14/2012: [NEW] Ruby 2.0 Support [Aaron Patterson (tenderlove)]
2
4
  [FIXED] Support for baud rates up to 1000000 in Windows [Will Koehler (willkoehler)]
3
5
 
data/CHECKLIST CHANGED
@@ -1,11 +1,6 @@
1
1
  # Ruby-Serialport Gem Pre-Push Checklist
2
-
3
- * rake version:bump
4
- * Update #define RUBY_SERIAL_PORT_VERSION (serialport.h)
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 if necessary
7
- * rake install
8
- * TEST
9
- * rake release
10
- * gem update serialport
11
- * TEST
6
+ * Update README
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+ source "http://gems.github.com"
3
+ gemspec
data/README CHANGED
@@ -42,11 +42,11 @@ Ruby's copy of miniterm.c !
42
42
 
43
43
  Optional modem_parameters:
44
44
 
45
- baudrate -> anInteger: from 50 to 1000000, depends on platform.
45
+ baud -> anInteger: from 50 to 1000000, depends on platform.
46
46
 
47
- databits -> anInteger: from 5 to 8 (4 is allowed on Windows)
47
+ data_bits -> anInteger: from 5 to 8 (4 is allowed on Windows)
48
48
 
49
- stopbits -> anInteger: 1 or 2 (1.5 is not supported)
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
- gem 'rake-compiler', '>= 0.4.1'
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
- begin
8
- require 'jeweler'
9
- Jeweler::Tasks.new do |gemspec|
10
- gemspec.name = "serialport"
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
- Rake::ExtensionTask.new "serialport", gemspec do |ext|
20
- ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
21
- ext.ext_dir = "ext/native"
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
- task :clean do
30
- rm_rf(Dir['doc'], :verbose => true)
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]
File without changes
@@ -21,7 +21,7 @@
21
21
  #ifndef _RUBY_SERIAL_PORT_H_
22
22
  #define _RUBY_SERIAL_PORT_H_
23
23
 
24
- #define RUBY_SERIAL_PORT_VERSION "1.0.4"
24
+ #define RUBY_SERIAL_PORT_VERSION "1.2.1"
25
25
 
26
26
  #include <ruby.h> /* ruby inclusion */
27
27
  #ifdef HAVE_RUBY_IO_H /* ruby io inclusion */
@@ -1,4 +1,5 @@
1
1
  require 'serialport.so'
2
+ require 'serialport/version'
2
3
 
3
4
  class SerialPort
4
5
  private_class_method(:create)
@@ -37,7 +38,7 @@ class SerialPort
37
38
  if (block_given?)
38
39
  begin
39
40
  yield sp
40
- ensure
41
+ ensure
41
42
  sp.close
42
43
  end
43
44
  return nil
@@ -0,0 +1,3 @@
1
+ class SerialPort
2
+ VERSION = "1.2.1"
3
+ end
@@ -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 = "1.1.0"
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.date = "2012-05-26"
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
- if s.respond_to? :specification_version then
44
- s.specification_version = 3
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
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- else
48
- end
49
- else
50
- end
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
- hash: 19
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
- date: 2012-05-26 00:00:00 Z
24
- dependencies: []
25
-
26
- description: Ruby/SerialPort is a Ruby library that provides a class for using RS-232 serial ports.
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
- none: false
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
65
- hash: 3
66
- segments:
67
- - 0
68
- version: "0"
69
- required_rubygems_version: !ruby/object:Gem::Requirement
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: 1.8.24
108
+ rubygems_version: 2.0.3
82
109
  signing_key:
83
- specification_version: 3
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