stapeluberlauf 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 54382d58bda064e906f460acc85dcb69cd170a9e
4
- data.tar.gz: 0536c70cda40779c6afad7d5c641ae31f0275513
3
+ metadata.gz: b1997f10335e27c20e27e53f55b3e6044bfa7b42
4
+ data.tar.gz: 3edcf0a4244b436410a7fc08bf108f0248e4a4cf
5
5
  SHA512:
6
- metadata.gz: 56b7cf3260c7f15a00800e3f620a0bb3c3b588cedb813f3659d27ebd5450b6fad8650688e4140dc1f8e04d62649ce9cef84ba128146013a882107fee4f225a96
7
- data.tar.gz: 809ea489f06cc2edf5e5d05461d3977e6464877012e55458c39cdc77a4cbdb1da2c646e792f37b4495f95a3ac2971bc23f819fd82a9f50681c8aa385bf76c4fd
6
+ metadata.gz: d1a00ea8bd11c8481841a677725c4c9d8a50ff50584ec0e293c315adda815143b4966328fcf6e01e06cc756782326b44a7f147e05a10a517b6524c60a58ebba7
7
+ data.tar.gz: a02cbb7aae37274730500328d44b3c8c43bfa58f84cb5cbc87cf7a9f7fc96e35a0d8fd5b4edeb3f827f163a9c7845a9c96d5bdeac6cf3bc643975878c4a474f1
@@ -64,7 +64,7 @@ module Stapeluberlauf
64
64
  base_request.instance_variables.each do |var|
65
65
  value = base_request.instance_variable_get(var)
66
66
  method_sym = "#{var.to_s[1..-1]}="
67
- instance.send(method_sym, value.is_a?(Fixnum) ? value : value.dup)
67
+ instance.send(method_sym, value.frozen? ? value : value.dup)
68
68
  end
69
69
  end
70
70
  end
@@ -81,8 +81,8 @@ module Stapeluberlauf
81
81
  #
82
82
  def created(after: nil, before: nil)
83
83
  @params.merge!({
84
- fromdate: from != nil ? before.to_time.to_i : nil,
85
- todate: to != nil ? after.to_time.to_i : nil,
84
+ fromdate: after && after.to_time.to_i,
85
+ todate: before && before.to_time.to_i,
86
86
  })
87
87
  self
88
88
  end
@@ -1,3 +1,3 @@
1
1
  module Stapeluberlauf
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stapeluberlauf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Rackwitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-23 00:00:00.000000000 Z
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday