refined-refinements 0.0.2.1 → 0.0.2.2

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: 3dd0044dbf34c5eab4573deddaf601c538a64ab55d3fd3b287287e859dde3a4e
4
- data.tar.gz: fd0aded35d7f7a3ea90dd2b9985c889d73190ccaf0827b4c63fc149431eb22b5
3
+ metadata.gz: 24817b1d2cceaa5a81ffe45fa2854a76573144cca65f61e6a1ab1b673e32bcb8
4
+ data.tar.gz: 897d02ac393760295973a82aeccb98de4cf634b802876eb7a38669dae00ec245
5
5
  SHA512:
6
- metadata.gz: bf4c63751677cf7dc2fde1210a123327d45305a9ad183c1f69d6015ab709ee02c1e41e80e38b1b0df2549721fe129d4ac9114c0e001c75bb30c4198619f84511
7
- data.tar.gz: 87a4910d3e369afa95767d3d0f7bfb1d8b853edbbf0e40c7dbd823b9aa7155333c0a3246cb751678d57e4959d193d1a775ccafda7048ae0c64615083d50b7c76
6
+ metadata.gz: 073e450489a4adba21d7520979db357645f2a07e69744f257cbb528f5e83164920b835f2ca889941536cbee48301d2f50b862aa3fe22334c28f56309f9861cfd
7
+ data.tar.gz: a56cb8671cdcd2218c7f03461671682341448afbfeca81d709b0a425e1225cfc31f5103a69a51d1fcc1e02f1f305c3b603f98e382ba52bfc52c40c678be58ccd
@@ -5,8 +5,11 @@ class Hour
5
5
  end
6
6
 
7
7
  def self.now
8
- now = Time.now
9
- self.new(now.hour, now.min)
8
+ self.from(Time.now)
9
+ end
10
+
11
+ def self.from_time(time)
12
+ self.new(time.hour, time.min)
10
13
  end
11
14
 
12
15
  attr_reader :minutes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refined-refinements
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.1
4
+ version: 0.0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James C Russell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-28 00:00:00.000000000 Z
11
+ date: 2018-01-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: "."
14
14
  email: james@101ideas.cz
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  version: '0'
51
51
  requirements: []
52
52
  rubyforge_project:
53
- rubygems_version: 2.7.3
53
+ rubygems_version: 2.7.4
54
54
  signing_key:
55
55
  specification_version: 4
56
56
  summary: ''