humane-rails 4.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +15 -9
- data/Rakefile +4 -2
- data/app/assets/javascripts/humane-rails.js +13 -0
- data/app/assets/stylesheets/humane-rails/bigbox.css +3 -0
- data/app/assets/stylesheets/humane-rails/boldlight.css +3 -0
- data/app/assets/stylesheets/humane-rails/jackedup.css +3 -0
- data/app/assets/stylesheets/humane-rails/libnotify.css +3 -0
- data/app/assets/stylesheets/humane-rails/original.css +3 -0
- data/app/helpers/humane_rails/flash_messages_helper.rb +21 -0
- data/lib/humane-rails.rb +1 -1
- data/lib/humane-rails/engine.rb +15 -2
- data/lib/humane-rails/version.rb +1 -1
- data/spec/internal/app/assets/javascripts/application.js +2 -0
- data/spec/internal/app/assets/stylesheets/application.css +3 -0
- data/spec/internal/app/controllers/application_controller.rb +2 -0
- data/spec/internal/app/controllers/flash_controller.rb +7 -0
- data/spec/internal/app/views/flash/index.html.erb +8 -0
- data/spec/internal/app/views/layouts/application.html.erb +12 -0
- data/spec/internal/config/routes.rb +3 -0
- data/spec/internal/log/test.log +2291 -0
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/requests/navigation_spec.rb +30 -0
- data/spec/spec_helper.rb +16 -0
- metadata +121 -19
- data/.gitignore +0 -4
- data/Gemfile +0 -5
- data/app/assets/javascripts/humane.jquery.js +0 -229
- data/app/assets/javascripts/humane.js +0 -13
- data/app/assets/stylesheets/bigbox.css +0 -123
- data/app/assets/stylesheets/boldlight.css +0 -122
- data/app/assets/stylesheets/jackedup.css +0 -123
- data/app/assets/stylesheets/libnotify.css +0 -115
- data/app/assets/stylesheets/original.css +0 -72
- data/app/helpers/humane_flash_messages_helper.rb +0 -19
- data/humane-rails.gemspec +0 -21
@@ -1,72 +0,0 @@
|
|
1
|
-
html,
|
2
|
-
body {
|
3
|
-
min-height: 100%;
|
4
|
-
}
|
5
|
-
.humane,
|
6
|
-
.humane-original {
|
7
|
-
position: fixed;
|
8
|
-
-moz-transition: all 0.2s ease-out;
|
9
|
-
-webkit-transition: all 0.2s ease-out;
|
10
|
-
-ms-transition: all 0.2s ease-out;
|
11
|
-
-o-transition: all 0.2s ease-out;
|
12
|
-
transition: all 0.2s ease-out;
|
13
|
-
z-index: 100000;
|
14
|
-
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
15
|
-
}
|
16
|
-
.humane,
|
17
|
-
.humane-original {
|
18
|
-
font-family: Ubuntu, Verdana, sans-serif;
|
19
|
-
line-height: 40px;
|
20
|
-
font-size: 25px;
|
21
|
-
top: 25%;
|
22
|
-
left: 25%;
|
23
|
-
opacity: 0;
|
24
|
-
width: 50%;
|
25
|
-
min-height: 40px;
|
26
|
-
padding: 10px;
|
27
|
-
text-align: center;
|
28
|
-
background-color: #000;
|
29
|
-
color: #fff;
|
30
|
-
-webkit-border-radius: 15px;
|
31
|
-
border-radius: 15px;
|
32
|
-
}
|
33
|
-
.humane p,
|
34
|
-
.humane-original p,
|
35
|
-
.humane ul,
|
36
|
-
.humane-original ul {
|
37
|
-
margin: 0;
|
38
|
-
padding: 0;
|
39
|
-
}
|
40
|
-
.humane ul,
|
41
|
-
.humane-original ul {
|
42
|
-
list-style: none;
|
43
|
-
}
|
44
|
-
.humane.humane-original-info,
|
45
|
-
.humane-original.humane-original-info {
|
46
|
-
background-color: #030;
|
47
|
-
}
|
48
|
-
.humane.humane-original-success,
|
49
|
-
.humane-original.humane-original-success {
|
50
|
-
background-color: #030;
|
51
|
-
}
|
52
|
-
.humane.humane-original-error,
|
53
|
-
.humane-original.humane-original-error {
|
54
|
-
background-color: #300;
|
55
|
-
}
|
56
|
-
.humane.humane-animate,
|
57
|
-
.humane-original.humane-original-animate {
|
58
|
-
opacity: 0.8;
|
59
|
-
}
|
60
|
-
.humane.humane-animate:hover,
|
61
|
-
.humane-original.humane-original-animate:hover {
|
62
|
-
opacity: 0.6;
|
63
|
-
}
|
64
|
-
.humane.humane-js-animate,
|
65
|
-
.humane-original.humane-original-js-animate {
|
66
|
-
opacity: 0.8;
|
67
|
-
}
|
68
|
-
.humane.humane-js-animate:hover,
|
69
|
-
.humane-original.humane-original-js-animate:hover {
|
70
|
-
opacity: 0.6;
|
71
|
-
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
|
72
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
module HumaneFlashMessagesHelper
|
2
|
-
def humane_flash_messages
|
3
|
-
content = ""
|
4
|
-
|
5
|
-
unless flash[:notice].blank?
|
6
|
-
content << javascript_tag("humane.notice(\"#{escape_javascript(flash[:notice])}\")")
|
7
|
-
end
|
8
|
-
|
9
|
-
unless flash[:error].blank?
|
10
|
-
content << javascript_tag("humane.error(\"#{escape_javascript(flash[:error])}\")")
|
11
|
-
end
|
12
|
-
|
13
|
-
unless flash[:alert].blank?
|
14
|
-
content << javascript_tag("humane.alert(\"#{escape_javascript(flash[:alert])}\")")
|
15
|
-
end
|
16
|
-
|
17
|
-
content
|
18
|
-
end
|
19
|
-
end
|
data/humane-rails.gemspec
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "humane-rails/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |s|
|
6
|
-
s.name = "humane-rails"
|
7
|
-
s.version = HumaneRails::VERSION
|
8
|
-
s.authors = ["Martin Harrigan"]
|
9
|
-
s.email = ["martinharrigan@gmail.com"]
|
10
|
-
s.homepage = "http://github.com/harrigan/humane-rails"
|
11
|
-
s.summary = %q{A gemified version of Marc Harter's humane-js.}
|
12
|
-
s.description = %q{A gemified version of Marc Harter's humane-js.}
|
13
|
-
s.license = "MIT"
|
14
|
-
|
15
|
-
s.rubyforge_project = "humane-rails"
|
16
|
-
|
17
|
-
s.files = `git ls-files`.split("\n")
|
18
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
-
s.require_paths = ["lib"]
|
21
|
-
end
|