to_api 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/to_api.rb +1 -1
  2. data/spec/to_api_spec.rb +1 -0
  3. metadata +3 -3
data/lib/to_api.rb CHANGED
@@ -86,7 +86,7 @@ class Symbol
86
86
  end
87
87
 
88
88
  class NilClass
89
- def to_api
89
+ def to_api(*includes)
90
90
  self
91
91
  end
92
92
  end
data/spec/to_api_spec.rb CHANGED
@@ -131,6 +131,7 @@ describe '#to_api' do
131
131
  describe nil do
132
132
  it "returns nil" do
133
133
  nil.to_api.should be_nil
134
+ nil.to_api("args","not","used").should be_nil
134
135
  end
135
136
  end
136
137
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shawn Anderson