simple-address-generator 0.0.6 → 0.0.7
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.
- data/lib/rails/generators/simple_address_generator/simple_address_generator_generator.rb +2 -1
- data/lib/rails/generators/simple_address_generator/templates/stylesheets/addresses.css.scss +3 -0
- data/lib/rails/generators/simple_address_generator/templates/stylesheets/application.css +13 -0
- data/lib/rails/generators/simple_address_generator/templates/stylesheets/gmaps4rails.css +24 -0
- data/lib/rails/generators/simple_address_generator/templates/stylesheets/scaffolds.css.scss +56 -0
- data/lib/simple-address-generator/version.rb +1 -1
- metadata +5 -1
@@ -11,6 +11,7 @@ module SimpleAddressGenerator
|
|
11
11
|
def generate_everything_else
|
12
12
|
directory "gmaps4rails", "app/assets/javascripts/gmaps4rails/"
|
13
13
|
directory "addresses", "app/views/addresses/"
|
14
|
+
directory "stylesheets", "app/assets/stylesheets/"
|
14
15
|
copy_file "addresses_controller.rb", "app/controllers/addresses_controller.rb"
|
15
16
|
copy_file "address.rb", "app/models/address.rb"
|
16
17
|
copy_file "icon-1.png", "app/assets/images/icon-1.png"
|
@@ -18,7 +19,7 @@ module SimpleAddressGenerator
|
|
18
19
|
|
19
20
|
def insert_code_application
|
20
21
|
inject_into_file "app/views/layouts/application.html.erb", after: "<%= yield %>" do
|
21
|
-
a = "<%= yield:scripts %>"
|
22
|
+
a = "\n\n <%= yield :scripts %>"
|
22
23
|
a
|
23
24
|
end
|
24
25
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.map_container {
|
2
|
+
padding: 6px;
|
3
|
+
border-width: 1px;
|
4
|
+
border-style: solid;
|
5
|
+
border-color: #ccc #ccc #999 #ccc;
|
6
|
+
-webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
|
7
|
+
-moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
|
8
|
+
box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px;
|
9
|
+
width: 800px;
|
10
|
+
}
|
11
|
+
|
12
|
+
.gmaps4rails_map {
|
13
|
+
width: 800px;
|
14
|
+
height: 400px;
|
15
|
+
}
|
16
|
+
|
17
|
+
.bing_map {
|
18
|
+
position: absolute;
|
19
|
+
top: 20;
|
20
|
+
left: 10;
|
21
|
+
width: 400px;
|
22
|
+
height: 400px;
|
23
|
+
border:#555555 2px solid;
|
24
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #fff;
|
3
|
+
color: #333;
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
+
font-size: 13px;
|
6
|
+
line-height: 18px; }
|
7
|
+
|
8
|
+
p, ol, ul, td {
|
9
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
10
|
+
font-size: 13px;
|
11
|
+
line-height: 18px; }
|
12
|
+
|
13
|
+
pre {
|
14
|
+
background-color: #eee;
|
15
|
+
padding: 10px;
|
16
|
+
font-size: 11px; }
|
17
|
+
|
18
|
+
a {
|
19
|
+
color: #000;
|
20
|
+
&:visited {
|
21
|
+
color: #666; }
|
22
|
+
&:hover {
|
23
|
+
color: #fff;
|
24
|
+
background-color: #000; } }
|
25
|
+
|
26
|
+
div {
|
27
|
+
&.field, &.actions {
|
28
|
+
margin-bottom: 10px; } }
|
29
|
+
|
30
|
+
#notice {
|
31
|
+
color: green; }
|
32
|
+
|
33
|
+
.field_with_errors {
|
34
|
+
padding: 2px;
|
35
|
+
background-color: red;
|
36
|
+
display: table; }
|
37
|
+
|
38
|
+
#error_explanation {
|
39
|
+
width: 450px;
|
40
|
+
border: 2px solid red;
|
41
|
+
padding: 7px;
|
42
|
+
padding-bottom: 0;
|
43
|
+
margin-bottom: 20px;
|
44
|
+
background-color: #f0f0f0;
|
45
|
+
h2 {
|
46
|
+
text-align: left;
|
47
|
+
font-weight: bold;
|
48
|
+
padding: 5px 5px 5px 15px;
|
49
|
+
font-size: 12px;
|
50
|
+
margin: -7px;
|
51
|
+
margin-bottom: 0px;
|
52
|
+
background-color: #c00;
|
53
|
+
color: #fff; }
|
54
|
+
ul li {
|
55
|
+
font-size: 12px;
|
56
|
+
list-style: square; } }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-address-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -32,6 +32,10 @@ files:
|
|
32
32
|
- lib/rails/generators/simple_address_generator/templates/gmaps4rails/gmaps4rails.base.js.coffee
|
33
33
|
- lib/rails/generators/simple_address_generator/templates/gmaps4rails/gmaps4rails.googlemaps.js.coffee
|
34
34
|
- lib/rails/generators/simple_address_generator/templates/icon-1.png
|
35
|
+
- lib/rails/generators/simple_address_generator/templates/stylesheets/addresses.css.scss
|
36
|
+
- lib/rails/generators/simple_address_generator/templates/stylesheets/application.css
|
37
|
+
- lib/rails/generators/simple_address_generator/templates/stylesheets/gmaps4rails.css
|
38
|
+
- lib/rails/generators/simple_address_generator/templates/stylesheets/scaffolds.css.scss
|
35
39
|
- lib/rails/generators/simple_address_generator/USAGE
|
36
40
|
- lib/simple-address-generator/version.rb
|
37
41
|
- lib/simple-address-generator.rb
|