adminpanel 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +36 -34
- data/lib/adminpanel.rb +0 -1
- data/lib/adminpanel/version.rb +1 -1
- data/schema.rb +65 -0
- metadata +5 -4
data/README.md
CHANGED
@@ -1,34 +1,36 @@
|
|
1
|
-
# Adminpanel
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
1
|
+
# Adminpanel
|
2
|
+
|
3
|
+
This gem is developed to be a CMS for Ruby 1.8.7 and Rails 3.2.12
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'adminpanel'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install adminpanel
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
In you application.rb
|
22
|
+
|
23
|
+
config.default_locale = :es
|
24
|
+
no other language is currently supported, but pull requests are welcome.
|
25
|
+
|
26
|
+
The gem expects you to have a database with tables as the schema.rb in the root. You have to add your sections in the seeds.rb to add them to the database.
|
27
|
+
|
28
|
+
Any doubt feel free to ask me!
|
29
|
+
|
30
|
+
## Contributing
|
31
|
+
|
32
|
+
1. Fork it
|
33
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
34
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
35
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
36
|
+
5. Create new Pull Request
|
data/lib/adminpanel.rb
CHANGED
data/lib/adminpanel/version.rb
CHANGED
data/schema.rb
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20131120070259) do
|
15
|
+
|
16
|
+
create_table "adminpanel_users", :force => true do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.string "email"
|
19
|
+
t.string "password_digest"
|
20
|
+
t.string "remember_token"
|
21
|
+
t.datetime "created_at", :null => false
|
22
|
+
t.datetime "updated_at", :null => false
|
23
|
+
end
|
24
|
+
|
25
|
+
create_table "adminpanel_categories", :force => true do |t|
|
26
|
+
t.string "name"
|
27
|
+
t.datetime "created_at", :null => false
|
28
|
+
t.datetime "updated_at", :null => false
|
29
|
+
end
|
30
|
+
|
31
|
+
create_table "adminpanel_galleries", :force => true do |t|
|
32
|
+
t.string "file"
|
33
|
+
t.datetime "created_at", :null => false
|
34
|
+
t.datetime "updated_at", :null => false
|
35
|
+
end
|
36
|
+
|
37
|
+
create_table "adminpanel_images", :force => true do |t|
|
38
|
+
t.string "file"
|
39
|
+
t.integer "foreign_key"
|
40
|
+
t.datetime "created_at", :null => false
|
41
|
+
t.datetime "updated_at", :null => false
|
42
|
+
t.string "model"
|
43
|
+
end
|
44
|
+
|
45
|
+
create_table "adminpanel_products", :force => true do |t|
|
46
|
+
t.string "name"
|
47
|
+
t.text "description"
|
48
|
+
t.datetime "created_at", :null => false
|
49
|
+
t.datetime "updated_at", :null => false
|
50
|
+
t.integer "category_id"
|
51
|
+
t.string "brief"
|
52
|
+
end
|
53
|
+
|
54
|
+
create_table "adminpanel_sections", :force => true do |t|
|
55
|
+
t.string "name"
|
56
|
+
t.text "description"
|
57
|
+
t.string "key"
|
58
|
+
t.boolean "has_image"
|
59
|
+
t.string "file"
|
60
|
+
t.datetime "created_at", :null => false
|
61
|
+
t.datetime "updated_at", :null => false
|
62
|
+
t.boolean "has_description"
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adminpanel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jose Ramon Camacho
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2013-
|
19
|
+
date: 2013-12-01 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rails
|
@@ -311,6 +311,7 @@ files:
|
|
311
311
|
- lib/adminpanel.rb
|
312
312
|
- lib/adminpanel/engine.rb
|
313
313
|
- lib/adminpanel/version.rb
|
314
|
+
- schema.rb
|
314
315
|
homepage: https://github.com/joseramonc/adminpanel
|
315
316
|
licenses:
|
316
317
|
- MIT
|