hello-world-gem 0.0.1 → 0.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcd9d60cedfea0dd044293617b3151455761d09e
4
- data.tar.gz: b54abf87bd3e0d5dde9f1ad00ab38eeab8065e2b
3
+ metadata.gz: c74128fc544b7105fd84cea04c2f36480633d238
4
+ data.tar.gz: eb6474b116cf774876599b97c686382bea5eb78d
5
5
  SHA512:
6
- metadata.gz: 2752f9a9307639b16aa99923b217be7e1c38edf06d98665ee6ee0ab9604c594d6824b61006a0092fdcb02d34e42f72cae53c9c1d0a81bd958a28077befb40e3c
7
- data.tar.gz: 2ad8a215e7eace1a7a9b99f8fba0609ca93e04694c7c0b94079d13c32e7ab64b200c5eb12d0061af99a3f73559c6c90568a1d18d20f7ca46209497fbaf10b82a
6
+ metadata.gz: a85f80e2977703407afeae3b828af00372a5b6916267cc61bad7a49850222388ed38e3853e50712e1d7af072f2b30ee320c7bfaf0b911b55f69f66a2bd379235
7
+ data.tar.gz: a1b1e48f2e94f0fabc995bcc3952cd83a09a4bad4c8f52c6a11ba5101426415fcbd53edbbfe420af69881f2d42743d0a2f688d68826b6eb731a5adc84df1d735
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in hello-world-gem.gemspec
4
+ gemspec
@@ -0,0 +1,36 @@
1
+ # Hello::World::Gem
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/hello/world/gem`. 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 'hello-world-gem'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install hello-world-gem
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. 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]/hello-world-gem.
36
+
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "hello/world/gem"
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(__FILE__)
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hello/world/gem'
4
+ puts Hello::World::Gem.hi(ARGV[0])
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'hello/world/gem/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "hello-world-gem"
8
+ spec.version = Hello::World::Gem::VERSION
9
+ spec.authors = ["Alex"]
10
+ spec.email = ["alex@aeffle.de"]
11
+
12
+ spec.summary = %q{a short summary goes here...}
13
+ spec.description = %q{an optional longer description goes here.}
14
+ spec.homepage = "https://google.com/"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.14"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency 'rspec'
26
+ end
@@ -0,0 +1,14 @@
1
+ require "hello/world/gem/version"
2
+ require 'hello/world/gem/translator'
3
+
4
+ module Hello
5
+ module World
6
+ module Gem
7
+ def self.hi(language = "english")
8
+ translator = Translator.new(language)
9
+ translator.hi
10
+ end
11
+ end
12
+ end
13
+ end
14
+
@@ -0,0 +1,20 @@
1
+ module Hello
2
+ module World
3
+ module Gem
4
+ class Translator
5
+ def initialize(language)
6
+ @language = language
7
+ end
8
+
9
+ def hi
10
+ case @language
11
+ when "spanish"
12
+ "hola mundo"
13
+ else
14
+ "hello world"
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,7 @@
1
+ module Hello
2
+ module World
3
+ module Gem
4
+ VERSION = "0.1.0"
5
+ end
6
+ end
7
+ end
metadata CHANGED
@@ -1,26 +1,78 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hello-world-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - John Doe
7
+ - Alex
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
12
- dependencies: []
13
- description: A simple hello world gem
14
- email: john@doe.mail
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: an optional longer description goes here.
56
+ email:
57
+ - alex@aeffle.de
15
58
  executables: []
16
59
  extensions: []
17
60
  extra_rdoc_files: []
18
61
  files:
19
- - lib/hello-world-gem.rb
20
- - lib/hello-world-gem/translator.rb
21
- homepage: http://rubygems.org/gems/asdf
22
- licenses:
23
- - MIT
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - Gemfile
65
+ - README.md
66
+ - Rakefile
67
+ - bin/console
68
+ - bin/hello-world-gem
69
+ - bin/setup
70
+ - hello-world-gem.gemspec
71
+ - lib/hello/world/gem.rb
72
+ - lib/hello/world/gem/translator.rb
73
+ - lib/hello/world/gem/version.rb
74
+ homepage: https://google.com/
75
+ licenses: []
24
76
  metadata: {}
25
77
  post_install_message:
26
78
  rdoc_options: []
@@ -41,5 +93,5 @@ rubyforge_project:
41
93
  rubygems_version: 2.6.11
42
94
  signing_key:
43
95
  specification_version: 4
44
- summary: Hola!
96
+ summary: a short summary goes here...
45
97
  test_files: []
@@ -1,9 +0,0 @@
1
- class HelloWorldGem
2
- def self.hi(language = "english")
3
- translator = Translator.new(language)
4
- translator.hi
5
- end
6
- end
7
-
8
- require 'hello-world-gem/translator'
9
-
@@ -1,14 +0,0 @@
1
- class HelloWorldGem::Translator
2
- def initialize(language)
3
- @language = language
4
- end
5
-
6
- def hi
7
- case @language
8
- when "spanish"
9
- "hola mundo"
10
- else
11
- "hello world"
12
- end
13
- end
14
- end