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 CHANGED
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in hello_world_bundler.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'rspec'
8
+ end
@@ -0,0 +1,2 @@
1
+ require 'mkmf'
2
+ create_makefile("IntrovertedHelloWorld")
@@ -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
+ }
@@ -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"
@@ -0,0 +1,5 @@
1
+ class HelloWorldBundler::OnePlusOne
2
+ def self.execute
3
+ return 2
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module HelloWorldBundler
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,4 +1,6 @@
1
1
  require "hello_world_bundler/version"
2
+ require "hello_world_bundler/one_plus_one"
3
+ require "introvert_hello_world/main"
2
4
 
3
5
  module HelloWorldBundler
4
6
  def self.greeting
@@ -0,0 +1,7 @@
1
+ require 'spec_helper.rb'
2
+
3
+ describe HelloWorldBundler::OnePlusOne do
4
+ it "should know how to add" do
5
+ HelloWorldBundler::OnePlusOne.execute.should eq(2)
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ Bundler.require :default
5
+
6
+ RSpec.configure do |config|
7
+ # some (optional) config here
8
+ end
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.2
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