json-pie 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bedce91be54603fef3199e786dcf0a788a2b7d6b3681a8b7930fccb9d72fbf5
4
- data.tar.gz: 65e7ad0412287ce4ca5996e2866db9de91a4488d26bd92c039d830371db7bd06
3
+ metadata.gz: 04d3235140b1e5fa044a6eb3fed537982d37cfd4b48442dbaab75eedcd64c607
4
+ data.tar.gz: 3f1e7eb4c84e025b2473c0135ccba9d3a923857e72690e009d3881ad27c8cf3a
5
5
  SHA512:
6
- metadata.gz: 1b087ae7f01aab0dbb2378d8e05c83f71e4ab001dea546b6d4e75b34c48ca6547f87da5fd07a524c9698a3f47d393e443ea7e8e9decf9eb689fff262cdd0971f
7
- data.tar.gz: 4133435d3337cb72d1779fb42614d3370533414452ef98a0880440453289158cd57aa8fb78bc8c93197fb9d7f0903d52ac2b6174e1c87808513f94389f8b1886
6
+ metadata.gz: 8f0a828af23abb1b87c7e3c0d572a4772670771b953bf321782f73de8592756279aeea9fe8bc042a661a2591a005a15884def9ac9ea64e50af2fdb0f82b5ca65
7
+ data.tar.gz: b55ee8335191378b3de70085ccf0d4f0a76652acc2736b7e258f9a5f300fa57566fc89987547dc79144b0dc4173dd4e0503c0a0ca90bf19fb59531989d269720
data/Gemfile.lock CHANGED
@@ -1,73 +1,73 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- json-pie (0.0.4)
4
+ json-pie (0.0.5)
5
5
  rails (<= 7.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (7.0.2.3)
11
- actionpack (= 7.0.2.3)
12
- activesupport (= 7.0.2.3)
10
+ actioncable (7.0.3)
11
+ actionpack (= 7.0.3)
12
+ activesupport (= 7.0.3)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailbox (7.0.2.3)
16
- actionpack (= 7.0.2.3)
17
- activejob (= 7.0.2.3)
18
- activerecord (= 7.0.2.3)
19
- activestorage (= 7.0.2.3)
20
- activesupport (= 7.0.2.3)
15
+ actionmailbox (7.0.3)
16
+ actionpack (= 7.0.3)
17
+ activejob (= 7.0.3)
18
+ activerecord (= 7.0.3)
19
+ activestorage (= 7.0.3)
20
+ activesupport (= 7.0.3)
21
21
  mail (>= 2.7.1)
22
22
  net-imap
23
23
  net-pop
24
24
  net-smtp
25
- actionmailer (7.0.2.3)
26
- actionpack (= 7.0.2.3)
27
- actionview (= 7.0.2.3)
28
- activejob (= 7.0.2.3)
29
- activesupport (= 7.0.2.3)
25
+ actionmailer (7.0.3)
26
+ actionpack (= 7.0.3)
27
+ actionview (= 7.0.3)
28
+ activejob (= 7.0.3)
29
+ activesupport (= 7.0.3)
30
30
  mail (~> 2.5, >= 2.5.4)
31
31
  net-imap
32
32
  net-pop
33
33
  net-smtp
34
34
  rails-dom-testing (~> 2.0)
35
- actionpack (7.0.2.3)
36
- actionview (= 7.0.2.3)
37
- activesupport (= 7.0.2.3)
35
+ actionpack (7.0.3)
36
+ actionview (= 7.0.3)
37
+ activesupport (= 7.0.3)
38
38
  rack (~> 2.0, >= 2.2.0)
39
39
  rack-test (>= 0.6.3)
40
40
  rails-dom-testing (~> 2.0)
41
41
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
- actiontext (7.0.2.3)
43
- actionpack (= 7.0.2.3)
44
- activerecord (= 7.0.2.3)
45
- activestorage (= 7.0.2.3)
46
- activesupport (= 7.0.2.3)
42
+ actiontext (7.0.3)
43
+ actionpack (= 7.0.3)
44
+ activerecord (= 7.0.3)
45
+ activestorage (= 7.0.3)
46
+ activesupport (= 7.0.3)
47
47
  globalid (>= 0.6.0)
48
48
  nokogiri (>= 1.8.5)
49
- actionview (7.0.2.3)
50
- activesupport (= 7.0.2.3)
49
+ actionview (7.0.3)
50
+ activesupport (= 7.0.3)
51
51
  builder (~> 3.1)
52
52
  erubi (~> 1.4)
53
53
  rails-dom-testing (~> 2.0)
54
54
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
- activejob (7.0.2.3)
56
- activesupport (= 7.0.2.3)
55
+ activejob (7.0.3)
56
+ activesupport (= 7.0.3)
57
57
  globalid (>= 0.3.6)
58
- activemodel (7.0.2.3)
59
- activesupport (= 7.0.2.3)
60
- activerecord (7.0.2.3)
61
- activemodel (= 7.0.2.3)
62
- activesupport (= 7.0.2.3)
63
- activestorage (7.0.2.3)
64
- actionpack (= 7.0.2.3)
65
- activejob (= 7.0.2.3)
66
- activerecord (= 7.0.2.3)
67
- activesupport (= 7.0.2.3)
58
+ activemodel (7.0.3)
59
+ activesupport (= 7.0.3)
60
+ activerecord (7.0.3)
61
+ activemodel (= 7.0.3)
62
+ activesupport (= 7.0.3)
63
+ activestorage (7.0.3)
64
+ actionpack (= 7.0.3)
65
+ activejob (= 7.0.3)
66
+ activerecord (= 7.0.3)
67
+ activesupport (= 7.0.3)
68
68
  marcel (~> 1.0)
69
69
  mini_mime (>= 1.1.0)
70
- activesupport (7.0.2.3)
70
+ activesupport (7.0.3)
71
71
  concurrent-ruby (~> 1.0, >= 1.0.2)
72
72
  i18n (>= 1.6, < 2)
73
73
  minitest (>= 5.1)
@@ -75,7 +75,7 @@ GEM
75
75
  ast (2.4.2)
76
76
  builder (3.2.4)
77
77
  coderay (1.1.3)
78
- concurrent-ruby (1.1.9)
78
+ concurrent-ruby (1.1.10)
79
79
  crass (1.0.6)
80
80
  diff-lcs (1.5.0)
81
81
  digest (3.1.0)
@@ -100,11 +100,10 @@ GEM
100
100
  rspec (>= 2.99.0, < 4.0)
101
101
  i18n (1.10.0)
102
102
  concurrent-ruby (~> 1.0)
103
- io-wait (0.2.1)
104
103
  listen (3.7.1)
105
104
  rb-fsevent (~> 0.10, >= 0.10.3)
106
105
  rb-inotify (~> 0.9, >= 0.9.10)
107
- loofah (2.14.0)
106
+ loofah (2.18.0)
108
107
  crass (~> 1.0.2)
109
108
  nokogiri (>= 1.5.9)
110
109
  lumberjack (1.2.8)
@@ -124,15 +123,14 @@ GEM
124
123
  digest
125
124
  net-protocol
126
125
  timeout
127
- net-protocol (0.1.2)
128
- io-wait
126
+ net-protocol (0.1.3)
129
127
  timeout
130
128
  net-smtp (0.3.1)
131
129
  digest
132
130
  net-protocol
133
131
  timeout
134
132
  nio4r (2.5.8)
135
- nokogiri (1.13.3)
133
+ nokogiri (1.13.6)
136
134
  mini_portile2 (~> 2.8.0)
137
135
  racc (~> 1.4)
138
136
  notiffany (0.1.3)
@@ -148,28 +146,28 @@ GEM
148
146
  rack (2.2.3)
149
147
  rack-test (1.1.0)
150
148
  rack (>= 1.0, < 3)
151
- rails (7.0.2.3)
152
- actioncable (= 7.0.2.3)
153
- actionmailbox (= 7.0.2.3)
154
- actionmailer (= 7.0.2.3)
155
- actionpack (= 7.0.2.3)
156
- actiontext (= 7.0.2.3)
157
- actionview (= 7.0.2.3)
158
- activejob (= 7.0.2.3)
159
- activemodel (= 7.0.2.3)
160
- activerecord (= 7.0.2.3)
161
- activestorage (= 7.0.2.3)
162
- activesupport (= 7.0.2.3)
149
+ rails (7.0.3)
150
+ actioncable (= 7.0.3)
151
+ actionmailbox (= 7.0.3)
152
+ actionmailer (= 7.0.3)
153
+ actionpack (= 7.0.3)
154
+ actiontext (= 7.0.3)
155
+ actionview (= 7.0.3)
156
+ activejob (= 7.0.3)
157
+ activemodel (= 7.0.3)
158
+ activerecord (= 7.0.3)
159
+ activestorage (= 7.0.3)
160
+ activesupport (= 7.0.3)
163
161
  bundler (>= 1.15.0)
164
- railties (= 7.0.2.3)
162
+ railties (= 7.0.3)
165
163
  rails-dom-testing (2.0.3)
166
164
  activesupport (>= 4.2.0)
167
165
  nokogiri (>= 1.6)
168
166
  rails-html-sanitizer (1.4.2)
169
167
  loofah (~> 2.3)
170
- railties (7.0.2.3)
171
- actionpack (= 7.0.2.3)
172
- activesupport (= 7.0.2.3)
168
+ railties (7.0.3)
169
+ actionpack (= 7.0.3)
170
+ activesupport (= 7.0.3)
173
171
  method_source
174
172
  rake (>= 12.2)
175
173
  thor (~> 1.0)
@@ -215,7 +213,7 @@ GEM
215
213
  ruby-progressbar (1.11.0)
216
214
  shellany (0.0.1)
217
215
  sqlite3 (1.4.2)
218
- strscan (3.0.1)
216
+ strscan (3.0.3)
219
217
  thor (1.2.1)
220
218
  timeout (0.2.0)
221
219
  tzinfo (2.0.4)
@@ -23,6 +23,8 @@ module JSON
23
23
  when Array then parse_as_array
24
24
  else parse_as_object
25
25
  end
26
+ rescue StandardError => error
27
+ raise JSON::Pie::MalformattedDataObject, "malformmated data structure"
26
28
  end
27
29
 
28
30
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module JSON
4
4
  module Pie
5
- VERSION = "0.0.5"
5
+ VERSION = "0.0.6"
6
6
  end
7
7
  end
data/lib/json/pie.rb CHANGED
@@ -9,6 +9,7 @@ module JSON
9
9
  MissingType = Class.new Error
10
10
  InvalidType = Class.new Error
11
11
  InvalidAttribute = Class.new Error
12
+ MalformattedDataObject = Class.new Error
12
13
 
13
14
  module_function
14
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-pie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Kampp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2022-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails