Skip to content

Commit

Permalink
Update library to API v3 (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Hanus <ja@kamilhanus.cz>
  • Loading branch information
ollie and arthurwozniak authored Mar 22, 2024
1 parent 16f132b commit 4be8c91
Show file tree
Hide file tree
Showing 84 changed files with 2,826 additions and 907 deletions.
16 changes: 6 additions & 10 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ AllCops:
TargetRubyVersion: 3.2
SuggestExtensions: false
NewCops: disable
Exclude:
- 'Rakefile'
- 'fakturoid.gemspec'
- 'vendor/**/*'

Style/Documentation:
Enabled: false
Expand All @@ -15,11 +11,11 @@ Layout/LineLength:

Metrics/ClassLength:
Exclude:
- 'test/**/*'
- "test/**/*"

Metrics/BlockLength:
Exclude:
- 'test/**/*'
- "test/**/*"

Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Expand All @@ -35,7 +31,7 @@ Layout/TrailingWhitespace:

Style/ClassAndModuleChildren:
Exclude:
- 'test/**/*'
- "test/**/*"

Metrics/PerceivedComplexity:
Enabled: false
Expand All @@ -51,11 +47,11 @@ Metrics/CyclomaticComplexity:

Style/NegatedIf:
Exclude:
- 'lib/fakturoid/response.rb'
- "lib/fakturoid/response.rb"

Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/fakturoid/api.rb'
- "lib/fakturoid/api.rb"

Layout/EmptyLineAfterGuardClause:
Enabled: false
Expand All @@ -68,7 +64,7 @@ Style/HashSyntax:

Style/RescueStandardError:
Exclude:
- 'test/response_test.rb'
- "test/response_test.rb"

Style/TrivialAccessors:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0
3.3.0-rc1
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 1.0.0

- Implement Fakturoid API v3.
- Change interface due to OAuth 2.0. Please refer to the [README.md](README.md) for more information.

```ruby
client = Fakturoid.client
client.invoices.all
client.expenses.update(expense_id, number: "N20240201")
```

## 0.5.0

- Add support for inventory items and moves.
Expand Down
Loading

0 comments on commit 4be8c91

Please sign in to comment.