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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdbc87bdee886f2d6c0063cb3cb4ce06bb42431508ba88ae9de7375432c642bb
4
- data.tar.gz: ca75c1bbaed366ef28c8605d6c1f80c204066cdb7dc09a2e44e4e0a08bb0b52b
3
+ metadata.gz: c535654ced1007d57fa8d9c619ae9c17e9c3feea7ff45635579af316c2d18d85
4
+ data.tar.gz: 6de601f8d1ccb5de8343a517172f91f439c84c854439914334cab6aba8905a7b
5
5
  SHA512:
6
- metadata.gz: c41b7a81996a2cde3e59b813e9d59d0494338f17f1a67319da23c9aa801c4e79459af8d62c5ac1f76796efd9168c4640e397cc25385e2bcd673ef53a931593c2
7
- data.tar.gz: b8a884d61fbe5a2b683f557de99d1c0c6514e16db2666c010e0e9a110a1c41ed0787cee151dbdf1ab939c94d19cde183c390bc4a98aa6fd5d781880fb82c910d
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
@@ -1,4 +1,4 @@
1
1
  module HaveAPI
2
2
  PROTOCOL_VERSION = '1.2'
3
- VERSION = '0.12.0'
3
+ VERSION = '0.12.1'
4
4
  end
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.0
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.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