Skip to content

Commit

Permalink
bump version to 1.0, update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoehn committed Oct 18, 2023
1 parent 4c3d10a commit c113fcf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dachsfisch (0.2.0)
dachsfisch (1.0.0)
nokogiri (>= 1.14.1, < 2.0.0)

GEM
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ The rules for converting XML documents to JSON using Badgerfish are:
- CDATA sections become properties named `#1`, `#2`, etc.

Please see our [examples](spec/support/examples.rb) for more details. Those rules are derived from [this list](http://dropbox.ashlock.us/open311/json-xml/).
Own additions:
- The order of nodes gets saved in `@@order` (JSON is unordered per definition)

## Installation

Expand Down Expand Up @@ -53,7 +55,7 @@ json = Dachsfisch::XML2JSONConverter.perform(xml: xml)
### JSON-to-XML

```ruby
json = '{ "alice": { "$" : "bob" } }'
json = '{ "alice": { "$1": "bob", "@@order": ["$1"] }, "@@order": ["alice"] }'
xml = Dachsfisch::JSON2XMLConverter.perform(json: json)
```

Expand Down
2 changes: 1 addition & 1 deletion lib/dachsfisch/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Dachsfisch
VERSION = '0.2.0'
VERSION = '1.0.0'
end

0 comments on commit c113fcf

Please sign in to comment.