Commit 2f3e3ee
Changed files (31)
bin
exe
lib
saml
kit
cli
core_ext
spec
saml
support
bin/console
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
require 'bundler/setup'
require 'saml/kit/cli'
exe/saml-kit
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
require 'saml/kit/cli'
lib/saml/kit/cli/commands/certificate.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/cli/commands/decode.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/cli/commands/metadata.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/cli/commands/xml_digital_signature.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/cli/certificate_report.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/cli/commands.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'saml/kit/cli/commands/certificate'
require 'saml/kit/cli/commands/decode'
require 'saml/kit/cli/commands/metadata'
lib/saml/kit/cli/generate_key_pair.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/cli/report.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/cli/signature_report.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/cli/version.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/cli/yaml_registry.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
module Cli
lib/saml/kit/core_ext/assertion.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
class Assertion
lib/saml/kit/core_ext/authentication_request.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
class AuthenticationRequest
lib/saml/kit/core_ext/document.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
class Document
lib/saml/kit/core_ext/logout_request.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
class LogoutRequest
lib/saml/kit/core_ext/metadata.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
class Metadata
lib/saml/kit/core_ext/response.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
class Response
lib/saml/kit/core_ext/signature.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Saml
module Kit
class Signature
lib/saml/kit/cli.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'saml/kit'
require 'thor'
require 'yaml/store'
spec/saml/kit/cli/commands/certificate_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
RSpec.describe Saml::Kit::Cli::Commands::Certificate do
describe 'keypair' do
let(:passphrase) { 'password' }
spec/saml/kit/cli/commands/decode_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
RSpec.describe Saml::Kit::Cli::Commands::Decode do
let(:user) { User.new(SecureRandom.uuid) }
spec/saml/kit/cli/commands/metadata_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
RSpec.describe Saml::Kit::Cli::Commands::Metadata do
let(:entity_id) { 'https://saml-kit-proof.herokuapp.com/metadata' }
let(:env) { "SAMLKITRC=#{tempfile}" }
spec/saml/kit/cli/commands/xml_digital_signature_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
RSpec.describe Saml::Kit::Cli::Commands::XmlDigitalSignature do
describe '#verify' do
let(:command) { "xmldsig verify #{tempfile}" }
spec/saml/kit/cli_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
RSpec.describe Saml::Kit::Cli do
it 'has a version number' do
expect(Saml::Kit::Cli::VERSION).not_to be_nil
spec/support/shell_helpers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'English'
RSpec.shared_context 'when executing the cli' do
spec/support/user.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class User
attr_reader :id
spec/spec_helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'bundler/setup'
require 'saml/kit/cli'
require 'securerandom'
Gemfile
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
source 'https://rubygems.org'
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
saml-kit-cli.gemspec
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'saml/kit/cli/version'