girrequire 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/girrequire.rb +11 -0
  3. metadata +46 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 85b1bd7c1b6a0ed72524381bd5181c354fe1d542
4
+ data.tar.gz: db206e457309ab79c179733165be8be392bcf4e8
5
+ SHA512:
6
+ metadata.gz: f00193c2771f04ce67f231bd7df40619207d7018caf233dfc7f1c39c79f1522b46e64d86674b0d31b24c67ee7a4fc3193a169d5393a5bfbab2747bf70fedd794
7
+ data.tar.gz: b9f190e81d34da22ac5d205749e7833643d39f60ec758ab7d8895f20a39aa670e712049ac51647d4d677f80191d50b8afa70d45229a697a905895fdeca857b12
data/lib/girrequire.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'gir_ffi'
2
+
3
+ module Kernel
4
+ alias :old_girrequire_require :require
5
+ def require(module_name)
6
+ name,version = *module_name.split('-')
7
+ GirFFI.setup name.to_sym, version
8
+ rescue
9
+ old_girrequire_require name
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: girrequire
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Matt Edlefsen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-23 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Hooks into require to allow directly requiring gobject libraries via
14
+ GIR files and gir_ffi.
15
+ email: matt@xforty.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/girrequire.rb
21
+ homepage: https://github.com/medlefsen/girrequire
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.2.2
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: Directly require gobject libraries
45
+ test_files: []
46
+ has_rdoc: