seo_unpakt 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7e5f518ee4c14d8552ebbbf643d63cf093847b1a6ac01240aeec6b5792243eb
4
- data.tar.gz: cebf829b2f2fcdf1196b4db985bd746fc58ae9529f1584a282e059f0e9fb3a58
3
+ metadata.gz: 43a903b6291098e491a7a743689a0d67c374d574ebe27a3efa318153c71fd434
4
+ data.tar.gz: 7e4fcd330783fee7398ad32c649be7a6cc18c94c1feaa3bd1636235002b7abd8
5
5
  SHA512:
6
- metadata.gz: 172e05b52b46b4845d4150034d6a3f3ca07b03397278aa2797e1830c72634807c9686542b2535c1154bd6b3878395c424304e4e306a6b2919f0ba6e6cec0d677
7
- data.tar.gz: 37c3f40f7afdd673896ef2fcee32e70549688b95bf54c7885da47b15420522e574df0f26290ef4e91ea5232906bee9a5c56d7c027dae85bf105e214bf9e70e0f
6
+ metadata.gz: 4fa57079ffc3a06e19b6ae6f4222c3e96496966572f8b3622e14c2fbbf5b3b109319d9301f6f22e2acf7a1f532318a655954a1b042fef97c804021cf7589bc32
7
+ data.tar.gz: 26af874fdd5e37aa01f680ecad53ee05c62d886b9e0d5ac8f2bf229b2e0486b15159321bb6053253cab771faf7fbb93528687e7b74921860de60d70f9059f218
data/config/routes.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  SeoUnpakt::Engine.routes.draw do
2
2
  namespace :admin do
3
- match "/" => "seo_configs#mover_cities"
4
-
5
- match "/mover_cities/:mover_city_id/toggle_seo" => "seo_configs#toggle_seo_city", as: "toggle_seo_city"
3
+ get "/" => "seo_configs#mover_cities"
4
+ #match "/mover_cities/:mover_city_id/toggle_seo" => "seo_configs#toggle_seo_city", as: "toggle_seo_city"
5
+ puts '/mover_cities/:mover_city_id/toggle_seo' => 'seo_configs#toggle_seo_city'
6
6
 
7
7
  resources :seo_configs do
8
8
  collection do
@@ -4,11 +4,11 @@ module SeoUnpakt
4
4
  class Engine < ::Rails::Engine
5
5
  isolate_namespace SeoUnpakt
6
6
 
7
- initializer :append_migrations do |app|
8
- unless app.root.to_s.match root.to_s
9
- app.config.paths["db/migrate"] += config.paths["db/migrate"].expanded
10
- end
11
- end
7
+ # initializer :append_migrations do |app|
8
+ # unless app.root.to_s.match root.to_s
9
+ # app.config.paths["db/migrate"] += config.paths["db/migrate"].expanded
10
+ # end
11
+ # end
12
12
 
13
13
  config.generators do |g|
14
14
  g.test_framework :rspec, :fixture => false
@@ -1,3 +1,3 @@
1
1
  module SeoUnpakt
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seo_unpakt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pravin Mhatre
@@ -179,12 +179,6 @@ files:
179
179
  - app/views/seo_unpakt/seo/state_movers.html.slim
180
180
  - config/routes.rb
181
181
  - config/tinymce.yml
182
- - db/migrate/20140408070411_add_column_generate_seo_urls_to_mover_cities.rb
183
- - db/migrate/20140422102809_update_seo_urls_mover_cities.rb
184
- - db/migrate/20140429070426_create_seo_unpakt_seo_keywords.rb
185
- - db/migrate/20140430141506_seed_seo_keywords.rb
186
- - db/migrate/20140506075238_update_seo_urls_false.rb
187
- - db/migrate/20140515080832_create_seo_unpakt_living_in_infos.rb
188
182
  - db/seeders/UnpaktLocations.csv
189
183
  - lib/seo_unpakt.rb
190
184
  - lib/seo_unpakt/engine.rb
@@ -1,5 +0,0 @@
1
- class AddColumnGenerateSeoUrlsToMoverCities < ActiveRecord::Migration
2
- def change
3
- add_column :mover_cities, :generate_seo_urls, :boolean, default: false
4
- end
5
- end
@@ -1,11 +0,0 @@
1
- class UpdateSeoUrlsMoverCities < ActiveRecord::Migration
2
- def change
3
- puts "started updating mover_city table..."
4
- seeder_folder = __FILE__.split("migrate").first + "seeders"
5
- csv = CSV::parse(File.open("#{seeder_folder}/UnpaktLocations.csv", 'r') {|f| f.read })
6
- csv.each do |record|
7
- MoverCity.update_all("generate_seo_urls = true", "city = '#{record[0]}' AND state = '#{record[1]}'")
8
- end
9
- puts "Done!!!"
10
- end
11
- end
@@ -1,8 +0,0 @@
1
- class CreateSeoUnpaktSeoKeywords < ActiveRecord::Migration
2
- def change
3
- create_table :seo_unpakt_seo_keywords do |t|
4
- t.string :word
5
- t.timestamps
6
- end
7
- end
8
- end
@@ -1,12 +0,0 @@
1
- class SeedSeoKeywords < ActiveRecord::Migration
2
- def up
3
- SeoUnpakt::SeoKeyword.create(word: "move")
4
- SeoUnpakt::SeoKeyword.create(word: "moving-companies")
5
- SeoUnpakt::SeoKeyword.create(word: "moving-quotes")
6
- SeoUnpakt::SeoKeyword.create(word: "movers-services")
7
- end
8
-
9
- def down
10
-
11
- end
12
- end
@@ -1,7 +0,0 @@
1
- class UpdateSeoUrlsFalse < ActiveRecord::Migration
2
- def change
3
- puts "Updating generate_seo_urls to false..."
4
- MoverCity.update_all("generate_seo_urls = false")
5
- puts "Done !!!"
6
- end
7
- end
@@ -1,11 +0,0 @@
1
- class CreateSeoUnpaktLivingInInfos < ActiveRecord::Migration
2
- def change
3
- create_table :seo_unpakt_living_in_infos do |t|
4
- t.string :info_type
5
- t.string :city
6
- t.string :state
7
- t.text :body
8
- t.timestamps
9
- end
10
- end
11
- end