ero_getter 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.3
data/ero_getter.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ero_getter"
8
- s.version = "1.3.2"
8
+ s.version = "1.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["masarakki"]
12
- s.date = "2012-06-28"
12
+ s.date = "2012-06-30"
13
13
  s.description = "ero getter"
14
14
  s.email = "masaki@hisme.net"
15
15
  s.extra_rdoc_files = [
@@ -92,6 +92,9 @@ class EroGetter::Base
92
92
  define_method(:name) do
93
93
  site_name
94
94
  end
95
+ define_singleton_method(:site_name) do
96
+ site_name
97
+ end
95
98
  end
96
99
 
97
100
  def url(regex)
@@ -23,6 +23,10 @@ describe EroGetter::Base do
23
23
  end
24
24
  @klazz.stub(:to_s).and_return('TestClass')
25
25
  end
26
+ describe :class_methods do
27
+ subject { @klazz }
28
+ its(:site_name) { should == 'NijiEro BBS' }
29
+ end
26
30
 
27
31
  describe "assign url_mapping" do
28
32
  it { EroGetter.url_mapping.should have_key regex }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ero_getter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-28 00:00:00.000000000 Z
12
+ date: 2012-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  segments:
200
200
  - 0
201
- hash: 3376061946197028478
201
+ hash: 7215353134268151
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  none: false
204
204
  requirements: