geoxml-rails 3.0.0

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.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/CODE_OF_CONDUCT.md +13 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +13 -0
  6. data/README.md +42 -0
  7. data/Rakefile +2 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +7 -0
  10. data/geoxml-rails.gemspec +26 -0
  11. data/geoxml-test/.gitignore +17 -0
  12. data/geoxml-test/Gemfile +46 -0
  13. data/geoxml-test/Gemfile.lock +169 -0
  14. data/geoxml-test/README.rdoc +28 -0
  15. data/geoxml-test/Rakefile +6 -0
  16. data/geoxml-test/app/assets/images/.keep +0 -0
  17. data/geoxml-test/app/assets/javascripts/application.js +17 -0
  18. data/geoxml-test/app/assets/javascripts/application.jscurl +1 -0
  19. data/geoxml-test/app/assets/stylesheets/application.css +15 -0
  20. data/geoxml-test/app/controllers/application_controller.rb +5 -0
  21. data/geoxml-test/app/controllers/concerns/.keep +0 -0
  22. data/geoxml-test/app/helpers/application_helper.rb +2 -0
  23. data/geoxml-test/app/mailers/.keep +0 -0
  24. data/geoxml-test/app/models/.keep +0 -0
  25. data/geoxml-test/app/models/concerns/.keep +0 -0
  26. data/geoxml-test/app/views/layouts/application.html.erb +14 -0
  27. data/geoxml-test/bin/bundle +3 -0
  28. data/geoxml-test/bin/rails +8 -0
  29. data/geoxml-test/bin/rake +8 -0
  30. data/geoxml-test/bin/setup +29 -0
  31. data/geoxml-test/bin/spring +15 -0
  32. data/geoxml-test/config/application.rb +26 -0
  33. data/geoxml-test/config/boot.rb +3 -0
  34. data/geoxml-test/config/database.yml +25 -0
  35. data/geoxml-test/config/environment.rb +5 -0
  36. data/geoxml-test/config/environments/development.rb +41 -0
  37. data/geoxml-test/config/environments/production.rb +79 -0
  38. data/geoxml-test/config/environments/test.rb +42 -0
  39. data/geoxml-test/config/initializers/assets.rb +11 -0
  40. data/geoxml-test/config/initializers/backtrace_silencers.rb +7 -0
  41. data/geoxml-test/config/initializers/cookies_serializer.rb +3 -0
  42. data/geoxml-test/config/initializers/filter_parameter_logging.rb +4 -0
  43. data/geoxml-test/config/initializers/inflections.rb +16 -0
  44. data/geoxml-test/config/initializers/mime_types.rb +4 -0
  45. data/geoxml-test/config/initializers/session_store.rb +3 -0
  46. data/geoxml-test/config/initializers/wrap_parameters.rb +14 -0
  47. data/geoxml-test/config/locales/en.yml +23 -0
  48. data/geoxml-test/config/routes.rb +56 -0
  49. data/geoxml-test/config/secrets.yml +22 -0
  50. data/geoxml-test/config.ru +4 -0
  51. data/geoxml-test/db/seeds.rb +7 -0
  52. data/geoxml-test/lib/assets/.keep +0 -0
  53. data/geoxml-test/lib/tasks/.keep +0 -0
  54. data/geoxml-test/log/.keep +0 -0
  55. data/geoxml-test/public/404.html +67 -0
  56. data/geoxml-test/public/422.html +67 -0
  57. data/geoxml-test/public/500.html +66 -0
  58. data/geoxml-test/public/favicon.ico +0 -0
  59. data/geoxml-test/public/robots.txt +5 -0
  60. data/geoxml-test/test/controllers/.keep +0 -0
  61. data/geoxml-test/test/fixtures/.keep +0 -0
  62. data/geoxml-test/test/helpers/.keep +0 -0
  63. data/geoxml-test/test/integration/.keep +0 -0
  64. data/geoxml-test/test/mailers/.keep +0 -0
  65. data/geoxml-test/test/models/.keep +0 -0
  66. data/geoxml-test/test/test_helper.rb +10 -0
  67. data/geoxml-test/vendor/assets/javascripts/.keep +0 -0
  68. data/geoxml-test/vendor/assets/stylesheets/.keep +0 -0
  69. data/lib/geoxml/rails/version.rb +5 -0
  70. data/lib/geoxml/rails.rb +8 -0
  71. data/vendor/assets/javascripts/geoxml3.js +1955 -0
  72. metadata +142 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d21aefff7be4dcc5e2957e58bfc8f165dc3ce12b
