blog_logic 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Gemfile +1 -2
  2. data/VERSION +1 -1
  3. data/blog_logic.gemspec +8 -11
  4. data/config/routes.rb +7 -14
  5. metadata +28 -38
data/Gemfile CHANGED
@@ -2,8 +2,7 @@ source 'http://rubygems.org'
2
2
  source 'http://jose.seologic.com:8808/'
3
3
 
4
4
  gem 'bson_ext'
5
- gem 'carrierwave'
6
- gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'
5
+ gem 'carrierwave', '< 0.5.7'
7
6
  gem 'ckeditor', :git => 'git://github.com/Bantik/rails-ckeditor.git', :branch => 'rails3_mongoid'
8
7
  gem 'kaminari'
9
8
  gem 'mongoid', '>= 2.0.0.beta.17'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.5
1
+ 0.7.6
data/blog_logic.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blog_logic}
8
- s.version = "0.7.5"
8
+ s.version = "0.7.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Bantik}]
12
- s.date = %q{2011-08-23}
11
+ s.authors = ["Bantik"]
12
+ s.date = %q{2011-08-30}
13
13
  s.description = %q{An engine for search-engine-optimized blog management.}
14
14
  s.email = %q{corey@seologic.com}
15
15
  s.extra_rdoc_files = [
@@ -809,8 +809,8 @@ Gem::Specification.new do |s|
809
809
  "vendor/plugins/.gitkeep"
810
810
  ]
