rusty_clipboard 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d17f3a9e6fc7627fdddbc11ece73378e9f97ca29f9aeb737cd7528ab88dffa9a
4
+ data.tar.gz: 9519e1d204145a7f62c79c6941dd0ab5e2be09cf1725a2fdecd518621c1d920d
5
+ SHA512:
6
+ metadata.gz: 70f2ece4fda0145d6345dcd2ea765d7d025a87b2cc0e5501d0cee920246cfad48b45b48bbaf05288cc26b11c8bd5368f65711b946bdcda5b9fea946b708e2b60
7
+ data.tar.gz: 5da3dbdc967fd4ab8bf00c02017c77725328f63303d4924b7c90c9b814899a0fe0d98a6a7b5dbcc4b19d870d4e1065fc0ec765a9817b557a9ba0157cb4fb3960
@@ -0,0 +1,163 @@
1
+ [[package]]
2
+ name = "block"
3
+ version = "0.1.6"
4
+ source = "registry+https://github.com/rust-lang/crates.io-index"
5
+
6
+ [[package]]
7
+ name = "cfg-if"
8
+ version = "0.1.6"
9
+ source = "registry+https://github.com/rust-lang/crates.io-index"
10
+
11
+ [[package]]
12
+ name = "clipboard"
13
+ version = "0.5.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ dependencies = [
16
+ "clipboard-win 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
17
+ "objc 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
18
+ "objc-foundation 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
19
+ "objc_id 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
20
+ "x11-clipboard 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
21
+ ]
22
+
23
+ [[package]]
24
+ name = "clipboard-win"
25
+ version = "2.1.2"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ dependencies = [
28
+ "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
29
+ ]
30
+
31
+ [[package]]
32
+ name = "cstr-macro"
33
+ version = "0.1.0"
34
+ source = "registry+https://github.com/rust-lang/crates.io-index"
35
+
36
+ [[package]]
37
+ name = "helix"
38
+ version = "0.7.5"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ dependencies = [
41
+ "cstr-macro 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
42
+ "libc 0.2.44 (registry+https://github.com/rust-lang/crates.io-index)",
43
+ "libcruby-sys 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)",
44
+ ]
45
+
46
+ [[package]]
47
+ name = "libc"
48
+ version = "0.2.44"
49
+ source = "registry+https://github.com/rust-lang/crates.io-index"
50
+
51
+ [[package]]
52
+ name = "libcruby-sys"
53
+ version = "0.7.5"
54
+ source = "registry+https://github.com/rust-lang/crates.io-index"
55
+ dependencies = [
56
+ "libc 0.2.44 (registry+https://github.com/rust-lang/crates.io-index)",
57
+ ]
58
+
59
+ [[package]]
60
+ name = "log"
61
+ version = "0.4.6"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ dependencies = [
64
+ "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
65
+ ]
66
+
67
+ [[package]]
68
+ name = "malloc_buf"
69
+ version = "0.0.6"
70
+ source = "registry+https://github.com/rust-lang/crates.io-index"
71
+ dependencies = [
72
+ "libc 0.2.44 (registry+https://github.com/rust-lang/crates.io-index)",
73
+ ]
74
+
75
+ [[package]]
76
+ name = "objc"
77
+ version = "0.2.5"
78
+ source = "registry+https://github.com/rust-lang/crates.io-index"
79
+ dependencies = [
80
+ "malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
81
+ ]
82
+
83
+ [[package]]
84
+ name = "objc-foundation"
85
+ version = "0.1.1"
86
+ source = "registry+https://github.com/rust-lang/crates.io-index"
87
+ dependencies = [
88
+ "block 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
89
+ "objc 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
90
+ "objc_id 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
91
+ ]
92
+
93
+ [[package]]
94
+ name = "objc_id"
95
+ version = "0.1.1"
96
+ source = "registry+https://github.com/rust-lang/crates.io-index"
97
+ dependencies = [
98
+ "objc 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
99
+ ]
100
+
101
+ [[package]]
102
+ name = "rusty_clipboard"
103
+ version = "0.1.0"
104
+ dependencies = [
105
+ "clipboard 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
106
+ "helix 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)",
107
+ ]
108
+
109
+ [[package]]
110
+ name = "winapi"
111
+ version = "0.3.6"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ dependencies = [
114
+ "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
115
+ "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
116
+ ]
117
+
118
+ [[package]]
119
+ name = "winapi-i686-pc-windows-gnu"
120
+ version = "0.4.0"
121
+ source = "registry+https://github.com/rust-lang/crates.io-index"
122
+
123
+ [[package]]
124
+ name = "winapi-x86_64-pc-windows-gnu"
125
+ version = "0.4.0"
126
+ source = "registry+https://github.com/rust-lang/crates.io-index"
127
+
128
+ [[package]]
129
+ name = "x11-clipboard"
130
+ version = "0.3.0"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ dependencies = [
133
+ "xcb 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
134
+ ]
135
+
136
+ [[package]]
137
+ name = "xcb"
138
+ version = "0.8.2"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ dependencies = [
141
+ "libc 0.2.44 (registry+https://github.com/rust-lang/crates.io-index)",
142
+ "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
143
+ ]
144
+
145
+ [metadata]
146
+ "checksum block 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
147
+ "checksum cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "082bb9b28e00d3c9d39cc03e64ce4cea0f1bb9b3fde493f0cbc008472d22bdf4"
148
+ "checksum clipboard 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "25a904646c0340239dcf7c51677b33928bf24fdf424b79a57909c0109075b2e7"
149
+ "checksum clipboard-win 2.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "289da2fc09ab964a4948a63287c94fcb4698fa823c46da84c3792928c9d36110"
150
+ "checksum cstr-macro 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "db53fddba18cdd35477a7213a3ef6acfbfa333c31b42ce019e544c4a1420a06f"
151
+ "checksum helix 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)" = "49a017e3e798ad9386e0a0584e66fd6c04a80ccc1242eb8f689c62ce6f408240"
152
+ "checksum libc 0.2.44 (registry+https://github.com/rust-lang/crates.io-index)" = "10923947f84a519a45c8fefb7dd1b3e8c08747993381adee176d7a82b4195311"
153
+ "checksum libcruby-sys 0.7.5 (registry+https://github.com/rust-lang/crates.io-index)" = "fef6028cdce0c8d55676fd1d66bb810facef8cade0dd71d28511d375e84da4c0"
154
+ "checksum log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c84ec4b527950aa83a329754b01dbe3f58361d1c5efacd1f6d68c494d08a17c6"
155
+ "checksum malloc_buf 0.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
156
+ "checksum objc 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "9833ab0efe5361b1e2122a0544a5d3359576911a42cb098c2e59be8650807367"
157
+ "checksum objc-foundation 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
158
+ "checksum objc_id 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"
159
+ "checksum winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "92c1eb33641e276cfa214a0522acad57be5c56b10cb348b3c5117db75f3ac4b0"
160
+ "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
161
+ "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
162
+ "checksum x11-clipboard 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d8617c6185c96e5fcf57ff156496d73c9c82b7f09a5fea21b518dd32c10e2e05"
163
+ "checksum xcb 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "5e917a3f24142e9ff8be2414e36c649d47d6cc2ba81f16201cdef96e533e02de"
@@ -0,0 +1,10 @@
1
+ [package]
2
+ name = "rusty_clipboard"
3
+ version = "0.1.0"
4
+
5
+ [lib]
6
+ crate-type = ["cdylib"]
7
+
8
+ [dependencies]
9
+ helix = "0.7.5"
10
+ clipboard = "0.5.0"
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,25 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rusty_clipboard (0.1.0)
5
+ helix_runtime (~> 0.7.5)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ helix_runtime (0.7.5)
11
+ rake (>= 10.0)
12
+ thor (>= 0.19.4, < 2.0)
13
+ tomlrb (~> 1.2.4)
14
+ rake (12.3.2)
15
+ thor (0.20.3)
16
+ tomlrb (1.2.7)
17
+
18
+ PLATFORMS
19
+ ruby
20
+
21
+ DEPENDENCIES
22
+ rusty_clipboard!
23
+
24
+ BUNDLED WITH
25
+ 1.17.1
@@ -0,0 +1,22 @@
1
+ # Rusty Clipboard for Ruby
2
+
3
+ Experimenting around with:
4
+
5
+ - https://github.com/aweinstock314/rust-clipboard (used in Servo)
6
+ - https://usehelix.com (a way to build Rust Extensions in Ruby)
7
+
8
+ Setup:
9
+
10
+ - Clone repository
11
+ - Install Rust (and Cargo, its package manager)
12
+ - Run: `rake gem`
13
+
14
+ Usage:
15
+
16
+ - RustyClipboard.copy
17
+ - RustyClipboard.paste
18
+ - RustyClipboard.clear
19
+
20
+ For a production-ready clipboard in Ruby, please go use:
21
+
22
+ - https://github.com/janlelis/clipboard
@@ -0,0 +1,23 @@
1
+ require 'bundler/setup'
2
+ import 'lib/tasks/helix_runtime.rake'
3
+
4
+ # # #
5
+ # Get gemspec info
6
+
7
+ gemspec_file = Dir['*.gemspec'].first
8
+ gemspec = eval File.read(gemspec_file), binding, gemspec_file
9
+ info = "#{gemspec.name} | #{gemspec.version} | " \
10
+ "#{gemspec.runtime_dependencies.size} dependencies | " \
11
+ "#{gemspec.files.size} files"
12
+
13
+ # # #
14
+ # Gem build and install task
15
+
16
+ desc info
17
+ task :gem => :build do
18
+ puts info + "\n\n"
19
+ print " "; sh "gem build #{gemspec_file}"
20
+ FileUtils.mkdir_p 'pkg'
21
+ FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
22
+ puts; sh %{gem install --no-document pkg/#{gemspec.name}-#{gemspec.version}.gem}
23
+ end
@@ -0,0 +1,11 @@
1
+ require_relative "rusty_clipboard/version"
2
+ require "helix_runtime"
3
+
4
+ begin
5
+ require "rusty_clipboard/native"
6
+ rescue LoadError
7
+ warn "Unable to load rusty_clipboard/native. Please clone the repository from https://github.com/janlelis/rusty_clipboard, install the Rust compiler, and run `rake build`"
8
+ end
9
+
10
+ class ClipboardRust
11
+ end
@@ -0,0 +1,3 @@
1
+ class RustyClipboard
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,5 @@
1
+ require 'helix_runtime/build_task'
2
+
3
+ HelixRuntime::BuildTask.new
4
+
5
+ task :default => :build
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rusty_clipboard
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jan Lelis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: helix_runtime
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.7.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.7.5
27
+ description:
28
+ email: mail@janlelis.de
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - Cargo.lock
34
+ - Cargo.toml
35
+ - Gemfile
36
+ - Gemfile.lock
37
+ - README.md
38
+ - Rakefile
39
+ - lib/rusty_clipboard.rb
40
+ - lib/rusty_clipboard/native.so
41
+ - lib/rusty_clipboard/version.rb
42
+ - lib/tasks/helix_runtime.rake
43
+ homepage: https://github.com/janlelis/rusty_clipboard
44
+ licenses:
45
+ - MIT
46
+ metadata: {}
47
+ post_install_message:
48
+ rdoc_options: []
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ requirements:
62
+ - 'Experimental: Currently requires a manual compilation step'
63
+ rubyforge_project:
64
+ rubygems_version: 2.7.7
65
+ signing_key:
66
+ specification_version: 4
67
+ summary: Access to your clipboard crossplatform with help from Rust
68
+ test_files: []