calagator 0.0.1.pre1 → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{LICENSE.txt → MIT-LICENSE.txt} +0 -0
- data/README.md +4 -18
- data/Rakefile +6 -0
- data/app/assets/javascripts/calagator.js +1 -0
- data/app/assets/stylesheets/calagator/changes.scss +45 -0
- data/app/assets/stylesheets/calagator/errors.css +8 -0
- data/app/assets/stylesheets/calagator/forms.scss +148 -2
- data/app/assets/stylesheets/calagator/index.scss +21 -0
- data/app/assets/stylesheets/calagator/layout.scss +731 -0
- data/app/assets/stylesheets/calagator/mobile.scss +196 -0
- data/app/assets/stylesheets/calagator/{reset.css → reset.scss} +0 -0
- data/app/assets/stylesheets/calagator/typography.scss +225 -0
- data/app/assets/stylesheets/calagator/{common.scss → utils.scss} +0 -0
- data/app/assets/stylesheets/calagator/variables.scss +21 -0
- data/app/controllers/calagator/admin_controller.rb +1 -1
- data/app/controllers/calagator/application_controller.rb +3 -3
- data/app/controllers/calagator/events_controller.rb +3 -3
- data/app/controllers/calagator/site_controller.rb +1 -1
- data/app/controllers/calagator/sources_controller.rb +3 -3
- data/app/controllers/calagator/venues_controller.rb +4 -4
- data/app/controllers/calagator/versions_controller.rb +2 -2
- data/app/helpers/calagator/application_helper.rb +0 -3
- data/app/helpers/calagator/mapping_helper.rb +9 -8
- data/app/models/calagator/event.rb +2 -3
- data/app/models/calagator/event/ical_renderer.rb +4 -2
- data/app/models/calagator/event/saver.rb +2 -2
- data/app/models/calagator/event/search_engine/sql.rb +2 -1
- data/app/models/calagator/source.rb +0 -26
- data/app/models/calagator/source/importer.rb +1 -1
- data/app/models/calagator/source/parser/meetup.rb +2 -2
- data/app/models/calagator/venue.rb +0 -2
- data/app/models/calagator/venue/geocoder.rb +1 -1
- data/app/models/calagator/venue/search_engine/sql.rb +1 -1
- data/app/views/calagator/events/_subnav.html.erb +2 -2
- data/app/views/calagator/events/show.html.erb +2 -2
- data/app/views/calagator/site/_description.html.erb +6 -3
- data/app/views/calagator/site/_sidebar_menu.html.erb +13 -0
- data/app/views/calagator/site/index.html.erb +1 -0
- data/app/views/calagator/sources/index.html.erb +1 -1
- data/app/views/calagator/sources/show.html.erb +1 -1
- data/app/views/calagator/venues/_subnav.html.erb +1 -1
- data/app/views/calagator/venues/show.html.erb +1 -1
- data/app/views/layouts/calagator/_after_footer.html.erb +2 -0
- data/app/views/layouts/calagator/_content.html.erb +6 -0
- data/app/views/layouts/calagator/_footer.html.erb +8 -0
- data/app/views/layouts/calagator/_global_search.html.erb +11 -0
- data/app/views/layouts/calagator/_header.html.erb +20 -0
- data/app/views/layouts/calagator/application.html.erb +9 -64
- data/config/routes.rb +16 -16
- data/config/spring.rb +1 -0
- data/db/development +0 -0
- data/db/development.sqlite3 +0 -0
- data/db/migrate/20150407014752_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +14 -0
- data/db/migrate/20150407014754_change_collation_for_tag_names.acts_as_taggable_on_engine.rb +9 -0
- data/db/schema.rb +2 -8
- data/db/seeds.rb +64 -8
- data/lib/calagator.rb +42 -2
- data/lib/calagator/duplicate_checking/duplicate_finder.rb +1 -1
- data/lib/calagator/duplicate_checking/duplicate_squasher.rb +1 -1
- data/lib/calagator/engine.rb +12 -22
- data/lib/calagator/tag_model_extensions.rb +1 -1
- data/lib/calagator/version.rb +1 -1
- data/lib/generators/calagator/install_generator.rb +17 -12
- data/lib/generators/calagator/templates/config/initializers/01_calagator.rb +89 -0
- data/lib/generators/calagator/templates/config/initializers/02_geokit.rb +106 -0
- data/lib/tasks/sunspot_reindex_calagator.rake +16 -3
- data/lib/tasks/update_counter_caches.rake +3 -3
- data/spec/controllers/calagator/events_controller_spec.rb +3 -3
- data/spec/controllers/calagator/sources_controller_spec.rb +3 -3
- data/spec/controllers/calagator/venues_controller_spec.rb +5 -5
- data/spec/dummy/Gemfile +35 -27
- data/spec/dummy/README.rdoc +15 -248
- data/spec/dummy/Rakefile +1 -2
- data/spec/dummy/app/assets/javascripts/application.js +5 -4
- data/spec/dummy/app/assets/stylesheets/application.css +6 -4
- data/spec/dummy/app/controllers/application_controller.rb +3 -1
- data/spec/dummy/app/views/layouts/application.html.erb +2 -2
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +2 -2
- data/spec/dummy/config/application.rb +5 -41
- data/spec/dummy/config/boot.rb +1 -4
- data/spec/dummy/config/database.yml +8 -8
- data/spec/dummy/config/environment.rb +3 -3
- data/spec/dummy/config/environments/development.rb +22 -18
- data/spec/dummy/config/environments/production.rb +46 -34
- data/spec/dummy/config/environments/test.rb +19 -14
- data/spec/dummy/config/initializers/01_calagator.rb +89 -0
- data/spec/dummy/config/initializers/02_geokit.rb +106 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +6 -5
- data/spec/dummy/config/initializers/mime_types.rb +0 -1
- data/spec/dummy/config/initializers/session_store.rb +1 -6
- data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/spec/dummy/config/locales/en.yml +20 -2
- data/spec/dummy/config/routes.rb +23 -25
- data/spec/dummy/config/secrets.yml +16 -77
- data/spec/dummy/config/sunspot.yml +23 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +31 -30
- data/spec/dummy/db/seeds.rb +1 -0
- data/spec/dummy/log/development.log +257 -235
- data/spec/dummy/public/404.html +54 -13
- data/spec/dummy/public/422.html +54 -13
- data/spec/dummy/public/500.html +53 -12
- data/spec/dummy/public/robots.txt +2 -2
- data/spec/dummy/test/test_helper.rb +2 -5
- data/spec/factories.rb +0 -54
- data/spec/features/admin_auth_spec.rb +2 -2
- data/spec/features/admin_lock_event_spec.rb +1 -1
- data/spec/features/import_events_from_feed_spec.rb +1 -1
- data/spec/helpers/calagator/google_event_export_helper_spec.rb +8 -11
- data/spec/helpers/calagator/sources_helper_spec.rb +1 -2
- data/spec/helpers/calagator/tags_helper_spec.rb +1 -2
- data/spec/models/calagator/event_spec.rb +7 -7
- data/spec/models/calagator/source/parser_meetup_spec.rb +3 -3
- data/spec/models/calagator/source_spec.rb +0 -29
- data/spec/models/calagator/venue_spec.rb +8 -11
- data/spec/spec_helper.rb +3 -1
- data/spec/support/admin_authentication.rb +2 -0
- data/spec/support/assert_dom_equal.rb +26 -0
- data/spec/support/paper_trail.rb +7 -0
- data/spec/support/rspec-activemodel-mocks_patch.rb +9 -0
- metadata +200 -280
- data/app/assets/stylesheets/calagator.scss +0 -8
- data/app/assets/stylesheets/calagator/datepicker.scss +0 -177
- data/app/assets/stylesheets/calagator/theme.css +0 -0
- data/app/models/event/search_engine/base.rb +0 -0
- data/config/deploy/local.rb +0 -37
- data/config/deploy/lucca.rb +0 -33
- data/config/initializers/geokit.rb +0 -74
- data/config/initializers/search_engine.rb +0 -4
- data/config/initializers/set_default_url_host.rb +0 -5
- data/db/test.sqlite3 +0 -0
- data/lib/generators/calagator/templates/config/calagator.rb +0 -26
- data/lib/generators/calagator/templates/config/secrets.yml.sample +0 -83
- data/lib/secrets_reader.rb +0 -76
- data/spec/dummy/Gemfile.lock +0 -195
- data/spec/dummy/app/assets/images/rails.png +0 -0
- data/spec/dummy/config/initializers/calagator.rb +0 -26
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/db/migrate/20150309023304_create_events.calagator.rb +0 -18
- data/spec/dummy/db/migrate/20150309023305_create_venues.calagator.rb +0 -18
- data/spec/dummy/db/migrate/20150309023306_create_sources.calagator.rb +0 -17
- data/spec/dummy/db/migrate/20150309023307_add_detailed_fields_to_venue.calagator.rb +0 -20
- data/spec/dummy/db/migrate/20150309023308_add_end_time_to_events.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023309_add_source_id_to_events.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023310_add_source_id_to_venues.calagator.rb +0 -11
- data/spec/dummy/db/migrate/20150309023311_add_duplicate_of_column_to_venues.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023312_add_duplicate_of_column_to_events.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023313_change_lat_long_type.calagator.rb +0 -13
- data/spec/dummy/db/migrate/20150309023314_add_source_reimport.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023315_change_end_time_to_duration.calagator.rb +0 -12
- data/spec/dummy/db/migrate/20150309023316_remove_format_type_from_source.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023317_create_updates.calagator.rb +0 -16
- data/spec/dummy/db/migrate/20150309023318_remove_next_update_from_source.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023319_change_duration_to_end_time.calagator.rb +0 -12
- data/spec/dummy/db/migrate/20150309023320_create_tags_and_taggings.calagator.rb +0 -29
- data/spec/dummy/db/migrate/20150309023321_create_versioned_events.calagator.rb +0 -26
- data/spec/dummy/db/migrate/20150309023322_create_versioned_venues.calagator.rb +0 -33
- data/spec/dummy/db/migrate/20150309023323_add_rrule_to_events.calagator.rb +0 -16
- data/spec/dummy/db/migrate/20150309023324_create_versions.calagator.rb +0 -19
- data/spec/dummy/db/migrate/20150309023325_add_closed_flag_to_venues.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023326_add_wifi_flag_to_venues.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023327_add_access_notes_to_venues.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023328_add_events_count_to_venues.calagator.rb +0 -9
- data/spec/dummy/db/migrate/20150309023329_add_venue_details_to_events.calagator.rb +0 -10
- data/spec/dummy/db/migrate/20150309023330_acts_as_taggable_on_migration.calagator.rb +0 -51
- data/spec/dummy/db/migrate/20150309023331_cleanup.calagator.rb +0 -15
- data/spec/dummy/db/migrate/20150309023332_specify_venues_latitude_and_longitude_precision.calagator.rb +0 -12
- data/spec/dummy/db/migrate/20150309023333_remove_updates.calagator.rb +0 -14
- data/spec/dummy/db/migrate/20150309023334_add_locked_status_to_events.calagator.rb +0 -6
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/doc/README_FOR_APP +0 -2
- data/spec/dummy/script/rails +0 -6
- data/spec/dummy/test/performance/browsing_test.rb +0 -12
- data/spec/lib/secrets_reader_spec.rb +0 -65
@@ -1,177 +0,0 @@
|
|
1
|
-
/* @override http://localhost:3000/stylesheets/datepicker.css */
|
2
|
-
#datepicker_div th, #datepicker_div td {
|
3
|
-
padding: 0;
|
4
|
-
text-align: center;
|
5
|
-
}
|
6
|
-
|
7
|
-
/* Main Flora Style Sheet for jQuery UI Datepicker */
|
8
|
-
#datepicker_div, .datepicker_inline {
|
9
|
-
font-size: 14px;
|
10
|
-
padding: 0;
|
11
|
-
margin: 0;
|
12
|
-
background: #e8fbfe;
|
13
|
-
width: 185px;
|
14
|
-
}
|
15
|
-
|
16
|
-
#datepicker_div {
|
17
|
-
display: none;
|
18
|
-
border: 1px solid #454;
|
19
|
-
z-index: 10;
|
20
|
-
}
|
21
|
-
|
22
|
-
.datepicker_inline {
|
23
|
-
float: left;
|
24
|
-
display: block;
|
25
|
-
border: 0;
|
26
|
-
}
|
27
|
-
.datepicker_dialog {
|
28
|
-
padding: 5px !important;
|
29
|
-
border: 4px ridge #DDD !important;
|
30
|
-
}
|
31
|
-
button.datepicker_trigger {
|
32
|
-
width: 25px;
|
33
|
-
}
|
34
|
-
img.datepicker_trigger {
|
35
|
-
margin: 2px;
|
36
|
-
vertical-align: middle;
|
37
|
-
}
|
38
|
-
.datepicker_prompt {
|
39
|
-
float: left;
|
40
|
-
padding: 2px;
|
41
|
-
background: #bcf794;
|
42
|
-
color: #000;
|
43
|
-
}
|
44
|
-
.datepicker_prompt {
|
45
|
-
width: 185px;
|
46
|
-
}
|
47
|
-
.datepicker_control, .datepicker_links, .datepicker_header, .datepicker {
|
48
|
-
clear: both;
|
49
|
-
float: left;
|
50
|
-
width: 100%;
|
51
|
-
color: #FFF;
|
52
|
-
}
|
53
|
-
.datepicker_control {
|
54
|
-
background: #82c555;
|
55
|
-
padding: 2px 0px;
|
56
|
-
}
|
57
|
-
.datepicker_links {
|
58
|
-
background: #b7f090;
|
59
|
-
padding: 2px 0px;
|
60
|
-
}
|
61
|
-
.datepicker_control, .datepicker_links {
|
62
|
-
font-weight: bold;
|
63
|
-
font-size: 80%;
|
64
|
-
letter-spacing: 1px;
|
65
|
-
}
|
66
|
-
.datepicker_links label {
|
67
|
-
padding: 2px 5px;
|
68
|
-
color: #888;
|
69
|
-
}
|
70
|
-
.datepicker_clear, .datepicker_prev {
|
71
|
-
float: left;
|
72
|
-
width: 34%;
|
73
|
-
}
|
74
|
-
.datepicker_current {
|
75
|
-
float: left;
|
76
|
-
width: 30%;
|
77
|
-
text-align: center;
|
78
|
-
}
|
79
|
-
.datepicker_close, .datepicker_next {
|
80
|
-
float: right;
|
81
|
-
width: 34%;
|
82
|
-
text-align: right;
|
83
|
-
}
|
84
|
-
.datepicker_header {
|
85
|
-
padding: 1px 0 4px;
|
86
|
-
background: #e8fbfe;
|
87
|
-
text-align: center;
|
88
|
-
font-weight: bold;
|
89
|
-
height: 1.5em;
|
90
|
-
}
|
91
|
-
.datepicker_header select {
|
92
|
-
color: #000;
|
93
|
-
border: 0px;
|
94
|
-
font-weight: bold;
|
95
|
-
}
|
96
|
-
.datepicker {
|
97
|
-
background: #bcf794;
|
98
|
-
text-align: center;
|
99
|
-
font-size: 100%;
|
100
|
-
}
|
101
|
-
.datepicker a {
|
102
|
-
display: block;
|
103
|
-
width: 100%;
|
104
|
-
}
|
105
|
-
.datepicker .datepicker_titleRow {
|
106
|
-
background: #B1DB87;
|
107
|
-
color: #000;
|
108
|
-
}
|
109
|
-
.datepicker .datepicker_daysRow {
|
110
|
-
background: #FFF;
|
111
|
-
color: #666;
|
112
|
-
}
|
113
|
-
.datepicker_weekCol {
|
114
|
-
background: #B1DB87;
|
115
|
-
color: #000;
|
116
|
-
}
|
117
|
-
.datepicker .datepicker_daysCell {
|
118
|
-
color: #000;
|
119
|
-
border: 1px solid #DDD;
|
120
|
-
}
|
121
|
-
#datepicker .datepicker_daysCell a {
|
122
|
-
display: block;
|
123
|
-
}
|
124
|
-
.datepicker .datepicker_weekEndCell {
|
125
|
-
background: #E0F4D7;
|
126
|
-
}
|
127
|
-
.datepicker .datepicker_daysCellOver {
|
128
|
-
background: #FFF;
|
129
|
-
border: 1px solid #777;
|
130
|
-
}
|
131
|
-
.datepicker .datepicker_unselectable {
|
132
|
-
color: #888;
|
133
|
-
}
|
134
|
-
.datepicker_today {
|
135
|
-
background: #82c555;
|
136
|
-
}
|
137
|
-
.datepicker_currentDay {
|
138
|
-
background: #83C948 !important;
|
139
|
-
}
|
140
|
-
#datepicker_div a, .datepicker_inline a {
|
141
|
-
cursor: pointer;
|
142
|
-
margin: 0;
|
143
|
-
padding: 0;
|
144
|
-
background: none;
|
145
|
-
color: #000;
|
146
|
-
}
|
147
|
-
.datepicker_inline .datepicker_links a {
|
148
|
-
padding: 0 5px !important;
|
149
|
-
}
|
150
|
-
.datepicker_control a, .datepicker_links a {
|
151
|
-
padding: 2px 5px !important;
|
152
|
-
color: #000 !important;
|
153
|
-
}
|
154
|
-
.datepicker_titleRow a {
|
155
|
-
color: #000 !important;
|
156
|
-
}
|
157
|
-
.datepicker_multi .datepicker {
|
158
|
-
border: 1px solid #83C948;
|
159
|
-
}
|
160
|
-
.datepicker_oneMonth {
|
161
|
-
float: left;
|
162
|
-
width: 185px;
|
163
|
-
}
|
164
|
-
.datepicker_newRow {
|
165
|
-
clear: left;
|
166
|
-
}
|
167
|
-
.datepicker_cover {
|
168
|
-
display: none;
|
169
|
-
display/**/: block;
|
170
|
-
position: absolute;
|
171
|
-
z-index: -1;
|
172
|
-
filter: mask();
|
173
|
-
top: -4px;
|
174
|
-
left: -4px;
|
175
|
-
width: 193px;
|
176
|
-
height: 200px;
|
177
|
-
}
|
File without changes
|
File without changes
|
data/config/deploy/local.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
set :stage, :local
|
2
|
-
|
3
|
-
# Extended Server Syntax
|
4
|
-
# ======================
|
5
|
-
# This can be used to drop a more detailed server
|
6
|
-
# definition into the server list. The second argument
|
7
|
-
# something that quacks like a hash can be used to set
|
8
|
-
# extended properties on the server.
|
9
|
-
server 'syndicate_web.local',
|
10
|
-
roles: %w{web app db},
|
11
|
-
ssh_options: {
|
12
|
-
config: "/Users/reidab/code/calagator/vagrant_ssh_config"
|
13
|
-
}
|
14
|
-
|
15
|
-
# you can set custom ssh options
|
16
|
-
# it's possible to pass any option but you need to keep in mind that net/ssh understand limited list of options
|
17
|
-
# you can see them in [net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start)
|
18
|
-
# set it globally
|
19
|
-
# set :ssh_options, {
|
20
|
-
# keys: %w(/home/rlisowski/.ssh/id_rsa),
|
21
|
-
# forward_agent: false,
|
22
|
-
# auth_methods: %w(password)
|
23
|
-
# }
|
24
|
-
# and/or per server
|
25
|
-
# server 'example.com',
|
26
|
-
# user: 'user_name',
|
27
|
-
# roles: %w{web app},
|
28
|
-
# ssh_options: {
|
29
|
-
# user: 'user_name', # overrides user setting above
|
30
|
-
# keys: %w(/home/user_name/.ssh/id_rsa),
|
31
|
-
# forward_agent: false,
|
32
|
-
# auth_methods: %w(publickey password)
|
33
|
-
# # password: 'please use keys'
|
34
|
-
# }
|
35
|
-
# setting per server overrides global ssh_options
|
36
|
-
|
37
|
-
# fetch(:default_env).merge!(rails_env: :local)
|
data/config/deploy/lucca.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
set :stage, :calagator
|
2
|
-
|
3
|
-
# Extended Server Syntax
|
4
|
-
# ======================
|
5
|
-
# This can be used to drop a more detailed server
|
6
|
-
# definition into the server list. The second argument
|
7
|
-
# something that quacks like a hash can be used to set
|
8
|
-
# extended properties on the server.
|
9
|
-
server 'lucca.stumptownsyndicate.org', user: 'calagator', roles: %w{web app db}
|
10
|
-
|
11
|
-
# you can set custom ssh options
|
12
|
-
# it's possible to pass any option but you need to keep in mind that net/ssh understand limited list of options
|
13
|
-
# you can see them in [net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start)
|
14
|
-
# set it globally
|
15
|
-
# set :ssh_options, {
|
16
|
-
# keys: %w(/home/rlisowski/.ssh/id_rsa),
|
17
|
-
# forward_agent: false,
|
18
|
-
# auth_methods: %w(password)
|
19
|
-
# }
|
20
|
-
# and/or per server
|
21
|
-
# server 'example.com',
|
22
|
-
# user: 'user_name',
|
23
|
-
# roles: %w{web app},
|
24
|
-
# ssh_options: {
|
25
|
-
# user: 'user_name', # overrides user setting above
|
26
|
-
# keys: %w(/home/user_name/.ssh/id_rsa),
|
27
|
-
# forward_agent: false,
|
28
|
-
# auth_methods: %w(publickey password)
|
29
|
-
# # password: 'please use keys'
|
30
|
-
# }
|
31
|
-
# setting per server overrides global ssh_options
|
32
|
-
|
33
|
-
# fetch(:default_env).merge!(rails_env: :calagator)
|
@@ -1,74 +0,0 @@
|
|
1
|
-
require 'geokit'
|
2
|
-
|
3
|
-
# CALAGATOR: Differences from the defaults are tagged like this below.
|
4
|
-
|
5
|
-
# remap Google V3 geocoder so we can reference it in provider list, see:
|
6
|
-
# https://github.com/geokit/geokit/issues/86
|
7
|
-
Geokit::Geocoders::Google3Geocoder = Geokit::Geocoders::GoogleGeocoder3
|
8
|
-
|
9
|
-
# These defaults are used in GeoKit::Mappable.distance_to and in acts_as_mappable
|
10
|
-
GeoKit::default_units = :miles
|
11
|
-
GeoKit::default_formula = :sphere
|
12
|
-
|
13
|
-
# This is the timeout value in seconds to be used for calls to the geocoder web
|
14
|
-
# services. For no timeout at all, comment out the setting. The timeout unit
|
15
|
-
# is in seconds.
|
16
|
-
GeoKit::Geocoders::request_timeout = 3
|
17
|
-
|
18
|
-
# These settings are used if web service calls must be routed through a proxy.
|
19
|
-
# These setting can be nil if not needed, otherwise, addr and port must be
|
20
|
-
# filled in at a minimum. If the proxy requires authentication, the username
|
21
|
-
# and password can be provided as well.
|
22
|
-
GeoKit::Geocoders::proxy_addr = nil
|
23
|
-
GeoKit::Geocoders::proxy_port = nil
|
24
|
-
GeoKit::Geocoders::proxy_user = nil
|
25
|
-
GeoKit::Geocoders::proxy_pass = nil
|
26
|
-
|
27
|
-
# This is your yahoo application key for the Yahoo Geocoder.
|
28
|
-
# See http://developer.yahoo.com/faq/index.html#appid
|
29
|
-
# and http://developer.yahoo.com/maps/rest/V1/geocode.html
|
30
|
-
GeoKit::Geocoders::yahoo = 'REPLACE_WITH_YOUR_YAHOO_KEY'
|
31
|
-
|
32
|
-
# This is your Google Maps geocoder key.
|
33
|
-
# See http://www.google.com/apis/maps/signup.html
|
34
|
-
# and http://www.google.com/apis/maps/documentation/#Geocoding_Examples
|
35
|
-
#
|
36
|
-
# CALAGATOR: was GeoKit::Geocoders::google = 'REPLACE_WITH_YOUR_GOOGLE_KEY',
|
37
|
-
# but since each developer needs their own, we get it from the secrets file.
|
38
|
-
#
|
39
|
-
google_key = SECRETS.mapping && SECRETS.mapping["google_maps_api_key"]
|
40
|
-
old_keys_path = Rails.root.join('config','geocoder_api_keys.yml')
|
41
|
-
|
42
|
-
if google_key
|
43
|
-
GeoKit::Geocoders::google = google_key
|
44
|
-
elsif File.exist? old_keys_path
|
45
|
-
raise "Loading keys from config/geocoder_api_keys.yml is deprecated. Please use config/secrets.yml instead."
|
46
|
-
else
|
47
|
-
puts "Warning: No Google Maps API key was set. Geocoding will not function."
|
48
|
-
end
|
49
|
-
|
50
|
-
# This is your username and password for geocoder.us.
|
51
|
-
# To use the free service, the value can be set to nil or false. For
|
52
|
-
# usage tied to an account, the value should be set to username:password.
|
53
|
-
# See http://geocoder.us
|
54
|
-
# and http://geocoder.us/user/signup
|
55
|
-
GeoKit::Geocoders::geocoder_us = false
|
56
|
-
|
57
|
-
# This is your authorization key for geocoder.ca.
|
58
|
-
# To use the free service, the value can be set to nil or false. For
|
59
|
-
# usage tied to an account, set the value to the key obtained from
|
60
|
-
# Geocoder.ca.
|
61
|
-
# See http://geocoder.ca
|
62
|
-
# and http://geocoder.ca/?register=1
|
63
|
-
GeoKit::Geocoders::geocoder_ca = false
|
64
|
-
|
65
|
-
# This is the order in which the geocoders are called in a failover scenario
|
66
|
-
# If you only want to use a single geocoder, put a single symbol in the array.
|
67
|
-
# Valid symbols are :google, :yahoo, :us, and :ca.
|
68
|
-
# Be aware that there are Terms of Use restrictions on how you can use the
|
69
|
-
# various geocoders. Make sure you read up on relevant Terms of Use for each
|
70
|
-
# geocoder you are going to use.
|
71
|
-
#
|
72
|
-
# CALAGATOR: was [:google, :us], but this is all we need since we're Google-only.
|
73
|
-
#
|
74
|
-
GeoKit::Geocoders::provider_order = [:google3]
|
data/db/test.sqlite3
DELETED
Binary file
|
@@ -1,26 +0,0 @@
|
|
1
|
-
Calagator.setup do |config|
|
2
|
-
|
3
|
-
# # Site's name
|
4
|
-
# config.title = 'Calagator'
|
5
|
-
|
6
|
-
# # Site's tagline
|
7
|
-
# config.tagline = 'A Tech Calendar'
|
8
|
-
|
9
|
-
# # Site's URL with trailing slash
|
10
|
-
# config.url = 'http://my-calagator.org/'
|
11
|
-
|
12
|
-
# # Map to display on /venues page:
|
13
|
-
# config.venues_map_options = {
|
14
|
-
# # Zoom magnification level:
|
15
|
-
# zoom: 12,
|
16
|
-
# # Center of the map, in latitude and longitude.
|
17
|
-
# # If no center is specified, the map will zoom to fit all markers.
|
18
|
-
# center: [45.518493, -122.660737]
|
19
|
-
# }
|
20
|
-
|
21
|
-
# # Patterns for detecting spam events and venues
|
22
|
-
# config.blacklist_patterns = [
|
23
|
-
# /\b(online|overseas).+(drugstore|pharmacy)\b/,
|
24
|
-
# /\bcialis\b/,
|
25
|
-
# ]
|
26
|
-
end
|
@@ -1,83 +0,0 @@
|
|
1
|
-
#===[ Secrets ]=========================================================
|
2
|
-
#
|
3
|
-
# This file is meant for storing secret information that is never
|
4
|
-
# published or committed to a revision control system.
|
5
|
-
#
|
6
|
-
# Do not modify this "config/secrets.yml.sample" file directly -- you
|
7
|
-
# should copy it to "config/secrets.yml" and customize it there.
|
8
|
-
#
|
9
|
-
#---[ Values ]----------------------------------------------------------
|
10
|
-
|
11
|
-
# Email address of administrator that will get exception notifications
|
12
|
-
# and requests for assistance from users:
|
13
|
-
administrator_email: 'your@email.addr'
|
14
|
-
|
15
|
-
# Admin username and password to use when accessing /admin pages
|
16
|
-
admin_username: 'admin'
|
17
|
-
admin_password: 'kitties!'
|
18
|
-
|
19
|
-
# Secret code for verifying cookie session data integrity. If you change it,
|
20
|
-
# all old sessions will become invalid! Make sure the secret is at least 30
|
21
|
-
# characters and all random, no regular words or you'll be exposed to
|
22
|
-
# dictionary attacks.
|
23
|
-
session_secret: '1290832312281326461234712c347134618233441234513341132032545424856956711678856985f0575586671765c678659e7855bd58c6978856178b56e8f6'
|
24
|
-
|
25
|
-
# Name to use for storing application's session cookies, this is often a
|
26
|
-
# shortened form of your organization and application name, e.g.,
|
27
|
-
# "igniteportlandproposals", "igniteproposals", "openproposals", etc:
|
28
|
-
session_name: 'calagator'
|
29
|
-
|
30
|
-
# API key for Meetup.com, get your own from: http://www.meetup.com/meetup_api/key/
|
31
|
-
# meetup_api_key: registerNow
|
32
|
-
|
33
|
-
# Search engine to use for searching events, uncomment the line to specify that
|
34
|
-
# search engine. Defaults to 'sql'. For further information, see `INSTALL.md`.
|
35
|
-
### search_engine: sql
|
36
|
-
### search_engine: sunspot
|
37
|
-
|
38
|
-
# Configure a mapping provider
|
39
|
-
# Stamen's terrain tiles will be used by default.
|
40
|
-
mapping:
|
41
|
-
# Map marker color
|
42
|
-
# Values: red, darkred, orange, green, darkgreen, blue, purple, darkpuple, cadetblue
|
43
|
-
marker_color: green
|
44
|
-
|
45
|
-
# A Google Maps API key is required to use Google's geocoding service
|
46
|
-
# as well as to display maps using their API.
|
47
|
-
#
|
48
|
-
# Get one at: https://developers.google.com/maps/documentation/javascript/tutorial#api_key
|
49
|
-
google_maps_api_key: <your google maps v3 API key>
|
50
|
-
|
51
|
-
# The tile provider to use when rendering maps with Leaflet.
|
52
|
-
# One of: leaflet, stamen, mapbox, google
|
53
|
-
# provider: stamen
|
54
|
-
#
|
55
|
-
# The tiles to use for the map, see the docs for individual Leaflet plugins.
|
56
|
-
# For stamen, this can be one of: terrain, toner, watercolor
|
57
|
-
# tiles: terrain
|
58
|
-
#
|
59
|
-
#== Examples ==
|
60
|
-
# Stamen
|
61
|
-
# (available tiles: terrain, toner, watercolor)
|
62
|
-
# provider: stamen
|
63
|
-
# tiles: watercolor
|
64
|
-
#
|
65
|
-
# MapBox Streets (use a map from your own account)
|
66
|
-
# provider: mapbox
|
67
|
-
# tiles: examples.map-9ijuk24y
|
68
|
-
#
|
69
|
-
# Google Maps
|
70
|
-
# provider: google
|
71
|
-
# tiles: ROADMAP
|
72
|
-
# google_maps_api_key: <your google maps v3 API key>
|
73
|
-
#
|
74
|
-
# OpenStreetMap
|
75
|
-
# provider: leaflet
|
76
|
-
# tiles: http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
|
77
|
-
#
|
78
|
-
# Esri
|
79
|
-
# (available tiles: Gray, Streets, Oceans, Topographic)
|
80
|
-
# provider: esri
|
81
|
-
# tiles: Gray
|
82
|
-
|
83
|
-
#===[ fin ]=============================================================
|