css_naked 1.0.1 → 1.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.
- checksums.yaml +7 -0
- data/LICENSE +1 -1
- data/README.md +11 -18
- data/Rakefile +6 -5
- data/VERSION +1 -1
- data/lib/css_naked.rb +2 -2
- metadata +63 -78
- data/.gitignore +0 -2
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 13728bc20beafbb5afaf5f9ac0f032d55aa3cdfa
|
4
|
+
data.tar.gz: e19eff36311d35f999afdadb94506675f495b1e2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0597eb25fdb2c6e77e3a2b4fe42e560e7261f33d8b244d77b69300dd9f23ffa0041df46e3614e46ad6f30d9a1899e001f42b30909eb1f60ba0f85ecefed826be
|
7
|
+
data.tar.gz: 91e7067687573bcba627670395730b90ea4c9747975f19b6d94d9e1fd62f2e737e53264b1b06b8dc4c388c4449edb6718fa0824b86c8c0ce0ea80466c2396eed
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,14 @@
|
|
1
|
-
CSS Naked Day Plugin for Rails
|
2
|
-
==============================
|
1
|
+
# CSS Naked Day Plugin for Rails
|
3
2
|
|
4
3
|
CSS Naked Day is an annual event where websites remove all CSS from their
|
5
4
|
site for one day to promote web standards. More information on this event
|
6
|
-
can be found on [
|
5
|
+
can be found on the [CSS Naked Day homepage][homepage].
|
7
6
|
|
8
7
|
This plugin makes a Rails application strip off the stylesheets during the
|
9
8
|
CSS Naked Day event. It does this by modifying the `stylesheet_link_tag`
|
10
9
|
helper to skip including stylesheets into the layout during the event.
|
11
10
|
|
12
|
-
Install
|
13
|
-
-------
|
11
|
+
## Install
|
14
12
|
|
15
13
|
Add the css_naked gem to your Rails application. With Rails 3.x, add the
|
16
14
|
following to you `Gemfile`:
|
@@ -20,12 +18,7 @@ following to you `Gemfile`:
|
|
20
18
|
If you're using Rails 2.x without Bundler, you need to add `config.gem 'css_naked'`
|
21
19
|
to `config/environments.rb` instead.
|
22
20
|
|
23
|
-
|
24
|
-
switching to the gem by simply deleting the directory `vendor/plugins/css_naked`
|
25
|
-
in your application.
|
26
|
-
|
27
|
-
Manual usage
|
28
|
-
------------
|
21
|
+
## Manual usage
|
29
22
|
|
30
23
|
If you manually need to do stuff on CSS Naked Day (e.g. skipping stylesheets
|
31
24
|
you placed without using `stylesheet_link_tag` or adding a note for visitors
|
@@ -34,12 +27,11 @@ why the stylesheets are missing), you can use the `css_naked?` method:
|
|
34
27
|
<%- if css_naked? -%>
|
35
28
|
<h3>What happened to the design?</h3>
|
36
29
|
<p>To know more about why styles are disabled on this website visit the
|
37
|
-
<a href="http://naked.
|
30
|
+
<a href="http://naked.threepixeldrift.com" title="Web Standards Naked Day Host Website">
|
38
31
|
Annual CSS Naked Day</a> website for more information.</p>
|
39
32
|
<%- end -%>
|
40
33
|
|
41
|
-
Trying it out
|
42
|
-
-------------
|
34
|
+
## Trying it out
|
43
35
|
|
44
36
|
To see, how your site will look like without any styles, you can manually activate
|
45
37
|
the CSS Naked Day mode by overriding the `css_naked?` in `application_helper.rb`:
|
@@ -48,8 +40,9 @@ the CSS Naked Day mode by overriding the `css_naked?` in `application_helper.rb`
|
|
48
40
|
true
|
49
41
|
end
|
50
42
|
|
51
|
-
Author
|
52
|
-
|
53
|
-
|
43
|
+
## Author
|
44
|
+
|
45
|
+
Andreas Neuhaus - [zargony.com](http://zargony.com/)
|
46
|
+
|
54
47
|
|
55
|
-
[
|
48
|
+
[homepage]: http://naked.threepixeldrift.com
|
data/Rakefile
CHANGED
@@ -9,11 +9,12 @@ Jeweler::Tasks.new do |gem|
|
|
9
9
|
gem.summary = 'Rails plugin to disable stylesheets during the CSS Naked Day event'
|
10
10
|
gem.description = 'This plugin makes a Rails application strip off the stylesheets during the CSS Naked Day event. It does this by modifying the stylesheet_link_tag helper to skip including stylesheets into the layout during the event.'
|
11
11
|
gem.homepage = 'http://github.com/zargony/css_naked'
|
12
|
+
gem.license = 'MIT'
|
12
13
|
gem.authors = ['Andreas Neuhaus']
|
13
|
-
gem.add_dependency 'activesupport'
|
14
|
-
gem.add_dependency 'actionpack'
|
14
|
+
gem.add_dependency 'activesupport', '~> 0'
|
15
|
+
gem.add_dependency 'actionpack', '~> 0'
|
15
16
|
gem.has_rdoc = false
|
16
|
-
gem.add_development_dependency 'mocha'
|
17
|
+
gem.add_development_dependency 'mocha', '~> 0'
|
17
18
|
end
|
18
19
|
Jeweler::GemcutterTasks.new
|
19
20
|
|
@@ -26,9 +27,9 @@ Rake::TestTask.new(:test) do |test|
|
|
26
27
|
test.verbose = true
|
27
28
|
end
|
28
29
|
|
29
|
-
require '
|
30
|
+
require 'rdoc/task'
|
30
31
|
desc 'Generate documentation for the css_naked plugin.'
|
31
|
-
|
32
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
32
33
|
version = File.exist?('VERSION') ? File.read('VERSION') : ''
|
33
34
|
rdoc.rdoc_dir = 'rdoc'
|
34
35
|
rdoc.title = "CSS Naked Day Rails Plugin #{version}"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/lib/css_naked.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# This Rails plugin overrides the stylesheet_link_tag helper and modifies
|
3
3
|
# it to skip outputting stylesheet link tags on css naked day. Css naked
|
4
4
|
# day is an annual event where websites remove all css from their site to
|
5
|
-
# promote web standards. See http://naked.
|
5
|
+
# promote web standards. See http://naked.threepixeldrift.com for more info.
|
6
6
|
#
|
7
7
|
module CssNaked
|
8
8
|
module ViewHelpers
|
@@ -17,7 +17,7 @@ module CssNaked
|
|
17
17
|
# Returns true if today is a css naked day (April 9th in any timezone)
|
18
18
|
# Previous naked days: 2006-04-05, 2007-04-05, 2008-04-09, 2009-04-09,
|
19
19
|
# 2010-04-09. Since 2008, all future naked days will be on April 9th.
|
20
|
-
# See also http://naked.
|
20
|
+
# See also http://naked.threepixeldrift.com/
|
21
21
|
def css_naked?
|
22
22
|
start = Date.new(Time.current.year, 4, 9).to_time(:utc) - 12.hours
|
23
23
|
Time.current >= start && Time.current <= start + 47.hours
|
metadata
CHANGED
@@ -1,72 +1,67 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: css_naked
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
version: 1.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
6
|
+
authors:
|
12
7
|
- Andreas Neuhaus
|
13
8
|
autorequire:
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: activesupport
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
31
20
|
type: :runtime
|
32
|
-
version_requirements: *id001
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: actionpack
|
35
21
|
prerelease: false
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: actionpack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
44
34
|
type: :runtime
|
45
|
-
version_requirements: *id002
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: mocha
|
48
35
|
prerelease: false
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mocha
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
57
48
|
type: :development
|
58
|
-
|
59
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: This plugin makes a Rails application strip off the stylesheets during
|
56
|
+
the CSS Naked Day event. It does this by modifying the stylesheet_link_tag helper
|
57
|
+
to skip including stylesheets into the layout during the event.
|
60
58
|
email:
|
61
59
|
executables: []
|
62
|
-
|
63
60
|
extensions: []
|
64
|
-
|
65
|
-
extra_rdoc_files:
|
61
|
+
extra_rdoc_files:
|
66
62
|
- LICENSE
|
67
63
|
- README.md
|
68
|
-
files:
|
69
|
-
- .gitignore
|
64
|
+
files:
|
70
65
|
- LICENSE
|
71
66
|
- README.md
|
72
67
|
- Rakefile
|
@@ -75,38 +70,28 @@ files:
|
|
75
70
|
- rails/init.rb
|
76
71
|
- test/helper.rb
|
77
72
|
- test/test_css_naked.rb
|
78
|
-
has_rdoc: true
|
79
73
|
homepage: http://github.com/zargony/css_naked
|
80
|
-
licenses:
|
81
|
-
|
74
|
+
licenses:
|
75
|
+
- MIT
|
76
|
+
metadata: {}
|
82
77
|
post_install_message:
|
83
|
-
rdoc_options:
|
84
|
-
|
85
|
-
require_paths:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
86
80
|
- lib
|
87
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
-
|
89
|
-
requirements:
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
90
83
|
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
|
-
requirements:
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
98
88
|
- - ">="
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
|
101
|
-
- 0
|
102
|
-
version: "0"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
103
91
|
requirements: []
|
104
|
-
|
105
92
|
rubyforge_project:
|
106
|
-
rubygems_version:
|
93
|
+
rubygems_version: 2.2.2
|
107
94
|
signing_key:
|
108
|
-
specification_version:
|
95
|
+
specification_version: 4
|
109
96
|
summary: Rails plugin to disable stylesheets during the CSS Naked Day event
|
110
|
-
test_files:
|
111
|
-
- test/helper.rb
|
112
|
-
- test/test_css_naked.rb
|
97
|
+
test_files: []
|
data/.gitignore
DELETED