femme_fatale 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in femme_fatale.gemspec
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,3 @@
1
+ require "mkmf"
2
+
3
+ create_makefile("femme_fatale")
@@ -0,0 +1,26 @@
1
+ #include <ruby.h>
2
+
3
+ static VALUE
4
+ femme_fatale(int argc, VALUE *argv, VALUE obj)
5
+ {
6
+ VALUE msg = Qnil;
7
+ const char *cmsg = NULL;
8
+
9
+ (void)obj;
10
+
11
+ rb_scan_args(argc, argv, "01", &msg);
12
+ if (RTEST(msg)) {
13
+ cmsg = RSTRING_PTR(msg);
14
+ }
15
+ else {
16
+ cmsg = "femme fatale!";
17
+ }
18
+ rb_fatal(cmsg);
19
+ return 0; /* never reached */
20
+ }
21
+
22
+ void
23
+ Init_femme_fatale(void)
24
+ {
25
+ rb_define_method(rb_mKernel, "femme_fatale", femme_fatale, -1);
26
+ }
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "femme_fatale/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "femme_fatale"
7
+ s.version = FemmeFatale::VERSION
8
+ s.authors = ["Chikanaga Tomoyuki"]
9
+ s.email = ["nagachika00@gmail.com"]
10
+ s.homepage = "https://github.com/nagachika/femme_fatale"
11
+ s.summary = %q{raise CRuby internal fatal error}
12
+ s.description = %q{raise CRuby internal fatal error by calling rb_fatal()}
13
+
14
+ s.rubyforge_project = "femme_fatale"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+ s.extensions = ["ext/extconf.rb"]
21
+
22
+ # specify any dependencies here; for example:
23
+ # s.add_development_dependency "rspec"
24
+ # s.add_runtime_dependency "rest-client"
25
+ end
@@ -0,0 +1,3 @@
1
+ module FemmeFatale
2
+ VERSION = "1.0.0"
3
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: femme_fatale
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Chikanaga Tomoyuki
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-14 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: raise CRuby internal fatal error by calling rb_fatal()
15
+ email:
16
+ - nagachika00@gmail.com
17
+ executables: []
18
+ extensions:
19
+ - ext/extconf.rb
20
+ extra_rdoc_files: []
21
+ files:
22
+ - .gitignore
23
+ - Gemfile
24
+ - Rakefile
25
+ - ext/extconf.rb
26
+ - ext/femme_fatale.c
27
+ - femme_fatale.gemspec
28
+ - lib/femme_fatale/version.rb
29
+ homepage: https://github.com/nagachika/femme_fatale
30
+ licenses: []
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubyforge_project: femme_fatale
49
+ rubygems_version: 1.8.11
50
+ signing_key:
51
+ specification_version: 3
52
+ summary: raise CRuby internal fatal error
53
+ test_files: []