summaryrefslogtreecommitdiff
diff options
authorGianfranco Costamagna <locutusofborg@debian.org>2017-08-23 20:40:42 +0200
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2017-08-23 21:48:14 +0000
commit6b0f743b7d246dfb5b3105f0e1e3dacb603737d5 (patch)
tree002faea538d53cc4bf942f2a17dd5fcff18a00e6
parentadee4d2a38fd50d775c81275871c0892d08d0dfa (diff)
parentb1e4cb77934514d2107b7af3365929be53835ed2 (diff)
Imported using git-ubuntu import.
-rw-r--r--.ruby-version1
-rw-r--r--.travis.yml18
-rw-r--r--CONTRIBUTING.md18
-rw-r--r--LICENSE2
-rw-r--r--README.md48
-rw-r--r--Thorfile6
-rw-r--r--buff-ruby_engine.gemspec8
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/0001-Update-to-RSpec3-syntax.patch60
-rw-r--r--debian/patches/remove-spork2
-rw-r--r--debian/patches/series1
-rw-r--r--lib/buff/ruby_engine/version.rb2
-rw-r--r--metadata.yml211
-rw-r--r--spec/buff/ruby_engine_spec.rb12
-rw-r--r--spec/spec_helper.rb1
15 files changed, 77 insertions, 320 deletions
diff --git a/.ruby-version b/.ruby-version
deleted file mode 100644
index df28eb5..0000000
--- a/.ruby-version
+++ /dev/null
@@ -1 +0,0 @@
-1.9.3-p429
diff --git a/.travis.yml b/.travis.yml
index 7da1150..2e1cefc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,13 @@
-script: "bundle exec thor spec"
+sudo: false
language: ruby
-rvm:
- - 1.9.2
- - 1.9.3
- - 2.0.0
- - jruby-19mode
+cache: bundler
+
+matrix:
+ include:
+ - rvm: 2.2.5
+ - rvm: 2.3.1
+ - rvm: ruby-head
+ allow_failures:
+ - rvm: ruby-head
+
+script: bundle exec thor spec
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index adebe7e..7c56fb8 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -6,19 +6,27 @@
Install the latest version of [Bundler](http://gembundler.com)
- $ gem install bundler
+```
+$ gem install bundler
+```
Clone the project
- $ git clone git://github.com/RiotGames/buff-ruby_engine.git
+```
+$ git clone git://github.com/berkshelf/buff-ruby_engine.git
+```
and run:
- $ cd buff-ruby_engine
- $ bundle install
+```
+$ cd buff-ruby_engine
+$ bundle install
+```
Bundler will install all gems and their dependencies required for testing and developing.
### Running unit (RSpec) tests
- $ bundle exec guard start
+```
+$ bundle exec guard start
+```
diff --git a/LICENSE b/LICENSE
index a1af0ec..bd8b014 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
Copyright 2012-2013 Riot Games
- Jamie Winsor (<reset@riotgames.com>)
+ Jamie Winsor (<jamie@vialstudios.com>)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/README.md b/README.md
index c91222f..e8998d7 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Buff::RubyEngine
-[![Gem Version](https://badge.fury.io/rb/buff-ruby_engine.png)](http://badge.fury.io/rb/buff-ruby_engine)
-[![Build Status](https://travis-ci.org/RiotGames/buff-ruby_engine.png?branch=master)](https://travis-ci.org/RiotGames/buff-ruby_engine)
+
+[![Gem Version](https://badge.fury.io/rb/buff-ruby_engine.svg)](http://badge.fury.io/rb/buff-ruby_engine) [![Build Status](https://travis-ci.org/berkshelf/buff-ruby_engine.svg?branch=master)](https://travis-ci.org/berkshelf/buff-ruby_engine)
A mixin for querying the platform running Ruby
@@ -8,41 +8,51 @@ A mixin for querying the platform running Ruby
Add this line to your application's Gemfile:
- gem 'buff-ruby_engine'
+```ruby
+gem 'buff-ruby_engine'
+```
And then execute:
- $ bundle
+```
+$ bundle
+```
Or install it yourself as:
- $ gem install buff-ruby_engine
+```
+$ gem install buff-ruby_engine
+```
## Usage
Using it as a mixin
- require 'buff/ruby_engine'
+```ruby
+require 'buff/ruby_engine'
- class PowerUp
- include Buff::RubyEngine
- end
+class PowerUp
+ include Buff::RubyEngine
+end
- power_up = PowerUp.new
- power_up.mri? #=> true
- power_up.jruby? #=> false
- power_up.rubinius? #=> false
+power_up = PowerUp.new
+power_up.mri? #=> true
+power_up.jruby? #=> false
+power_up.rubinius? #=> false
+```
Using it as a module
- require 'buff/ruby_engine'
+```ruby
+require 'buff/ruby_engine'
- Buff::RubyEngine.mri? #=> true
- Buff::RubyEngine.jruby? #=> false
- Buff::RubyEngine.rubinius? #=> false
+Buff::RubyEngine.mri? #=> true
+Buff::RubyEngine.jruby? #=> false
+Buff::RubyEngine.rubinius? #=> false
+```
# Authors and Contributors
-* Jamie Winsor (<reset@riotgames.com>)
+- Jamie Winsor ([jamie@vialstudios.com](mailto:jamie@vialstudios.com))
-Thank you to all of our [Contributors](https://github.com/RiotGames/buff-ruby_engine/graphs/contributors), testers, and users.
+Thank you to all of our [Contributors](https://github.com/berkshelf/buff-ruby_engine/graphs/contributors), testers, and users.
diff --git a/Thorfile b/Thorfile
index 9c4a325..08b8517 100644
--- a/Thorfile
+++ b/Thorfile
@@ -16,17 +16,17 @@ class Default < Thor
desc "build", "Build buff-ruby_engine-#{Buff::RubyEngine::VERSION}.gem into the pkg directory"
def build
- Rake::Task["build"].execute
+ Rake::Task["build"].invoke
end
desc "install", "Build and install buff-ruby_engine-#{Buff::RubyEngine::VERSION}.gem into system gems"
def install
- Rake::Task["install"].execute
+ Rake::Task["install"].invoke
end
desc "release", "Create tag v#{Buff::RubyEngine::VERSION} and build and push buff-ruby_engine-#{Buff::RubyEngine::VERSION}.gem to Rubygems"
def release
- Rake::Task["release"].execute
+ Rake::Task["release"].invoke
end
end
diff --git a/buff-ruby_engine.gemspec b/buff-ruby_engine.gemspec
index f57991f..baab87b 100644
--- a/buff-ruby_engine.gemspec
+++ b/buff-ruby_engine.gemspec
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
spec.name = "buff-ruby_engine"
spec.version = Buff::RubyEngine::VERSION
spec.authors = ["Jamie Winsor"]
- spec.email = ["reset@riotgames.com"]
+ spec.email = ["jamie@vialstudios.com"]
spec.description = %q{A mixin for querying the platform running Ruby}
spec.summary = %q{Buff up your code with a mixin for querying the platform running Ruby}
spec.homepage = "https://github.com/RiotGames/buff-ruby_engine"
@@ -17,12 +17,12 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^spec/})
spec.require_paths = ["lib"]
- spec.required_ruby_version = ">= 1.9.2"
+ spec.required_ruby_version = ">= 2.2.0"
- spec.add_development_dependency "thor", "~> 0.18.0"
+ spec.add_development_dependency "thor", "~> 0.19.0"
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
- spec.add_development_dependency "rspec"
+ spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "fuubar"
spec.add_development_dependency "guard"
spec.add_development_dependency "guard-rspec"
diff --git a/debian/changelog b/debian/changelog
index 12f8bc5..18bf541 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-buff-ruby-engine (1.0.0-0ubuntu1) artful; urgency=medium
+
+ * New upstream release
+ * Remove rspec3 patch
+
+ -- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 23 Aug 2017 20:40:42 +0200
+
ruby-buff-ruby-engine (0.1.0-2) unstable; urgency=medium
* Team upload.
diff --git a/debian/patches/0001-Update-to-RSpec3-syntax.patch b/debian/patches/0001-Update-to-RSpec3-syntax.patch
deleted file mode 100644
index 08c5f3a..0000000
--- a/debian/patches/0001-Update-to-RSpec3-syntax.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From: Hleb Valoshka <375gnu@gmail.com>
-Date: Wed, 29 Jul 2015 12:00:16 +0300
-Subject: Update to RSpec3 syntax
-
----
- spec/buff/ruby_engine_spec.rb | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/spec/buff/ruby_engine_spec.rb b/spec/buff/ruby_engine_spec.rb
-index 1eba640..01f710a 100644
---- a/spec/buff/ruby_engine_spec.rb
-+++ b/spec/buff/ruby_engine_spec.rb
-@@ -7,13 +7,13 @@ describe Buff::RubyEngine do
- context "when the ruby engine is jruby" do
- before { stub_const("RUBY_ENGINE", "jruby") }
-
-- it { expect(subject).to be_true }
-+ it { expect(subject).to be_truthy }
- end
-
- context "when the ruby engine is not jruby" do
- before { stub_const("RUBY_ENGINE", "ruby") }
-
-- it { expect(subject).to be_false }
-+ it { expect(subject).to be_falsey }
- end
- end
-
-@@ -23,13 +23,13 @@ describe Buff::RubyEngine do
- context "when the ruby engine is mri" do
- before { stub_const("RUBY_ENGINE", "ruby") }
-
-- it { expect(subject).to be_true }
-+ it { expect(subject).to be_truthy }
- end
-
- context "when the ruby engine is not mri" do
- before { stub_const("RUBY_ENGINE", "jruby") }
-
-- it { expect(subject).to be_false }
-+ it { expect(subject).to be_falsey }
- end
- end
-
-@@ -39,13 +39,13 @@ describe Buff::RubyEngine do
- context "when the ruby engine is rubinius" do
- before { stub_const("RUBY_ENGINE", "rbx") }
-
-- it { expect(subject).to be_true }
-+ it { expect(subject).to be_truthy }
- end
-
- context "when the ruby engine is not rubinius" do
- before { stub_const("RUBY_ENGINE", "mri") }
-
-- it { expect(subject).to be_false }
-+ it { expect(subject).to be_falsey }
- end
- end
- end
diff --git a/debian/patches/remove-spork b/debian/patches/remove-spork
index 427fa6b..511ece0 100644
--- a/debian/patches/remove-spork
+++ b/debian/patches/remove-spork
@@ -4,7 +4,7 @@ Index: ruby-buff-ruby-engine/spec/spec_helper.rb
===================================================================
--- ruby-buff-ruby-engine.orig/spec/spec_helper.rb
+++ ruby-buff-ruby-engine/spec/spec_helper.rb
-@@ -14,7 +14,7 @@ def setup_rspec
+@@ -13,7 +13,7 @@ def setup_rspec
end
end
diff --git a/debian/patches/series b/debian/patches/series
index 3744b15..4718ae0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,2 @@
-0001-Update-to-RSpec3-syntax.patch
0002-Don-t-modify-LOAD_PATH-in-specs.patch
remove-spork
diff --git a/lib/buff/ruby_engine/version.rb b/lib/buff/ruby_engine/version.rb
index 9d5d9a1..4daa3e7 100644
--- a/lib/buff/ruby_engine/version.rb
+++ b/lib/buff/ruby_engine/version.rb
@@ -1,5 +1,5 @@
module Buff
module RubyEngine
- VERSION = "0.1.0"
+ VERSION = "1.0.0"
end
end
diff --git a/metadata.yml b/metadata.yml
deleted file mode 100644
index 8e40e4a..0000000
--- a/metadata.yml
+++ /dev/null
@@ -1,211 +0,0 @@
---- !ruby/object:Gem::Specification
-name: buff-ruby_engine
-version: !ruby/object:Gem::Version
- version: 0.1.0
- prerelease:
-platform: ruby
-authors:
-- Jamie Winsor
-autorequire:
-bindir: bin
-cert_chain: []
-date: 2013-06-11 00:00:00.000000000 Z
-dependencies:
-- !ruby/object:Gem::Dependency
- name: thor
- requirement: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ~>
- - !ruby/object:Gem::Version
- version: 0.18.0
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ~>
- - !ruby/object:Gem::Version
- version: 0.18.0
-- !ruby/object:Gem::Dependency
- name: bundler
- requirement: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ~>
- - !ruby/object:Gem::Version
- version: '1.3'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ~>
- - !ruby/object:Gem::Version
- version: '1.3'
-- !ruby/object:Gem::Dependency
- name: rake
- requirement: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: rspec
- requirement: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: fuubar
- requirement: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: guard
- requirement: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: guard-rspec
- requirement: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: guard-spork
- requirement: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: spork
- requirement: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
-description: A mixin for querying the platform running Ruby
-email:
-- reset@riotgames.com
-executables: []
-extensions: []
-extra_rdoc_files: []
-files:
-- .gitignore
-- .ruby-version
-- .travis.yml
-- CONTRIBUTING.md
-- Gemfile
-- Guardfile
-- LICENSE
-- README.md
-- Thorfile
-- buff-ruby_engine.gemspec
-- lib/buff-ruby_engine.rb
-- lib/buff/ruby_engine.rb
-- lib/buff/ruby_engine/kernel_ext.rb
-- lib/buff/ruby_engine/version.rb
-- spec/buff/ruby_engine_spec.rb
-- spec/spec_helper.rb
-homepage: https://github.com/RiotGames/buff-ruby_engine
-licenses:
-- Apache 2.0
-post_install_message:
-rdoc_options: []
-require_paths:
-- lib
-required_ruby_version: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: 1.9.2
-required_rubygems_version: !ruby/object:Gem::Requirement
- none: false
- requirements:
- - - ! '>='
- - !ruby/object:Gem::Version
- version: '0'
- segments:
- - 0
- hash: -352670113274747996
-requirements: []
-rubyforge_project:
-rubygems_version: 1.8.23
-signing_key:
-specification_version: 3
-summary: Buff up your code with a mixin for querying the platform running Ruby
-test_files:
-- spec/buff/ruby_engine_spec.rb
-- spec/spec_helper.rb
diff --git a/spec/buff/ruby_engine_spec.rb b/spec/buff/ruby_engine_spec.rb
index 01f710a..2412322 100644
--- a/spec/buff/ruby_engine_spec.rb
+++ b/spec/buff/ruby_engine_spec.rb
@@ -7,13 +7,13 @@ describe Buff::RubyEngine do
context "when the ruby engine is jruby" do
before { stub_const("RUBY_ENGINE", "jruby") }
- it { expect(subject).to be_truthy }
+ it { expect(subject).to be true }
end
context "when the ruby engine is not jruby" do
before { stub_const("RUBY_ENGINE", "ruby") }
- it { expect(subject).to be_falsey }
+ it { expect(subject).to be false }
end
end
@@ -23,13 +23,13 @@ describe Buff::RubyEngine do
context "when the ruby engine is mri" do
before { stub_const("RUBY_ENGINE", "ruby") }
- it { expect(subject).to be_truthy }
+ it { expect(subject).to be true }
end
context "when the ruby engine is not mri" do
before { stub_const("RUBY_ENGINE", "jruby") }
- it { expect(subject).to be_falsey }
+ it { expect(subject).to be false }
end
end
@@ -39,13 +39,13 @@ describe Buff::RubyEngine do
context "when the ruby engine is rubinius" do
before { stub_const("RUBY_ENGINE", "rbx") }
- it { expect(subject).to be_truthy }
+ it { expect(subject).to be true }
end
context "when the ruby engine is not rubinius" do
before { stub_const("RUBY_ENGINE", "mri") }
- it { expect(subject).to be_falsey }
+ it { expect(subject).to be false }
end
end
end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index d149c32..5587dbf 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -8,7 +8,6 @@ def setup_rspec
end
config.mock_with :rspec
- config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run focus: true
config.run_all_when_everything_filtered = true
end