reviewed 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/reviewed/base.rb CHANGED
@@ -2,6 +2,7 @@ require 'active_model'
2
2
 
3
3
  module Reviewed
4
4
  class Base
5
+
5
6
  include ::Reviewed::Embeddable
6
7
 
7
8
  extend ::ActiveModel::Naming
@@ -0,0 +1,12 @@
1
+ ActiveSupport::Inflector.inflections do |inflect|
2
+ inflect.plural 'hero', 'heroes'
3
+ inflect.singular 'heroes', 'hero'
4
+ end
5
+
6
+ module Reviewed
7
+ class Hero < Base
8
+ def to_s
9
+ "\#<#{self.class.name}:#{self.object_id}>"
10
+ end
11
+ end
12
+ end
@@ -1,4 +1,4 @@
1
1
  module Reviewed
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  API_VERSION = 'v1'
4
4
  end
data/lib/reviewed.rb CHANGED
@@ -22,6 +22,7 @@ require 'reviewed/award'
22
22
  require 'reviewed/brand'
23
23
  require 'reviewed/product'
24
24
  require 'reviewed/deal'
25
+ require 'reviewed/hero'
25
26
  require 'reviewed/article'
26
27
  require 'reviewed/author'
27
28
  require 'reviewed/page'
data/reviewed.gemspec CHANGED
@@ -1,5 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
2
  require File.expand_path('../lib/reviewed/version', __FILE__)
4
3
 
5
4
  Gem::Specification.new do |gem|
@@ -13,6 +12,7 @@ Gem::Specification.new do |gem|
13
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
14
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
14
  gem.name = "reviewed"
15
+ gem.require_paths = ["lib"]
16
16
  gem.version = Reviewed::VERSION
17
17
 
18
18
  gem.add_dependency 'activesupport', '>= 3.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-03 00:00:00.000000000 Z
13
+ date: 2013-06-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -232,6 +232,7 @@ files:
232
232
  - lib/reviewed/collection.rb
233
233
  - lib/reviewed/deal.rb
234
234
  - lib/reviewed/embeddable.rb
235
+ - lib/reviewed/hero.rb
235
236
  - lib/reviewed/manufacturer_spec.rb
236
237
  - lib/reviewed/page.rb
237
238
  - lib/reviewed/product.rb