Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging updated repository version from asseinfo #115

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.3.2
bundler-cache: true

- run: bundle exec rspec
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store
*.gem
pkg
Gemfile.lock
Gemfile.lock
.tool-versions
bin
84 changes: 62 additions & 22 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,42 +1,82 @@
PATH
remote: .
specs:
ofx (0.3.3)
nokogiri (~> 1.13.1)
ofx (0.4.1)
bigdecimal (= 3.1.8)
nkf (= 0.2.0)
nokogiri (>= 1.14.5)

GEM
remote: https://rubygems.org/
specs:
bigdecimal (3.1.8)
byebug (11.1.3)
diff-lcs (1.5.0)
mini_portile2 (2.8.0)
nokogiri (1.13.8)
coderay (1.1.3)
diff-lcs (1.5.1)
ffi (1.17.0)
formatador (1.1.0)
guard (2.18.1)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.13.0)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-rspec (4.7.3)
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
lumberjack (1.2.10)
method_source (1.1.0)
mini_portile2 (2.8.7)
nenv (0.3.0)
nkf (0.2.0)
nokogiri (1.14.5)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
racc (1.6.0)
rake (13.0.6)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
racc (1.8.1)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.1)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
shellany (0.0.1)
thor (1.3.2)

PLATFORMS
ruby

DEPENDENCIES
byebug (~> 11.1.3)
byebug (= 11.1.3)
guard (= 2.18.1)
guard-rspec (= 4.7.3)
ofx!
rake (~> 13.0.6)
rspec (~> 3.10)
rake (= 13.2.1)
rspec (= 3.13.0)

BUNDLED WITH
1.16.4
2.5.5
14 changes: 14 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
guard :rspec, cmd: "bundle exec rspec" do
require "guard/rspec/dsl"
dsl = Guard::RSpec::Dsl.new(self)

# RSpec files
rspec = dsl.rspec
watch(rspec.spec_helper) { rspec.spec_dir }
watch(rspec.spec_support) { rspec.spec_dir }
watch(rspec.spec_files)

# Ruby files
ruby = dsl.ruby
dsl.watch_spec_files_for(ruby.lib_files)
end
70 changes: 70 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# OFX

[![Gem Version](https://badge.fury.io/rb/ofx.svg)](https://badge.fury.io/rb/ofx)
[![Build Status](https://github.com/annacruz/ofx/actions/workflows/config.yml/badge.svg)](https://github.com/annacruz/ofx/actions)

A simple OFX (Open Financial Exchange) parser built on top of Nokogiri. Currently supports both OFX 1.0.2 and 2.1.1.

## Usage

```ruby
require "ofx"

OFX("file.ofx") do
p account
p account.balance
p account.transactions
end
```

Invalid files will raise an OFX::UnsupportedFileError.


## Deploy

### New version

1. New version at `lib/ofx/version.rb`;
2. Execute `$ bundle`;
3. Commit and push to Github;

### Release at Github

1. Create a [new release on Github](https://github.com/asseinfo/ofx/releases/new)
1. Fill the **the new tag**. Ex.: v4.0.1
1. Target `master`
1. Fill the **Release title**. Ex.: 4.0.1 (March 3, 2020)
1. Click at **Generate release notes**
1. Click at **Publish release**

[Reference here](https://help.github.com/en/github/administering-a-repository/managing-releases-in-a-repository)

## Creator

* Nando Vieira - http://simplesideias.com.br

## Maintainer

* Anna Cruz - http://anna-cruz.com

## License

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
51 changes: 0 additions & 51 deletions README.rdoc

This file was deleted.

7 changes: 1 addition & 6 deletions lib/ofx/version.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
module OFX
module Version
MAJOR = 0
MINOR = 3
PATCH = 3
STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
end
VERSION = '0.4.1'.freeze
end
14 changes: 9 additions & 5 deletions ofx.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'ofx/version'

Gem::Specification.new do |s|
s.name = 'ofx'
s.version = OFX::Version::STRING
s.version = OFX::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Nando Vieira', 'Anna Cruz']
s.email = ['[email protected]', '[email protected]']
Expand All @@ -24,8 +24,12 @@ Gem::Specification.new do |s|
s.require_paths = ['lib']
s.licenses = ['MIT']

s.add_dependency 'nokogiri', '~> 1.13.1'
s.add_development_dependency 'byebug', '~> 11.1.3'
s.add_development_dependency 'rake', '~> 13.0.6'
s.add_development_dependency 'rspec', '~> 3.10'
s.add_dependency 'nokogiri', '>= 1.14.5'
s.add_dependency 'nkf', '0.2.0'
s.add_dependency 'bigdecimal', '3.1.8'
s.add_development_dependency 'byebug', '11.1.3'
s.add_development_dependency 'rake', '13.2.1'
s.add_development_dependency 'rspec', '3.13.0'
s.add_development_dependency 'guard', '2.18.1'
s.add_development_dependency 'guard-rspec', '4.7.3'
end
Loading