blue_pages 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +13 -0
  2. data/config/routes.rb +17 -0
  3. data/lib/blue_pages.rb +15 -0
  4. metadata +95 -0
data/README ADDED
@@ -0,0 +1,13 @@
1
+ Blue Pages
2
+ =====
3
+
4
+ Introduction goes here.
5
+
6
+
7
+ Example
8
+ =======
9
+
10
+ Example goes here.
11
+
12
+
13
+ Copyright (c) 2010 Jiri Zajpt, released under the MIT license
data/config/routes.rb ADDED
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+
3
+ Rails::Application.routes.draw do
4
+
5
+
6
+ if BluePages.route_prefix.present?
7
+
8
+ match "#{BluePages.route_prefix}/*path" => "pages#show"
9
+
10
+ else
11
+
12
+ match '*path' => "pages#show"
13
+
14
+ end
15
+
16
+ end
17
+
data/lib/blue_pages.rb ADDED
@@ -0,0 +1,15 @@
1
+ # encoding: utf-8
2
+
3
+ module BluePages
4
+
5
+ class Engine < Rails::Engine
6
+
7
+ end
8
+
9
+ def self.setup
10
+ yield self
11
+ end
12
+
13
+ mattr_accessor :route_prefix
14
+
15
+ end
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blue_pages
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - "Ji\xC5\x99\xC3\xAD Zajpt"
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-11-14 00:00:00 +01:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: mongoid
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 0
30
+ - 0
31
+ - beta
32
+ - 20
33
+ version: 2.0.0.beta.20
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: mongoid-tree
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: *id002
50
+ description: Pages engine handles cms-like pages.
51
+ email: jzajpt@blueberry.cz
52
+ executables: []
53
+
54
+ extensions: []
55
+
56
+ extra_rdoc_files:
57
+ - README
58
+ files:
59
+ - config/routes.rb
60
+ - lib/blue_pages.rb
61
+ - README
62
+ has_rdoc: true
63
+ homepage: http://github.com/jzajpt/blue_pages
64
+ licenses: []
65
+
66
+ post_install_message:
67
+ rdoc_options: []
68
+
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ segments:
77
+ - 0
78
+ version: "0"
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ segments:
85
+ - 0
86
+ version: "0"
87
+ requirements: []
88
+
89
+ rubyforge_project:
90
+ rubygems_version: 1.3.7
91
+ signing_key:
92
+ specification_version: 3
93
+ summary: Pages Engine for Rails 3
94
+ test_files: []
95
+