czmq-ffi-gen 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHORS +1 -0
- data/CHANGES.md +7 -0
- data/Gemfile +2 -0
- data/LICENSE +14 -0
- data/README.md +97 -0
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a13b3283c23574dcb273bb0cceb1e1dea053a3ae
|
4
|
+
data.tar.gz: 5f53828a3de118cbccdaad5c48158f919b1a7767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1722efb1d34de52a034f0395b6dfefca180e6106d91c9cb7d498500a20141f3fae8e3e4793690a751acc68da2a354be976202cf2b0699ac37e2a0d27843ce9a7
|
7
|
+
data.tar.gz: 988aab153814bf5d9cdf9c511eee3bb134456df30f8951778c66933ff5c20ba721d28bddbf3be93a9efe28d186b5f6d7c4b9ef230d14400bfdec1efc8e86ac10
|
data/AUTHORS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Patrik Wenger <paddor@gmail.com>
|
data/CHANGES.md
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Copyright (c) 2015, Patrik Wenger
|
2
|
+
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
4
|
+
purpose with or without fee is hereby granted, provided that the above
|
5
|
+
copyright notice and this permission notice appear in all copies.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
8
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
9
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
10
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
11
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
12
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
13
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
14
|
+
|
data/README.md
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
[![Build Status on Travis CI](https://travis-ci.org/paddor/czmq-ffi-gen.svg?branch=master)](https://travis-ci.org/paddor/czmq-ffi-gen?branch=master)
|
2
|
+
[![Dependency Status](https://gemnasium.com/paddor/czmq-ffi-gen.svg)](https://gemnasium.com/paddor/czmq-ffi-gen)
|
3
|
+
|
4
|
+
# Generated CZMQ::FFI
|
5
|
+
|
6
|
+
This repository is used to package and release the Ruby gem _czmq-ffi-gen_, the
|
7
|
+
low-level Ruby FFI binding for [CZMQ](https://github.com/zeromq/czmq). The gem
|
8
|
+
_czmq-ffi-gen_ can be used as a base for a higher-level CZMQ binding like
|
9
|
+
[CZTop](https://github.com/paddor/cztop). But of course you can use it for
|
10
|
+
anything you want. :-)
|
11
|
+
|
12
|
+
## Caveats
|
13
|
+
|
14
|
+
### Not Ruby-like
|
15
|
+
This is generated code. It is generated from the API models in CZMQ using
|
16
|
+
[zproject](https://github.com/zeromq/zproject). It doesn't feel like Ruby. It's
|
17
|
+
not intended to be used directly. Instead, use
|
18
|
+
[CZTop](https://github.com/paddor/cztop), or write your own wrapper for this
|
19
|
+
library.
|
20
|
+
|
21
|
+
### Generated code isn't actually in this repository
|
22
|
+
The actual generated code lies in CZMQ, which is Git submodule of this
|
23
|
+
repository, registered under `vendor/czmq`.
|
24
|
+
|
25
|
+
So if you're not happy with any of the generated code, go have a closer look at
|
26
|
+
CZMQ or zproject, which is used by CZMQ to generate the low-level binding.
|
27
|
+
|
28
|
+
### API Documentation
|
29
|
+
For that same reason, API documentation of unreleased code (directly off this
|
30
|
+
repository), like
|
31
|
+
[rubydoc.info/github/paddor/czmq-ffi-gen](http://www.rubydoc.info/github/paddor/czmq-ffi-gen)
|
32
|
+
**does NOT include any of the generated code**. _Rubydoc.info_ doesn't check
|
33
|
+
out Git submodules as part of its documentation procedure. However, API
|
34
|
+
documentation of the **released gem should work** just fine, as the gem release
|
35
|
+
process will include all required source files directly within the gem.
|
36
|
+
|
37
|
+
**Check out**
|
38
|
+
[http://www.rubydoc.info/gems/czmq-ffi-gen](http://www.rubydoc.info/gems/czmq-ffi-gen)
|
39
|
+
for the API documentation.
|
40
|
+
|
41
|
+
## Supported Rubies
|
42
|
+
|
43
|
+
Tested with these:
|
44
|
+
|
45
|
+
* Ruby 2.2.3
|
46
|
+
* JRuby HEAD (>= 9.0.0.0)
|
47
|
+
* Rubinius
|
48
|
+
|
49
|
+
|
50
|
+
### Known NOT to work
|
51
|
+
|
52
|
+
* JRuby 1.7.x
|
53
|
+
* doesn't work because of the use of the double splat operator (`**opts`)
|
54
|
+
|
55
|
+
## Installation
|
56
|
+
|
57
|
+
This gem requires the presence of the CZMQ library, which in turn requires the
|
58
|
+
ZMQ library. For **security mechanisms** like CURVE, you'll need
|
59
|
+
[libsodium](https://github.com/jedisct1/libsodium).
|
60
|
+
|
61
|
+
On OSX using homebrew, run:
|
62
|
+
|
63
|
+
$ brew install libsodium czmq
|
64
|
+
|
65
|
+
If you're running Linux, go check [this page](http://zeromq.org/distro:_start)
|
66
|
+
to get more help. Make sure to install CZMQ, not only ZMQ.
|
67
|
+
|
68
|
+
To then use this gem, add this line to your application's Gemfile:
|
69
|
+
|
70
|
+
```ruby
|
71
|
+
gem 'czmq-ffi-gen'
|
72
|
+
```
|
73
|
+
|
74
|
+
And then execute:
|
75
|
+
|
76
|
+
$ bundle
|
77
|
+
|
78
|
+
Or install it yourself as:
|
79
|
+
|
80
|
+
$ gem install czmq-ffi-gen
|
81
|
+
|
82
|
+
## Usage
|
83
|
+
|
84
|
+
Check out [CZTop](https://github.com/paddor/cztop) or the API documentation to
|
85
|
+
see how this project can be used. :-)
|
86
|
+
|
87
|
+
## Development
|
88
|
+
|
89
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
90
|
+
`rake spec` to run the tests. You can also run `bin/console` for an interactive
|
91
|
+
prompt that will allow you to experiment.
|
92
|
+
|
93
|
+
## License
|
94
|
+
|
95
|
+
The gem is available as open source under the terms of the [ISC
|
96
|
+
License](http://opensource.org/licenses/ISC). See the
|
97
|
+
[LICENSE](https://github.com/paddor/cztop/blob/master/LICENSE) file.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: czmq-ffi-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrik Wenger
|
@@ -87,6 +87,11 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
+
- AUTHORS
|
91
|
+
- CHANGES.md
|
92
|
+
- Gemfile
|
93
|
+
- LICENSE
|
94
|
+
- README.md
|
90
95
|
- lib/czmq-ffi-gen.rb
|
91
96
|
- lib/czmq-ffi-gen/czmq/ffi.rb
|
92
97
|
- lib/czmq-ffi-gen/czmq/ffi/version.rb
|