seo_unpakt 1.0.2 → 1.0.3
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.
- checksums.yaml +4 -4
- data/config/routes.rb +3 -3
- data/lib/seo_unpakt/engine.rb +5 -5
- data/lib/seo_unpakt/version.rb +1 -1
- metadata +1 -7
- data/db/migrate/20140408070411_add_column_generate_seo_urls_to_mover_cities.rb +0 -5
- data/db/migrate/20140422102809_update_seo_urls_mover_cities.rb +0 -11
- data/db/migrate/20140429070426_create_seo_unpakt_seo_keywords.rb +0 -8
- data/db/migrate/20140430141506_seed_seo_keywords.rb +0 -12
- data/db/migrate/20140506075238_update_seo_urls_false.rb +0 -7
- data/db/migrate/20140515080832_create_seo_unpakt_living_in_infos.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43a903b6291098e491a7a743689a0d67c374d574ebe27a3efa318153c71fd434
|
4
|
+
data.tar.gz: 7e4fcd330783fee7398ad32c649be7a6cc18c94c1feaa3bd1636235002b7abd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
4
|
-
|
5
|
-
|
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
|
data/lib/seo_unpakt/engine.rb
CHANGED
@@ -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
|
-
|
9
|
-
|
10
|
-
|
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
|
data/lib/seo_unpakt/version.rb
CHANGED
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.
|
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,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,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
|