activeadmin-blog 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activeadmin-blog (0.4.2)
4
+ activeadmin-blog (0.4.3)
5
5
  activeadmin-mongoid
6
6
  activeadmin-mongoid-reorder
7
7
  activeadmin-settings
@@ -42,7 +42,7 @@ GEM
42
42
  mongoid (~> 2.0)
43
43
  sass-rails (~> 3.1, >= 3.1.4)
44
44
  activeadmin-mongoid-reorder (0.2.1)
45
- activeadmin-settings (0.3.1)
45
+ activeadmin-settings (0.3.2)
46
46
  aws-s3
47
47
  carrierwave-mongoid
48
48
  fog
@@ -88,7 +88,7 @@ GEM
88
88
  railties (~> 3.1)
89
89
  warden (~> 1.2.1)
90
90
  erubis (2.7.0)
91
- excon (0.15.5)
91
+ excon (0.16.1)
92
92
  fast-stemmer (1.0.1)
93
93
  fastercsv (1.5.5)
94
94
  fog (1.5.0)
@@ -112,10 +112,10 @@ GEM
112
112
  has_scope (~> 0.5.0)
113
113
  responders (~> 0.6)
114
114
  journey (1.0.4)
115
- jquery-rails (2.0.2)
116
- railties (>= 3.2.0, < 5.0)
115
+ jquery-rails (2.1.1)
116
+ railties (>= 3.1.0, < 5.0)
117
117
  thor (~> 0.14)
118
- json (1.7.4)
118
+ json (1.7.5)
119
119
  kaminari (0.13.0)
120
120
  actionpack (>= 3.0.0)
121
121
  activesupport (>= 3.0.0)
@@ -185,7 +185,7 @@ GEM
185
185
  responders (0.9.2)
186
186
  railties (~> 3.1)
187
187
  ruby-hmac (0.4.0)
188
- sass (3.2.0)
188
+ sass (3.2.1)
189
189
  sass-rails (3.2.5)
190
190
  railties (~> 3.2.0)
191
191
  sass (>= 3.1.10)
data/README.md CHANGED
@@ -46,7 +46,6 @@ Run following generators:
46
46
  $ rails g mongoid:config
47
47
  $ rails g devise:install
48
48
  $ rails g active_admin:install
49
- $ rails g redactor:install
50
49
  $ rails g activeadmin_settings:install
51
50
  $ rails g activeadmin_blog:install blog
52
51
 
@@ -7,3 +7,4 @@ require "activeadmin-settings"
7
7
 
8
8
  require "activeadmin-blog/version"
9
9
  require "activeadmin-blog/engine"
10
+ require "activeadmin-blog/routing"
@@ -1,5 +1,5 @@
1
1
  module ActiveadminBlog
2
2
  class Engine < Rails::Engine
3
- isolate_namespace ActiveadminBlog
3
+ #isolate_namespace ActiveadminBlog
4
4
  end
5
5
  end
@@ -0,0 +1,15 @@
1
+ module ActionDispatch::Routing
2
+ class Mapper
3
+ def mount_blog_at(mount_location)
4
+ scope mount_location, :module => "ActiveadminBlog" do
5
+ get '/' => 'posts#index', :as => :blog
6
+ get '/search' => 'posts#search', :as => :blog_search
7
+ get '/feed' => 'posts#feed', :as => :blog_rss_feed
8
+ get '/archive/:y/:m' => 'posts#archive', :as => :blog_archive
9
+ get '/tags/:tag' => 'posts#tag', :as => :blog_tag
10
+ get '/posts/:slug' => 'posts#show', :as => :blog_post
11
+ get '/:slug' => 'posts#category', :as => :blog_category
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module ActiveadminBlog
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -29,7 +29,7 @@ module ActiveadminBlog
29
29
  end
30
30
 
31
31
  def mount_engine
32
- route "mount ActiveadminBlog::Engine => '/#{file_name}'"
32
+ route "mount_blog_at '/#{file_name}'"
33
33
  end
34
34
 
35
35
  def show_congrats
@@ -1,6 +1,6 @@
1
1
  module ActiveadminBlog
2
2
  module Generators
3
- class ViewsGenerator < Rails::Generators::NamedBase
3
+ class ViewsGenerator < Rails::Generators::Base
4
4
  desc << "Description:\n Copies blog templates to your application."
5
5
 
6
6
  source_root File.expand_path('../../../../app/views/activeadmin_blog/posts', __FILE__)
@@ -8,7 +8,7 @@ module ActiveadminBlog
8
8
  def copy_default_views
9
9
  filename_pattern = File.join self.class.source_root, "*.html.erb"
10
10
  Dir.glob(filename_pattern).map {|f| File.basename f}.each do |f|
11
- copy_file f, "app/views/blog/#{f}"
11
+ copy_file f, "app/views/activeadmin_blog/posts/#{f}"
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-15 00:00:00.000000000 Z
12
+ date: 2012-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -138,10 +138,10 @@ files:
138
138
  - app/views/admin/posts/_form.html.erb
139
139
  - app/views/admin/posts/_table.html.erb
140
140
  - app/views/admin/posts/all.html.erb
141
- - config/routes.rb
142
141
  - install.sh
143
142
  - lib/activeadmin-blog.rb
144
143
  - lib/activeadmin-blog/engine.rb
144
+ - lib/activeadmin-blog/routing.rb
145
145
  - lib/activeadmin-blog/version.rb
146
146
  - lib/generators/activeadmin_blog/install_generator.rb
147
147
  - lib/generators/activeadmin_blog/templates/README
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: -3963232444574075549
168
+ hash: 3018790596276565686
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements:
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  segments:
176
176
  - 0
177
- hash: -3963232444574075549
177
+ hash: 3018790596276565686
178
178
  requirements: []
179
179
  rubyforge_project: nowarning
180
180
  rubygems_version: 1.8.24
data/config/routes.rb DELETED
@@ -1,9 +0,0 @@
1
- ActiveadminBlog::Engine.routes.draw do
2
- get '/' => 'posts#index', :as => :blog
3
- get '/search' => 'posts#search', :as => :blog_search
4
- get '/feed' => 'posts#feed', :as => :blog_rss_feed
5
- get '/archive/:y/:m' => 'posts#archive', :as => :blog_archive
6
- get '/tags/:tag' => 'posts#tag', :as => :blog_tag
7
- get '/posts/:slug' => 'posts#show', :as => :blog_post
8
- get '/:slug' => 'posts#category', :as => :blog_category
9
- end