Skip to content

Commit

Permalink
Merge pull request #109 from railslove/bug/download-data-for-CDZ-type
Browse files Browse the repository at this point in the history
Adapt CDZ client function to download data, not upload it
  • Loading branch information
tobischo committed Jul 16, 2022
2 parents 649750b + c1e8c1b commit 06f7e63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 27 deletions.
19 changes: 0 additions & 19 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,3 @@ blocks:
- bundle install
- cache store
- bundle exec rspec
- name: "jruby-9.2.0.0"
commands:
- checkout
- sem-version ruby jruby-9.2.0.0
- cache restore
- gem install bundler
- bundle install
- cache store
- bundle exec rspec
- name: "jruby-9.3.0.0"
commands:
- checkout
- sem-version ruby jruby-9.3.0.0
- cache restore
- gem install bundler
- bundle install
- cache store
- bundle exec rspec

8 changes: 4 additions & 4 deletions epics.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ Gem::Specification.new do |spec|
spec.post_install_message += "Please create an issue on github (railslove/epics) if anything does not work as expected. And contact team@railslove.com if you are looking for support with your integration.\n"
spec.post_install_message += "\e[32m" + ('*' * 60) + "\n\e[0m"

spec.add_dependency 'faraday', '>= 1.0.0'
spec.add_dependency 'nokogiri', '>= 1.10.7'
spec.add_dependency 'rubyzip', '>= 2.2.0'
spec.add_dependency 'faraday', '>= 1.10.0'
spec.add_dependency 'nokogiri', '>= 1.13.6'
spec.add_dependency 'rubyzip', '>= 2.3.2'

spec.add_development_dependency 'bundler', '>= 1.6.2'
spec.add_development_dependency 'bundler', '>= 1.17.3'
spec.add_development_dependency 'equivalent-xml'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'rake', '~> 13.0'
Expand Down
8 changes: 4 additions & 4 deletions lib/epics/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ def XDS(document)
upload(Epics::XDS, document)
end

def CDZ(document)
upload(Epics::CDZ, document)
end

def CCT(document)
upload(Epics::CCT, document)
end
Expand All @@ -167,6 +163,10 @@ def VMK(from = nil, to = nil)
download(Epics::VMK, from, to)
end

def CDZ(from, to)
download_and_unzip(Epics::CDZ, from, to)
end

def C52(from, to)
download_and_unzip(Epics::C52, from, to)
end
Expand Down

0 comments on commit 06f7e63

Please sign in to comment.