pigeon_hole 0.0.3 → 0.0.4

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: badf7d36df8cf48970fff51efb54113da72cfa73
4
- data.tar.gz: 1a25ea2d30cfd39078f9251557c5f65493d49364
3
+ metadata.gz: 7d0a69693e1ef17c571cae616b9f398a7abe2d57
4
+ data.tar.gz: 04c290bc512015a4322189249d7e725f2092ab39
5
5
  SHA512:
6
- metadata.gz: eaadcbb4a7f6c1fcb209f092d1aa22d58fad433d9cfe927d6ac55034006ae8e4ef23b10eb05ef358160b26a9781b81d68b02687d8fc04b7265a4b0ee8c3a9a0c
7
- data.tar.gz: c350244edb364077f23ade4f1a49deeb7e0ab744ba9da321616aeefc54d82b548e31683f5d87b8e6f8dc64da8438138eca31f7d1ef1ee9c9bb750550609af20e
6
+ metadata.gz: bdcbfca77cc2becdb833776e0b54da4c9c291571c08abadd65783f99a2da3cc0842f454d858b0c068be7f7f0e92868269e82d90d60a94be51925fdd8cd7e0f4d
7
+ data.tar.gz: 208b79c5a0b4b6b7b8cff757e3ebbb68d0a51655dea6f18a0621bd0f65adbb70a1eed216b103c467f23403f12a8423c8d590f3d9f1e71987ef46a6292ddc9d1b
data/lib/pigeon_hole.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  module PigeonHole
2
2
  require_relative 'pigeon_hole/typed_json'
3
3
  require_relative 'pigeon_hole/json_date'
4
- require_relative 'pigeon_hole/json_date_time'
5
4
  require_relative 'pigeon_hole/json_symbol'
6
5
  require_relative 'pigeon_hole/json_time'
7
6
 
@@ -11,8 +11,6 @@ module PigeonHole
11
11
  case obj
12
12
  when Time
13
13
  JSONTime.new(obj)
14
- when DateTime
15
- JSONDateTime.new(obj)
16
14
  when Date
17
15
  JSONDate.new(obj)
18
16
  when Symbol
@@ -36,25 +36,6 @@ describe "serializing times" do
36
36
  end
37
37
  end
38
38
 
39
- describe "serializing datetimes" do
40
- let(:date_time) { random_date_time }
41
-
42
- subject { PigeonHole.generate(date_time: date_time) }
43
-
44
- it "serializes hash into a string" do
45
- result = subject
46
- expect(result).to_not be_empty
47
- end
48
-
49
- it "can be deserialized to a date_time" do
50
- result = subject
51
- hash = PigeonHole.parse(result)
52
- expect(hash["date_time"]).to be_a(DateTime)
53
- expect(hash["date_time"].to_date).to eq(date_time.to_date)
54
- expect(hash["date_time"].to_time.to_i).to eq(date_time.to_time.to_i)
55
- end
56
- end
57
-
58
39
  describe "serializing symbols" do
59
40
  let(:symbol) { :a_symbol }
60
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pigeon_hole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Binns