administrate-field-jsontable 0.0.3 → 0.0.4

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
- SHA1:
3
- metadata.gz: 6a678fd9007c0705d451b0023fda4768043a0b33
4
- data.tar.gz: 9ec3f39f114e1c17b1527d4e76f838245f59ccd3
2
+ SHA256:
3
+ metadata.gz: ab3b0ea1d8992850e72ee30af9bbec87272b6cd7226efa76712fbb801444d231
4
+ data.tar.gz: 95d98c8062eeba057cfb45399915641ee5e70c840e3fdf32a5e7fa15bc176941
5
5
  SHA512:
6
- metadata.gz: 29d331ee885828e5b14fc2b722426176a09a3da17e05eef7dcfae88d1caded933eeee74ec0a76c593f0059c07f7847ab111e58fc57bca875f32218d7b013e5be
7
- data.tar.gz: c0c39583055154b873b3b921662722fa86711f2dcbd5d33731ed1b075ec04dd1dbc536382fc012e5c3c344d988a94ca23ecbf154a5eff148f804e6bd13e15f23
6
+ metadata.gz: a99f21513ad06270d1ae0f49dd03173bbe04b6727a918fa4b0af8c439318bc8efd0f6211c6a51963f58ae22a7d386607de2fcb83425bf012352621673221d2e6
7
+ data.tar.gz: 0e0f8366a84a2f95913809a1c0751eab458a2cb2ab482f839543c98be8506bf99f10890bb42619586ef82a745388f645ee880907ea3f1f2b2e1c59ac39cfd9f0
@@ -1,134 +1,145 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- administrate-field-jsontable (0.0.1)
4
+ administrate-field-jsontable (0.0.4)
5
5
  administrate
6
- rails (>= 4.2, < 5.1)
6
+ rails (>= 4.2, < 6.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- actioncable (5.0.3)
12
- actionpack (= 5.0.3)
13
- nio4r (>= 1.2, < 3.0)
14
- websocket-driver (~> 0.6.1)
15
- actionmailer (5.0.3)
16
- actionpack (= 5.0.3)
17
- actionview (= 5.0.3)
18
- activejob (= 5.0.3)
11
+ actioncable (5.2.3)
12
+ actionpack (= 5.2.3)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailer (5.2.3)
16
+ actionpack (= 5.2.3)
17
+ actionview (= 5.2.3)
18
+ activejob (= 5.2.3)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.0.3)
22
- actionview (= 5.0.3)
23
- activesupport (= 5.0.3)
21
+ actionpack (5.2.3)
22
+ actionview (= 5.2.3)
23
+ activesupport (= 5.2.3)
24
24
  rack (~> 2.0)
25
- rack-test (~> 0.6.3)
25
+ rack-test (>= 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.0.3)
29
- activesupport (= 5.0.3)
28
+ actionview (5.2.3)
29
+ activesupport (= 5.2.3)
30
30
  builder (~> 3.1)
31
- erubis (~> 2.7.0)
31
+ erubi (~> 1.4)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.0.3)
35
- activesupport (= 5.0.3)
34
+ activejob (5.2.3)
35
+ activesupport (= 5.2.3)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.0.3)
38
- activesupport (= 5.0.3)
39
- activerecord (5.0.3)
40
- activemodel (= 5.0.3)
41
- activesupport (= 5.0.3)
42
- arel (~> 7.0)
43
- activesupport (5.0.3)
37
+ activemodel (5.2.3)
38
+ activesupport (= 5.2.3)
39
+ activerecord (5.2.3)
40
+ activemodel (= 5.2.3)
41
+ activesupport (= 5.2.3)
42
+ arel (>= 9.0)
43
+ activestorage (5.2.3)
44
+ actionpack (= 5.2.3)
45
+ activerecord (= 5.2.3)
46
+ marcel (~> 0.3.1)
47
+ activesupport (5.2.3)
44
48
  concurrent-ruby (~> 1.0, >= 1.0.2)
45
- i18n (~> 0.7)
49
+ i18n (>= 0.7, < 2)
46
50
  minitest (~> 5.1)
47
51
  tzinfo (~> 1.1)
48
- administrate (0.7.0)
49
- actionpack (>= 4.2, < 5.1)
50
- actionview (>= 4.2, < 5.1)
51
- activerecord (>= 4.2, < 5.1)
52
- autoprefixer-rails (~> 6.0)
52
+ administrate (0.11.0)
53
+ actionpack (>= 4.2, < 6.0)
54
+ actionview (>= 4.2, < 6.0)
55
+ activerecord (>= 4.2, < 6.0)
56
+ autoprefixer-rails (>= 6.0)
53
57
  datetime_picker_rails (~> 0.0.7)
