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

[release] 1.2.0 🎉 #72

Merged
merged 3 commits into from
May 3, 2019
Merged

[release] 1.2.0 🎉 #72

merged 3 commits into from
May 3, 2019

Conversation

eonu
Copy link
Owner

@eonu eonu commented May 3, 2019

Major changes

  • Adds serialization support through the following methods (#63):
    • to_h: Serialize into a Ruby hash (with symbol keys). Accepts a boolean argument, representing whether or not to deep-serialize nested Author and Category objects (defaults to false).
    • as_json: Serialize into a Ruby hash which is also a valid JSON hash.
    • to_json: Serialize into a valid JSON string.
  • Remove version filter from query ID list. (#69)

    Previously, all of the following would return the latest paper, 1807.06918v2:

    Arx.get('1807.06918').version #=> 2
    Arx.get('1807.06918v1').version #=> 2
    Arx.get('1807.06918v2').version #=> 2
  • Adds ATTRIBUTES constant for Paper, Author and Category entities, as a list of which attributes are available for the entity. (#63)
  • Remove key-word arguments from Paper#id and Paper#url. (#70)

    Previously, Paper#id and Paper#url accepted a version key-word argument, which was a boolean variable indicating whether or not to include the version number in the ID or URL.

    This has now been changed to a regular argument, which still defaults to false.

    paper = Arx.get('cond-mat/9609089')
    
    # Old (no longer works)
    paper.id(version: true)
    paper.url(version: true)
    
    # New
    paper.id(true) #=> "cond-mat/9609089v1"
    paper.url(true) #=> "http://arxiv.org/abs/cond-mat/9609089v1"
  • Add equality operator (==) to entities. (#68)

Minor changes

  • Add more category mappings to CATEGORIES. (#71)
  • Add licensing information to README.md under the Acknowledgements section. (#66)
  • Add yard development dependency for documentation. (#65)
  • Make documentation spacing uniform. (#64)
  • Coveralls:
    • coveralls [= 0.8.22 to = 0.8.23] (#62)
    • thor [~> 0.19.4 to ~> 0.20.3] (#67)

@eonu eonu merged commit 9cb930c into master May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant