hello_world_bundler 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +4 -0
- data/ext/introvert_hello_world/extconf.rb +2 -0
- data/ext/introvert_hello_world/message.c +22 -0
- data/hello_world_bundler.gemspec +2 -2
- data/lib/hello_world_bundler/one_plus_one.rb +5 -0
- data/lib/hello_world_bundler/version.rb +1 -1
- data/lib/hello_world_bundler.rb +2 -0
- data/spec/one_plus_one_spec.rb +7 -0
- data/spec/spec_helper.rb +8 -0
- metadata +11 -3
data/Gemfile
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
#include "ruby.h"
|
2
|
+
#include "stdio.h"
|
3
|
+
|
4
|
+
static VALUE t_init(VALUE self)
|
5
|
+
{
|
6
|
+
return self;
|
7
|
+
}
|
8
|
+
|
9
|
+
static VALUE t_say_hello(VALUE self)
|
10
|
+
{
|
11
|
+
printf("Go away world!");
|
12
|
+
|
13
|
+
return Qnil;
|
14
|
+
}
|
15
|
+
|
16
|
+
VALUE cIntrovertedHelloWorld;
|
17
|
+
|
18
|
+
void Init_IntrovertedHelloWorld() {
|
19
|
+
cIntrovertedHelloWorld = rb_define_class("IntrovertedHelloWorld", rb_cObject);
|
20
|
+
rb_define_method(cIntrovertedHelloWorld, "initialize", t_init, 0);
|
21
|
+
rb_define_method(cIntrovertedHelloWorld, "say_hello", t_say_hello, 0);
|
22
|
+
}
|
data/hello_world_bundler.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{Creating a gem using bundler.}
|
8
8
|
gem.summary = %q{An instructional gem built using bundler.}
|
9
9
|
gem.homepage = ""
|
10
|
-
|
11
|
-
gem.files = `git ls-files`.split($\)
|
10
|
+
gem.extensions = ['ext/introvert_hello_world/extconf.rb']
|
11
|
+
gem.files = [`git ls-files`.split($\), Dir.glob('ext/**/*{c,h,rb}')].flatten
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "hello_world_bundler"
|
data/lib/hello_world_bundler.rb
CHANGED
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hello_world_bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,8 @@ description: Creating a gem using bundler.
|
|
15
15
|
email:
|
16
16
|
- ethan@bigohstudios.com
|
17
17
|
executables: []
|
18
|
-
extensions:
|
18
|
+
extensions:
|
19
|
+
- ext/introvert_hello_world/extconf.rb
|
19
20
|
extra_rdoc_files: []
|
20
21
|
files:
|
21
22
|
- .gitignore
|
@@ -25,7 +26,12 @@ files:
|
|
25
26
|
- Rakefile
|
26
27
|
- hello_world_bundler.gemspec
|
27
28
|
- lib/hello_world_bundler.rb
|
29
|
+
- lib/hello_world_bundler/one_plus_one.rb
|
28
30
|
- lib/hello_world_bundler/version.rb
|
31
|
+
- spec/one_plus_one_spec.rb
|
32
|
+
- spec/spec_helper.rb
|
33
|
+
- ext/introvert_hello_world/message.c
|
34
|
+
- ext/introvert_hello_world/extconf.rb
|
29
35
|
homepage: ''
|
30
36
|
licenses: []
|
31
37
|
post_install_message:
|
@@ -50,4 +56,6 @@ rubygems_version: 1.8.24
|
|
50
56
|
signing_key:
|
51
57
|
specification_version: 3
|
52
58
|
summary: An instructional gem built using bundler.
|
53
|
-
test_files:
|
59
|
+
test_files:
|
60
|
+
- spec/one_plus_one_spec.rb
|
61
|
+
- spec/spec_helper.rb
|