trackerific 0.4.1 → 0.4.2

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -62,6 +62,22 @@ module Trackerific
62
62
  []
63
63
  end
64
64
 
65
+ # Provides a humanized string that provides the name of the service (i.e. "FedEx")
66
+ # @return [String] the service name
67
+ # @note This defaults to using the class name.
68
+ # @example Override this method in your custom tracking service to provide a name
69
+ # module Trackerific
70
+ # class MyTrackingService < Service
71
+ # def self.service_name
72
+ # "my custom tracking service"
73
+ # end
74
+ # end
75
+ # end
76
+ # @api public
77
+ def service_name
78
+ self.to_s.split("::")[1]
79
+ end
80
+
65
81
  end
66
82
 
67
83
  end
@@ -1,8 +1,10 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  class TestServiceClass < Trackerific::Service
4
- def self.required_options
5
- [:required, :also_required]
4
+ class << self
5
+ def required_options
6
+ [:required, :also_required]
7
+ end
6
8
  end
7
9
  end
8
10
 
data/trackerific.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{trackerific}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Travis Haynes"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Haynes
@@ -236,7 +236,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
236
236
  requirements:
237
237
  - - ">="
238
238
  - !ruby/object:Gem::Version
239
- hash: -19848817
239
+ hash: -748317933
240
240
  segments:
241
241
  - 0
242
242
  version: "0"