fi_seo 0.1.0 → 0.1.1

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: a4b6862bad29b1fb7ce90cab401d565ee92516c9ace05e8ebb9936e317549506
4
- data.tar.gz: 82faae7924d91bbf8e63071fb6b75e3dd0403c3ac854df138eb374a635de7bbf
3
+ metadata.gz: 2f686e6b17838ac2a4ac9325238ef5f67e213a86674eb143387b74f785ad1e18
4
+ data.tar.gz: 88060a673f5ee053eacd477b9503371c869f8550ad53fc2ce52448c64106bc6d
5
5
  SHA512:
6
- metadata.gz: a239940436fe911a43d9e90fdbe740ae0799bd5b5e242e88af7c931e6872ae9d87ae085913d11003e69704ab666810a262b92afbb5e4ea599066ae2a93d62a64
7
- data.tar.gz: 277b06536793f9f15cb35cae8ad76ce162596c852e834459f6be49ffa9a552fd0ca39caf8b1bc75d522678266c3919bb87f073dd81bb1eedbf345a8eea933836
6
+ metadata.gz: dd5c26a95b232946549c5c016a269a369314316622a2e4140dbce8fdc747031d0e1c3d55227bf4f6a5a34d701f5609a8b67829dd2ac0a48ed26050fcd6eece0e
7
+ data.tar.gz: 25198b6edda03522542784370df36bd90dab41a83de139745e298204bb91ba755f65774441dbfae61f31faddd3a619e91748b46127dd52f270ba33502391ba62
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fi_seo (0.1.0)
4
+ fi_seo (0.1.1)
5
5
  activerecord (~> 5.0, >= 5.0.0.1)
6
6
  meta-tags (~> 2.13)
7
7
  xml-sitemap (~> 1.3, >= 1.3.3)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FiSeo
2
2
 
3
- This gem provides a easier solution to search engine optimization(SEO) in a ruby project. This will give you the seo capabilities to your static pages and dynamic pages alike with few lines of code.
3
+ This gem provides a easier solution to search engine optimization(SEO) in a rails project. This will give you the seo capabilities to your static pages and dynamic pages alike with few lines of code.
4
4
  Also site maps are essential to the SEO of your web application. So this gem gives that capabilities with a feature to integrate google analytics.
5
5
 
6
6
  This gem currently integrate with the Active Admin for management of the gem. Dynamic pages and other settings also include with the integration.
@@ -33,7 +33,7 @@ And then execute:
33
33
 
34
34
  After updating your bundle, run the migration as follows:
35
35
 
36
- $ acts_as_seoable:migrate
36
+ $ rails g acts_as_seoable:migrate
37
37
  $ rails db:migrate
38
38
 
39
39
  ## Usage
@@ -297,7 +297,7 @@ Got a bug and you're not sure? You're sure you have a bug, but don't know what t
297
297
 
298
298
  ## Contributing
299
299
 
300
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fi_seo. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/fi_seo/blob/master/CODE_OF_CONDUCT.md).
300
+ Bug reports and pull requests are welcome on GitHub at https://github.com/fidenz-developer/fi-seo. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/fidenz-developer/fi-seo/blob/master/CODE_OF_CONDUCT.md).
301
301
 
302
302
 
303
303
  ## License
@@ -306,4 +306,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
306
306
 
307
307
  ## Code of Conduct
308
308
 
309
- Everyone interacting in the FiSeo project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/fi_seo/blob/master/CODE_OF_CONDUCT.md).
309
+ Everyone interacting in the FiSeo project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fidenz-developer/fi-seo/blob/master/CODE_OF_CONDUCT.md).
data/fi_seo.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.email = ['info@fidenz.com', 'tech@fidenz.com', 'banura.r@fidenz.com']
8
8
 
9
9
  spec.summary = 'Flexible SEO solution for rails projects'
10
- spec.description = 'This gem provides a easier solution to search engine optimization(SEO) in a ruby project. This will give you the seo capabilities to your static pages anddynamic pages alike with few lines of code.
10
+ spec.description = 'This gem provides a easier solution to search engine optimization(SEO) in a rails project. This will give you the seo capabilities to your static pages and dynamic pages alike with few lines of code.
11
11
  Also site maps are essential to the SEO of your web application. So this gem gives that capabilities with a feature to integrate google analytics.'
12
12
  spec.homepage = 'https://github.com/fidenz-developer/fi-seo.git'
13
13
  spec.license = 'MIT'
@@ -1,3 +1,3 @@
1
1
  module FiSeo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -14,8 +14,26 @@ module ActsAsSeoable
14
14
  end
15
15
 
16
16
  def copy_migrations
17
- migration_template 'migration.rb',
18
- 'db/migrate/create_seo_tables.rb'
17
+ migration_template 'migration.erb',
18
+ 'db/migrate/create_seo_tables.rb', migration_version: migration_version
19
+ end
20
+
21
+ private
22
+
23
+ def migration_version
24
+ if rails5?
25
+ '[4.2]'
26
+ elsif rails6?
27
+ '[6.0]'
28
+ end
29
+ end
30
+
31
+ def rails5?
32
+ Rails.version.start_with? '5'
33
+ end
34
+
35
+ def rails6?
36
+ Rails.version.start_with? '6'
19
37
  end
20
38
  end
21
39
  end
@@ -1,4 +1,4 @@
1
- class CreateSeoTables < ActiveRecord::Migration[5.2]
1
+ class CreateSeoTables < ActiveRecord::Migration<%= migration_version %>
2
2
  def self.up
3
3
  create_table :dynamic_seos do |t|
4
4
  t.string :seoable_type, null: false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fi_seo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Banura Randika
@@ -65,7 +65,7 @@ dependencies:
65
65
  - !ruby/object:Gem::Version
66
66
  version: 1.3.3
67
67
  description: |-
68
- This gem provides a easier solution to search engine optimization(SEO) in a ruby project. This will give you the seo capabilities to your static pages anddynamic pages alike with few lines of code.
68
+ This gem provides a easier solution to search engine optimization(SEO) in a rails project. This will give you the seo capabilities to your static pages and dynamic pages alike with few lines of code.
69
69
  Also site maps are essential to the SEO of your web application. So this gem gives that capabilities with a feature to integrate google analytics.
70
70
  email:
71
71
  - info@fidenz.com
@@ -109,7 +109,7 @@ files:
109
109
  - lib/generators/acts_as_seoable/install/install_generator.rb
110
110
  - lib/generators/acts_as_seoable/install/templates/initializer.rb
111
111
  - lib/generators/acts_as_seoable/migrate/migrate_generator.rb
112
- - lib/generators/acts_as_seoable/migrate/templates/migration.rb
112
+ - lib/generators/acts_as_seoable/migrate/templates/migration.erb
113
113
  - screenshots/dynamic-pages-seoable.png
114
114
  - screenshots/static-pages-seoable-details.png
115
115
  - screenshots/static-pages-seoable-frontend.png