frenchy 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/lib/frenchy/resource.rb +1 -1
- data/lib/frenchy/version.rb +1 -1
- data/spec/lib/frenchy/model_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 138c95435cc74894cf8df639fc13c0778cc3ac92
|
4
|
+
data.tar.gz: '09a619f4b0f0f98e0986a946ede910d61bfde470'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d87c907a2ed667b3920775aa6cfd023134a4d88faeae7261418c7821758823b078b81b3c9c7e3e4d5ea2a8a67840cab0410b5f24fd189f3d685699746989d85c
|
7
|
+
data.tar.gz: a0ada1f16dceaea56217eeec439633b428cf3a3d7ae2c0c059eae9bb907d86f9b0becfe2ab5b18998a374149e26b1e650674a2ce450d31782c4582c246311c75
|
data/.travis.yml
CHANGED
data/lib/frenchy/resource.rb
CHANGED
@@ -7,7 +7,7 @@ module Frenchy
|
|
7
7
|
module ClassMethods
|
8
8
|
# Find record(s) using the default endpoint and flexible input
|
9
9
|
def find(params={})
|
10
|
-
params = {"id" => params.to_s} if [
|
10
|
+
params = {"id" => params.to_s} if [Integer, String].any? {|c| params.is_a? c }
|
11
11
|
find_with_endpoint("default", params)
|
12
12
|
end
|
13
13
|
|
data/lib/frenchy/version.rb
CHANGED
@@ -250,7 +250,7 @@ describe Frenchy::Model do
|
|
250
250
|
expect(v.other_priority).to eql(Box::Priority::NORMAL)
|
251
251
|
end
|
252
252
|
|
253
|
-
it "accepts
|
253
|
+
it "accepts integers" do
|
254
254
|
v = Box.new(priority: 2)
|
255
255
|
expect(v.priority).to eql(Box::Priority::EXPRESS)
|
256
256
|
expect(v.priority.to_i).to eql(2)
|
@@ -307,4 +307,4 @@ describe Frenchy::Model do
|
|
307
307
|
end
|
308
308
|
end
|
309
309
|
end
|
310
|
-
end
|
310
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frenchy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Coene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
183
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.
|
184
|
+
rubygems_version: 2.6.11
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: Opinionated JSON API modeling framework for Ruby.
|