easy_time 0.2.0 → 0.2.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: 778f54e349e3d08aa3382639092e1c82bac41c6f2251628daa15e0d916e6bfce
4
- data.tar.gz: 07f883f381d1fc7820567efeff2b686343c34b9932d3a9e8427508e1b4dc09b5
3
+ metadata.gz: 81e4762bb54961cecadb64214a5a72264145187d621bca1ed38175c4c73c1efe
4
+ data.tar.gz: d78614033f17422a6e8fad9a3127aec448e442f755f26e2587df0e22505d91d4
5
5
  SHA512:
6
- metadata.gz: e89457620f63806559c3c55ea84167eb1ebe1d8649be37cb429b8f4de90585a402b5921cc68cf6e9392fa99ad3a18d218ed2da1c954caeafcb63e0aed762f0d7
7
- data.tar.gz: 8f8a023f14f337fe43c3651b684477789f6ce16dd9616d4f8f05e8a9eac82b534dbbed56acd746350da57b932f2fedb7344ba2041f4d573211c37528fc70c7c0
6
+ metadata.gz: 9f188b204b034fbdfada4745f300e9852b433e1bcb34470d9b68f5a3cd1a3733ffb7df01286039c366669c8efd3e94db2bb80165b39687e2628109f14b19605e
7
+ data.tar.gz: 1c7d9d47438f6867515a23e9c576d8679e16ff04073ac27688655ed6ea7e6dfea959473d783e745f150cb6724ed2a44923f20f14619373c1373cba8e81c3119b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- easy_time (0.2.0)
4
+ easy_time (0.2.1)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -212,17 +212,17 @@ class EasyTime
212
212
  new(parse_string(time_string))
213
213
  end
214
214
 
215
- def method_missing(name, *args, &block)
216
- if Time.respond_to?(name)
217
- value = Time.send(name, *args, &block)
215
+ def method_missing(symbol, *args, &block)
216
+ if Time.respond_to?(symbol)
217
+ value = Time.send(symbol, *args, &block)
218
218
  is_a_time?(value) ? new(value) : value
219
219
  else
220
- super
220
+ super(symbol, *args, &block)
221
221
  end
222
222
  end
223
223
 
224
- def respond_to_missing?(name, include_all=false)
225
- Time.respond_to?(name, include_all)
224
+ def respond_to_missing?(symbol, include_all=false)
225
+ Time.respond_to?(symbol, include_all)
226
226
  end
227
227
 
228
228
  # @param value [Anything] value to test as a time-like object
@@ -381,17 +381,17 @@ class EasyTime
381
381
  end
382
382
 
383
383
  # intercept any time methods so they can wrap the time-like result in a new EasyTime object.
384
- def method_missing(name, *args, &block)
385
- if time.respond_to?(name)
386
- value = time.send(name, *args, &block)
384
+ def method_missing(symbol, *args, &block)
385
+ if time.respond_to?(symbol)
386
+ value = time.send(symbol, *args, &block)
387
387
  is_a_time?(value) ? dup.tap { |eztime| eztime.time = value } : value
388
388
  else
389
- super
389
+ super(symbol, *args, &block)
390
390
  end
391
391
  end
392
392
 
393
- def respond_to_missing?(method_name, include_all=false)
394
- time.respond_to?(name, include_all)
393
+ def respond_to_missing?(symbol, include_all=false)
394
+ time.respond_to?(symbol, include_all)
395
395
  end
396
396
 
397
397
  def is_a_time?(value)
@@ -1,3 +1,3 @@
1
1
  class EasyTime
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Stebbens