Permalink
Browse files

Updates the Gem structure

  • Loading branch information...
1 parent d4c00b3 commit db138f020f3d54edeaeb6bf8b765a081bc51845b @matiaskorhonen committed Mar 27, 2013
Showing with 32 additions and 51 deletions.
  1. +1 −0 .gitignore
  2. +2 −7 Gemfile
  3. +11 −3 spec/spec_helper.rb
  4. +0 −10 test/helper.rb
  5. +0 −7 test/test_wol.rb
  6. +18 −24 wol.gemspec
View
@@ -23,6 +23,7 @@ rdoc
pkg
.bundle
*.gem
+Gemfile.lock
## PROJECT::SPECIFIC
View
@@ -1,8 +1,3 @@
-source "http://rubygems.org"
+source "https://rubygems.org"
-# Will automatically pull in this gem and all its dependencies specified in the gemspec
-gem "wol", :path => File.expand_path("..", __FILE__)
-
-# These are development dependencies
-gem "rake"
-gem "rspec", "2.0.0.beta.8"
+gemspec
View
@@ -5,6 +5,14 @@
require "rspec"
require "wol"
-Rspec.configure do |config|
-
-end
+# This file was generated by the `rspec --init` command. Conventionally, all
+# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
+# Require this file using `require "spec_helper.rb"` to ensure that it is only
+# loaded once.
+#
+# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
+RSpec.configure do |config|
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.run_all_when_everything_filtered = true
+ config.filter_run :focus
+end
View
@@ -1,10 +0,0 @@
-require 'rubygems'
-require 'test/unit'
-require 'shoulda'
-
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'wol'
-
-class Test::Unit::TestCase
-end
View
@@ -1,7 +0,0 @@
-require 'helper'
-
-class TestWol < Test::Unit::TestCase
- should "probably rename this file and start testing for real" do
- flunk "hey buddy, you should probably rename this file and start testing for real"
- end
-end
View
@@ -1,28 +1,22 @@
# -*- encoding: utf-8 -*-
+$:.unshift File.expand_path("../lib", __FILE__)
+require "wol/version"
-require File.expand_path("../lib/wol/version", __FILE__)
+Gem::Specification.new do |gem|
+ gem.authors = ["Matias Korhonen"]
+ gem.email = ["me@matiaskorhonen.fi"]
+ gem.homepage = "http://github.com/k33l0r/wol"
+ gem.summary = "Ruby Wake-On-LAN"
+ gem.description = "Send Wake-On-LAN magic packets from Ruby or from CLI"
-Gem::Specification.new do |s|
- s.name = "wol"
- s.version = Wol::VERSION
- s.platform = Gem::Platform::RUBY
- s.authors = ["Matias Korhonen"]
- s.email = ["me@matiaskorhonen.fi"]
- s.homepage = "http://wol.matiaskorhonen.fi"
- s.summary = "Ruby Wake-On-LAN"
- s.description = "Send Wake-On-LAN magic packets from Ruby or from CLI"
+ gem.name = "wol"
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.require_paths = ["lib"]
+ gem.version = Wol::VERSION
- s.required_rubygems_version = ">= 1.3.6"
-
- s.rubyforge_project = "wol"
-
- # Files that aren't .rb files
- s.files = Dir["{lib}/**/*.rb", "bin/*", "LICENSE", "COPYING", "*.rdoc"]
- s.require_path = 'lib'
-
- # If you need an executable, add it here
- s.executables = ["wol"]
-
- # If you have C extensions, uncomment this line
- # s.extensions = "ext/extconf.rb"
-end
+ gem.add_development_dependency "rake"
+ gem.add_development_dependency "bundler"
+ gem.add_development_dependency "rspec", "~> 2.9.0"
+end

0 comments on commit db138f0

Please sign in to comment.