811
811
  s.homepage = %q{https://mir.unfuddle.com/a#/projects/31942}
812
- s.require_paths = [%q{lib}]
813
- s.rubygems_version = %q{1.8.5}
812
+ s.require_paths = ["lib"]
813
+ s.rubygems_version = %q{1.4.2}
814
814
  s.summary = %q{An engine for search-engine-optimized blog management.}
815
815
 
816
816
  if s.respond_to? :specification_version then
@@ -818,8 +818,7 @@ Gem::Specification.new do |s|
818
818
 
819
819
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
820
820
  s.add_runtime_dependency(%q<bson_ext>, [">= 0"])
821
- s.add_runtime_dependency(%q<carrierwave>, [">= 0"])
822
- s.add_runtime_dependency(%q<carrierwave-mongoid>, [">= 0"])
821
+ s.add_runtime_dependency(%q<carrierwave>, ["< 0.5.7"])
823
822
  s.add_runtime_dependency(%q<ckeditor>, [">= 0"])
824
823
  s.add_runtime_dependency(%q<kaminari>, [">= 0"])
825
824
  s.add_runtime_dependency(%q<mongoid>, [">= 2.0.0.beta.17"])
@@ -831,8 +830,7 @@ Gem::Specification.new do |s|
831
830
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
832
831
  else
833
832
  s.add_dependency(%q<bson_ext>, [">= 0"])
834
- s.add_dependency(%q<carrierwave>, [">= 0"])
835
- s.add_dependency(%q<carrierwave-mongoid>, [">= 0"])
833
+ s.add_dependency(%q<carrierwave>, ["< 0.5.7"])
836
834
  s.add_dependency(%q<ckeditor>, [">= 0"])
837
835
  s.add_dependency(%q<kaminari>, [">= 0"])
838
836
  s.add_dependency(%q<mongoid>, [">= 2.0.0.beta.17"])
@@ -845,8 +843,7 @@ Gem::Specification.new do |s|
845
843
  end
846
844
  else
847
845
  s.add_dependency(%q<bson_ext>, [">= 0"])
848
- s.add_dependency(%q<carrierwave>, [">= 0"])
849
- s.add_dependency(%q<carrierwave-mongoid>, [">= 0"])
846
+ s.add_dependency(%q<carrierwave>, ["< 0.5.7"])
850
847
  s.add_dependency(%q<ckeditor>, [">= 0"])
851
848
  s.add_dependency(%q<kaminari>, [">= 0"])
852
849
  s.add_dependency(%q<mongoid>, [">= 2.0.0.beta.17"])
data/config/routes.rb CHANGED
@@ -1,25 +1,18 @@
1
1
  Rails.application.routes.draw do
2
- class BlogConstraint
3
- def initialize; end
4
- def matches?(request)
5
- Blog.where(:slug => request.path.split('/')[1]).first
2
+ resources :blogs
3
+ resources :posts
4
+
5
+ namespace :admin do
6
+ resources :blogs do
7
+ resources :posts
6
8
  end
7
9
  end
8
10
 
9
- constraints(BlogConstraint.new) do
11
+ scope :constraints => lambda{ |r| Blog.where(:slug => r.path.split('/')[1]).first } do
10
12
  get ':blog_slug', :to => 'blogs#show'
11
13
  get ':blog_slug/archive', :to => 'blogs#archive'
12
14
  get ':blog_slug/search', :to => 'blogs#search', :as => :search_blog
13
15
  get ':blog_slug/feed', :to => 'blogs#feed', :format => [:rss]
14
16
  get ':blog_slug/:post_slug', :to => 'posts#show'
15
17
  end
16
-
17
- namespace :admin do
18
- resources :blogs do
19
- resources :posts
20
- end
21
- end
22
-
23
- resources :blogs
24
- resources :posts
25
18
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blog_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 5
10
- version: 0.7.5
9
+ - 6
10
+ version: 0.7.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-23 00:00:00 Z
18
+ date: 2011-08-30 00:00:00 -05:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: bson_ext
@@ -37,16 +38,18 @@ dependencies:
37
38
  requirement: &id002 !ruby/object:Gem::Requirement
38
39
  none: false
39
40
  requirements:
40
- - - ">="
41
+ - - <
41
42
  - !ruby/object:Gem::Version
42
- hash: 3
43
+ hash: 5
43
44
  segments:
44
45
  - 0
45
- version: "0"
46
+ - 5
47
+ - 7
48
+ version: 0.5.7
46
49
  type: :runtime
47
50
  version_requirements: *id002
48
51
  - !ruby/object:Gem::Dependency
49
- name: carrierwave-mongoid
52
+ name: ckeditor
50
53
  prerelease: false
51
54
  requirement: &id003 !ruby/object:Gem::Requirement
52
55
  none: false
@@ -60,7 +63,7 @@ dependencies:
60
63
  type: :runtime
61
64
  version_requirements: *id003
62
65
  - !ruby/object:Gem::Dependency
63
- name: ckeditor
66
+ name: kaminari
64
67
  prerelease: false
65
68
  requirement: &id004 !ruby/object:Gem::Requirement
66
69
  none: false
@@ -73,24 +76,10 @@ dependencies:
73
76
  version: "0"
74
77
  type: :runtime
75
78
  version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: kaminari
78
- prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
80
- none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
88
- type: :runtime
89
- version_requirements: *id005
90
79
  - !ruby/object:Gem::Dependency
91
80
  name: mongoid
92
81
  prerelease: false
93
- requirement: &id006 !ruby/object:Gem::Requirement
82
+ requirement: &id005 !ruby/object:Gem::Requirement
94
83
  none: false
95
84
  requirements:
96
85
  - - ">="
@@ -104,11 +93,11 @@ dependencies:
104
93
  - 17
105
94
  version: 2.0.0.beta.17
106
95
  type: :runtime
107
- version_requirements: *id006
96
+ version_requirements: *id005
108
97
  - !ruby/object:Gem::Dependency
109
98
  name: rails
110
99
  prerelease: false
111
- requirement: &id007 !ruby/object:Gem::Requirement
100
+ requirement: &id006 !ruby/object:Gem::Requirement
112
101
  none: false
113
102
  requirements:
114
103
  - - ">="
@@ -120,11 +109,11 @@ dependencies:
120
109
  - 1
121
110
  version: 3.0.1
122
111
  type: :runtime
123
- version_requirements: *id007
112
+ version_requirements: *id006
124
113
  - !ruby/object:Gem::Dependency
125
114
  name: rmagick
126
115
  prerelease: false
127
- requirement: &id008 !ruby/object:Gem::Requirement
116
+ requirement: &id007 !ruby/object:Gem::Requirement
128
117
  none: false
129
118
  requirements:
130
119
  - - "="
@@ -136,11 +125,11 @@ dependencies:
136
125
  - 2
137
126
  version: 2.12.2
138
127
  type: :runtime
139
- version_requirements: *id008
128
+ version_requirements: *id007
140
129
  - !ruby/object:Gem::Dependency
141
130
  name: scaffold_logic
142
131
  prerelease: false
143
- requirement: &id009 !ruby/object:Gem::Requirement
132
+ requirement: &id008 !ruby/object:Gem::Requirement
144
133
  none: false
145
134
  requirements:
146
135
  - - ">="
@@ -152,11 +141,11 @@ dependencies:
152
141
  - 3
153
142
  version: 1.0.3
154
143
  type: :runtime
155
- version_requirements: *id009
144
+ version_requirements: *id008
156
145
  - !ruby/object:Gem::Dependency
157
146
  name: jeweler
158
147
  prerelease: false
159
- requirement: &id010 !ruby/object:Gem::Requirement
148
+ requirement: &id009 !ruby/object:Gem::Requirement
160
149
  none: false
161
150
  requirements:
162
151
  - - ">="
@@ -166,11 +155,11 @@ dependencies:
166
155
  - 0
167
156
  version: "0"
168
157
  type: :development
169
- version_requirements: *id010
158
+ version_requirements: *id009
170
159
  - !ruby/object:Gem::Dependency
171
160
  name: nokogiri
172
161
  prerelease: false
173
- requirement: &id011 !ruby/object:Gem::Requirement
162
+ requirement: &id010 !ruby/object:Gem::Requirement
174
163
  none: false
175
164
  requirements:
176
165
  - - ">="
@@ -180,11 +169,11 @@ dependencies:
180
169
  - 0
181
170
  version: "0"
182
171
  type: :development
183
- version_requirements: *id011
172
+ version_requirements: *id010
184
173
  - !ruby/object:Gem::Dependency
185
174
  name: rspec
186
175
  prerelease: false
187
- requirement: &id012 !ruby/object:Gem::Requirement
176
+ requirement: &id011 !ruby/object:Gem::Requirement
188
177
  none: false
189
178
  requirements:
190
179
  - - ">="
@@ -196,7 +185,7 @@ dependencies:
196
185
  - 9
197
186
  version: 1.2.9
198
187
  type: :development
199
- version_requirements: *id012
188
+ version_requirements: *id011
200
189
  description: An engine for search-engine-optimized blog management.
201
190
  email: corey@seologic.com
202
191
  executables: []
@@ -997,6 +986,7 @@ files:
997
986
  - spec/spec_helper.rb
998
987
  - tasks/blog_logic.rake
999
988
  - vendor/plugins/.gitkeep
989
+ has_rdoc: true
1000
990
  homepage: https://mir.unfuddle.com/a#/projects/31942
1001
991
  licenses: []
1002
992
 
@@ -1026,7 +1016,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1026
1016
  requirements: []
1027
1017
 
1028
1018
  rubyforge_project:
1029
- rubygems_version: 1.8.5
1019
+ rubygems_version: 1.4.2
1030
1020
  signing_key:
1031
1021
  specification_version: 3
1032
1022
  summary: An engine for search-engine-optimized blog management.