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.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/{LICENSE.txt → MIT-LICENSE.txt} +0 -0
  3. data/README.md +4 -18
  4. data/Rakefile +6 -0
  5. data/app/assets/javascripts/calagator.js +1 -0
  6. data/app/assets/stylesheets/calagator/changes.scss +45 -0
  7. data/app/assets/stylesheets/calagator/errors.css +8 -0
  8. data/app/assets/stylesheets/calagator/forms.scss +148 -2
  9. data/app/assets/stylesheets/calagator/index.scss +21 -0
  10. data/app/assets/stylesheets/calagator/layout.scss +731 -0
  11. data/app/assets/stylesheets/calagator/mobile.scss +196 -0
  12. data/app/assets/stylesheets/calagator/{reset.css → reset.scss} +0 -0
  13. data/app/assets/stylesheets/calagator/typography.scss +225 -0
  14. data/app/assets/stylesheets/calagator/{common.scss → utils.scss} +0 -0
  15. data/app/assets/stylesheets/calagator/variables.scss +21 -0
  16. data/app/controllers/calagator/admin_controller.rb +1 -1
  17. data/app/controllers/calagator/application_controller.rb +3 -3
  18. data/app/controllers/calagator/events_controller.rb +3 -3
  19. data/app/controllers/calagator/site_controller.rb +1 -1
  20. data/app/controllers/calagator/sources_controller.rb +3 -3
  21. data/app/controllers/calagator/venues_controller.rb +4 -4
  22. data/app/controllers/calagator/versions_controller.rb +2 -2
  23. data/app/helpers/calagator/application_helper.rb +0 -3
  24. data/app/helpers/calagator/mapping_helper.rb +9 -8
  25. data/app/models/calagator/event.rb +2 -3
  26. data/app/models/calagator/event/ical_renderer.rb +4 -2
  27. data/app/models/calagator/event/saver.rb +2 -2
  28. data/app/models/calagator/event/search_engine/sql.rb +2 -1
  29. data/app/models/calagator/source.rb +0 -26
  30. data/app/models/calagator/source/importer.rb +1 -1
  31. data/app/models/calagator/source/parser/meetup.rb +2 -2
  32. data/app/models/calagator/venue.rb +0 -2
  33. data/app/models/calagator/venue/geocoder.rb +1 -1
  34. data/app/models/calagator/venue/search_engine/sql.rb +1 -1
  35. data/app/views/calagator/events/_subnav.html.erb +2 -2
  36. data/app/views/calagator/events/show.html.erb +2 -2
  37. data/app/views/calagator/site/_description.html.erb +6 -3
  38. data/app/views/calagator/site/_sidebar_menu.html.erb +13 -0
  39. data/app/views/calagator/site/index.html.erb +1 -0
  40. data/app/views/calagator/sources/index.html.erb +1 -1
  41. data/app/views/calagator/sources/show.html.erb +1 -1
  42. data/app/views/calagator/venues/_subnav.html.erb +1 -1
  43. data/app/views/calagator/venues/show.html.erb +1 -1
  44. data/app/views/layouts/calagator/_after_footer.html.erb +2 -0
  45. data/app/views/layouts/calagator/_content.html.erb +6 -0
  46. data/app/views/layouts/calagator/_footer.html.erb +8 -0
  47. data/app/views/layouts/calagator/_global_search.html.erb +11 -0
  48. data/app/views/layouts/calagator/_header.html.erb +20 -0
  49. data/app/views/layouts/calagator/application.html.erb +9 -64
  50. data/config/routes.rb +16 -16
  51. data/config/spring.rb +1 -0
  52. data/db/development +0 -0
  53. data/db/development.sqlite3 +0 -0
  54. data/db/migrate/20150407014752_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +14 -0
  55. data/db/migrate/20150407014754_change_collation_for_tag_names.acts_as_taggable_on_engine.rb +9 -0
  56. data/db/schema.rb +2 -8
  57. data/db/seeds.rb +64 -8
  58. data/lib/calagator.rb +42 -2
  59. data/lib/calagator/duplicate_checking/duplicate_finder.rb +1 -1
  60. data/lib/calagator/duplicate_checking/duplicate_squasher.rb +1 -1
  61. data/lib/calagator/engine.rb +12 -22
  62. data/lib/calagator/tag_model_extensions.rb +1 -1
  63. data/lib/calagator/version.rb +1 -1
  64. data/lib/generators/calagator/install_generator.rb +17 -12
  65. data/lib/generators/calagator/templates/config/initializers/01_calagator.rb +89 -0
  66. data/lib/generators/calagator/templates/config/initializers/02_geokit.rb +106 -0
  67. data/lib/tasks/sunspot_reindex_calagator.rake +16 -3
  68. data/lib/tasks/update_counter_caches.rake +3 -3
  69. data/spec/controllers/calagator/events_controller_spec.rb +3 -3
  70. data/spec/controllers/calagator/sources_controller_spec.rb +3 -3
  71. data/spec/controllers/calagator/venues_controller_spec.rb +5 -5
  72. data/spec/dummy/Gemfile +35 -27
  73. data/spec/dummy/README.rdoc +15 -248
  74. data/spec/dummy/Rakefile +1 -2
  75. data/spec/dummy/app/assets/javascripts/application.js +5 -4
  76. data/spec/dummy/app/assets/stylesheets/application.css +6 -4
  77. data/spec/dummy/app/controllers/application_controller.rb +3 -1
  78. data/spec/dummy/app/views/layouts/application.html.erb +2 -2
  79. data/spec/dummy/bin/bundle +3 -0
  80. data/spec/dummy/bin/rails +4 -0
  81. data/spec/dummy/bin/rake +4 -0
  82. data/spec/dummy/bin/setup +29 -0
  83. data/spec/dummy/config.ru +2 -2
  84. data/spec/dummy/config/application.rb +5 -41
  85. data/spec/dummy/config/boot.rb +1 -4
  86. data/spec/dummy/config/database.yml +8 -8
  87. data/spec/dummy/config/environment.rb +3 -3
  88. data/spec/dummy/config/environments/development.rb +22 -18
  89. data/spec/dummy/config/environments/production.rb +46 -34
  90. data/spec/dummy/config/environments/test.rb +19 -14
  91. data/spec/dummy/config/initializers/01_calagator.rb +89 -0
  92. data/spec/dummy/config/initializers/02_geokit.rb +106 -0
  93. data/spec/dummy/config/initializers/assets.rb +11 -0
  94. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  95. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  96. data/spec/dummy/config/initializers/inflections.rb +6 -5
  97. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  98. data/spec/dummy/config/initializers/session_store.rb +1 -6
  99. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  100. data/spec/dummy/config/locales/en.yml +20 -2
  101. data/spec/dummy/config/routes.rb +23 -25
  102. data/spec/dummy/config/secrets.yml +16 -77
  103. data/spec/dummy/config/sunspot.yml +23 -0
  104. data/spec/dummy/db/development.sqlite3 +0 -0
  105. data/spec/dummy/db/schema.rb +31 -30
  106. data/spec/dummy/db/seeds.rb +1 -0
  107. data/spec/dummy/log/development.log +257 -235
  108. data/spec/dummy/public/404.html +54 -13
  109. data/spec/dummy/public/422.html +54 -13
  110. data/spec/dummy/public/500.html +53 -12
  111. data/spec/dummy/public/robots.txt +2 -2
  112. data/spec/dummy/test/test_helper.rb +2 -5
  113. data/spec/factories.rb +0 -54
  114. data/spec/features/admin_auth_spec.rb +2 -2
  115. data/spec/features/admin_lock_event_spec.rb +1 -1
  116. data/spec/features/import_events_from_feed_spec.rb +1 -1
  117. data/spec/helpers/calagator/google_event_export_helper_spec.rb +8 -11
  118. data/spec/helpers/calagator/sources_helper_spec.rb +1 -2
  119. data/spec/helpers/calagator/tags_helper_spec.rb +1 -2
  120. data/spec/models/calagator/event_spec.rb +7 -7
  121. data/spec/models/calagator/source/parser_meetup_spec.rb +3 -3
  122. data/spec/models/calagator/source_spec.rb +0 -29
  123. data/spec/models/calagator/venue_spec.rb +8 -11
  124. data/spec/spec_helper.rb +3 -1
  125. data/spec/support/admin_authentication.rb +2 -0
  126. data/spec/support/assert_dom_equal.rb +26 -0
  127. data/spec/support/paper_trail.rb +7 -0
  128. data/spec/support/rspec-activemodel-mocks_patch.rb +9 -0
  129. metadata +200 -280
  130. data/app/assets/stylesheets/calagator.scss +0 -8
  131. data/app/assets/stylesheets/calagator/datepicker.scss +0 -177
  132. data/app/assets/stylesheets/calagator/theme.css +0 -0
  133. data/app/models/event/search_engine/base.rb +0 -0
  134. data/config/deploy/local.rb +0 -37
  135. data/config/deploy/lucca.rb +0 -33
  136. data/config/initializers/geokit.rb +0 -74
  137. data/config/initializers/search_engine.rb +0 -4
  138. data/config/initializers/set_default_url_host.rb +0 -5
  139. data/db/test.sqlite3 +0 -0
  140. data/lib/generators/calagator/templates/config/calagator.rb +0 -26
  141. data/lib/generators/calagator/templates/config/secrets.yml.sample +0 -83
  142. data/lib/secrets_reader.rb +0 -76
  143. data/spec/dummy/Gemfile.lock +0 -195
  144. data/spec/dummy/app/assets/images/rails.png +0 -0
  145. data/spec/dummy/config/initializers/calagator.rb +0 -26
  146. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  147. data/spec/dummy/db/migrate/20150309023304_create_events.calagator.rb +0 -18
  148. data/spec/dummy/db/migrate/20150309023305_create_venues.calagator.rb +0 -18
  149. data/spec/dummy/db/migrate/20150309023306_create_sources.calagator.rb +0 -17
  150. data/spec/dummy/db/migrate/20150309023307_add_detailed_fields_to_venue.calagator.rb +0 -20
  151. data/spec/dummy/db/migrate/20150309023308_add_end_time_to_events.calagator.rb +0 -10
  152. data/spec/dummy/db/migrate/20150309023309_add_source_id_to_events.calagator.rb +0 -10
  153. data/spec/dummy/db/migrate/20150309023310_add_source_id_to_venues.calagator.rb +0 -11
  154. data/spec/dummy/db/migrate/20150309023311_add_duplicate_of_column_to_venues.calagator.rb +0 -10
  155. data/spec/dummy/db/migrate/20150309023312_add_duplicate_of_column_to_events.calagator.rb +0 -10
  156. data/spec/dummy/db/migrate/20150309023313_change_lat_long_type.calagator.rb +0 -13
  157. data/spec/dummy/db/migrate/20150309023314_add_source_reimport.calagator.rb +0 -10
  158. data/spec/dummy/db/migrate/20150309023315_change_end_time_to_duration.calagator.rb +0 -12
  159. data/spec/dummy/db/migrate/20150309023316_remove_format_type_from_source.calagator.rb +0 -10
  160. data/spec/dummy/db/migrate/20150309023317_create_updates.calagator.rb +0 -16
  161. data/spec/dummy/db/migrate/20150309023318_remove_next_update_from_source.calagator.rb +0 -10
  162. data/spec/dummy/db/migrate/20150309023319_change_duration_to_end_time.calagator.rb +0 -12
  163. data/spec/dummy/db/migrate/20150309023320_create_tags_and_taggings.calagator.rb +0 -29
  164. data/spec/dummy/db/migrate/20150309023321_create_versioned_events.calagator.rb +0 -26
  165. data/spec/dummy/db/migrate/20150309023322_create_versioned_venues.calagator.rb +0 -33
  166. data/spec/dummy/db/migrate/20150309023323_add_rrule_to_events.calagator.rb +0 -16
  167. data/spec/dummy/db/migrate/20150309023324_create_versions.calagator.rb +0 -19
  168. data/spec/dummy/db/migrate/20150309023325_add_closed_flag_to_venues.calagator.rb +0 -10
  169. data/spec/dummy/db/migrate/20150309023326_add_wifi_flag_to_venues.calagator.rb +0 -10
  170. data/spec/dummy/db/migrate/20150309023327_add_access_notes_to_venues.calagator.rb +0 -10
  171. data/spec/dummy/db/migrate/20150309023328_add_events_count_to_venues.calagator.rb +0 -9
  172. data/spec/dummy/db/migrate/20150309023329_add_venue_details_to_events.calagator.rb +0 -10
  173. data/spec/dummy/db/migrate/20150309023330_acts_as_taggable_on_migration.calagator.rb +0 -51
  174. data/spec/dummy/db/migrate/20150309023331_cleanup.calagator.rb +0 -15
  175. data/spec/dummy/db/migrate/20150309023332_specify_venues_latitude_and_longitude_precision.calagator.rb +0 -12
  176. data/spec/dummy/db/migrate/20150309023333_remove_updates.calagator.rb +0 -14
  177. data/spec/dummy/db/migrate/20150309023334_add_locked_status_to_events.calagator.rb +0 -6
  178. data/spec/dummy/db/test.sqlite3 +0 -0
  179. data/spec/dummy/doc/README_FOR_APP +0 -2
  180. data/spec/dummy/script/rails +0 -6
  181. data/spec/dummy/test/performance/browsing_test.rb +0 -12
  182. data/spec/lib/secrets_reader_spec.rb +0 -65
