From 4dade665c19420c4e9f585ef927eb34b9bee602c Mon Sep 17 00:00:00 2001 From: wata727 Date: Wed, 23 Jun 2021 10:41:15 +0900 Subject: [PATCH] Drop Active Support dependency --- Gemfile.lock | 23 +++++------------------ kiji.gemspec | 1 - lib/kiji/access.rb | 3 --- spec/kiji/access_spec.rb | 4 ++-- 4 files changed, 7 insertions(+), 24 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index b750a35..934ab66 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,25 +2,17 @@ PATH remote: . specs: kiji (0.2.2) - activesupport (>= 5.2) faraday nokogiri GEM remote: https://rubygems.org/ specs: - activesupport (6.0.1) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2) addressable (2.7.0) public_suffix (>= 2.0.2, < 5.0) ast (2.4.0) byebug (11.0.1) coderay (1.1.2) - concurrent-ruby (1.1.5) crack (0.4.5) rexml diff-lcs (1.3) @@ -62,20 +54,18 @@ GEM guard (~> 2.0) rubocop (~> 0.20) hashdiff (1.0.1) - i18n (1.7.0) - concurrent-ruby (~> 1.0) jaro_winkler (1.5.4) listen (3.4.1) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) lumberjack (1.0.13) method_source (0.9.2) - mini_portile2 (2.4.0) - minitest (5.14.3) + mini_portile2 (2.5.3) multipart-post (2.1.1) nenv (0.3.0) - nokogiri (1.10.8) - mini_portile2 (~> 2.4.0) + nokogiri (1.11.7) + mini_portile2 (~> 2.5.0) + racc (~> 1.4) notiffany (0.1.3) nenv (~> 0.1) shellany (~> 0.0) @@ -89,6 +79,7 @@ GEM byebug (~> 11.0) pry (~> 0.10) public_suffix (4.0.6) + racc (1.5.2) rainbow (3.0.0) rake (13.0.1) rb-fsevent (0.10.4) @@ -120,16 +111,12 @@ GEM rubyzip (2.0.0) shellany (0.0.1) thor (0.20.3) - thread_safe (0.3.6) - tzinfo (1.2.5) - thread_safe (~> 0.1) unicode-display_width (1.6.0) vcr (6.0.0) webmock (3.11.2) addressable (>= 2.3.6) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) - zeitwerk (2.2.2) PLATFORMS ruby diff --git a/kiji.gemspec b/kiji.gemspec index e1e5956..248b069 100644 --- a/kiji.gemspec +++ b/kiji.gemspec @@ -35,7 +35,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'webmock' # spec.add_runtime_dependency 'signer' - spec.add_runtime_dependency 'activesupport', '>= 5.2' spec.add_runtime_dependency 'faraday' spec.add_runtime_dependency 'nokogiri' end diff --git a/lib/kiji/access.rb b/lib/kiji/access.rb index 78d5baa..5de509c 100644 --- a/lib/kiji/access.rb +++ b/lib/kiji/access.rb @@ -1,6 +1,3 @@ -require 'active_support' -require 'active_support/core_ext/object' - module Kiji module Access def apply(file_name, file_data) diff --git a/spec/kiji/access_spec.rb b/spec/kiji/access_spec.rb index c3a366e..b3a85a7 100644 --- a/spec/kiji/access_spec.rb +++ b/spec/kiji/access_spec.rb @@ -51,7 +51,7 @@ create_zip('9990000000000008', ['torisageshinsei.xml']) send_number = '201504281051005638' - if send_number.blank? + unless send_number # 取下げ申請可能な手続き(900A010000004000)の申請 file_name = "#{procedure_id}.zip" file_data = Base64.encode64(File.new("#{@temp_dir}/#{file_name}").read) @@ -68,7 +68,7 @@ end arrive_id = '9002015000246820' - if arrive_id.present? + if arrive_id let(:expected_status_code) { 202 } let(:response) do # 取下げ申請データを Base64 エンコード