spud_permalinks 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,4 +3,6 @@ class SpudPermalink < ActiveRecord::Base
3
3
  validates :url_name, :presence => true,:uniqueness => true
4
4
  validates :attachment_type, :presence => true
5
5
  validates :attachment_id, :presence => true
6
+
7
+ scope :site, lambda {|sid| where(:site_id => sid)}
6
8
  end
@@ -0,0 +1,6 @@
1
+ class AddSiteIdToSpudPermalinks < ActiveRecord::Migration
2
+ def change
3
+ add_column :spud_permalinks, :site_id, :integer
4
+ add_index :spud_permalinks,:site_id
5
+ end
6
+ end
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Permalinks
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spud_permalinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-06 00:00:00.000000000 Z
12
+ date: 2012-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70357216953360 !ruby/object:Gem::Requirement
16
+ requirement: &70302218443560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.2.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70357216953360
24
+ version_requirements: *70302218443560
25
25
  description: This gem creates a polymorphic attachable model that can be used to store
26
26
  historical information on page urls for 301 redirecting.
27
27
  email:
@@ -32,6 +32,7 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - app/models/spud_permalink.rb
34
34
  - db/migrate/20120306195503_create_spud_permalinks.rb
35
+ - db/migrate/20120329135522_add_site_id_to_spud_permalinks.rb
35
36
  - lib/spud_permalinks/engine.rb
36
37
  - lib/spud_permalinks/version.rb
37
38
  - lib/spud_permalinks.rb
@@ -81,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
82
  version: '0'
82
83
  segments:
83
84
  - 0
84
- hash: -961465657541026455
85
+ hash: 1844685203287342109
85
86
  required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  none: false
87
88
  requirements:
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  version: '0'
91
92
  segments:
92
93
  - 0
93
- hash: -961465657541026455
94
+ hash: 1844685203287342109
94
95
  requirements: []
95
96
  rubyforge_project:
96
97
  rubygems_version: 1.8.15