@@ -1,76 +0,0 @@
1
- require 'yaml'
2
- require 'erb'
3
- require 'ostruct'
4
- require 'set'
5
-
6
- # = SecretsReader
7
- #
8
- # Reads secrets from an ERB-parsed YAML file and returns an OpenStruct object.
9
- #
10
- # Examples:
11
- # # Read from default "config/secrets.yml" and "config/secrets.yml.sample" files:
12
- # Secrets = SecretsReader.read
13
- #
14
- # # Read a specific file:
15
- # Secrets = SecretsReader.read("myfile.yml") #
16
- #
17
- class SecretsReader
18
- # Return an OpenStruct object with secret information. The secrets are read
19
- # from an ERB-parsed YAML file.
20
- #
21
- # Arguments:
22
- # * Filename to read secrets from. Optional, if not given will try
23
- # "config/secret.yml" and "config/secret.yml.sample".
24
- #
25
- # Options:
26
- # * :verbose => Print status to screen on error. Defaults to true.
27
- # * :silent => Display nothing, not even errors. Defaults to false.
28
- def self.read(*args)
29
- given_file = args.first.kind_of?(String) ? args.first : nil
30
- opts = args.last.kind_of?(Hash) ? args.last : {}
31
- verbose = opts[:verbose] != false
32
- silent = opts[:silent] == true
33
-
34
- normal_file = "config/secrets.yml"
35
- sample_file = "config/secrets.yml.sample"
36
- rails_root = defined?(Rails) ? ::Rails.root : File.dirname(File.dirname(__FILE__))
37
-
38
- message = ""
39
- error = false
40
-
41
- if object = self.filename_to_ostruct(given_file)
42
- message << "loaded '#{given_file}'"
43
- elsif object = self.filename_to_ostruct(File.join(rails_root, normal_file))
44
- message << "loaded '#{normal_file}'"
45
- elsif object = self.filename_to_ostruct(File.join(rails_root, sample_file))
46
- message << "WARNING! Using insecure '#{sample_file}' settings, see 'Security' in INSTALL.md" unless defined?($INSECURE_SECRETS)
47
- $INSECURE_SECRETS = true
48
- error = true
49
- else
50
- object = OpenStruct.new
51
- message << "Couldn't find '#{normal_file}'"
52
- error = true
53
- end
54
-
55
- unless silent
56
- if message.present?
57
- message = "** SecretsReader - #{message}"
58
- puts message if error
59
- if message.present? && defined?(Rails)
60
- Rails.logger.info(message)
61
- end
62
- end
63
- end
64
-
65
- return object
66
- end
67
-
68
- # Return an OpenStruct object by reading the +filename+ and parsing it with ERB and YAML.
69
- def self.filename_to_ostruct(filename)
70
- if filename.nil? or not File.exist?(filename)
71
- return nil
72
- else
73
- return OpenStruct.new(YAML.load(ERB.new(File.read(filename)).result))
74
- end
75
- end
76
- end
@@ -1,195 +0,0 @@
1
- PATH
2
- remote: /Users/reidab/code/calagator
3
- specs:
4
- calagator (0.0.1)
5
- acts-as-taggable-on (= 2.4.1)
6
- bluecloth (= 2.2.0)
7
- columnize (= 0.3.6)
8
- font-awesome-rails (= 3.2.1.3)
9
- formtastic (= 2.2.1)
10
- formtastic (= 2.2.1)
11
- geokit (= 1.6.5)
12
- htmlentities (= 4.3.1)
13
- jquery-rails (~> 3.1)
14
- jquery-ui-rails (~> 5.0)
15
- loofah (= 1.2.1)
16
- loofah-activerecord (= 1.1.0)
17
- lucene_query (= 0.1)
18
- nokogiri (= 1.5.11)
19
- paper_trail (= 2.7.2)
20
- paper_trail_manager (= 0.2.0)
21
- progress_bar (= 1.0.0)
22
- rails (= 3.2.19)
23
- rails_autolink (= 1.1.3)
24
- rest-client (= 1.6.7)
25
- ri_cal (= 0.8.8)
26
- rubyzip (= 1.1.7)
27
- sass (~> 3.2)
28
- sass-rails (~> 3.2.3)
29
- sunspot_rails (= 2.1.1)
30
- sunspot_solr (= 2.1.1)
31
- utf8-cleaner (~> 0.0.6)
32
- will_paginate (= 3.0.5)
33
-
34
- GEM
35
- remote: https://rubygems.org/
36
- specs:
37
- actionmailer (3.2.19)
38
- actionpack (= 3.2.19)
39
- mail (~> 2.5.4)
40
- actionpack (3.2.19)
41
- activemodel (= 3.2.19)
42
- activesupport (= 3.2.19)
43
- builder (~> 3.0.0)
44
- erubis (~> 2.7.0)
45
- journey (~> 1.0.4)
46
- rack (~> 1.4.5)
47
- rack-cache (~> 1.2)
48
- rack-test (~> 0.6.1)
49
- sprockets (~> 2.2.1)
50
- activemodel (3.2.19)
51
- activesupport (= 3.2.19)
52
- builder (~> 3.0.0)
53
- activerecord (3.2.19)
54
- activemodel (= 3.2.19)
55
- activesupport (= 3.2.19)
56
- arel (~> 3.0.2)
57
- tzinfo (~> 0.3.29)
58
- activeresource (3.2.19)
59
- activemodel (= 3.2.19)
60
- activesupport (= 3.2.19)
61
- activesupport (3.2.19)
62
- i18n (~> 0.6, >= 0.6.4)
63
- multi_json (~> 1.0)
64
- acts-as-taggable-on (2.4.1)
65
- rails (>= 3, < 5)
66
- arel (3.0.3)
67
- bluecloth (2.2.0)
68
- builder (3.0.4)
69
- coffee-rails (3.2.2)
70
- coffee-script (>= 2.2.0)
71
- railties (~> 3.2.0)
72
- coffee-script (2.3.0)
73
- coffee-script-source
74
- execjs
75
- coffee-script-source (1.9.1)
76
- columnize (0.3.6)
77
- erubis (2.7.0)
78
- execjs (2.4.0)
79
- font-awesome-rails (3.2.1.3)
80
- railties (>= 3.2, < 5.0)
81
- formtastic (2.2.1)
82
- actionpack (>= 3.0)
83
- geokit (1.6.5)
84
- multi_json
85
- highline (1.6.21)
86
- hike (1.2.3)
87
- htmlentities (4.3.1)
88
- i18n (0.7.0)
89
- journey (1.0.4)
90
- jquery-rails (3.1.2)
91
- railties (>= 3.0, < 5.0)
92
- thor (>= 0.14, < 2.0)
93
- jquery-ui-rails (5.0.3)
94
- railties (>= 3.2.16)
95
- json (1.8.2)
96
- loofah (1.2.1)
97
- nokogiri (>= 1.4.4)
98
- loofah-activerecord (1.1.0)
99
- loofah (>= 1.0.0)
100
- lucene_query (0.1)
101
- mail (2.5.4)
102
- mime-types (~> 1.16)
103
- treetop (~> 1.4.8)
104
- mime-types (1.25.1)
105
- multi_json (1.11.0)
106
- nokogiri (1.5.11)
107
- options (2.3.2)
108
- paper_trail (2.7.2)
109
- activerecord (~> 3.0)
110
- railties (~> 3.0)
111
- paper_trail_manager (0.2.0)
112
- paper_trail (~> 2.0)
113
- rails (~> 3.0)
114
- rake
115
- will_paginate (~> 3.0.pre2)
116
- polyglot (0.3.5)
117
- pr_geohash (1.0.0)
118
- progress_bar (1.0.0)
119
- highline (~> 1.6.1)
120
- options (~> 2.3.0)
121
- rack (1.4.5)
122
- rack-cache (1.2)
123
- rack (>= 0.4)
124
- rack-ssl (1.3.4)
125
- rack
126
- rack-test (0.6.3)
127
- rack (>= 1.0)
128
- rails (3.2.19)
129
- actionmailer (= 3.2.19)
130
- actionpack (= 3.2.19)
131
- activerecord (= 3.2.19)
132
- activeresource (= 3.2.19)
133
- activesupport (= 3.2.19)
134
- bundler (~> 1.0)
135
- railties (= 3.2.19)
136
- rails_autolink (1.1.3)
137
- rails (> 3.1)
138
- railties (3.2.19)
139
- actionpack (= 3.2.19)
140
- activesupport (= 3.2.19)
141
- rack-ssl (~> 1.3.2)
142
- rake (>= 0.8.7)
143
- rdoc (~> 3.4)
144
- thor (>= 0.14.6, < 2.0)
145
- rake (10.4.2)
146
- rdoc (3.12.2)
147
- json (~> 1.4)
148
- rest-client (1.6.7)
149
- mime-types (>= 1.16)
150
- ri_cal (0.8.8)
151
- rsolr (1.0.12)
152
- builder (>= 2.1.2)
153
- rubyzip (1.1.7)
154
- sass (3.4.13)
155
- sass-rails (3.2.6)
156
- railties (~> 3.2.0)
157
- sass (>= 3.1.10)
158
- tilt (~> 1.3)
159
- sprockets (2.2.3)
160
- hike (~> 1.2)
161
- multi_json (~> 1.0)
162
- rack (~> 1.0)
163
- tilt (~> 1.1, != 1.3.0)
164
- sqlite3 (1.3.10)
165
- sunspot (2.1.1)
166
- pr_geohash (~> 1.0)
167
- rsolr (~> 1.0.7)
168
- sunspot_rails (2.1.1)
169
- nokogiri
170
- rails (>= 3)
171
- sunspot (= 2.1.1)
172
- sunspot_solr (2.1.1)
173
- thor (0.19.1)
174
- tilt (1.4.1)
175
- treetop (1.4.15)
176
- polyglot
177
- polyglot (>= 0.3.1)
178
- tzinfo (0.3.43)
179
- uglifier (2.7.1)
180
- execjs (>= 0.3.0)
181
- json (>= 1.8.0)
182
- utf8-cleaner (0.0.9)
183
- will_paginate (3.0.5)
184
-
185
- PLATFORMS
186
- ruby
187
-
188
- DEPENDENCIES
189
- calagator!
190
- coffee-rails (~> 3.2.1)
191
- jquery-rails
192
- rails (= 3.2.19)
193
- sass-rails (~> 3.2.3)
194
- sqlite3
195
- uglifier (>= 1.0.3)
@@ -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,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = 'af2187029cb02b59ea6789f8993e05a2ba542819a3cbe1ce231de4d1841d5d3a389d3ad4f5c63d6b11bcdd1631b99333edfb2b06974da3d4c571d5523d628aca'
@@ -1,18 +0,0 @@
1
- # This migration comes from calagator (originally 1)
2
- class CreateEvents < ActiveRecord::Migration
3
- def self.up
4
- create_table :events do |t|
5
- t.string :title
6
- t.text :description
7
- t.timestamp :start_time
8
- t.integer :venue_id
9
- t.string :url
10
-
11
- t.timestamps
12
- end
13
- end
14
-
15
- def self.down
16
- drop_table :events
17
- end
18
- end
@@ -1,18 +0,0 @@
1
- # This migration comes from calagator (originally 2)
2
- class CreateVenues < ActiveRecord::Migration
3
- def self.up
4
- create_table :venues do |t|
5
- t.string :title
6
- t.text :description
7
- t.string :address
8
- t.string :url
9
-
10
- t.timestamps
11
- end
12
-
13
- end
14
-
15
- def self.down
16
- drop_table :venues
17
- end
18
- end
@@ -1,17 +0,0 @@
1
- # This migration comes from calagator (originally 3)
2
- class CreateSources < ActiveRecord::Migration
3
- def self.up
4
- create_table :sources do |t|
5
- t.string :title
6
- t.string :url
7
- t.string :format_type
8
- t.timestamp :imported_at
9
-
10
- t.timestamps
11
- end
12
- end
13
-
14
- def self.down
15
- drop_table :sources
16
- end
17
- end
@@ -1,20 +0,0 @@
1
- # This migration comes from calagator (originally 4)
2
- class AddDetailedFieldsToVenue < ActiveRecord::Migration
3
- def self.up
4
- add_column :venues, :street_address, :string
5
- add_column :venues, :locality, :string
6
- add_column :venues, :region, :string
7
- add_column :venues, :postal_code, :string
8
- add_column :venues, :country, :string
9
-
10
- add_column :venues, :latitude, :float
11
- add_column :venues, :longitude, :float
12
-
13
- add_column :venues, :email, :string
14
- add_column :venues, :telephone, :string
15
- end
16
-
17
- def self.down
18
- remove_columns :venues, :street_address, :locality, :region, :postal_code, :country, :latitude, :longitude, :email, :telephone
19
- end
20
- end
@@ -1,10 +0,0 @@
1
- # This migration comes from calagator (originally 5)
2
- class AddEndTimeToEvents < ActiveRecord::Migration
3
- def self.up
4
- add_column :events, :end_time, :timestamp
5
- end
6
-
7
- def self.down
8
- remove_column :events, :end_time
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- # This migration comes from calagator (originally 6)
2
- class AddSourceIdToEvents < ActiveRecord::Migration
3
- def self.up
4
- add_column :events, :source_id, :integer
5
- end
6
-
7
- def self.down
8
- remove_column :events, :source_id
9
- end
10
- end
@@ -1,11 +0,0 @@
1
- # This migration comes from calagator (originally 8)
2
- class AddSourceIdToVenues < ActiveRecord::Migration
3
- def self.up
4
- add_column :venues, :source_id, :integer
5
- end
6
-
7
- def self.down
8
- remove_column :venues, :source_id
9
- end
10
- end
11
-
@@ -1,10 +0,0 @@
1
- # This migration comes from calagator (originally 9)
2
- class AddDuplicateOfColumnToVenues < ActiveRecord::Migration
3
- def self.up
4
- add_column :venues, :duplicate_of_id, :integer
5
- end
6
-
7
- def self.down
8
- remove_column :venues, :duplicate_of_id
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- # This migration comes from calagator (originally 10)
2
- class AddDuplicateOfColumnToEvents < ActiveRecord::Migration
3
- def self.up
4
- add_column :events, :duplicate_of_id, :integer
5
- end
6
-
7
- def self.down
8
- remove_column :events, :duplicate_of_id
9
- end
10
- end