4
+ data.tar.gz: f6a5e7872254746ff067cab09e6b70d31a8d9256
5
+ SHA512:
6
+ metadata.gz: c82ef579f756de95661b906a13350139da17615806e553d75a2a478700298baf37cde939f522fb1395f59a2c3e7db482a4d99866ba925adb2f6ec477130392c1
7
+ data.tar.gz: 9c49c2b33d3481fc1963908eb2c5d4d9002cd721d7f4dd87564a0ac452b3dae16c8182fe538424df93168b33021ffd686f3e6d682043de48b15199692522f03b
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in geoxml-rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2015 Benjamin Pearce
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # Geoxml::Rails
2
+
3
+ Include this gem in your Rails applications to use the GeoXML libraries.
4
+
5
+ See the original JavaScript libraries at https://code.google.com/p/geoxml3/.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'geoxml-rails'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install geoxml-rails
22
+
23
+ ## Usage
24
+
25
+ After installing the gem and running bundler, add the following line to your `app/assets/javascripts/application.js` file:
26
+ ```javascript
27
+ //= require geoxml3
28
+ ```
29
+
30
+ ## Development
31
+
32
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
33
+
34
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
35
+
36
+ ## Contributing
37
+
38
+ 1. Fork it ( https://github.com/[my-github-username]/geoxml-rails/fork )
39
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
40
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
41
+ 4. Push to the branch (`git push origin my-new-feature`)
42
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "geoxml/rails"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'geoxml/rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "geoxml-rails"
8
+ spec.version = Geoxml::Rails::VERSION
9
+ spec.authors = ["Benjamin Pearce"]
10
+ spec.email = ["hawk.git@bcpearce.com"]
11
+
12
+ if spec.respond_to?(:metadata)
13
+ end
14
+
15
+ spec.summary = "Inserts GeoXML3.js into the Rails asset pipeline."
16
+ spec.homepage = "http://github.com/bcpearce/geoxml3-rails"
17
+ spec.license = "Apache 2.0"
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.8"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ end
@@ -0,0 +1,17 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+ /db/*.sqlite3-journal
13
+
14
+ # Ignore all logfiles and tempfiles.
15
+ /log/*
16
+ !/log/.keep
17
+ /tmp
@@ -0,0 +1,46 @@
1
+ source 'https://rubygems.org'
2
+
3
+
4
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
+ gem 'rails', '4.2.0'
6
+ # Use sqlite3 as the database for Active Record
7
+ gem 'sqlite3'
8
+ # Use SCSS for stylesheets
9
+ gem 'sass-rails', '~> 5.0'
10
+ # Use Uglifier as compressor for JavaScript assets
11
+ gem 'uglifier', '>= 1.3.0'
12
+ # Use CoffeeScript for .coffee assets and views
13
+ gem 'coffee-rails', '~> 4.1.0'
14
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
15
+ # gem 'therubyracer', platforms: :ruby
16
+
17
+ # Use jquery as the JavaScript library
18
+ gem 'jquery-rails'
19
+ # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
20
+ gem 'turbolinks'
21
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
22
+ gem 'jbuilder', '~> 2.0'
23
+ # bundle exec rake doc:rails generates the API under doc/api.
24
+ gem 'sdoc', '~> 0.4.0', group: :doc
25
+
26
+ # Use ActiveModel has_secure_password
27
+ # gem 'bcrypt', '~> 3.1.7'
28
+
29
+ # Use Unicorn as the app server
30
+ # gem 'unicorn'
31
+
32
+ # Use Capistrano for deployment
33
+ # gem 'capistrano-rails', group: :development
34
+
35
+ group :development, :test do
36
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
37
+ gem 'byebug'
38
+
39
+ # Access an IRB console on exception pages or by using <%= console %> in views
40
+ gem 'web-console', '~> 2.0'
41
+
42
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
43
+ gem 'spring'
44
+ end
45
+
46
+ gem "geoxml-rails", :path => File.expand_path('../../', __FILE__)
@@ -0,0 +1,169 @@
1
+ PATH
2
+ remote: /home/bp/Documents/RubyDev/geoxml-rails
3
+ specs:
4
+ geoxml-rails (3.0.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ actionmailer (4.2.0)
10
+ actionpack (= 4.2.0)
11
+ actionview (= 4.2.0)
12
+ activejob (= 4.2.0)
13
+ mail (~> 2.5, >= 2.5.4)
14
+ rails-dom-testing (~> 1.0, >= 1.0.5)
15
+ actionpack (4.2.0)
16
+ actionview (= 4.2.0)
17
+ activesupport (= 4.2.0)
18
+ rack (~> 1.6.0)
19
+ rack-test (~> 0.6.2)
20
+ rails-dom-testing (~> 1.0, >= 1.0.5)
21
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
22
+ actionview (4.2.0)
23
+ activesupport (= 4.2.0)
24
+ builder (~> 3.1)
25
+ erubis (~> 2.7.0)
26
+ rails-dom-testing (~> 1.0, >= 1.0.5)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
28
+ activejob (4.2.0)
29
+ activesupport (= 4.2.0)
30
+ globalid (>= 0.3.0)
31
+ activemodel (4.2.0)
32
+ activesupport (= 4.2.0)
33
+ builder (~> 3.1)
34
+ activerecord (4.2.0)
35
+ activemodel (= 4.2.0)
36
+ activesupport (= 4.2.0)
37
+ arel (~> 6.0)
38
+ activesupport (4.2.0)
39
+ i18n (~> 0.7)
40
+ json (~> 1.7, >= 1.7.7)
41
+ minitest (~> 5.1)
42
+ thread_safe (~> 0.3, >= 0.3.4)
43
+ tzinfo (~> 1.1)
44
+ arel (6.0.0)
45
+ binding_of_caller (0.7.2)
46
+ debug_inspector (>= 0.0.1)
47
+ builder (3.2.2)
48
+ byebug (3.5.1)
49
+ columnize (~> 0.8)
50
+ debugger-linecache (~> 1.2)
51
+ slop (~> 3.6)
52
+ coffee-rails (4.1.0)
53
+ coffee-script (>= 2.2.0)
54
+ railties (>= 4.0.0, < 5.0)
55
+ coffee-script (2.3.0)
56
+ coffee-script-source
57
+ execjs
58
+ coffee-script-source (1.9.1)
59
+ columnize (0.9.0)
60
+ debug_inspector (0.0.2)
61
+ debugger-linecache (1.2.0)
62
+ erubis (2.7.0)
63
+ execjs (2.3.0)
64
+ globalid (0.3.3)
65
+ activesupport (>= 4.1.0)
66
+ hike (1.2.3)
67
+ i18n (0.7.0)
68
+ jbuilder (2.2.8)
69
+ activesupport (>= 3.0.0, < 5)
70
+ multi_json (~> 1.2)
71
+ jquery-rails (4.0.3)
72
+ rails-dom-testing (~> 1.0)
73
+ railties (>= 4.2.0)
74
+ thor (>= 0.14, < 2.0)
75
+ json (1.8.2)
76
+ loofah (2.0.1)
77
+ nokogiri (>= 1.5.9)
78
+ mail (2.6.3)
79
+ mime-types (>= 1.16, < 3)
80
+ mime-types (2.4.3)
81
+ mini_portile (0.6.2)
82
+ minitest (5.5.1)
83
+ multi_json (1.10.1)
84
+ nokogiri (1.6.6.2)
85
+ mini_portile (~> 0.6.0)
86
+ rack (1.6.0)
87
+ rack-test (0.6.3)
88
+ rack (>= 1.0)
89
+ rails (4.2.0)
90
+ actionmailer (= 4.2.0)
91
+ actionpack (= 4.2.0)
92
+ actionview (= 4.2.0)
93
+ activejob (= 4.2.0)
94
+ activemodel (= 4.2.0)
95
+ activerecord (= 4.2.0)
96
+ activesupport (= 4.2.0)
97
+ bundler (>= 1.3.0, < 2.0)
98
+ railties (= 4.2.0)
99
+ sprockets-rails
100
+ rails-deprecated_sanitizer (1.0.3)
101
+ activesupport (>= 4.2.0.alpha)
102
+ rails-dom-testing (1.0.5)
103
+ activesupport (>= 4.2.0.beta, < 5.0)
104
+ nokogiri (~> 1.6.0)
105
+ rails-deprecated_sanitizer (>= 1.0.1)
106
+ rails-html-sanitizer (1.0.1)
107
+ loofah (~> 2.0)
108
+ railties (4.2.0)
109
+ actionpack (= 4.2.0)
110
+ activesupport (= 4.2.0)
111
+ rake (>= 0.8.7)
112
+ thor (>= 0.18.1, < 2.0)
113
+ rake (10.4.2)
114
+ rdoc (4.2.0)
115
+ sass (3.4.12)
116
+ sass-rails (5.0.1)
117
+ railties (>= 4.0.0, < 5.0)
118
+ sass (~> 3.1)
119
+ sprockets (>= 2.8, < 4.0)
120
+ sprockets-rails (>= 2.0, < 4.0)
121
+ tilt (~> 1.1)
122
+ sdoc (0.4.1)
123
+ json (~> 1.7, >= 1.7.7)
124
+ rdoc (~> 4.0)
125
+ slop (3.6.0)
126
+ spring (1.3.2)
127
+ sprockets (2.12.3)
128
+ hike (~> 1.2)
129
+ multi_json (~> 1.0)
130
+ rack (~> 1.0)
131
+ tilt (~> 1.1, != 1.3.0)
132
+ sprockets-rails (2.2.4)
133
+ actionpack (>= 3.0)
134
+ activesupport (>= 3.0)
135
+ sprockets (>= 2.8, < 4.0)
136
+ sqlite3 (1.3.10)
137
+ thor (0.19.1)
138
+ thread_safe (0.3.4)
139
+ tilt (1.4.1)
140
+ turbolinks (2.5.3)
141
+ coffee-rails
142
+ tzinfo (1.2.2)
143
+ thread_safe (~> 0.1)
144
+ uglifier (2.7.0)
145
+ execjs (>= 0.3.0)
146
+ json (>= 1.8.0)
147
+ web-console (2.0.0)
148
+ activemodel (~> 4.0)
149
+ binding_of_caller (>= 0.7.2)
150
+ railties (~> 4.0)
151
+ sprockets-rails (>= 2.0, < 4.0)
152
+
153
+ PLATFORMS
154
+ ruby
155
+
156
+ DEPENDENCIES
157
+ byebug
158
+ coffee-rails (~> 4.1.0)
159
+ geoxml-rails!
160
+ jbuilder (~> 2.0)
161
+ jquery-rails
162
+ rails (= 4.2.0)
163
+ sass-rails (~> 5.0)
164
+ sdoc (~> 0.4.0)
165
+ spring
166
+ sqlite3
167
+ turbolinks
168
+ uglifier (>= 1.3.0)
169
+ web-console (~> 2.0)
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
File without changes
@@ -0,0 +1,17 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
17
+ //= require geoxml3
@@ -0,0 +1 @@
1
+ //= require geoxml3 http://localhost:4000/assets/geoxml3.js
@@ -0,0 +1,15 @@
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 any plugin's vendor/assets/stylesheets directory 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 bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
File without changes
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
File without changes
File without changes
File without changes
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>GeoxmlTest</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError
5
+ end
6
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
7
+ require_relative '../config/boot'
8
+ require 'rails/commands'
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError
5
+ end
6
+ require_relative '../config/boot'
7
+ require 'rake'
8
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This file loads spring without using Bundler, in order to be fast.
4
+ # It gets overwritten when you run the `spring binstub` command.
5
+
6
+ unless defined?(Spring)
7
+ require "rubygems"
8
+ require "bundler"
9
+
10
+ if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
11
+ Gem.paths = { "GEM_PATH" => Bundler.bundle_path.to_s }
12
+ gem "spring", match[1]
13
+ require "spring/binstub"
14
+ end
15
+ end
@@ -0,0 +1,26 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ # Require the gems listed in Gemfile, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(*Rails.groups)
8
+
9
+ module GeoxmlTest
10
+ class Application < Rails::Application
11
+ # Settings in config/environments/* take precedence over those specified here.
12
+ # Application configuration should go into files in config/initializers
13
+ # -- all .rb files in that directory are automatically loaded.
14
+
15
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
16
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
17
+ # config.time_zone = 'Central Time (US & Canada)'
18
+
19
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
20
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
21
+ # config.i18n.default_locale = :de
22
+
23
+ # Do not swallow errors in after_commit/after_rollback callbacks.
24
+ config.active_record.raise_in_transactional_callbacks = true
25
+ end
26
+ end
@@ -0,0 +1,3 @@
1
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
2
+
3
+ require 'bundler/setup' # Set up gems listed in the Gemfile.
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+ production:
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!