adminpanel 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +7 -0
- data/Gemfile +16 -9
- data/README.md +12 -1
- data/Rakefile +3 -0
- data/adminpanel.gemspec +13 -9
- data/app/assets/stylesheets/adminpanel/theme.css +11 -3
- data/app/controllers/adminpanel/categories_controller.rb +1 -1
- data/app/controllers/adminpanel/products_controller.rb +1 -1
- data/app/controllers/adminpanel/sessions_controller.rb +5 -3
- data/app/helpers/adminpanel/application_helper.rb +1 -1
- data/app/models/adminpanel/section.rb +1 -0
- data/app/views/adminpanel/categories/index.html.erb +9 -9
- data/app/views/adminpanel/categories/new.html.erb +2 -2
- data/app/views/adminpanel/products/_image_fields.html.erb +1 -1
- data/app/views/adminpanel/products/_product_form.html.erb +4 -4
- data/app/views/adminpanel/products/edit.html.erb +1 -1
- data/app/views/adminpanel/products/index.html.erb +2 -6
- data/app/views/adminpanel/products/new.html.erb +1 -1
- data/app/views/adminpanel/sections/_image_fields.html.erb +1 -1
- data/app/views/adminpanel/sessions/new.html.erb +4 -4
- data/app/views/adminpanel/users/_user_form.html.erb +21 -0
- data/app/views/adminpanel/users/edit.html.erb +1 -17
- data/app/views/adminpanel/users/new.html.erb +1 -17
- data/app/views/layouts/_side_menu.html.erb +10 -11
- data/app/views/layouts/_top_bar.html.erb +2 -3
- data/app/views/layouts/admin-login.html.erb +27 -0
- data/app/views/layouts/admin.html.erb +2 -7
- data/app/views/shared/_error_messages.html.erb +2 -2
- data/config/database.yml +24 -0
- data/config/locales/es.yml +81 -181
- data/lib/adminpanel/version.rb +1 -1
- data/spec/dummy/.gitignore +0 -2
- data/spec/dummy/config/application.rb +2 -1
- data/spec/dummy/config/database.yml +24 -0
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/features/authentication_pages_spec.rb +44 -0
- data/spec/features/categories_pages_spec.rb +44 -0
- data/spec/features/product_pages_spec.rb +53 -0
- data/spec/models/{adminpanel/category_spec.rb → category_spec.rb} +0 -1
- data/spec/models/{adminpanel/gallery_spec.rb → gallery_spec.rb} +0 -1
- data/spec/models/{adminpanel/image_uploader.rb → image_uploader.rb} +0 -1
- data/spec/models/{adminpanel/product_spec.rb → product_spec.rb} +0 -1
- data/spec/models/{adminpanel/section_spec.rb → section_spec.rb} +0 -1
- data/spec/models/{adminpanel/user_spec.rb → user_spec.rb} +0 -1
- data/spec/spec_helper.rb +7 -4
- data/spec/support/define_factory_models.rb +17 -0
- data/spec/support/helper_methods.rb +11 -0
- data/spec/support/submit_forms_without_button.rb +17 -0
- data/spec/uploaders/{adminpanel/gallery_uploader_spec.rb → gallery_uploader_spec.rb} +0 -0
- data/spec/uploaders/{adminpanel/image_uploader_spec.rb → image_uploader_spec.rb} +0 -0
- data/spec/uploaders/{adminpanel/section_uploader_spec.rb → section_uploader_spec.rb} +0 -0
- metadata +119 -149
- data/app/views/adminpanel/users/_form.html.erb +0 -33
data/spec/dummy/.gitignore
CHANGED
@@ -27,7 +27,8 @@ module Dummy
|
|
27
27
|
|
28
28
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
29
29
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
30
|
-
|
30
|
+
config.i18n.default_locale = :es
|
31
|
+
config.i18n.enforce_available_locales = false
|
31
32
|
|
32
33
|
# Configure the default encoding used in templates for Ruby 1.9.
|
33
34
|
config.encoding = "utf-8"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
development:
|
7
|
+
adapter: sqlite3
|
8
|
+
database: db/development.sqlite3
|
9
|
+
pool: 5
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
13
|
+
# re-generated from your development database when you run "rake".
|
14
|
+
# Do not set this db to the same as development or production.
|
15
|
+
test:
|
16
|
+
adapter: sqlite3
|
17
|
+
database: ":memory:"
|
18
|
+
timeout: 500
|
19
|
+
|
20
|
+
production:
|
21
|
+
adapter: sqlite3
|
22
|
+
database: db/production.sqlite3
|
23
|
+
pool: 5
|
24
|
+
timeout: 5000
|
data/spec/dummy/config/routes.rb
CHANGED
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Authentication" do
|
4
|
+
|
5
|
+
subject { page }
|
6
|
+
|
7
|
+
describe "sign in page" do
|
8
|
+
before { visit adminpanel.signin_path }
|
9
|
+
|
10
|
+
it { should have_content(I18n.t("authentication.welcome")) }
|
11
|
+
|
12
|
+
it { expect(page).to have_title(I18n.t("Panel title")) }
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "signin" do
|
16
|
+
before { visit adminpanel.signin_path }
|
17
|
+
|
18
|
+
describe "with invalid information" do
|
19
|
+
before { click_button "signin-button" }
|
20
|
+
|
21
|
+
it { expect(page).to have_title(I18n.t("Panel title")) }
|
22
|
+
|
23
|
+
it { should have_selector('div.alert.alert-error', :text => I18n.t("authentication.signin error")) }
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "with valid information" do
|
27
|
+
let(:user) { Factory(:user) }
|
28
|
+
before do
|
29
|
+
valid_signin(user)
|
30
|
+
end
|
31
|
+
|
32
|
+
it { should have_selector('div.alert.alert-success', :text => I18n.t("authentication.signin success")) }
|
33
|
+
it { should have_selector('i.icon-off') }
|
34
|
+
|
35
|
+
describe "signing out" do
|
36
|
+
before { click_link "signout-button"}
|
37
|
+
|
38
|
+
it { current_path.should == adminpanel.signin_path }
|
39
|
+
it { expect(page).to have_title(I18n.t("Panel title")) }
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "Categories" do
|
4
|
+
subject {page}
|
5
|
+
|
6
|
+
let(:user) { Factory(:user) }
|
7
|
+
before do
|
8
|
+
visit adminpanel.signin_path
|
9
|
+
valid_signin(user)
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "categories index" do
|
13
|
+
let(:category) { Factory(:category) }
|
14
|
+
before do
|
15
|
+
visit adminpanel.categories_path
|
16
|
+
end
|
17
|
+
|
18
|
+
it { should have_link(I18n.t("category.new"), adminpanel.new_category_path)}
|
19
|
+
it { should have_link("i", adminpanel.category_path(category)) }
|
20
|
+
it { should have_link("i", adminpanel.edit_category_path(category)) }
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "create category" do
|
24
|
+
before { visit adminpanel.new_category_path }
|
25
|
+
|
26
|
+
it { should have_title(I18n.t("category.new")) }
|
27
|
+
|
28
|
+
describe "with invalid information" do
|
29
|
+
before { find("form#new_category").submit_form! }
|
30
|
+
|
31
|
+
it { should have_title(I18n.t("category.new")) }
|
32
|
+
it { should have_selector("div#alerts") }
|
33
|
+
end
|
34
|
+
|
35
|
+
describe "with valid information" do
|
36
|
+
before do
|
37
|
+
fill_in "category_name", :with => "category name"
|
38
|
+
find("form#new_category").submit_form!
|
39
|
+
end
|
40
|
+
|
41
|
+
it { should have_content(I18n.t("category.success"))}
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "Products" do
|
4
|
+
subject {page}
|
5
|
+
|
6
|
+
let(:user) { Factory(:user) }
|
7
|
+
before do
|
8
|
+
visit adminpanel.signin_path
|
9
|
+
valid_signin(user)
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "products index" do
|
13
|
+
let(:product) { Factory(:product) }
|
14
|
+
before do
|
15
|
+
visit adminpanel.products_path
|
16
|
+
end
|
17
|
+
|
18
|
+
it { should have_link(I18n.t("product.new"), adminpanel.new_product_path)}
|
19
|
+
it { should have_link("i", adminpanel.product_path(product)) }
|
20
|
+
it { should have_link("i", adminpanel.edit_product_path(product)) }
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "create product" do
|
24
|
+
let(:category) { Factory(:category) }
|
25
|
+
before do
|
26
|
+
category.id = 1 #to force instantiation so it becomes available in the select
|
27
|
+
visit adminpanel.new_product_path
|
28
|
+
end
|
29
|
+
|
30
|
+
it { should have_title(I18n.t("product.new")) }
|
31
|
+
|
32
|
+
describe "with invalid information" do
|
33
|
+
before { find("form#new_product").submit_form! }
|
34
|
+
|
35
|
+
it { should have_title(I18n.t("product.new")) }
|
36
|
+
it { should have_selector("div#alerts") }
|
37
|
+
end
|
38
|
+
|
39
|
+
describe "with valid information" do
|
40
|
+
before do
|
41
|
+
fill_in "product_name", :with => "product name"
|
42
|
+
fill_in "product_brief", :with => "little brief"
|
43
|
+
find(:xpath, "//input[@id='description-field']").set "a little longer text"
|
44
|
+
select category.name, :from => "product_category_id"
|
45
|
+
find("form#new_product").submit_form!
|
46
|
+
end
|
47
|
+
|
48
|
+
it { should have_content(I18n.t("product.success"))}
|
49
|
+
end
|
50
|
+
|
51
|
+
describe
|
52
|
+
end
|
53
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,8 +4,13 @@
|
|
4
4
|
# loaded once.
|
5
5
|
#
|
6
6
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
|
7
8
|
ENV["RAILS_ENV"] ||= 'test'
|
8
9
|
require File.expand_path("../dummy/config/environment", __FILE__)
|
10
|
+
require "rspec/rails"
|
11
|
+
require "factory_girl"
|
12
|
+
|
13
|
+
Dir["./spec/support/**/*.rb"].sort.each {|f| require f}
|
9
14
|
|
10
15
|
RSpec.configure do |config|
|
11
16
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
@@ -18,9 +23,7 @@ RSpec.configure do |config|
|
|
18
23
|
:database => ':memory:'
|
19
24
|
)
|
20
25
|
|
21
|
-
|
22
|
-
|
23
|
-
# the seed, which is printed after each run.
|
24
|
-
# --seed 1234
|
26
|
+
config.include Rails.application.routes.url_helpers
|
27
|
+
|
25
28
|
config.order = 'random'
|
26
29
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Factory.define :user, :class => Adminpanel::User do |user|
|
2
|
+
user.name "test user"
|
3
|
+
user.email "email@test.com"
|
4
|
+
user.password "123456"
|
5
|
+
user.password_confirmation "123456"
|
6
|
+
end
|
7
|
+
|
8
|
+
Factory.define :category, :class => Adminpanel::Category do |category|
|
9
|
+
category.name "test category"
|
10
|
+
end
|
11
|
+
|
12
|
+
Factory.define :product, :class => Adminpanel::Product do |product|
|
13
|
+
product.name "test product"
|
14
|
+
product.brief "very little description"
|
15
|
+
product.description "this is a little longer description, can be very long"
|
16
|
+
product.association :category, :factory => :category
|
17
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
def valid_signin(user)
|
2
|
+
fill_in "inputEmail", :with => user.email
|
3
|
+
fill_in "inputPassword", :with => user.password
|
4
|
+
click_button "signin-button"
|
5
|
+
end
|
6
|
+
|
7
|
+
RSpec::Matchers::define :have_title do |text|
|
8
|
+
match do |page|
|
9
|
+
Capybara.string(page.body).has_selector?('title', :text => text)
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Capybara::Driver::Node
|
2
|
+
def submit_form!
|
3
|
+
raise NotImplementedError
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
class Capybara::RackTest::Node
|
8
|
+
def submit_form!
|
9
|
+
Capybara::RackTest::Form.new(driver, self.native).submit({})
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class Capybara::Node::Element
|
14
|
+
def submit_form!
|
15
|
+
wait_until { base.submit_form! }
|
16
|
+
end
|
17
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adminpanel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 5
|
10
|
-
version: 0.0.5
|
4
|
+
version: 0.0.6
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Jose Ramon Camacho
|
@@ -16,21 +10,15 @@ autorequire:
|
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
12
|
|
19
|
-
date: 2013-12-
|
13
|
+
date: 2013-12-05 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: rails
|
23
17
|
prerelease: false
|
24
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
19
|
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 23
|
30
|
-
segments:
|
31
|
-
- 3
|
32
|
-
- 2
|
33
|
-
- 12
|
20
|
+
- - ~>
|
21
|
+
- &id009 !ruby/object:Gem::Version
|
34
22
|
version: 3.2.12
|
35
23
|
type: :runtime
|
36
24
|
version_requirements: *id001
|
@@ -38,15 +26,9 @@ dependencies:
|
|
38
26
|
name: carrierwave
|
39
27
|
prerelease: false
|
40
28
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
29
|
requirements:
|
43
|
-
- -
|
30
|
+
- - ~>
|
44
31
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 59
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 9
|
49
|
-
- 0
|
50
32
|
version: 0.9.0
|
51
33
|
type: :runtime
|
52
34
|
version_requirements: *id002
|
@@ -54,157 +36,138 @@ dependencies:
|
|
54
36
|
name: rmagick
|
55
37
|
prerelease: false
|
56
38
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
39
|
requirements:
|
59
|
-
- -
|
40
|
+
- - ~>
|
60
41
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 63
|
62
|
-
segments:
|
63
|
-
- 2
|
64
|
-
- 13
|
65
|
-
- 2
|
66
42
|
version: 2.13.2
|
67
43
|
type: :runtime
|
68
44
|
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: ckeditor
|
71
|
-
prerelease: false
|
72
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - "="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
hash: 51
|
78
|
-
segments:
|
79
|
-
- 4
|
80
|
-
- 0
|
81
|
-
- 6
|
82
|
-
version: 4.0.6
|
83
|
-
type: :runtime
|
84
|
-
version_requirements: *id004
|
85
45
|
- !ruby/object:Gem::Dependency
|
86
46
|
name: jquery-rails
|
87
47
|
prerelease: false
|
88
|
-
requirement: &
|
89
|
-
none: false
|
48
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
90
49
|
requirements:
|
91
|
-
- -
|
50
|
+
- - ~>
|
92
51
|
- !ruby/object:Gem::Version
|
93
|
-
hash: 15
|
94
|
-
segments:
|
95
|
-
- 3
|
96
|
-
- 0
|
97
|
-
- 4
|
98
52
|
version: 3.0.4
|
99
53
|
type: :runtime
|
100
|
-
version_requirements: *
|
54
|
+
version_requirements: *id004
|
101
55
|
- !ruby/object:Gem::Dependency
|
102
56
|
name: bcrypt-ruby
|
103
57
|
prerelease: false
|
104
|
-
requirement: &
|
105
|
-
none: false
|
58
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
106
59
|
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
hash: 7
|
110
|
-
segments:
|
111
|
-
- 3
|
112
|
-
- 0
|
113
|
-
- 0
|
60
|
+
- - ~>
|
61
|
+
- &id006 !ruby/object:Gem::Version
|
114
62
|
version: 3.0.0
|
115
63
|
type: :runtime
|
116
|
-
version_requirements: *
|
64
|
+
version_requirements: *id005
|
117
65
|
- !ruby/object:Gem::Dependency
|
118
66
|
name: rails-i18n
|
119
67
|
prerelease: false
|
120
68
|
requirement: &id007 !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
69
|
requirements:
|
123
|
-
- -
|
124
|
-
-
|
125
|
-
hash: 7
|
126
|
-
segments:
|
127
|
-
- 3
|
128
|
-
- 0
|
129
|
-
- 0
|
130
|
-
version: 3.0.0
|
70
|
+
- - ~>
|
71
|
+
- *id006
|
131
72
|
type: :runtime
|
132
73
|
version_requirements: *id007
|
133
74
|
- !ruby/object:Gem::Dependency
|
134
75
|
name: bundler
|
135
76
|
prerelease: false
|
136
77
|
requirement: &id008 !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
78
|
requirements:
|
139
79
|
- - ~>
|
140
80
|
- !ruby/object:Gem::Version
|
141
|
-
hash: 9
|
142
|
-
segments:
|
143
|
-
- 1
|
144
|
-
- 3
|
145
81
|
version: "1.3"
|
146
82
|
type: :development
|
147
83
|
version_requirements: *id008
|
148
84
|
- !ruby/object:Gem::Dependency
|
149
85
|
name: activerecord
|
150
86
|
prerelease: false
|
151
|
-
requirement: &
|
152
|
-
none: false
|
87
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
153
88
|
requirements:
|
154
|
-
- -
|
155
|
-
-
|
156
|
-
hash: 23
|
157
|
-
segments:
|
158
|
-
- 3
|
159
|
-
- 2
|
160
|
-
- 12
|
161
|
-
version: 3.2.12
|
89
|
+
- - ~>
|
90
|
+
- *id009
|
162
91
|
type: :development
|
163
|
-
version_requirements: *
|
92
|
+
version_requirements: *id010
|
164
93
|
- !ruby/object:Gem::Dependency
|
165
94
|
name: rake
|
166
95
|
prerelease: false
|
167
|
-
requirement: &
|
168
|
-
none: false
|
96
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
169
97
|
requirements:
|
170
|
-
-
|
98
|
+
- &id012
|
99
|
+
- ">="
|
171
100
|
- !ruby/object:Gem::Version
|
172
|
-
hash: 3
|
173
|
-
segments:
|
174
|
-
- 0
|
175
101
|
version: "0"
|
176
102
|
type: :development
|
177
|
-
version_requirements: *
|
103
|
+
version_requirements: *id011
|
178
104
|
- !ruby/object:Gem::Dependency
|
179
105
|
name: sqlite3
|
180
106
|
prerelease: false
|
181
|
-
requirement: &
|
182
|
-
|
107
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- *id012
|
110
|
+
type: :development
|
111
|
+
version_requirements: *id013
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: factory_girl_rails
|
114
|
+
prerelease: false
|
115
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
183
116
|
requirements:
|
184
|
-
- - "
|
117
|
+
- - "="
|
185
118
|
- !ruby/object:Gem::Version
|
186
|
-
|
187
|
-
segments:
|
188
|
-
- 0
|
189
|
-
version: "0"
|
119
|
+
version: 2.6.4
|
190
120
|
type: :development
|
191
|
-
version_requirements: *
|
121
|
+
version_requirements: *id014
|
192
122
|
- !ruby/object:Gem::Dependency
|
193
123
|
name: rspec
|
194
124
|
prerelease: false
|
195
|
-
requirement: &
|
196
|
-
|
125
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ~>
|
128
|
+
- &id016 !ruby/object:Gem::Version
|
129
|
+
version: 2.14.0
|
130
|
+
type: :development
|
131
|
+
version_requirements: *id015
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: rspec-rails
|
134
|
+
prerelease: false
|
135
|
+
requirement: &id017 !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ~>
|
138
|
+
- *id016
|
139
|
+
type: :development
|
140
|
+
version_requirements: *id017
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: capybara
|
143
|
+
prerelease: false
|
144
|
+
requirement: &id018 !ruby/object:Gem::Requirement
|
197
145
|
requirements:
|
198
146
|
- - "="
|
199
147
|
- !ruby/object:Gem::Version
|
200
|
-
|
201
|
-
segments:
|
202
|
-
- 2
|
203
|
-
- 11
|
204
|
-
- 0
|
205
|
-
version: 2.11.0
|
148
|
+
version: 1.1.4
|
206
149
|
type: :development
|
207
|
-
version_requirements: *
|
150
|
+
version_requirements: *id018
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: nokogiri
|
153
|
+
prerelease: false
|
154
|
+
requirement: &id019 !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 1.5.9
|
159
|
+
type: :development
|
160
|
+
version_requirements: *id019
|
161
|
+
- !ruby/object:Gem::Dependency
|
162
|
+
name: rubyzip
|
163
|
+
prerelease: false
|
164
|
+
requirement: &id020 !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - "="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 0.9.9
|
169
|
+
type: :development
|
170
|
+
version_requirements: *id020
|
208
171
|
description: Gem that makes the admin panel for a site a breeze!
|
209
172
|
email:
|
210
173
|
- joserracamacho@gmail.com
|
@@ -217,6 +180,7 @@ extra_rdoc_files: []
|
|
217
180
|
files:
|
218
181
|
- .gitignore
|
219
182
|
- .rspec
|
183
|
+
- .travis.yml
|
220
184
|
- Gemfile
|
221
185
|
- LICENSE.txt
|
222
186
|
- README.md
|
@@ -341,7 +305,7 @@ files:
|
|
341
305
|
- app/views/adminpanel/sections/show.html.erb
|
342
306
|
- app/views/adminpanel/sections/update.html.erb
|
343
307
|
- app/views/adminpanel/sessions/new.html.erb
|
344
|
-
- app/views/adminpanel/users/
|
308
|
+
- app/views/adminpanel/users/_user_form.html.erb
|
345
309
|
- app/views/adminpanel/users/edit.html.erb
|
346
310
|
- app/views/adminpanel/users/index.html.erb
|
347
311
|
- app/views/adminpanel/users/new.html.erb
|
@@ -349,10 +313,12 @@ files:
|
|
349
313
|
- app/views/layouts/_shim.html.erb
|
350
314
|
- app/views/layouts/_side_menu.html.erb
|
351
315
|
- app/views/layouts/_top_bar.html.erb
|
316
|
+
- app/views/layouts/admin-login.html.erb
|
352
317
|
- app/views/layouts/admin.html.erb
|
353
318
|
- app/views/layouts/sessions.html.erb
|
354
319
|
- app/views/shared/_breadcrumb.html.erb
|
355
320
|
- app/views/shared/_error_messages.html.erb
|
321
|
+
- config/database.yml
|
356
322
|
- config/locales/en.yml
|
357
323
|
- config/locales/es.yml
|
358
324
|
- config/routes.rb
|
@@ -377,6 +343,7 @@ files:
|
|
377
343
|
- spec/dummy/config/application.rb
|
378
344
|
- spec/dummy/config/boot.rb
|
379
345
|
- spec/dummy/config/carrierwve.rb
|
346
|
+
- spec/dummy/config/database.yml
|
380
347
|
- spec/dummy/config/environment.rb
|
381
348
|
- spec/dummy/config/environments/development.rb
|
382
349
|
- spec/dummy/config/environments/production.rb
|
@@ -397,21 +364,29 @@ files:
|
|
397
364
|
- spec/dummy/public/500.html
|
398
365
|
- spec/dummy/public/favicon.ico
|
399
366
|
- spec/dummy/script/rails
|
400
|
-
- spec/
|
401
|
-
- spec/
|
402
|
-
- spec/
|
403
|
-
- spec/models/
|
404
|
-
- spec/models/
|
405
|
-
- spec/models/
|
367
|
+
- spec/features/authentication_pages_spec.rb
|
368
|
+
- spec/features/categories_pages_spec.rb
|
369
|
+
- spec/features/product_pages_spec.rb
|
370
|
+
- spec/models/category_spec.rb
|
371
|
+
- spec/models/gallery_spec.rb
|
372
|
+
- spec/models/image_uploader.rb
|
373
|
+
- spec/models/product_spec.rb
|
374
|
+
- spec/models/section_spec.rb
|
375
|
+
- spec/models/user_spec.rb
|
406
376
|
- spec/spec_helper.rb
|
407
377
|
- spec/support/active_record.rb
|
378
|
+
- spec/support/define_factory_models.rb
|
379
|
+
- spec/support/helper_methods.rb
|
408
380
|
- spec/support/schema.rb
|
409
|
-
- spec/
|
410
|
-
- spec/uploaders/
|
411
|
-
- spec/uploaders/
|
381
|
+
- spec/support/submit_forms_without_button.rb
|
382
|
+
- spec/uploaders/gallery_uploader_spec.rb
|
383
|
+
- spec/uploaders/image_uploader_spec.rb
|
384
|
+
- spec/uploaders/section_uploader_spec.rb
|
412
385
|
homepage: https://github.com/joseramonc/adminpanel
|
413
386
|
licenses:
|
414
387
|
- MIT
|
388
|
+
metadata: {}
|
389
|
+
|
415
390
|
post_install_message:
|
416
391
|
rdoc_options: []
|
417
392
|
|
@@ -419,29 +394,17 @@ require_paths:
|
|
419
394
|
- lib
|
420
395
|
- app/assets
|
421
396
|
required_ruby_version: !ruby/object:Gem::Requirement
|
422
|
-
none: false
|
423
397
|
requirements:
|
424
|
-
-
|
425
|
-
- !ruby/object:Gem::Version
|
426
|
-
hash: 3
|
427
|
-
segments:
|
428
|
-
- 0
|
429
|
-
version: "0"
|
398
|
+
- *id012
|
430
399
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
431
|
-
none: false
|
432
400
|
requirements:
|
433
|
-
-
|
434
|
-
- !ruby/object:Gem::Version
|
435
|
-
hash: 3
|
436
|
-
segments:
|
437
|
-
- 0
|
438
|
-
version: "0"
|
401
|
+
- *id012
|
439
402
|
requirements: []
|
440
403
|
|
441
404
|
rubyforge_project:
|
442
|
-
rubygems_version: 1.
|
405
|
+
rubygems_version: 2.1.11
|
443
406
|
signing_key:
|
444
|
-
specification_version:
|
407
|
+
specification_version: 4
|
445
408
|
summary: Developed with love for ruby 1.8.7
|
446
409
|
test_files:
|
447
410
|
- spec/dummy/.gitignore
|
@@ -460,6 +423,7 @@ test_files:
|
|
460
423
|
- spec/dummy/config/application.rb
|
461
424
|
- spec/dummy/config/boot.rb
|
462
425
|
- spec/dummy/config/carrierwve.rb
|
426
|
+
- spec/dummy/config/database.yml
|
463
427
|
- spec/dummy/config/environment.rb
|
464
428
|
- spec/dummy/config/environments/development.rb
|
465
429
|
- spec/dummy/config/environments/production.rb
|
@@ -480,15 +444,21 @@ test_files:
|
|
480
444
|
- spec/dummy/public/500.html
|
481
445
|
- spec/dummy/public/favicon.ico
|
482
446
|
- spec/dummy/script/rails
|
483
|
-
- spec/
|
484
|
-
- spec/
|
485
|
-
- spec/
|
486
|
-
- spec/models/
|
487
|
-
- spec/models/
|
488
|
-
- spec/models/
|
447
|
+
- spec/features/authentication_pages_spec.rb
|
448
|
+
- spec/features/categories_pages_spec.rb
|
449
|
+
- spec/features/product_pages_spec.rb
|
450
|
+
- spec/models/category_spec.rb
|
451
|
+
- spec/models/gallery_spec.rb
|
452
|
+
- spec/models/image_uploader.rb
|
453
|
+
- spec/models/product_spec.rb
|
454
|
+
- spec/models/section_spec.rb
|
455
|
+
- spec/models/user_spec.rb
|
489
456
|
- spec/spec_helper.rb
|
490
457
|
- spec/support/active_record.rb
|
458
|
+
- spec/support/define_factory_models.rb
|
459
|
+
- spec/support/helper_methods.rb
|
491
460
|
- spec/support/schema.rb
|
492
|
-
- spec/
|
493
|
-
- spec/uploaders/
|
494
|
-
- spec/uploaders/
|
461
|
+
- spec/support/submit_forms_without_button.rb
|
462
|
+
- spec/uploaders/gallery_uploader_spec.rb
|
463
|
+
- spec/uploaders/image_uploader_spec.rb
|
464
|
+
- spec/uploaders/section_uploader_spec.rb
|