puffer 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -0
- data/Gemfile +11 -8
- data/Gemfile.lock +117 -103
- data/Guardfile +20 -0
- data/VERSION +1 -1
- data/app/assets/javascripts/puffer/application.js +5 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/puffer.js +0 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/rails.js +0 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/right-autocompleter.js +0 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/right-calendar.js +0 -0
- data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/right.js +0 -0
- data/app/assets/stylesheets/puffer/application.css +4 -0
- data/{lib/generators/puffer/install/templates/puffer/stylesheets → app/assets/stylesheets/puffer}/puffer.css +2 -1
- data/{lib/generators/puffer/install/templates/puffer/stylesheets → app/assets/stylesheets/puffer}/reset.css +0 -0
- data/app/controllers/puffer/dashboard.rb +12 -0
- data/app/controllers/puffer/{sessions_base.rb → sessions.rb} +1 -2
- data/app/helpers/puffer_helper.rb +2 -10
- data/app/views/layouts/puffer.html.erb +24 -5
- data/app/views/layouts/puffer_dashboard.html.erb +3 -3
- data/app/views/layouts/puffer_sessions.html.erb +3 -3
- data/app/views/puffer/{_form.html.erb → base/_form.html.erb} +2 -2
- data/app/views/puffer/{associated → base/associated}/_many.html.erb +1 -1
- data/app/views/puffer/{associated → base/associated}/many.rjs +0 -0
- data/app/views/puffer/{associated → base/associated}/one.js.erb +1 -1
- data/app/views/puffer/{association → base/association}/_many.html.erb +0 -0
- data/app/views/puffer/{edit.html.erb → base/edit.html.erb} +1 -1
- data/app/views/puffer/{index.html.erb → base/index.html.erb} +2 -2
- data/app/views/puffer/{new.html.erb → base/new.html.erb} +1 -1
- data/app/views/puffer/{show.html.erb → base/show.html.erb} +1 -1
- data/app/views/{puffer_dashboard → puffer/dashboard}/index.html.erb +0 -0
- data/app/views/{puffer_sessions → puffer/sessions}/new.html.erb +0 -0
- data/config/locales/puffer.yml +5 -0
- data/lib/generators/puffer/install/install_generator.rb +0 -8
- data/lib/generators/puffer/install/templates/dashboard_controller.rb +1 -1
- data/lib/generators/puffer/install/templates/sessions_controller.rb +1 -1
- data/lib/puffer.rb +0 -16
- data/lib/puffer/base.rb +8 -3
- data/lib/puffer/controller/config.rb +2 -0
- data/lib/puffer/controller/dsl.rb +2 -2
- data/lib/puffer/controller/generated.rb +4 -4
- data/lib/puffer/controller/helpers.rb +1 -1
- data/lib/puffer/controller/mutate.rb +0 -14
- data/lib/puffer/customs.rb +1 -0
- data/lib/puffer/engine.rb +0 -4
- data/lib/puffer/extensions/mapper.rb +5 -1
- data/lib/puffer/fields.rb +2 -2
- data/lib/puffer/fields/field.rb +16 -17
- data/lib/puffer/inputs/association.rb +3 -2
- data/lib/puffer/resource.rb +13 -12
- data/lib/puffer/resource/routing.rb +1 -1
- data/lib/puffer/resource/scoping.rb +2 -2
- data/puffer.gemspec +63 -126
- data/spec/dummy/.rvmrc +1 -0
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/images/rails.png +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/controllers/admin/posts_controller.rb +3 -1
- data/spec/dummy/app/controllers/admin/profiles_controller.rb +4 -1
- data/spec/dummy/app/controllers/puffer/dashboard_controller.rb +1 -1
- data/spec/dummy/app/controllers/puffer/sessions_controller.rb +1 -1
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +5 -9
- data/spec/dummy/config/boot.rb +5 -7
- data/spec/dummy/config/database.yml +4 -1
- data/spec/dummy/config/environments/development.rb +4 -3
- data/spec/dummy/config/environments/production.rb +17 -12
- data/spec/dummy/config/environments/test.rb +5 -1
- data/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/config/initializers/session_store.rb +1 -1
- data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/db/seeds.rb +7 -0
- data/spec/dummy/public/robots.txt +5 -0
- data/spec/fabricators/posts_fabricator.rb +1 -1
- data/spec/fabricators/profiles_fabricator.rb +1 -1
- data/spec/fabricators/users_fabricator.rb +1 -1
- data/spec/lib/resource/routing_spec.rb +5 -5
- data/spec/lib/resource_spec.rb +37 -88
- data/spec/spec_helper.rb +15 -0
- metadata +171 -272
- data/app/cells/puffer/base/additional.html.erb +0 -25
- data/app/cells/puffer/base_cell.rb +0 -25
- data/app/controllers/puffer/dashboard_base.rb +0 -13
- data/autotest/discover.rb +0 -2
- data/lib/generators/puffer/install/templates/puffer.rb +0 -12
- data/lib/puffer/path_set.rb +0 -24
- data/spec/dummy/app/views/admin/users/index.html.erb +0 -3
- data/spec/dummy/config/initializers/puffer.rb +0 -12
- data/spec/dummy/db/schema.rb +0 -83
- data/spec/dummy/public/javascripts/application.js +0 -2
- data/spec/dummy/public/javascripts/controls.js +0 -965
- data/spec/dummy/public/javascripts/dragdrop.js +0 -974
- data/spec/dummy/public/javascripts/effects.js +0 -1123
- data/spec/dummy/public/javascripts/prototype.js +0 -6001
- data/spec/dummy/public/javascripts/rails.js +0 -175
- data/spec/dummy/public/puffer/javascripts/puffer.js +0 -10
- data/spec/dummy/public/puffer/javascripts/rails.js +0 -57
- data/spec/dummy/public/puffer/javascripts/right-autocompleter.js +0 -621
- data/spec/dummy/public/puffer/javascripts/right-calendar.js +0 -1461
- data/spec/dummy/public/puffer/javascripts/right.js +0 -5892
- data/spec/dummy/public/puffer/stylesheets/puffer.css +0 -469
- data/spec/dummy/public/puffer/stylesheets/reset.css +0 -60
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/lib/render_fallback_spec.rb +0 -17
@@ -1,60 +0,0 @@
|
|
1
|
-
html, body, div, span, applet, object, iframe,
|
2
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
3
|
-
a, abbr, acronym, address, big, cite, code,
|
4
|
-
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
5
|
-
small, strike, strong, sub, sup, tt, var,
|
6
|
-
b, u, i, center,
|
7
|
-
dl, dt, dd, ol, ul, li,
|
8
|
-
fieldset, form, label, legend,
|
9
|
-
table, caption, tbody, tfoot, thead, tr, th, td {
|
10
|
-
margin: 0;
|
11
|
-
padding: 0;
|
12
|
-
border: 0;
|
13
|
-
outline: 0;
|
14
|
-
font-size: 100%;
|
15
|
-
line-height: 130%;
|
16
|
-
vertical-align: baseline;
|
17
|
-
background: transparent;
|
18
|
-
font-weight: normal;
|
19
|
-
}
|
20
|
-
strong, b {
|
21
|
-
font-weight: bold;
|
22
|
-
}
|
23
|
-
a {
|
24
|
-
text-decoration: underline;
|
25
|
-
color: #000;
|
26
|
-
}
|
27
|
-
a:hover {
|
28
|
-
text-decoration: none;
|
29
|
-
}
|
30
|
-
sup, sub {
|
31
|
-
position: relative;
|
32
|
-
font-size: 80%;
|
33
|
-
}
|
34
|
-
sup {
|
35
|
-
top: -0.6em;
|
36
|
-
}
|
37
|
-
sub {
|
38
|
-
bottom: -0.2em;
|
39
|
-
}
|
40
|
-
blockquote, q {
|
41
|
-
quotes: none;
|
42
|
-
}
|
43
|
-
blockquote:before, blockquote:after,
|
44
|
-
q:before, q:after {
|
45
|
-
content: '';
|
46
|
-
content: none;
|
47
|
-
}
|
48
|
-
:focus {
|
49
|
-
outline: 0;
|
50
|
-
}
|
51
|
-
ins {
|
52
|
-
text-decoration: none;
|
53
|
-
}
|
54
|
-
del {
|
55
|
-
text-decoration: line-through;
|
56
|
-
}
|
57
|
-
table {
|
58
|
-
border-collapse: collapse;
|
59
|
-
border-spacing: 0;
|
60
|
-
}
|
File without changes
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "Rendering" do
|
4
|
-
|
5
|
-
include RSpec::Rails::RequestExampleGroup
|
6
|
-
|
7
|
-
it "should render native temptate if exists" do
|
8
|
-
get admin_users_url
|
9
|
-
response.should render_template('admin/users/index')
|
10
|
-
end
|
11
|
-
|
12
|
-
it "should fallback to puffer template if native not exists" do
|
13
|
-
get admin_posts_url
|
14
|
-
response.should render_template('puffer/index')
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|