haveapi 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/haveapi/parameters/typed.rb +12 -0
- data/lib/haveapi/version.rb +1 -1
- data/shell.nix +20 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c535654ced1007d57fa8d9c619ae9c17e9c3feea7ff45635579af316c2d18d85
|
4
|
+
data.tar.gz: 6de601f8d1ccb5de8343a517172f91f439c84c854439914334cab6aba8905a7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f06faee46f829bc5c6facba8587317f3db4a08d293ed0981a3cabb9c521e877e886a90038f552974e14305333d18d5d7e4a21e31812c272f524eb871b102f67d
|
7
|
+
data.tar.gz: 1876ae96a3979b8e34f4e3c582450f73c3573431ba671ef0964e866214e7d59e74e7e2ecc15e8a42a4925c89f2c9be730749f16d87dc0a6c9c6536b7c1823970
|
@@ -113,6 +113,18 @@ module HaveAPI::Parameters
|
|
113
113
|
if @type == ::Datetime && v.is_a?(Time)
|
114
114
|
v.iso8601
|
115
115
|
|
116
|
+
elsif @type == Boolean
|
117
|
+
v ? true : false
|
118
|
+
|
119
|
+
elsif @type == Integer
|
120
|
+
v.to_i
|
121
|
+
|
122
|
+
elsif @type == Float
|
123
|
+
v.to_f
|
124
|
+
|
125
|
+
elsif @type == String
|
126
|
+
v.to_s
|
127
|
+
|
116
128
|
else
|
117
129
|
v
|
118
130
|
end
|
data/lib/haveapi/version.rb
CHANGED
data/shell.nix
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
let
|
2
|
+
pkgs = import <nixpkgs> {};
|
3
|
+
stdenv = pkgs.stdenv;
|
4
|
+
|
5
|
+
in stdenv.mkDerivation rec {
|
6
|
+
name = "haveapi";
|
7
|
+
|
8
|
+
buildInputs = with pkgs;[
|
9
|
+
ruby
|
10
|
+
git
|
11
|
+
openssl
|
12
|
+
];
|
13
|
+
|
14
|
+
shellHook = ''
|
15
|
+
export GEM_HOME=$(pwd)/../../.gems
|
16
|
+
export PATH="$GEM_HOME/.gems/bin:$PATH"
|
17
|
+
gem install bundler
|
18
|
+
bundle install
|
19
|
+
'';
|
20
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haveapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Skokan
|
@@ -265,6 +265,7 @@ files:
|
|
265
265
|
- lib/haveapi/views/main_layout.erb
|
266
266
|
- lib/haveapi/views/version_page.erb
|
267
267
|
- lib/haveapi/views/version_sidebar.erb
|
268
|
+
- shell.nix
|
268
269
|
- spec/action/dsl_spec.rb
|
269
270
|
- spec/authorization_spec.rb
|
270
271
|
- spec/common_spec.rb
|
@@ -304,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
304
305
|
version: '0'
|
305
306
|
requirements: []
|
306
307
|
rubyforge_project:
|
307
|
-
rubygems_version: 2.7.
|
308
|
+
rubygems_version: 2.7.6.2
|
308
309
|
signing_key:
|
309
310
|
specification_version: 4
|
310
311
|
summary: Framework for creating self-describing APIs
|