54
58
  jquery-rails (>= 4.0)
55
59
  kaminari (>= 1.0)
56
60
  momentjs-rails (~> 2.8)
57
- normalize-rails (>= 3.0)
58
61
  sass-rails (~> 5.0)
59
62
  selectize-rails (~> 0.6)
60
- arel (7.1.4)
61
- autoprefixer-rails (6.7.7.2)
63
+ arel (9.0.0)
64
+ autoprefixer-rails (9.6.0)
62
65
  execjs
63
66
  builder (3.2.3)
64
- concurrent-ruby (1.0.5)
67
+ concurrent-ruby (1.1.5)
68
+ crass (1.0.4)
65
69
  datetime_picker_rails (0.0.7)
66
70
  momentjs-rails (>= 2.8.1)
67
71
  diff-lcs (1.3)
68
- erubis (2.7.0)
72
+ erubi (1.8.0)
69
73
  execjs (2.7.0)
70
- globalid (0.4.0)
74
+ ffi (1.11.1)
75
+ globalid (0.4.2)
71
76
  activesupport (>= 4.2.0)
72
- i18n (0.8.1)
73
- jquery-rails (4.3.1)
77
+ i18n (1.6.0)
78
+ concurrent-ruby (~> 1.0)
79
+ jquery-rails (4.3.5)
74
80
  rails-dom-testing (>= 1, < 3)
75
81
  railties (>= 4.2.0)
76
82
  thor (>= 0.14, < 2.0)
77
- kaminari (1.0.1)
83
+ kaminari (1.1.1)
78
84
  activesupport (>= 4.1.0)
79
- kaminari-actionview (= 1.0.1)
80
- kaminari-activerecord (= 1.0.1)
81
- kaminari-core (= 1.0.1)
82
- kaminari-actionview (1.0.1)
85
+ kaminari-actionview (= 1.1.1)
86
+ kaminari-activerecord (= 1.1.1)
87
+ kaminari-core (= 1.1.1)
88
+ kaminari-actionview (1.1.1)
83
89
  actionview
84
- kaminari-core (= 1.0.1)
85
- kaminari-activerecord (1.0.1)
90
+ kaminari-core (= 1.1.1)
91
+ kaminari-activerecord (1.1.1)
86
92
  activerecord
87
- kaminari-core (= 1.0.1)
88
- kaminari-core (1.0.1)
89
- loofah (2.0.3)
93
+ kaminari-core (= 1.1.1)
94
+ kaminari-core (1.1.1)
95
+ loofah (2.2.3)
96
+ crass (~> 1.0.2)
90
97
  nokogiri (>= 1.5.9)
91
- mail (2.6.5)
92
- mime-types (>= 1.16, < 4)
93
- method_source (0.8.2)
94
- mime-types (3.1)
95
- mime-types-data (~> 3.2015)
96
- mime-types-data (3.2016.0521)
97
- mini_portile2 (2.1.0)
98
- minitest (5.10.2)
99
- momentjs-rails (2.17.1)
98
+ mail (2.7.1)
99
+ mini_mime (>= 0.1.1)
100
+ marcel (0.3.3)
101
+ mimemagic (~> 0.3.2)
102
+ method_source (0.9.2)
103
+ mimemagic (0.3.3)
104
+ mini_mime (1.0.1)
105
+ mini_portile2 (2.4.0)
106
+ minitest (5.11.3)
107
+ momentjs-rails (2.20.1)
100
108
  railties (>= 3.1)
