xosd 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 445021d1f57810426785b5084d33b8cde1a50723
4
- data.tar.gz: eccc355c38f7552cf0da48e19de4b949c24c6913
2
+ SHA256:
3
+ metadata.gz: 5e8e1ea375f6447cacaf2451d5848273fbf8b9a925e2ca355838769738ad5325
4
+ data.tar.gz: b47278bbe86febfc95162887a89af4db6a008549ce229dc819fc0dc1f428a7ed
5
5
  SHA512:
6
- metadata.gz: b8aac819f264828f3471f7e1e257c544bb32bc962cd987ef7caf5d09bddeba2bf6a3867f60bd862397b931d0f372ebd6c660732cafef71e4c647c44e832cb9f1
7
- data.tar.gz: dd04d409b7598b26357d6e8b564f4dc762cb9469adb1f3bba053d27fe4c99b22f932c2937382fcb5c157bfcfa4864164b29c05a8a9ba8631561d8b63b8684875
6
+ metadata.gz: 97552756a45c00714386a0d3f0157f78c00fabb9eac2167385834bd74bf1483044bdeca55f3f608a557204acf825cfea43bfbf7a4b172fcdc6690efb6a722cfb
7
+ data.tar.gz: 7462ff7d74477f02fe57437e3d889ca443e460688f4f70f18ec30e511ca8bb39e5633bfc4f7d38ed542f45586c8ff4a52f53492be51219bf3d0a9380b5a97e6d
data/.gemignore ADDED
@@ -0,0 +1,5 @@
1
+ .gitignore
2
+ .gemignore
3
+ Rakefile
4
+ Vagrantfile
5
+ provision.sh
data/.gitignore ADDED
@@ -0,0 +1,52 @@
1
+ .idea
2
+ .vagrant
3
+ *.gem
4
+ *.rbc
5
+ /.config
6
+ /coverage/
7
+ /InstalledFiles
8
+ /pkg/
9
+ /spec/reports/
10
+ /spec/examples.txt
11
+ /test/tmp/
12
+ /test/version_tmp/
13
+ /tmp/
14
+
15
+ # Used by dotenv library to load environment variables.
16
+ # .env
17
+
18
+ ## Specific to RubyMotion:
19
+ .dat*
20
+ .repl_history
21
+ build/
22
+ *.bridgesupport
23
+ build-iPhoneOS/
24
+ build-iPhoneSimulator/
25
+
26
+ ## Specific to RubyMotion (use of CocoaPods):
27
+ #
28
+ # We recommend against adding the Pods directory to your .gitignore. However
29
+ # you should judge for yourself, the pros and cons are mentioned at:
30
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
31
+ #
32
+ # vendor/Pods/
33
+
34
+ ## Documentation cache and generated files:
35
+ /.yardoc/
36
+ /_yardoc/
37
+ /doc/
38
+ /rdoc/
39
+
40
+ ## Environment normalization:
41
+ /.bundle/
42
+ /vendor/bundle
43
+ /lib/bundler/man/
44
+
45
+ # for a library or gem, you might want to ignore these files since the code is
46
+ # intended to run in multiple environments; otherwise, check them in:
47
+ # Gemfile.lock
48
+ # .ruby-version
49
+ # .ruby-gemset
50
+
51
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
52
+ .rvmrc
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  diff-lcs (1.3)
11
- ffi (1.9.23)
11
+ ffi (1.15.5)
12
12
  rspec (3.7.0)
13
13
  rspec-core (~> 3.7.0)
14
14
  rspec-expectations (~> 3.7.0)
@@ -31,4 +31,4 @@ DEPENDENCIES
31
31
  xosd!
32
32
 
33
33
  BUNDLED WITH
34
- 1.16.1
34
+ 2.3.18
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ require 'bundler/gem_helper'
2
+
3
+ Bundler::GemHelper.install_tasks
data/Vagrantfile ADDED
@@ -0,0 +1,17 @@
1
+ Vagrant.configure('2') do |config|
2
+
3
+ config.vm.define 'xosd' do |xosd|
4
+ xosd.vm.box = 'ubuntu/jammy64'
5
+ xosd.vm.hostname = 'xosd'
6
+ xosd.vm.synced_folder "#{ENV['HOME']}/git/xosd", "/vagrant"
7
+ xosd.vm.provision :shell, path: 'provision.sh'
8
+ xosd.ssh.forward_x11 = true
9
+
10
+ xosd.vm.provider "virtualbox" do |vb|
11
+ vb.customize ["modifyvm", :id, "--memory", 512]
12
+ vb.customize ["modifyvm", :id, "--name", "xosd"]
13
+ vb.customize ["modifyvm", :id, "--usb", "off"]
14
+ end
15
+ end
16
+
17
+ end
data/lib/xosd/xosd.rb CHANGED
@@ -116,7 +116,7 @@ class XOSD
116
116
  private
117
117
 
118
118
  def self.finalize(id)
119
- ObjectSpace._id2re(id).teardown
119
+ ObjectSpace._id2ref(id).teardown
120
120
  end
121
121
 
122
122
  def handle(result)
data/provision.sh ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env bash
2
+
3
+ sudo apt-get update
4
+
5
+ # the library the gem exists for and dependencies
6
+ apt-get install -y libxosd2 build-essential
7
+
8
+ # ruby-dev is required for ffi gem to install
9
+ apt-get install -y ruby ruby-dev
10
+
11
+ gem install bundler
data/spec/xosd_spec.rb CHANGED
@@ -21,7 +21,7 @@ RSpec.describe XOSD do
21
21
  position: :bottom,
22
22
  align: :center,
23
23
  vertical_offset: 100,
24
- font: '-*-arial-*-*-*-*-*-320-*-*-*-*-*-*',
24
+ font: '-*-*-*-*-*-*-*-*-*-*-*-*-*-*',
25
25
  colour: 'black',
26
26
  outline_colour: 'orange',
27
27
  outline_offset: 1,
data/xosd.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'xosd'
3
- spec.version = '1.0.1'
4
- spec.date = '2018-04-30'
3
+ spec.version = '1.1.0'
4
+ spec.date = '2022-07-27'
5
5
  spec.summary = "Ruby wrapper for xosd"
6
6
  spec.description = "Ruby wrapper for xosd - X on screen display library"
7
7
  spec.authors = ["Yurie Nagorny"]
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.add_dependency 'ffi'
19
+ spec.add_dependency 'ffi', '~> 1.15.5'
20
20
 
21
21
  spec.add_development_dependency 'rspec'
22
22
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xosd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yurie Nagorny
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-30 00:00:00.000000000 Z
11
+ date: 2022-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.15.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.15.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,20 +44,25 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
+ - ".gemignore"
48
+ - ".gitignore"
47
49
  - Gemfile
48
50
  - Gemfile.lock
49
51
  - LICENSE
50
52
  - README.md
53
+ - Rakefile
54
+ - Vagrantfile
51
55
  - lib/xosd.rb
52
56
  - lib/xosd/xosd.rb
53
57
  - lib/xosd/xosd_bindings.rb
58
+ - provision.sh
54
59
  - spec/xosd_spec.rb
55
60
  - xosd.gemspec
56
61
  homepage: https://github.com/ynagorny/xosd
57
62
  licenses:
58
63
  - MIT
59
64
  metadata: {}
60
- post_install_message:
65
+ post_install_message:
61
66
  rdoc_options: []
62
67
  require_paths:
63
68
  - lib
@@ -72,9 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
77
  - !ruby/object:Gem::Version
73
78
  version: '0'
74
79
  requirements: []
75
- rubyforge_project:
76
- rubygems_version: 2.5.1
77
- signing_key:
80
+ rubygems_version: 3.3.7
81
+ signing_key:
78
82
  specification_version: 4
79
83
  summary: Ruby wrapper for xosd
80
84
  test_files: