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