rl_hiya_allen_douglas 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4058fd5143b01b32aaf03ad5a5ecbb1fe12724d8
4
- data.tar.gz: 0bfcb31201fb968c1f9194958bd34245114aaa99
3
+ metadata.gz: 4c49f4de6011164912e328455b9e148fb5f6c20a
4
+ data.tar.gz: 3ee5b1df0ac18f127d5713688e5f09ef7a28bc89
5
5
  SHA512:
6
- metadata.gz: 6778a39ddcc36eb659bae7cb0bc99a29fafc9a5ec6bcb5ce0dfd43273a522061338ed6fd0742d22c26574a3f57e32aee205a48be5bd6a87597f81b7a00b97571
7
- data.tar.gz: d904bb246a8237c04b3513912a39309372fddaeb03c4af7104da4f6862190b0ee10cebfe0b050dfacb9fb942088f6aba2f3306edef28e6ce3482f0e85167f69d
6
+ metadata.gz: a16e6aaab2d4e4b9d287951464b523252a4bc684954938edf691501ba849c0bbb7a11d1fad93a6aa29184d2169991760d6a7b2a91cd59860c7285a4bf4d282e1
7
+ data.tar.gz: c6ae196e67346fb7681dad6f5bdea49c5d91e8dc5189d84e4b4f1033420f84b3116e9894b9337737325d283cd32e2a04043a59924272cadd0f67978364f49b0e
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -1,41 +1,8 @@
1
- # RlHiyaAllenDouglas
1
+ # A silly gem but it helped me learn.
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rl_hiya_allen_douglas`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'rl_hiya_allen_douglas'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install rl_hiya_allen_douglas
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rl_hiya_allen_douglas. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
37
-
38
- ## License
39
-
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
3
+ > ruby bin/console
41
4
 
5
+ >> Hiya.new
6
+ ==>#<Hiya:0x3c80880>
7
+ >> Hiya.new.output
8
+ ==>"Hello World and Hiya from Ruby Learning!"
data/Rakefile CHANGED
@@ -1,10 +1,19 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList['test/**/*_test.rb']
8
- end
9
-
10
- task :default => :test
1
+
2
+ require 'bundler/gem_tasks'
3
+ require 'rake/extensiontask'
4
+ require 'rake/testtask'
5
+
6
+ Rake::Task[:test].prerequisites << :compile
7
+ # vim: syntax=ruby
8
+
9
+ Rake::ExtensionTask.new('hiya') do |ext|
10
+ ext.lib_dir = File.join('lib', 'rl_hiya')
11
+ end
12
+
13
+ Rake::TestTask.new(:test) do |t|
14
+ t.libs << 'test'
15
+ t.libs << 'lib'
16
+ t.test_files = FileList['test/**/*_test.rb']
17
+ end
18
+
19
+ task default: :test
data/bin/console CHANGED
@@ -1,14 +1,14 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "rl_hiya_allen_douglas"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'rl_hiya'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start
@@ -0,0 +1,4 @@
1
+ require 'mkmf'
2
+ extension_name = 'hiya/hiya'
3
+ dir_config(extension_name)
4
+ create_makefile(extension_name)
data/ext/hiya/hiya.c ADDED
@@ -0,0 +1,26 @@
1
+ #include <ruby.h>
2
+
3
+ /*
4
+ * call-seq:
5
+ * initialize()
6
+ *
7
+ * Create new class Ruby object.
8
+ *
9
+ */
10
+ static VALUE t_init(VALUE self){
11
+ return self;
12
+ }
13
+
14
+ static VALUE t_out(VALUE self){
15
+ VALUE x;
16
+ VALUE str;
17
+ x = rb_str_new_cstr("Hello World and Hiya from Ruby Learning!");
18
+ str = rb_sprintf("%"PRIsVALUE"", x);
19
+ return str;
20
+ }
21
+
22
+ void Init_hiya(void){
23
+ VALUE cHiya = rb_define_class("Hiya", rb_cObject);
24
+ rb_define_method(cHiya, "initialize", t_init, 0);
25
+ rb_define_method(cHiya, "output", t_out, 0);
26
+ }
data/lib/rl_hiya.rb ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rl_hiya/version'
4
+ require 'rl_hiya/rl_hiya'
Binary file
@@ -0,0 +1,2 @@
1
+ require_relative 'hiya'
2
+ Hiya.new
@@ -0,0 +1,4 @@
1
+
2
+ class Hiya
3
+ VERSION = '0.2.0'.freeze
4
+ end
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'rl_hiya_allen_douglas/version'
4
+ require 'rl_hiya/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'rl_hiya_allen_douglas'
8
- spec.version = RlHiyaAllenDouglas::VERSION
8
+ spec.version = Hiya::VERSION
9
9
  spec.authors = ['Douglas']
10
10
  spec.email = ['kb9agt@gmail.com']
11
11
 
@@ -14,23 +14,20 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = 'http://rubylearning.org'
15
15
  spec.license = 'MIT'
16
16
 
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
- else
22
- raise 'RubyGems 2.0 or newer is required to protect against ' \
23
- 'public gem pushes.'
24
- end
25
-
26
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
18
  f.match(%r{^(test|spec|features)/})
28
19
  end
29
20
  spec.bindir = 'exe'
30
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
22
  spec.require_paths = ['lib']
23
+ require 'rake'
24
+ spec.extensions << 'ext/hiya/extconf.rb'
25
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
26
+ spec.require_paths = ['lib']
27
+ spec.platform = Gem::Platform::RUBY
32
28
 
33
29
  spec.add_development_dependency 'bundler', '~> 1.13'
34
- spec.add_development_dependency 'rake', '~> 10.0'
30
+ spec.add_development_dependency 'rake', '~> 12.0.0'
31
+ spec.add_development_dependency 'rake-compiler', '~> 0.9.2'
35
32
  spec.add_development_dependency 'minitest', '~> 5.0'
36
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rl_hiya_allen_douglas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas
@@ -30,59 +30,74 @@ cert_chain:
30
30
  J4L8DCnzZFU8ARwINSdPvhk8WzXpVgErPQezTziVg7gAtBjqdJO5qVlAiOp+z7m2
31
31
  gT57pae1qMGtqvMp
32
32
  -----END CERTIFICATE-----
33
- date: 2016-12-30 00:00:00.000000000 Z
33
+ date: 2017-03-05 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: bundler
37
37
  requirement: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ~>
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.13'
42
42
  type: :development
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ~>
47
47
  - !ruby/object:Gem::Version
48
48
  version: '1.13'
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rake
51
51
  requirement: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: '10.0'
55
+ version: 12.0.0
56
56
  type: :development
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ~>
61
61
  - !ruby/object:Gem::Version
62
- version: '10.0'
62
+ version: 12.0.0
63
+ - !ruby/object:Gem::Dependency
64
+ name: rake-compiler
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 0.9.2
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: 0.9.2
63
77
  - !ruby/object:Gem::Dependency
64
78
  name: minitest
65
79
  requirement: !ruby/object:Gem::Requirement
66
80
  requirements:
67
- - - "~>"
81
+ - - ~>
68
82
  - !ruby/object:Gem::Version
69
83
  version: '5.0'
70
84
  type: :development
71
85
  prerelease: false
72
86
  version_requirements: !ruby/object:Gem::Requirement
73
87
  requirements:
74
- - - "~>"
88
+ - - ~>
75
89
  - !ruby/object:Gem::Version
76
90
  version: '5.0'
77
91
  description: This is a learning experience. even gurus need help.
78
92
  email:
79
93
  - kb9agt@gmail.com
80
94
  executables: []
81
- extensions: []
95
+ extensions:
96
+ - ext/hiya/extconf.rb
82
97
  extra_rdoc_files: []
83
98
  files:
84
- - ".gitignore"
85
- - ".travis.yml"
99
+ - .gitignore
100
+ - .travis.yml
86
101
  - CODE_OF_CONDUCT.md
87
102
  - Gemfile
88
103
  - LICENSE.txt
@@ -90,31 +105,34 @@ files:
90
105
  - Rakefile
91
106
  - bin/console
92
107
  - bin/setup
93
- - lib/rl_hiya_allen_douglas.rb
94
- - lib/rl_hiya_allen_douglas/version.rb
108
+ - ext/hiya/extconf.rb
109
+ - ext/hiya/hiya.c
110
+ - lib/rl_hiya.rb
111
+ - lib/rl_hiya/hiya.so
112
+ - lib/rl_hiya/rl_hiya.rb
113
+ - lib/rl_hiya/version.rb
95
114
  - rl_hiya_allen_douglas.gemspec
96
115
  homepage: http://rubylearning.org
97
116
  licenses:
98
117
  - MIT
99
- metadata:
100
- allowed_push_host: https://rubygems.org
118
+ metadata: {}
101
119
  post_install_message:
102
120
  rdoc_options: []
103
121
  require_paths:
104
122
  - lib
105
123
  required_ruby_version: !ruby/object:Gem::Requirement
106
124
  requirements:
107
- - - ">="
125
+ - - '>='
108
126
  - !ruby/object:Gem::Version
109
127
  version: '0'
110
128
  required_rubygems_version: !ruby/object:Gem::Requirement
111
129
  requirements:
112
- - - ">="
130
+ - - '>='
113
131
  - !ruby/object:Gem::Version
114
132
  version: '0'
115
133
  requirements: []
116
134
  rubyforge_project:
117
- rubygems_version: 2.6.8
135
+ rubygems_version: 2.6.10
118
136
  signing_key:
119
137
  specification_version: 4
120
138
  summary: discover the meaning of life on Earth.
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- pٳ� ���pP�ڻ���w��8U�.ր�����+�B�$��b(�����=3�!k��F���,|��^!%�~��d�Ĺ�*�:L���gV�4}���6ʞRܮzj���H�`]T_7B.��t�W6�W�EOp]Փ-|���]���c$E q�2Q-�h���� ��%�n�շ�gO5�
2
- �&QsT@���p�9���z�t�c��НǤ�\6P��F>���[G�l����}@L�O3��+�ؐ�
1
+ �-����+-���wwO' Zdo��hZ�X�����h�߱ak�})hRjy��ۊ�]��(M <�s1��
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'rl_hiya_allen_douglas/version'
3
- require 'rl_hiya_allen_douglas/hiya'
4
- #
5
- module RlHiyaAllenDouglas
6
- # Your code goes here...
7
- end
@@ -1,3 +0,0 @@
1
- module RlHiyaAllenDouglas
2
- VERSION = "0.1.0"
3
- end