From f1b0b9bd4d1b7c71e763b719b0f9d4278a1d68b1 Mon Sep 17 00:00:00 2001 From: csrakowski Date: Mon, 14 Jan 2013 12:12:17 +0100 Subject: [PATCH 01/31] Added Dutch translation --- hola.gemspec | 2 +- lib/hola/translator.rb | 2 ++ test/test_hola.rb | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hola.gemspec b/hola.gemspec index 7ebbbb3..9d2b394 100644 --- a/hola.gemspec +++ b/hola.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = "hola" - s.version = "0.0.1" + s.version = "0.0.2" s.default_executable = "hola" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= diff --git a/lib/hola/translator.rb b/lib/hola/translator.rb index a33abe6..fd4b784 100644 --- a/lib/hola/translator.rb +++ b/lib/hola/translator.rb @@ -9,6 +9,8 @@ def hi "hola mundo" when "korean" "anyoung ha se yo" + when "dutch" + "hallo wereld" else "hello world" end diff --git a/test/test_hola.rb b/test/test_hola.rb index 54d1b20..60d6940 100644 --- a/test/test_hola.rb +++ b/test/test_hola.rb @@ -13,4 +13,8 @@ def test_any_hello def test_spanish_hello assert_equal "hola mundo", Hola.hi("spanish") end + + def test_dutch_hello + assert_equal "hallo wereld", Hola.hi("dutch") + end end From 812f703960246b51d5639db59250e6713b7659ee Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 18 Jun 2013 23:35:13 +1000 Subject: [PATCH 02/31] flag hola as an executable --- hola.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hola.gemspec b/hola.gemspec index 7ebbbb3..3aef35f 100644 --- a/hola.gemspec +++ b/hola.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = "hola" - s.version = "0.0.1" + s.version = "0.0.3" s.default_executable = "hola" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= @@ -14,6 +14,7 @@ Gem::Specification.new do |s| s.require_paths = ["lib"] s.rubygems_version = %q{1.6.2} s.summary = %q{Hola!} + s.executables << %q{hola} if s.respond_to? :specification_version then s.specification_version = 3 From 80b16446f469dfef9f29101d730cf7f9a7b857c2 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Wed, 19 Jun 2013 00:04:13 +1000 Subject: [PATCH 03/31] Use template files from 'bundle gem' (has better defaults in gemspec) --- .gitignore | 17 +++++++++++++++++ Gemfile | 4 ++++ LICENSE.txt | 33 +++++++++++++++++++++++++++++++++ README.md | 30 ++++++++++++++++++++++++++++++ Rakefile | 2 ++ hola.gemspec | 43 ++++++++++++++++++++++++------------------- lib/hola/version.rb | 3 +++ 7 files changed, 113 insertions(+), 19 deletions(-) create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 LICENSE.txt create mode 100644 README.md create mode 100644 lib/hola/version.rb diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d87d4be --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +*.gem +*.rbc +.bundle +.config +.yardoc +Gemfile.lock +InstalledFiles +_yardoc +coverage +doc/ +lib/bundler/man +pkg +rdoc +spec/reports +test/tmp +test/version_tmp +tmp diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..7f4a3f5 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +# Specify your gem's dependencies in hola.gemspec +gemspec diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..47e969a --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,33 @@ +No copyright clause was included with code on github. + +Note https://help.github.com/articles/github-terms-of-service clause F.1 states: + +We claim no intellectual property rights over the material you provide to the Service. +Your profile and materials uploaded remain yours. +However, by setting your pages to be viewed publicly, you agree to allow others to view your Content. +By setting your repositories to be viewed publicly, you agree to allow others to view and fork your repositories. + +Bundle supplied the following suggested license: + +Copyright (c) 2013 Nick Quaranto + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..fa1a303 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# Hola + +Simple “hello world” gem + +## Installation + +Add this line to your application's Gemfile: + + gem 'hola' + +And then execute: + + $ bundle + +Or install it yourself as: + + $ gem install hola + +## Usage + +See http://guides.rubygems.org/make-your-own-gem/ + +## Contributing + +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Add some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request + diff --git a/Rakefile b/Rakefile index debc11c..71887a8 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +require "bundler/gem_tasks" + require 'rake/testtask' Rake::TestTask.new do |t| diff --git a/hola.gemspec b/hola.gemspec index 3aef35f..8763ab5 100644 --- a/hola.gemspec +++ b/hola.gemspec @@ -1,23 +1,29 @@ -Gem::Specification.new do |s| - s.name = "hola" - s.version = "0.0.3" - s.default_executable = "hola" +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'hola/version' - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Nick Quaranto"] - s.date = %q{2010-04-03} - s.description = %q{A simple hello world gem} - s.email = %q{nick@quaran.to} - s.files = ["Rakefile", "lib/hola.rb", "lib/hola/translator.rb", "bin/hola"] - s.test_files = ["test/test_hola.rb"] - s.homepage = %q{http://rubygems.org/gems/hola} - s.require_paths = ["lib"] - s.rubygems_version = %q{1.6.2} - s.summary = %q{Hola!} - s.executables << %q{hola} +Gem::Specification.new do |spec| + spec.name = "hola" + spec.version = Hola::VERSION + spec.authors = ["Nick Quaranto"] + spec.email = %q{nick@quaran.to} + spec.description = %q{A simple hello world gem} + spec.summary = %q{Hola!} + spec.homepage = %q{http://rubygems.org/gems/hola} + spec.license = "UNKNOWN" - if s.respond_to? :specification_version then - s.specification_version = 3 + spec.files = `git ls-files`.split($/) + spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } + spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.require_paths = ["lib"] + + spec.add_development_dependency "bundler", "~> 1.3" + spec.add_development_dependency "rake" + + spec.required_rubygems_version = Gem::Requirement.new(">= 0") if spec.respond_to? :required_rubygems_version= + if spec.respond_to? :specification_version then + spec.specification_version = 3 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then else @@ -25,4 +31,3 @@ Gem::Specification.new do |s| else end end - diff --git a/lib/hola/version.rb b/lib/hola/version.rb new file mode 100644 index 0000000..22c872d --- /dev/null +++ b/lib/hola/version.rb @@ -0,0 +1,3 @@ +module Hola + VERSION = "0.0.3" +end From 5053302b3f1c695862227c4d243f3fb6d5887106 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Wed, 19 Jun 2013 00:09:27 +1000 Subject: [PATCH 04/31] Add travis CI testing --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..008d2c5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: ruby +rvm: + - 1.9.3 + - 1.8.7 + - ruby-head From e6b3a38adae2b2dedb50fc355515b752e30593d2 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Wed, 19 Jun 2013 00:15:56 +1000 Subject: [PATCH 05/31] Add travis email notification --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 008d2c5..8907980 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,8 @@ language: ruby +notifications: + email: + on_success: change + on_failure: always rvm: - 1.9.3 - 1.8.7 From 85aa09d4d3e79709cb0d03fb97e2d435f3d66ab0 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Wed, 19 Jun 2013 00:29:07 +1000 Subject: [PATCH 06/31] Correct version (bundle's template assumes the base module name is a module not a class) --- lib/hola.rb | 1 + lib/hola/version.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hola.rb b/lib/hola.rb index 11183c3..0ac3ba5 100644 --- a/lib/hola.rb +++ b/lib/hola.rb @@ -6,3 +6,4 @@ def self.hi(language) end require 'hola/translator' +require 'hola/version' diff --git a/lib/hola/version.rb b/lib/hola/version.rb index 22c872d..900e939 100644 --- a/lib/hola/version.rb +++ b/lib/hola/version.rb @@ -1,3 +1,3 @@ -module Hola +class Hola VERSION = "0.0.3" end From 7906f301f2c7d64050d95a41e78afb1792988c4f Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Wed, 19 Jun 2013 01:52:05 +1000 Subject: [PATCH 07/31] Removed ruby-head from .travis.yml (failed due to missing bundler, but bundler is supposed to be present in all versions) --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8907980..1daae22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,3 @@ notifications: rvm: - 1.9.3 - 1.8.7 - - ruby-head From 6240b05c5a916aa2c6cdb4a1a3af358d98915db2 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Sat, 20 Jul 2013 22:03:53 +1000 Subject: [PATCH 08/31] Added ruby 2.0 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 1daae22..81f4dbb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,3 +6,4 @@ notifications: rvm: - 1.9.3 - 1.8.7 + - 2.0.0 From 4a7f7e9eddf0abbd34bc9a8b7c3bfc48839c2147 Mon Sep 17 00:00:00 2001 From: ciban Date: Thu, 19 Sep 2013 11:46:08 +0100 Subject: [PATCH 09/31] Add test for Korean hello --- test/test_hola.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_hola.rb b/test/test_hola.rb index 54d1b20..82c5989 100644 --- a/test/test_hola.rb +++ b/test/test_hola.rb @@ -13,4 +13,8 @@ def test_any_hello def test_spanish_hello assert_equal "hola mundo", Hola.hi("spanish") end + + def test_korean_hello + assert_equal "anyoung ha se yo", Hola.hi("korean") + end end From f0364c2716077bbbb23b60f030a646401b1a892c Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 29 Oct 2013 23:06:37 +1100 Subject: [PATCH 10/31] Added coveralls test --- Gemfile | 2 ++ test/test_hola.rb | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Gemfile b/Gemfile index 7f4a3f5..28e3864 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,5 @@ source 'https://rubygems.org' # Specify your gem's dependencies in hola.gemspec gemspec + +gem "coveralls", :require => false, :group => :development diff --git a/test/test_hola.rb b/test/test_hola.rb index 60d6940..6031d58 100644 --- a/test/test_hola.rb +++ b/test/test_hola.rb @@ -1,3 +1,6 @@ +require 'coveralls' +Coveralls.wear! + require 'test/unit' require 'hola' From 0eed2ff3c847e026cceac00d87f642ef09930cda Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 29 Oct 2013 23:37:43 +1100 Subject: [PATCH 11/31] add test and coverage links --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fa1a303..68f386f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Hola -Simple “hello world” gem +Simple “hello world” gem, with tests and code coverage + +[![Travis CI tests](https://travis-ci.org/ianheggie/inteltech_sms.png)](https://travis-ci.org/ianheggie/inteltech_sms) +[![Coverage Status](https://coveralls.io/repos/ianheggie/hola/badge.png)](https://coveralls.io/r/ianheggie/hola) ## Installation From 7c4f68b565cc57f6338b7df19be1eba0e17aa461 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 29 Oct 2013 23:55:50 +1100 Subject: [PATCH 12/31] Fix mime-types dependency --- Gemfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index 28e3864..e4fbe3b 100644 --- a/Gemfile +++ b/Gemfile @@ -3,4 +3,8 @@ source 'https://rubygems.org' # Specify your gem's dependencies in hola.gemspec gemspec +platforms :ruby_18 do + # mime-types 2.0 requires Ruby version >= 1.9.2 + gem "mime-types", "< 2.0" +end gem "coveralls", :require => false, :group => :development From 9a1dc186228064e478ec8320b72e8a076d2df3da Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Wed, 30 Oct 2013 00:01:41 +1100 Subject: [PATCH 13/31] Ignore .ruby-version for testing --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d87d4be..555aadd 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ spec/reports test/tmp test/version_tmp tmp +.ruby-version From fc9a619698f448d949afccc6b373034369b865dc Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Sun, 22 Dec 2013 21:09:09 +1100 Subject: [PATCH 14/31] Correct travis link in README.md --- .travis.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 81f4dbb..ed9e20c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,6 @@ notifications: on_success: change on_failure: always rvm: - - 1.9.3 - 1.8.7 + - 1.9.3 - 2.0.0 diff --git a/README.md b/README.md index 68f386f..5053083 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Simple “hello world” gem, with tests and code coverage -[![Travis CI tests](https://travis-ci.org/ianheggie/inteltech_sms.png)](https://travis-ci.org/ianheggie/inteltech_sms) +[![Travis CI tests](https://travis-ci.org/ianheggie/hola.png)](https://travis-ci.org/ianheggie/hola) [![Coverage Status](https://coveralls.io/repos/ianheggie/hola/badge.png)](https://coveralls.io/r/ianheggie/hola) ## Installation From ec7c8fb9c587102d522456478added099f762567 Mon Sep 17 00:00:00 2001 From: Micha Rosenbaum Date: Thu, 9 Oct 2014 12:38:17 +0200 Subject: [PATCH 15/31] Add German to the list of languages --- lib/hola/translator.rb | 2 ++ test/test_hola.rb | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/lib/hola/translator.rb b/lib/hola/translator.rb index a33abe6..a0c4c82 100644 --- a/lib/hola/translator.rb +++ b/lib/hola/translator.rb @@ -9,6 +9,8 @@ def hi "hola mundo" when "korean" "anyoung ha se yo" + when "german" + "hallo welt" else "hello world" end diff --git a/test/test_hola.rb b/test/test_hola.rb index 54d1b20..1271a8a 100644 --- a/test/test_hola.rb +++ b/test/test_hola.rb @@ -13,4 +13,8 @@ def test_any_hello def test_spanish_hello assert_equal "hola mundo", Hola.hi("spanish") end + + def test_german_hello + assert_equal "hallo welt", Hola.hi("german") + end end From d9ef9c1030cc4838e35c3b550665f77d7ed96b0c Mon Sep 17 00:00:00 2001 From: renatogpires Date: Tue, 23 Dec 2014 22:13:01 -0200 Subject: [PATCH 16/31] Added brazilian portuguese language --- lib/hola/translator.rb | 2 ++ test/test_hola.rb | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/lib/hola/translator.rb b/lib/hola/translator.rb index a0c4c82..c6bb01e 100644 --- a/lib/hola/translator.rb +++ b/lib/hola/translator.rb @@ -11,6 +11,8 @@ def hi "anyoung ha se yo" when "german" "hallo welt" + when "brazilian portuguese" + "olá mundo" else "hello world" end diff --git a/test/test_hola.rb b/test/test_hola.rb index 1271a8a..01de0a8 100644 --- a/test/test_hola.rb +++ b/test/test_hola.rb @@ -17,4 +17,8 @@ def test_spanish_hello def test_german_hello assert_equal "hallo welt", Hola.hi("german") end + + def test_brazilian_portuguese_hello + assert_equal "olá mundo", Hola.hi("brazilian portuguese") + end end From 306374165fee7f441a6d46cd29064ee6406b0129 Mon Sep 17 00:00:00 2001 From: N0zz Date: Wed, 11 Feb 2015 23:59:40 +0100 Subject: [PATCH 17/31] add polish new polish language added and encoding changed to utf-8 which is requed by polish --- lib/hola/translator.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/hola/translator.rb b/lib/hola/translator.rb index a33abe6..8dce55d 100644 --- a/lib/hola/translator.rb +++ b/lib/hola/translator.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + class Hola::Translator def initialize(language = "english") @language = language @@ -9,6 +11,8 @@ def hi "hola mundo" when "korean" "anyoung ha se yo" + when "polish" + "witaj świecie" else "hello world" end From 92ecb9a4f83562e1deaae9f4939c775e55fa14b3 Mon Sep 17 00:00:00 2001 From: N0zz Date: Thu, 12 Feb 2015 00:00:58 +0100 Subject: [PATCH 18/31] add test for polish test for polsih langauge, and also change encoding to utf-8 because of polish --- test/test_hola.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_hola.rb b/test/test_hola.rb index 54d1b20..ae68243 100644 --- a/test/test_hola.rb +++ b/test/test_hola.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + require 'test/unit' require 'hola' @@ -13,4 +15,8 @@ def test_any_hello def test_spanish_hello assert_equal "hola mundo", Hola.hi("spanish") end + + def test_polish_hello + assert_equal "witaj świecie", Hola.hi("spanish") + end end From a2154e2e99a0f6b2096dee4361ceb828c6634cd9 Mon Sep 17 00:00:00 2001 From: N0zz Date: Thu, 12 Feb 2015 00:07:12 +0100 Subject: [PATCH 19/31] polish test fix --- test/test_hola.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_hola.rb b/test/test_hola.rb index ae68243..8250329 100644 --- a/test/test_hola.rb +++ b/test/test_hola.rb @@ -17,6 +17,6 @@ def test_spanish_hello end def test_polish_hello - assert_equal "witaj świecie", Hola.hi("spanish") + assert_equal "witaj świecie", Hola.hi("polish") end end From 08a95a5ee6e74ae5a0da676d29b590aa4cd552bc Mon Sep 17 00:00:00 2001 From: N0zz Date: Thu, 12 Feb 2015 00:07:55 +0100 Subject: [PATCH 20/31] utf-8 encoding for polish --- lib/hola.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hola.rb b/lib/hola.rb index 11183c3..b07421d 100644 --- a/lib/hola.rb +++ b/lib/hola.rb @@ -1,3 +1,5 @@ +# encoding: UTF-8 + class Hola def self.hi(language) translator = Translator.new(language) From aedd2b4987bdf6294f7ccdc2c579c0f0a2066d21 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 12 May 2015 15:02:03 +1000 Subject: [PATCH 21/31] Add test-unit gem for ruby 2.2 --- Gemfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index e4fbe3b..8590fd1 100644 --- a/Gemfile +++ b/Gemfile @@ -7,4 +7,7 @@ platforms :ruby_18 do # mime-types 2.0 requires Ruby version >= 1.9.2 gem "mime-types", "< 2.0" end +platforms :ruby_22 do + gem 'test-unit' +end gem "coveralls", :require => false, :group => :development From c061a27fdca85194ce955ea85399f58576b064d6 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 12 May 2015 15:13:07 +1000 Subject: [PATCH 22/31] Update version, gemspec and licence --- LICENSE.txt | 4 +--- hola.gemspec | 20 ++++++++++---------- lib/hola/version.rb | 2 +- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index 47e969a..369879e 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -7,9 +7,7 @@ Your profile and materials uploaded remain yours. However, by setting your pages to be viewed publicly, you agree to allow others to view your Content. By setting your repositories to be viewed publicly, you agree to allow others to view and fork your repositories. -Bundle supplied the following suggested license: - -Copyright (c) 2013 Nick Quaranto +Code supplied by Ian Heggie is Copyright (C) 2014 Ian Heggie under MIT LICENCE MIT License diff --git a/hola.gemspec b/hola.gemspec index 8763ab5..017ebc4 100644 --- a/hola.gemspec +++ b/hola.gemspec @@ -4,24 +4,24 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'hola/version' Gem::Specification.new do |spec| - spec.name = "hola" + spec.name = 'hola-ianh' spec.version = Hola::VERSION - spec.authors = ["Nick Quaranto"] - spec.email = %q{nick@quaran.to} - spec.description = %q{A simple hello world gem} + spec.authors = ['Nick Quaranto', 'Ian Heggie'] + spec.email = %q{nick@quaran.to ian@heggie.biz} + spec.description = %q{An expanded example of a simple hello world gem} spec.summary = %q{Hola!} - spec.homepage = %q{http://rubygems.org/gems/hola} - spec.license = "UNKNOWN" + spec.homepage = %q{http://rubygems.org/gems/hola-ianh} + spec.license = 'UNKNOWN+MIT' spec.files = `git ls-files`.split($/) spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) - spec.require_paths = ["lib"] + spec.require_paths = ['lib'] - spec.add_development_dependency "bundler", "~> 1.3" - spec.add_development_dependency "rake" + spec.add_development_dependency 'bundler', '~> 1.3' + spec.add_development_dependency 'rake' - spec.required_rubygems_version = Gem::Requirement.new(">= 0") if spec.respond_to? :required_rubygems_version= + spec.required_rubygems_version = Gem::Requirement.new('>= 0') if spec.respond_to? :required_rubygems_version= if spec.respond_to? :specification_version then spec.specification_version = 3 diff --git a/lib/hola/version.rb b/lib/hola/version.rb index 900e939..4adb40d 100644 --- a/lib/hola/version.rb +++ b/lib/hola/version.rb @@ -1,3 +1,3 @@ class Hola - VERSION = "0.0.3" + VERSION = '0.0.4' end From cdfabafac0d56e45b08d22596d861f030fb84c1f Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 12 May 2015 15:13:33 +1000 Subject: [PATCH 23/31] Update bundler to more recent version and add extra ruby versions --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index ed9e20c..1d9a2d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,11 @@ rvm: - 1.8.7 - 1.9.3 - 2.0.0 + - 2.1.6 + - 2.2.2 +before_install: + - gem update --system $RUBYGEMS_VERSION + - gem --version + - gem install bundler + - bundle --version + From 8a97263e86c1ec5a449c9b8ca0bae33dd71e43ff Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 12 May 2015 15:20:23 +1000 Subject: [PATCH 24/31] Adjusted README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ddb5e5b..940c965 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Hola -Simple “hello world” gem, with tests and code coverage +Expanded “hello world” gem, with tests and code coverage -[![Travis CI tests](https://travis-ci.org/ianheggie/hola.png)](https://travis-ci.org/ianheggie/hola) -[![Coverage Status](https://coveralls.io/repos/ianheggie/hola/badge.png)](https://coveralls.io/r/ianheggie/hola) +[![Travis CI tests](https://travis-ci.org/ianheggie/hola-ianh.png)](https://travis-ci.org/ianheggie/hola-ianh) +[![Coverage Status](https://coveralls.io/repos/ianheggie/hola-ianh/badge.png)](https://coveralls.io/r/ianheggie/hola-ianh) ## Installation From c26d2d97925a3b5a570ac43c979397335a83778d Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 12 May 2015 15:26:35 +1000 Subject: [PATCH 25/31] Removed ruby 1.8.7 because some gems no longer support it --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1d9a2d5..ceae936 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ notifications: on_success: change on_failure: always rvm: - - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.6 From 5189bb1a5750af3f939f71744737cf5027cdb457 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Fri, 8 Jul 2016 22:43:17 +1000 Subject: [PATCH 26/31] Fix json version for ruby < 2.0 --- Gemfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 8590fd1..ec59284 100644 --- a/Gemfile +++ b/Gemfile @@ -5,9 +5,13 @@ gemspec platforms :ruby_18 do # mime-types 2.0 requires Ruby version >= 1.9.2 - gem "mime-types", "< 2.0" + gem 'mime-types', '< 2.0' end -platforms :ruby_22 do +platforms :ruby_18, :ruby_19 do + # json 2.0.1 requires Ruby >= 2.0 + gem 'json', '< 2.0' +end +platforms :ruby_20 do gem 'test-unit' end -gem "coveralls", :require => false, :group => :development +gem 'coveralls', :require => false, :group => :development From 5178dbcd97d40396c1cc178841770c33291ba422 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Fri, 8 Jul 2016 23:12:21 +1000 Subject: [PATCH 27/31] Fix unit test require failing --- Gemfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index ec59284..7d33224 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,8 @@ platforms :ruby_18, :ruby_19 do # json 2.0.1 requires Ruby >= 2.0 gem 'json', '< 2.0' end -platforms :ruby_20 do +platforms :ruby_22, :ruby_23 do gem 'test-unit' + gem 'minitest' end gem 'coveralls', :require => false, :group => :development From 84e58803312ce36dc0cb7bd75a39f8e98fbe3a5b Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 30 Aug 2016 21:23:16 +1000 Subject: [PATCH 28/31] Add comment in readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 940c965..198c543 100644 --- a/README.md +++ b/README.md @@ -34,3 +34,4 @@ See http://guides.rubygems.org/make-your-own-gem/ ## Thanks Forked with thanks to qrush from https://github.com/qrush/hola. +Thanks for contributions of extra languages from various people. From 144b4407793bd06fe12c24e6107891dc73100c57 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 30 Aug 2016 21:27:07 +1000 Subject: [PATCH 29/31] Mark version --- lib/hola/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hola/version.rb b/lib/hola/version.rb index 4adb40d..e184d33 100644 --- a/lib/hola/version.rb +++ b/lib/hola/version.rb @@ -1,3 +1,3 @@ class Hola - VERSION = '0.0.4' + VERSION = '0.1.0' end From 0c72636bb1fadb6aa318dc64fc417eaa503cb722 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 30 Aug 2016 21:50:41 +1000 Subject: [PATCH 30/31] Restrict tins version for ruby 1.* compatibity --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 7d33224..e74666f 100644 --- a/Gemfile +++ b/Gemfile @@ -16,3 +16,4 @@ platforms :ruby_22, :ruby_23 do gem 'minitest' end gem 'coveralls', :require => false, :group => :development +gem 'tins', '<1.7.0' if RUBY_VERSION =~ /^1\./ From 5e32c60cf8504f82f9bcf91e72f8f34fc3cb3378 Mon Sep 17 00:00:00 2001 From: Ian Heggie Date: Tue, 30 Aug 2016 21:52:01 +1000 Subject: [PATCH 31/31] Add 2.3.1 ruby --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index ceae936..ee0c71c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ rvm: - 2.0.0 - 2.1.6 - 2.2.2 + - 2.3.1 before_install: - gem update --system $RUBYGEMS_VERSION - gem --version