semian 0.0.5 → 0.0.6
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 +4 -4
- data/.gitignore +1 -0
- data/Rakefile +2 -0
- data/lib/semian/unsupported.rb +5 -0
- data/lib/semian/version.rb +1 -1
- data/semian.gemspec +2 -1
- data/test/test_unsupported.rb +8 -0
- metadata +2 -3
- data/Gemfile.lock +0 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7c27aa5a52f3c03ae2a85a6a7bf79e34fb62d3d
|
|
4
|
+
data.tar.gz: 0fae17417a8e04259c3b5e791fe3073751695183
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd0f2c05719f49d0b0db5532a1e1e3242182c56bd33caf69ffdf302f5ee272e30e0ba2a3c079fe7738ba9ab3455ee59b1068c890f4db786d228b0453cede60e7
|
|
7
|
+
data.tar.gz: eca757e5ebc08be551b1ec8b30217e2139c14222da716234de46b0ff1d40376834cc1de8a99f63270e5794de1181d24df2d223bac9aa0af5f422f7ee754e1a4a
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
data/lib/semian/unsupported.rb
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
class Semian
|
|
2
2
|
MAX_TICKETS = 0
|
|
3
3
|
|
|
4
|
+
BaseError = Class.new(StandardError)
|
|
5
|
+
SyscallError = Class.new(BaseError)
|
|
6
|
+
TimeoutError = Class.new(BaseError)
|
|
7
|
+
InternalError = Class.new(BaseError)
|
|
8
|
+
|
|
4
9
|
class Resource #:nodoc:
|
|
5
10
|
def initialize(name, tickets, permissions, timeout); end
|
|
6
11
|
|
data/lib/semian/version.rb
CHANGED
data/semian.gemspec
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
$:.unshift File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
|
3
3
|
require 'semian/version'
|
|
4
|
+
require 'semian/platform'
|
|
4
5
|
|
|
5
6
|
Gem::Specification.new do |s|
|
|
6
7
|
s.name = 'semian'
|
|
@@ -16,6 +17,6 @@ Gem::Specification.new do |s|
|
|
|
16
17
|
s.license = 'MIT'
|
|
17
18
|
|
|
18
19
|
s.files = `git ls-files`.split("\n")
|
|
19
|
-
s.extensions = ['ext/semian/extconf.rb']
|
|
20
|
+
s.extensions = ['ext/semian/extconf.rb'] if Semian.supported_platform?
|
|
20
21
|
s.add_development_dependency 'rake-compiler', '~> 0.9'
|
|
21
22
|
end
|
data/test/test_unsupported.rb
CHANGED
|
@@ -8,4 +8,12 @@ class TestSemian < Test::Unit::TestCase
|
|
|
8
8
|
Semian[:testing].acquire { acquired = true }
|
|
9
9
|
assert acquired
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
def test_unsuported_constants
|
|
13
|
+
assert defined?(Semian::BaseError)
|
|
14
|
+
assert defined?(Semian::SyscallError)
|
|
15
|
+
assert defined?(Semian::TimeoutError)
|
|
16
|
+
assert defined?(Semian::InternalError)
|
|
17
|
+
assert defined?(Semian::Resource)
|
|
18
|
+
end
|
|
11
19
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: semian
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Francis
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-11-
|
|
12
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake-compiler
|
|
@@ -37,7 +37,6 @@ files:
|
|
|
37
37
|
- ".gitignore"
|
|
38
38
|
- ".travis.yml"
|
|
39
39
|
- Gemfile
|
|
40
|
-
- Gemfile.lock
|
|
41
40
|
- LICENSE.md
|
|
42
41
|
- README.md
|
|
43
42
|
- Rakefile
|
data/Gemfile.lock
DELETED