From caea0de29b1a6593dcd1ccd97e0dbdb30af33140 Mon Sep 17 00:00:00 2001 From: yonetani Date: Fri, 7 May 2021 17:39:39 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=82=A9=E3=83=AB=E3=83=80=E3=81=AE?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- bin/console | 2 +- lib/sp/rails/saml.rb | 11 ----------- lib/sp/rails/saml/hello.rb | 11 ----------- lib/sp/rails/saml/version.rb | 7 ------- lib/sp_rails_saml.rb | 5 +++++ lib/sp_rails_saml/version.rb | 3 +++ sp-rails-saml.gemspec | 4 ++-- spec/sp/rails/saml_spec.rb | 9 --------- spec/sp_rails_saml/saml_spec.rb | 5 +++++ spec/spec_helper.rb | 2 +- 11 files changed, 19 insertions(+), 44 deletions(-) delete mode 100644 lib/sp/rails/saml.rb delete mode 100644 lib/sp/rails/saml/hello.rb delete mode 100644 lib/sp/rails/saml/version.rb create mode 100644 lib/sp_rails_saml.rb create mode 100644 lib/sp_rails_saml/version.rb delete mode 100644 spec/sp/rails/saml_spec.rb create mode 100644 spec/sp_rails_saml/saml_spec.rb diff --git a/README.md b/README.md index 5e4fd8b..7a72843 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Sp::Rails::Saml +# SpRailsSaml -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/sp/rails/saml`. To experiment with that code, run `bin/console` for an interactive prompt. +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/sp_rails_saml`. To experiment with that code, run `bin/console` for an interactive prompt. TODO: Delete this and the text above, and describe your gem diff --git a/bin/console b/bin/console index 2404810..acb178c 100755 --- a/bin/console +++ b/bin/console @@ -1,7 +1,7 @@ #!/usr/bin/env ruby require "bundler/setup" -require "sp/rails/saml" +require "sp_rails_saml" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. diff --git a/lib/sp/rails/saml.rb b/lib/sp/rails/saml.rb deleted file mode 100644 index 8ee2181..0000000 --- a/lib/sp/rails/saml.rb +++ /dev/null @@ -1,11 +0,0 @@ -require "sp/rails/saml/version" -require "sp/rails/saml/hello" - -module Sp - module Rails - module Saml - class Error < StandardError; end - # Your code goes here... - end - end -end diff --git a/lib/sp/rails/saml/hello.rb b/lib/sp/rails/saml/hello.rb deleted file mode 100644 index fc9a5c6..0000000 --- a/lib/sp/rails/saml/hello.rb +++ /dev/null @@ -1,11 +0,0 @@ -module Sp - module Rails - module Saml - class Greet - def self.say(word) - word + ', hello.' - end - end - end - end -end diff --git a/lib/sp/rails/saml/version.rb b/lib/sp/rails/saml/version.rb deleted file mode 100644 index a9e0716..0000000 --- a/lib/sp/rails/saml/version.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Sp - module Rails - module Saml - VERSION = "0.1.0" - end - end -end diff --git a/lib/sp_rails_saml.rb b/lib/sp_rails_saml.rb new file mode 100644 index 0000000..4924872 --- /dev/null +++ b/lib/sp_rails_saml.rb @@ -0,0 +1,5 @@ +require "sp_rails_saml/version" + +module SpRailsSaml + class Error < StandardError; end +end diff --git a/lib/sp_rails_saml/version.rb b/lib/sp_rails_saml/version.rb new file mode 100644 index 0000000..def9cb1 --- /dev/null +++ b/lib/sp_rails_saml/version.rb @@ -0,0 +1,3 @@ +module SpRailsSaml + VERSION = "0.1.0" +end diff --git a/sp-rails-saml.gemspec b/sp-rails-saml.gemspec index 4cb297b..4792b70 100644 --- a/sp-rails-saml.gemspec +++ b/sp-rails-saml.gemspec @@ -1,8 +1,8 @@ -require_relative 'lib/sp/rails/saml/version' +require_relative 'lib/sp_rails_saml/version' Gem::Specification.new do |spec| spec.name = "sp-rails-saml" - spec.version = Sp::Rails::Saml::VERSION + spec.version = SpRailsSaml::VERSION spec.authors = ["psyashes"] spec.email = ["43512814+psyashes@users.noreply.github.com"] diff --git a/spec/sp/rails/saml_spec.rb b/spec/sp/rails/saml_spec.rb deleted file mode 100644 index 38bef1a..0000000 --- a/spec/sp/rails/saml_spec.rb +++ /dev/null @@ -1,9 +0,0 @@ -RSpec.describe Sp::Rails::Saml do - it "has a version number" do - expect(Sp::Rails::Saml::VERSION).not_to be nil - end - - it "return greeting message" do - expect(Sp::Rails::Saml::Greet.say("Eren")).to eq("Eren, hello.") - end -end diff --git a/spec/sp_rails_saml/saml_spec.rb b/spec/sp_rails_saml/saml_spec.rb new file mode 100644 index 0000000..8beaa44 --- /dev/null +++ b/spec/sp_rails_saml/saml_spec.rb @@ -0,0 +1,5 @@ +RSpec.describe SpRailsSaml do + it "has a version number" do + expect(SpRailsSaml::VERSION).not_to be nil + end +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 020d227..2122666 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,5 @@ require "bundler/setup" -require "sp/rails/saml" +require "sp_rails_saml" RSpec.configure do |config| # Enable flags like --only-failures and --next-failure