hellobase 0.1.6 → 0.1.7

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: c814e00e57d6767849c9c27fb41458fa01e32dd833ebabc0907e0b57799ea3ac
4
- data.tar.gz: 6ea45cd68519017799bdfe22e65401746a2970c60a436361d70db514e69d67bb
3
+ metadata.gz: 304e4c01b7cf2cda1aba0913505df28995211698b290be7891e3f5f9cbc0825b
4
+ data.tar.gz: d20143c56281095365ee8ce07ad3694b9cbba20efda82c84e00fa45647f4b17d
5
5
  SHA512:
6
- metadata.gz: af434eb545c62fba36bbeadc02bd42f64ce51e1589f95688b2c59e7980fe6b4d95959a7c9fed1ace55ee291f37737d5bed304b48331119598149d98a49bd7b5d
7
- data.tar.gz: f329e56d95923a8ac6e3cfb0dc130f35215960533c00f2ba661467acdebf00662d31580178fc7199dc03d119ad848f1022bf7132e895ddf31e14c21136ba5105
6
+ metadata.gz: d8f5f6e09df8dc8529b3194d666b7cc4d085c9eb0210c7787890e0654cb30c76088869c1cfe733d41d3d0949b3a4ab509bc01cd09768a00e2a47124f7865347b
7
+ data.tar.gz: 5526a08028b78ad53985d38167a0772c277cd62e5314c39f924035783b8171c714d7ee79563d149533b687fc6e1eca7fb0076183612bd86058b9346e6ad65bd7
@@ -1,3 +1,3 @@
1
1
  module Hellobase
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
data/lib/hellobase.rb CHANGED
@@ -10,7 +10,6 @@ require 'hellobase/date_creation'
10
10
  require 'hellobase/datetime_creation'
11
11
  require 'hellobase/divide_by_zero'
12
12
  require 'hellobase/duration_arithmetic'
13
- require 'hellobase/duration_creation'
14
13
  require 'hellobase/string_access'
15
14
  require 'hellobase/time_creation'
16
15
 
@@ -18,7 +17,6 @@ module Hellobase
18
17
  DATE_FORMAT = /^\d{4}-\d{2}-\d{2}$/
19
18
  TIME_FORMAT = /^\d{2}:\d{2}:\d{2}$/
20
19
  DATETIME_FORMAT = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} UTC$/
21
- DURATION_FORMAT = /^P-?\d+Y-?\d+M-?\d+DT-?\d+H-?\d+M-?\d+S$/
22
20
 
23
21
  class Error < StandardError
24
22
  attr_reader :type, :object
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hellobase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Wang
@@ -86,7 +86,6 @@ files:
86
86
  - lib/hellobase/datetime_creation.rb
87
87
  - lib/hellobase/divide_by_zero.rb
88
88
  - lib/hellobase/duration_arithmetic.rb
89
- - lib/hellobase/duration_creation.rb
90
89
  - lib/hellobase/string_access.rb
91
90
  - lib/hellobase/time_creation.rb
92
91
  - lib/hellobase/version.rb
@@ -1,9 +0,0 @@
1
- ActiveSupport::Duration.singleton_class.prepend(
2
- Module.new do
3
- def parse(string)
4
- raise Hellobase::Error.new(:duration_format, nil, string) unless string =~ Hellobase::DURATION_FORMAT
5
-
6
- super
7
- end
8
- end
9
- )