geo_scaffold 0.1.0 → 0.1.2
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 +4 -4
- data/CODE_OF_CONDUCT.md +67 -23
- data/Gemfile.lock +55 -0
- data/README.md +23 -5
- data/geo_scaffold_demo.gif +0 -0
- data/lib/generators/geo_scaffold/controller_generator.rb +6 -1
- data/lib/generators/geo_scaffold/templates/helpers/helper.rb +7 -0
- data/lib/generators/geo_scaffold/templates/views/_form.html.erb +17 -18
- data/lib/generators/geo_scaffold/templates/views/index.html.erb +1 -25
- data/lib/generators/geo_scaffold/templates/views/index.json.jbuilder +12 -0
- data/lib/generators/geo_scaffold/templates/views/show.html.erb +8 -0
- data/lib/geo_scaffold/version.rb +1 -1
- metadata +14 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79af904e67bbb7df082dd34d5b41c3ed63675404242b4d065b10eb3689385398
|
4
|
+
data.tar.gz: 9aaa8a8c1c569a859e3081c664385c92abc84a0655bb2767a5497c8f4e1e83b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf499763ac20ce1c5d51129b716d6beb177cedd452516049735713a34ed31064b295dc330275fa137aa6a51371df8f54a24a83d82f1c56ba2d23275b1c63103b
|
7
|
+
data.tar.gz: 92ae4a8f89aa098d16359ffbd14a6bec758b4eb832b7bde97b24c8a366575b3b1f51d54c67b77f682ebdfe64d3d50e8c9be2a94f1236718b468bf757ba96e663
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -2,19 +2,28 @@
|
|
2
2
|
|
3
3
|
## Our Pledge
|
4
4
|
|
5
|
-
We as members, contributors, and leaders pledge to make participation in our
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity
|
10
|
+
and orientation.
|
6
11
|
|
7
|
-
We pledge to act and interact in ways that contribute to an open, welcoming,
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
13
|
+
diverse, inclusive, and healthy community.
|
8
14
|
|
9
15
|
## Our Standards
|
10
16
|
|
11
|
-
Examples of behavior that contributes to a positive environment for our
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
18
|
+
community include:
|
12
19
|
|
13
20
|
* Demonstrating empathy and kindness toward other people
|
14
21
|
* Being respectful of differing opinions, viewpoints, and experiences
|
15
22
|
* Giving and gracefully accepting constructive feedback
|
16
|
-
* Accepting responsibility and apologizing to those affected by our mistakes,
|
17
|
-
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
24
|
+
and learning from the experience
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the
|
26
|
+
overall community
|
18
27
|
|
19
28
|
Examples of unacceptable behavior include:
|
20
29
|
|
@@ -29,56 +38,91 @@ Examples of unacceptable behavior include:
|
|
29
38
|
|
30
39
|
## Enforcement Responsibilities
|
31
40
|
|
32
|
-
Community leaders are responsible for clarifying and enforcing our standards of
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
44
|
+
or harmful.
|
33
45
|
|
34
|
-
Community leaders have the right and responsibility to remove, edit, or reject
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
49
|
+
decisions when appropriate.
|
35
50
|
|
36
51
|
## Scope
|
37
52
|
|
38
|
-
This Code of Conduct applies within all community spaces, and also applies when
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
54
|
+
an individual is officially representing the community in public spaces.
|
55
|
+
Examples of representing our community include using an official e-mail address,
|
56
|
+
posting via an official social media account, or acting as an appointed
|
57
|
+
representative at an online or offline event.
|
39
58
|
|
40
59
|
## Enforcement
|
41
60
|
|
42
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
62
|
+
reported to the community leaders responsible for enforcement at
|
63
|
+
webmaster@champierre.com.
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
43
65
|
|
44
|
-
All community leaders are obligated to respect the privacy and security of the
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
67
|
+
reporter of any incident.
|
45
68
|
|
46
69
|
## Enforcement Guidelines
|
47
70
|
|
48
|
-
Community leaders will follow these Community Impact Guidelines in determining
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
49
73
|
|
50
74
|
### 1. Correction
|
51
75
|
|
52
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
77
|
+
unprofessional or unwelcome in the community.
|
53
78
|
|
54
|
-
**Consequence**: A private, written warning from community leaders, providing
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
55
82
|
|
56
83
|
### 2. Warning
|
57
84
|
|
58
|
-
**Community Impact**: A violation through a single incident or series
|
85
|
+
**Community Impact**: A violation through a single incident or series
|
86
|
+
of actions.
|
59
87
|
|
60
|
-
**Consequence**: A warning with consequences for continued behavior. No
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
92
|
+
like social media. Violating these terms may lead to a temporary or
|
93
|
+
permanent ban.
|
61
94
|
|
62
95
|
### 3. Temporary Ban
|
63
96
|
|
64
|
-
**Community Impact**: A serious violation of community standards, including
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
98
|
+
sustained inappropriate behavior.
|
65
99
|
|
66
|
-
**Consequence**: A temporary ban from any sort of interaction or public
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
101
|
+
communication with the community for a specified period of time. No public or
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
104
|
+
Violating these terms may lead to a permanent ban.
|
67
105
|
|
68
106
|
### 4. Permanent Ban
|
69
107
|
|
70
|
-
**Community Impact**: Demonstrating a pattern of violation of community
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
71
111
|
|
72
|
-
**Consequence**: A permanent ban from any sort of public interaction within
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
113
|
+
the community.
|
73
114
|
|
74
115
|
## Attribution
|
75
116
|
|
76
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
77
|
-
available at
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
118
|
+
version 2.0, available at
|
119
|
+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
120
|
|
79
|
-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
121
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
122
|
+
enforcement ladder](https://github.com/mozilla/diversity).
|
80
123
|
|
81
124
|
[homepage]: https://www.contributor-covenant.org
|
82
125
|
|
83
126
|
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
-
https://www.contributor-covenant.org/faq. Translations are available at
|
127
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
128
|
+
https://www.contributor-covenant.org/translations.
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
geo_scaffold (0.1.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.2)
|
10
|
+
diff-lcs (1.5.0)
|
11
|
+
parallel (1.21.0)
|
12
|
+
parser (3.0.3.2)
|
13
|
+
ast (~> 2.4.1)
|
14
|
+
rainbow (3.0.0)
|
15
|
+
rake (13.0.6)
|
16
|
+
regexp_parser (2.2.0)
|
17
|
+
rexml (3.2.5)
|
18
|
+
rspec (3.10.0)
|
19
|
+
rspec-core (~> 3.10.0)
|
20
|
+
rspec-expectations (~> 3.10.0)
|
21
|
+
rspec-mocks (~> 3.10.0)
|
22
|
+
rspec-core (3.10.1)
|
23
|
+
rspec-support (~> 3.10.0)
|
24
|
+
rspec-expectations (3.10.1)
|
25
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
+
rspec-support (~> 3.10.0)
|
27
|
+
rspec-mocks (3.10.2)
|
28
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
+
rspec-support (~> 3.10.0)
|
30
|
+
rspec-support (3.10.3)
|
31
|
+
rubocop (1.24.1)
|
32
|
+
parallel (~> 1.10)
|
33
|
+
parser (>= 3.0.0.0)
|
34
|
+
rainbow (>= 2.2.2, < 4.0)
|
35
|
+
regexp_parser (>= 1.8, < 3.0)
|
36
|
+
rexml
|
37
|
+
rubocop-ast (>= 1.15.1, < 2.0)
|
38
|
+
ruby-progressbar (~> 1.7)
|
39
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
40
|
+
rubocop-ast (1.15.1)
|
41
|
+
parser (>= 3.0.1.1)
|
42
|
+
ruby-progressbar (1.11.0)
|
43
|
+
unicode-display_width (2.1.0)
|
44
|
+
|
45
|
+
PLATFORMS
|
46
|
+
ruby
|
47
|
+
|
48
|
+
DEPENDENCIES
|
49
|
+
geo_scaffold!
|
50
|
+
rake (~> 13.0)
|
51
|
+
rspec (~> 3.0)
|
52
|
+
rubocop (~> 1.21)
|
53
|
+
|
54
|
+
BUNDLED WITH
|
55
|
+
2.0.1
|
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# GeoScaffold
|
2
2
|
|
3
|
-
|
3
|
+
GeoScaffold generates views with [Geolonia Maps](https://geolonia.com/maps-dev/) for a new resource that has coordinates(lat and lng).
|
4
4
|
|
5
|
-
|
5
|
+
Geolonia Maps can be freely used without API key on [development environments](https://docs.geolonia.com/tutorial/002/#%E9%96%8B%E7%99%BA%E7%92%B0%E5%A2%83%E3%81%A7%E3%81%AE%E5%88%A9%E7%94%A8%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6) such as localhost, CodePen and JSFiddle etc.
|
6
|
+
|
7
|
+

|
6
8
|
|
7
9
|
## Installation
|
8
10
|
|
@@ -22,7 +24,23 @@ Or install it yourself as:
|
|
22
24
|
|
23
25
|
## Usage
|
24
26
|
|
25
|
-
|
27
|
+
Generate a model for a new resource that has coordinates.
|
28
|
+
|
29
|
+
```
|
30
|
+
% bin/rails g model <resource name> name:string lng:float lat:float
|
31
|
+
```
|
32
|
+
|
33
|
+
Run the migration.
|
34
|
+
|
35
|
+
```
|
36
|
+
% bin/rails db:migrate
|
37
|
+
```
|
38
|
+
|
39
|
+
Use GeoScaffold generator to create controllers and views.
|
40
|
+
|
41
|
+
```
|
42
|
+
% bin/rails g geo_scaffold:controller <resource name>
|
43
|
+
```
|
26
44
|
|
27
45
|
## Development
|
28
46
|
|
@@ -32,7 +50,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
50
|
|
33
51
|
## Contributing
|
34
52
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
53
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/champierre/geo_scaffold. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/champierre/geo_scaffold/blob/master/CODE_OF_CONDUCT.md).
|
36
54
|
|
37
55
|
## License
|
38
56
|
|
@@ -40,4 +58,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
40
58
|
|
41
59
|
## Code of Conduct
|
42
60
|
|
43
|
-
Everyone interacting in the GeoScaffold project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
61
|
+
Everyone interacting in the GeoScaffold project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/champierre/geo_scaffold/blob/master/CODE_OF_CONDUCT.md).
|
Binary file
|
@@ -9,7 +9,7 @@ module GeoScaffold
|
|
9
9
|
source_root File.expand_path('../templates', __FILE__)
|
10
10
|
|
11
11
|
class_option :orm, banner: "NAME", type: :string, required: true,
|
12
|
-
|
12
|
+
desc: "ORM to generate the controller for"
|
13
13
|
|
14
14
|
argument :attributes, type: :array, default: [], banner: "field:type field:type"
|
15
15
|
|
@@ -32,6 +32,11 @@ module GeoScaffold
|
|
32
32
|
end
|
33
33
|
|
34
34
|
template "views/partial.html.erb", File.join(directory_path, "_#{singular_table_name}.html.erb")
|
35
|
+
template "views/index.json.jbuilder", File.join(directory_path, "index.json.jbuilder")
|
36
|
+
end
|
37
|
+
|
38
|
+
def copy_helper_files
|
39
|
+
template "helpers/helper.rb", File.join("app/helpers", "#{controller_file_name}_helper.rb")
|
35
40
|
end
|
36
41
|
|
37
42
|
protected
|
@@ -0,0 +1,7 @@
|
|
1
|
+
module <%= controller_class_name %>Helper
|
2
|
+
def marker_content(<%= singular_table_name %>)
|
3
|
+
<%= singular_table_name %>.attributes.except("id", "created_at", "updated_at", "lat", "lng").map do |key, value|
|
4
|
+
"<strong>#{key}</strong> #{key == 'name' ? link_to(value, <%= singular_table_name %>) : value }<br />"
|
5
|
+
end.join.html_safe
|
6
|
+
end
|
7
|
+
end
|
@@ -26,11 +26,9 @@
|
|
26
26
|
<% elsif attribute.attachments? -%>
|
27
27
|
<%%= form.label :<%= attribute.column_name %>, style: "display: block" %>
|
28
28
|
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, multiple: true %>
|
29
|
-
<% elsif attribute.column_name == 'lat' || attribute.column_name == 'lng' %>
|
30
|
-
<%%= form.hidden_field :<%= attribute.column_name %> %>
|
31
29
|
<% else -%>
|
32
30
|
<%%= form.label :<%= attribute.column_name %>, style: "display: block" %>
|
33
|
-
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %> %>
|
31
|
+
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, readonly: <%= attribute.column_name == 'lat' || attribute.column_name == 'lng' %> %>
|
34
32
|
<% end -%>
|
35
33
|
</div>
|
36
34
|
|
@@ -42,29 +40,30 @@
|
|
42
40
|
|
43
41
|
<script>
|
44
42
|
document.addEventListener('turbo:load', () => {
|
45
|
-
|
46
|
-
<%% if <%= singular_table_name %>.new_record? %>
|
47
|
-
const center = [139.7673068, 35.6809591]
|
48
|
-
<%% else %>
|
49
|
-
const center = [<%%= <%= singular_table_name %>.lng %>, <%%= <%= singular_table_name %>.lat %>]
|
50
|
-
<%% end %>
|
43
|
+
const center = <%%= <%= singular_table_name %>.new_record? ? [139.7673068, 35.6809591] : [<%= singular_table_name %>.lng, <%= singular_table_name %>.lat] %>
|
51
44
|
const map = new geolonia.Map({
|
52
45
|
container: 'map',
|
53
46
|
center: center,
|
54
|
-
zoom: 16
|
55
|
-
})
|
56
|
-
const marker = new geolonia.Marker({
|
57
|
-
draggable: true
|
47
|
+
zoom: <%%= <%= singular_table_name %>.new_record? ? 14 : 16 %>
|
58
48
|
})
|
59
|
-
|
60
|
-
|
49
|
+
const marker = new geolonia.Marker()
|
50
|
+
|
51
|
+
<%% if !<%= singular_table_name %>.new_record? %>
|
52
|
+
marker.setLngLat(center).addTo(map)
|
53
|
+
<%% end %>
|
54
|
+
|
55
|
+
function onClick(e) {
|
56
|
+
const lngLat = e.lngLat
|
57
|
+
|
58
|
+
if (marker) {
|
59
|
+
marker.remove()
|
60
|
+
}
|
61
61
|
|
62
|
-
|
63
|
-
const lngLat = marker.getLngLat()
|
62
|
+
marker.setLngLat([lngLat.lng, lngLat.lat]).addTo(map)
|
64
63
|
document.querySelector("#<%= singular_table_name %>_lng").value = lngLat.lng
|
65
64
|
document.querySelector("#<%= singular_table_name %>_lat").value = lngLat.lat
|
66
65
|
}
|
67
66
|
|
68
|
-
|
67
|
+
map.on('click', onClick)
|
69
68
|
})
|
70
69
|
</script>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<h1><%= human_name.pluralize %></h1>
|
4
4
|
|
5
|
-
<div class="geolonia" data-geojson="
|
5
|
+
<div class="geolonia" data-geojson="/<%= plural_table_name %>.json" style="height:300px;"></div>
|
6
6
|
|
7
7
|
<div id="<%= plural_table_name %>">
|
8
8
|
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
|
@@ -15,28 +15,4 @@
|
|
15
15
|
|
16
16
|
<%%= link_to "New <%= human_name.downcase %>", <%= new_helper(type: :path) %>, data: {turbo: false} %>
|
17
17
|
|
18
|
-
<script id="example-geojson" type="application/json">
|
19
|
-
{
|
20
|
-
"type": "FeatureCollection",
|
21
|
-
"features": [
|
22
|
-
<%% @<%= plural_table_name %>.each_with_index do |<%= singular_table_name %>, i| %>
|
23
|
-
{
|
24
|
-
"type": "Feature",
|
25
|
-
"properties": {
|
26
|
-
"title": "<%%= <%= singular_table_name %>.name %>",
|
27
|
-
"description": "<a href='/<%= plural_table_name %>/<%%= <%= singular_table_name %>.id %>'><%%= <%= singular_table_name %>.name %></a>"
|
28
|
-
},
|
29
|
-
"geometry": {
|
30
|
-
"type": "Point",
|
31
|
-
"coordinates": [
|
32
|
-
<%%= <%= singular_table_name %>.lng %>,
|
33
|
-
<%%= <%= singular_table_name %>.lat %>
|
34
|
-
]
|
35
|
-
}
|
36
|
-
}<%%= i != @<%= plural_table_name %>.length - 1 ? ',' : '' %>
|
37
|
-
<%% end %>
|
38
|
-
]
|
39
|
-
}
|
40
|
-
</script>
|
41
|
-
|
42
18
|
<script type="text/javascript" src="https://cdn.geolonia.com/v1/embed?geolonia-api-key=YOUR-API-KEY"></script>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
json.type "FeatureCollection"
|
2
|
+
json.features @<%= plural_table_name %> do |spot|
|
3
|
+
json.type "Feature"
|
4
|
+
json.properties do
|
5
|
+
json.title <%= singular_table_name %>.name
|
6
|
+
json.description marker_content(<%= singular_table_name %>)
|
7
|
+
end
|
8
|
+
json.geometry do
|
9
|
+
json.type "Point"
|
10
|
+
json.coordinates [<%= singular_table_name %>.lng, <%= singular_table_name %>.lat]
|
11
|
+
end
|
12
|
+
end
|
@@ -1,5 +1,11 @@
|
|
1
1
|
<p style="color: green"><%%= notice %></p>
|
2
2
|
|
3
|
+
<div class="geolonia"
|
4
|
+
data-lat=<%%= @<%= singular_table_name %>.lat %>
|
5
|
+
data-lng=<%%= @<%= singular_table_name %>.lng %>
|
6
|
+
data-zoom=16
|
7
|
+
style="height:300px;"><%%= marker_content(@<%= singular_table_name %>) %></div>
|
8
|
+
|
3
9
|
<%%= render @<%= singular_table_name %> %>
|
4
10
|
|
5
11
|
<div>
|
@@ -8,3 +14,5 @@
|
|
8
14
|
|
9
15
|
<%%= button_to "Destroy this <%= human_name.downcase %>", <%= model_resource_name(prefix: "@") %>, method: :delete %>
|
10
16
|
</div>
|
17
|
+
|
18
|
+
<script type="text/javascript" src="https://cdn.geolonia.com/v1/embed?geolonia-api-key=YOUR-API-KEY"></script>
|
data/lib/geo_scaffold/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geo_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Junya Ishihara
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: GeoScaffold generates views with Geolonia Maps for a new resource that
|
14
|
+
has coordinates(lat and lng).
|
14
15
|
email:
|
15
|
-
-
|
16
|
+
- webmaster@champierre.com
|
16
17
|
executables: []
|
17
18
|
extensions: []
|
18
19
|
extra_rdoc_files: []
|
@@ -22,17 +23,21 @@ files:
|
|
22
23
|
- CHANGELOG.md
|
23
24
|
- CODE_OF_CONDUCT.md
|
24
25
|
- Gemfile
|
26
|
+
- Gemfile.lock
|
25
27
|
- LICENSE.txt
|
26
28
|
- README.md
|
27
29
|
- Rakefile
|
28
30
|
- bin/console
|
29
31
|
- bin/setup
|
32
|
+
- geo_scaffold_demo.gif
|
30
33
|
- lib/generators/geo_scaffold/controller_generator.rb
|
31
34
|
- lib/generators/geo_scaffold/generator_helpers.rb
|
32
35
|
- lib/generators/geo_scaffold/templates/controller.rb
|
36
|
+
- lib/generators/geo_scaffold/templates/helpers/helper.rb
|
33
37
|
- lib/generators/geo_scaffold/templates/views/_form.html.erb
|
34
38
|
- lib/generators/geo_scaffold/templates/views/edit.html.erb
|
35
39
|
- lib/generators/geo_scaffold/templates/views/index.html.erb
|
40
|
+
- lib/generators/geo_scaffold/templates/views/index.json.jbuilder
|
36
41
|
- lib/generators/geo_scaffold/templates/views/new.html.erb
|
37
42
|
- lib/generators/geo_scaffold/templates/views/partial.html.erb
|
38
43
|
- lib/generators/geo_scaffold/templates/views/show.html.erb
|
@@ -47,7 +52,7 @@ metadata:
|
|
47
52
|
homepage_uri: https://github.com/champierre/geo_scaffold
|
48
53
|
source_code_uri: https://github.com/champierre/geo_scaffold
|
49
54
|
changelog_uri: https://github.com/champierre/geo_scaffold
|
50
|
-
post_install_message:
|
55
|
+
post_install_message:
|
51
56
|
rdoc_options: []
|
52
57
|
require_paths:
|
53
58
|
- lib
|
@@ -62,8 +67,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
67
|
- !ruby/object:Gem::Version
|
63
68
|
version: '0'
|
64
69
|
requirements: []
|
65
|
-
rubygems_version: 3.
|
66
|
-
signing_key:
|
70
|
+
rubygems_version: 3.3.26
|
71
|
+
signing_key:
|
67
72
|
specification_version: 4
|
68
|
-
summary:
|
73
|
+
summary: GeoScaffold
|
69
74
|
test_files: []
|