Skip to content

Commit

Permalink
remove active support
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyostile committed Apr 19, 2016
1 parent c3aff7a commit 17a4d94
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 16 deletions.
13 changes: 0 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@ PATH
remote: .
specs:
camt_parser (1.0.2)
activesupport
nokogiri

GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.5.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
builder (3.2.2)
diff-lcs (1.2.5)
i18n (0.7.0)
json (1.8.3)
mini_portile2 (2.0.0)
minitest (5.8.4)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
rake (10.4.2)
Expand All @@ -39,9 +29,6 @@ GEM
rspec_junit_formatter (0.2.3)
builder (< 4)
rspec-core (>= 2, < 4, != 2.12.0)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)

PLATFORMS
ruby
Expand Down
1 change: 0 additions & 1 deletion camt_parser.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rspec_junit_formatter", "~> 0.2.2"

spec.add_runtime_dependency "nokogiri"
spec.add_runtime_dependency "activesupport"
end
1 change: 0 additions & 1 deletion lib/camt_parser.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# encoding: utf-8
require 'active_support/core_ext/object/try'
require "nokogiri"

require "time"
Expand Down
2 changes: 1 addition & 1 deletion lib/camt_parser/053/statement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def initialize(xml_data)
end

def identification
@identification ||= @xml_data.xpath('Id').first.try(:content)
@identification ||= @xml_data.xpath('Id/text()').text
end

def generation_date
Expand Down
2 changes: 2 additions & 0 deletions spec/lib/camt_parser/053/statement_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

specify { expect(ex_stmt.opening_balance).to be_kind_of(CamtParser::Format053::AccountBalance) }
specify { expect(ex_stmt.closing_balance).to be_kind_of(CamtParser::Format053::AccountBalance) }

specify { expect(ex_stmt.identification).to eq("0352C5320131227220503") }
end

0 comments on commit 17a4d94

Please sign in to comment.