Skip to content

Commit

Permalink
Fix Gem Version indicator in README; Bump version to 0.1.1
Browse files Browse the repository at this point in the history
Use .svg version of Gem Version badge.

Also, require "ostruct" by default in the console. This makes it
easier to test examples from README.
  • Loading branch information
pdobb committed Apr 14, 2018
1 parent b475afe commit 0d9750b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 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:
object_identifier (0.1.0)
object_identifier (0.1.1)

GEM
remote: https://rubygems.org/
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Object Identifier

[![Gem Version](https://badge.fury.io/rb/object_identifier.png)](http://badge.fury.io/rb/object_identifier)
[![Gem Version](https://badge.fury.io/rb/object_identifier.svg)](https://badge.fury.io/rb/object_identifier)
[![Build Status](https://travis-ci.org/pdobb/object_identifier.svg?branch=master)](https://travis-ci.org/pdobb/object_identifier)
[![Test Coverage](https://api.codeclimate.com/v1/badges/0b737a72d16ec755c1ff/test_coverage)](https://codeclimate.com/github/pdobb/object_identifier/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/0b737a72d16ec755c1ff/maintainability)](https://codeclimate.com/github/pdobb/object_identifier/maintainability)

Object Identifier allows quick, easy, and uniform identification of an object by inspecting its class name and outputting any desirable attributes/methods. It is great for quickly logging, sending descriptive notification messages, etc.
Object Identifier allows quick, easy, and uniform identification of an object by inspecting its class name and outputting any desirable attributes/methods. It is great for logging, sending descriptive notification messages, etc.

For example:

Expand All @@ -16,7 +16,7 @@ some_object.identify(:id, :name)
Which is the same as:

```ruby
"#{some_object.class.name}[id:#{some_object.id}, name:'#{some_object.name}']"
"#{some_object.class.name}[id:#{some_object.id}, name:\"#{some_object.name}\"]"
```


Expand Down
1 change: 1 addition & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require "bundler/setup"
require "object_identifier"
require "ostruct"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Expand Down
2 changes: 1 addition & 1 deletion lib/object_identifier/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ObjectIdentifier
VERSION = "0.1.0"
VERSION = "0.1.1"
end
2 changes: 1 addition & 1 deletion object_identifier.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
spec.email = ["paul.dobbins@icloud.com"]

spec.summary = %q{ObjectIdentifier identifies an object by its class name and attributes.}
spec.description = %q{Object Identifier allows quick, easy, and uniform identification of an object by inspecting its class name and outputting any desirable attributes/methods. It is great for quickly logging, sending descriptive notification messages, etc.}
spec.description = %q{Object Identifier allows quick, easy, and uniform identification of an object by inspecting its class name and outputting any desirable attributes/methods. It is great for logging, sending descriptive notification messages, etc.}
spec.homepage = "https://github.com/pdobb/object_identifier"
spec.license = "MIT"

Expand Down

0 comments on commit 0d9750b

Please sign in to comment.