101
- nio4r (2.0.0)
102
- nokogiri (1.7.2)
103
- mini_portile2 (~> 2.1.0)
104
- normalize-rails (4.1.1)
105
- rack (2.0.3)
106
- rack-test (0.6.3)
107
- rack (>= 1.0)
108
- rails (5.0.3)
109
- actioncable (= 5.0.3)
110
- actionmailer (= 5.0.3)
111
- actionpack (= 5.0.3)
112
- actionview (= 5.0.3)
113
- activejob (= 5.0.3)
114
- activemodel (= 5.0.3)
115
- activerecord (= 5.0.3)
116
- activesupport (= 5.0.3)
117
- bundler (>= 1.3.0, < 2.0)
118
- railties (= 5.0.3)
109
+ nio4r (2.3.1)
110
+ nokogiri (1.10.3)
111
+ mini_portile2 (~> 2.4.0)
112
+ rack (2.0.7)
113
+ rack-test (1.1.0)
114
+ rack (>= 1.0, < 3)
115
+ rails (5.2.3)
116
+ actioncable (= 5.2.3)
117
+ actionmailer (= 5.2.3)
118
+ actionpack (= 5.2.3)
119
+ actionview (= 5.2.3)
120
+ activejob (= 5.2.3)
121
+ activemodel (= 5.2.3)
122
+ activerecord (= 5.2.3)
123
+ activestorage (= 5.2.3)
124
+ activesupport (= 5.2.3)
125
+ bundler (>= 1.3.0)
126
+ railties (= 5.2.3)
119
127
  sprockets-rails (>= 2.0.0)
120
128
  rails-dom-testing (2.0.3)
121
129
  activesupport (>= 4.2.0)
122
130
  nokogiri (>= 1.6)
123
- rails-html-sanitizer (1.0.3)
124
- loofah (~> 2.0)
125
- railties (5.0.3)
126
- actionpack (= 5.0.3)
127
- activesupport (= 5.0.3)
131
+ rails-html-sanitizer (1.0.4)
132
+ loofah (~> 2.2, >= 2.2.2)
133
+ railties (5.2.3)
134
+ actionpack (= 5.2.3)
135
+ activesupport (= 5.2.3)
128
136
  method_source
129
137
  rake (>= 0.8.7)
130
- thor (>= 0.18.1, < 2.0)
131
- rake (12.0.0)
138
+ thor (>= 0.19.0, < 2.0)
139
+ rake (12.3.2)
140
+ rb-fsevent (0.10.3)
141
+ rb-inotify (0.10.0)
142
+ ffi (~> 1.0)
132
143
  rspec-core (3.5.4)
133
144
  rspec-support (~> 3.5.0)
134
145
  rspec-expectations (3.5.0)
@@ -146,29 +157,33 @@ GEM
146
157
  rspec-mocks (~> 3.5.0)
147
158
  rspec-support (~> 3.5.0)
148
159
  rspec-support (3.5.0)
149
- sass (3.4.24)
150
- sass-rails (5.0.6)
160
+ sass (3.7.4)
161
+ sass-listen (~> 4.0.0)
162
+ sass-listen (4.0.0)
163
+ rb-fsevent (~> 0.9, >= 0.9.4)
164
+ rb-inotify (~> 0.9, >= 0.9.7)
165
+ sass-rails (5.0.7)
151
166
  railties (>= 4.0.0, < 6)
152
167
  sass (~> 3.1)
153
168
  sprockets (>= 2.8, < 4.0)
154
169
  sprockets-rails (>= 2.0, < 4.0)
155
170
  tilt (>= 1.1, < 3)
156
- selectize-rails (0.12.4)
157
- sprockets (3.7.1)
171
+ selectize-rails (0.12.6)
172
+ sprockets (3.7.2)
158
173
  concurrent-ruby (~> 1.0)
159
174
  rack (> 1, < 3)
160
- sprockets-rails (3.2.0)
175
+ sprockets-rails (3.2.1)
161
176
  actionpack (>= 4.0)
162
177
  activesupport (>= 4.0)
163
178
  sprockets (>= 3.0.0)
164
- thor (0.19.4)
179
+ thor (0.20.3)
165
180
  thread_safe (0.3.6)
166
- tilt (2.0.7)
167
- tzinfo (1.2.3)
181
+ tilt (2.0.9)
182
+ tzinfo (1.2.5)
168
183
  thread_safe (~> 0.1)
169
- websocket-driver (0.6.5)
184
+ websocket-driver (0.7.1)
170
185
  websocket-extensions (>= 0.1.0)
171
- websocket-extensions (0.1.2)
186
+ websocket-extensions (0.1.4)
172
187
 
173
188
  PLATFORMS
174
189
  ruby
@@ -178,4 +193,4 @@ DEPENDENCIES
178
193
  rspec-rails (~> 3.5.0)
179
194
 
180
195
  BUNDLED WITH
181
- 1.14.6
196
+ 1.17.2
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 DisruptiveAngels
3
+ Copyright (c) 2019 Valiot
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,33 +1,14 @@
1
1
  # Administrate::Field::Jsontable
2
2
 
3
- A plugin to show JSON to table attributes in [Administrate].
3
+ A plugin to display the values of a JSON into a table. If the JSON has no data
4
+ of a field it will display a "-". This gem only displays 1 or 2 rows.
4
5
 
5
- This repository is the first field plugin extracted out of Administrate.
6
- Although its structure may change,
7
- it's designed to act as a template for other Administrate field plugins.
6
+ ![JsonTable](https://user-images.githubusercontent.com/7603314/29417081-9fa39038-832d-11e7-9189-b1baaccd8ec6.png)
8
7
 
9
- ## FAQs
8
+ This repository is a field plugin for Administrate.
10
9
 
11
- **Q: How should I name my gem?**
10
+ ## Installation
12
11
 
13
- A: Administrate field gems must be named according to the [Rubygems naming guidelines].
14
-
15
- Essentially, name your gem after the field class that it defines.
16
- If there's a namespace in the class name, that gets translated to a dash (`-`) in the gem name.
17
- If the class name is CamelCased, that translates to an underscore (`_`) in the gem name.
18
-
19
- Since all administrate field gems are under the namespace `Administrate::Field`,
20
- every field gem name should start with the prefix `administrate-field-`.
21
-
22
- Here are some examples (these don't correspond to actual gems):
23
-
24
- | Gem Name | Field Name |
25
- |----------------------------|------------------------------|
26
- | `administrate-field-enum` | `Administrate::Field::Enum` |
27
- | `administrate-field-file_upload` | `Administrate::Field::FileUpload` |
28
- | `administrate-field-geocoding-region` | `Administrate::Field::Geocoding::Region` |
29
- | `administrate-field-geocoding-geo_json` | `Administrate::Field::Geocoding::GeoJson` |
30
-
31
- [Rubygems naming guidelines]: http://guides.rubygems.org/name-your-gem/
12
+ Add to your gemfile `gem 'administrate-field-jsontable'`
32
13
 
33
14
  [Administrate]: https://github.com/thoughtbot/administrate
@@ -2,10 +2,10 @@ $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'administrate-field-jsontable'
5
- s.version = '0.0.3'
6
- s.authors = ['Enrique Barragan', 'Esteban Arocha']
7
- s.email = ['enrique@disruptiveangels.com','esteban@disruptiveangels.com']
8
- s.homepage = 'https://github.com/DisruptiveAngels/administrate-field-jsontable'
5
+ s.version = '0.0.4'
6
+ s.authors = ['Adrian Rangel', 'Enrique Barragan']
7
+ s.email = ['adrian@valiot.io', 'enrique@valiot.io']
8
+ s.homepage = 'https://github.com/Valiot/administrate-field-jsontable'
9
9
  s.summary = 'JSON to table field plugin for Administrate'
10
10
  s.description = s.summary
11
11
  s.license = 'MIT'
@@ -15,5 +15,5 @@ Gem::Specification.new do |s|
15
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
16
 
17
17
  s.add_dependency 'administrate'
18
- s.add_dependency 'rails', '>= 4.2', '< 5.2'
18
+ s.add_dependency 'rails', '>= 4.2', '< 6.0'
19
19
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-jsontable
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
+ - Adrian Rangel
7
8
  - Enrique Barragan
8
- - Esteban Arocha
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-25 00:00:00.000000000 Z
12
+ date: 2019-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: administrate
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '4.2'
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: '5.2'
37
+ version: '6.0'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,11 +44,11 @@ dependencies:
44
44
  version: '4.2'
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.2'
47
+ version: '6.0'
48
48
  description: JSON to table field plugin for Administrate
49
49
  email:
50
- - enrique@disruptiveangels.com
51
- - esteban@disruptiveangels.com
50
+ - adrian@valiot.io
51
+ - enrique@valiot.io
52
52
  executables: []
53
53
  extensions: []
54
54
  extra_rdoc_files: []
@@ -62,7 +62,7 @@ files:
62
62
  - app/views/fields/jsontable/_show.html.erb
63
63
  - lib/administrate/field/jsontable.rb
64
64
  - spec/lib/administrate/field/jsontable_spec.rb
65
- homepage: https://github.com/DisruptiveAngels/administrate-field-jsontable
65
+ homepage: https://github.com/Valiot/administrate-field-jsontable
66
66
  licenses:
67
67
  - MIT
68
68
  metadata: {}
@@ -81,8 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubyforge_project:
85
- rubygems_version: 2.6.12
84
+ rubygems_version: 3.0.3
86
85
  signing_key:
87
86
  specification_version: 4
88
87
  summary: JSON to table field plugin for Administrate