old_style 1.4.2 → 1.4.3
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 +4 -4
- data/Gemfile.lock +30 -26
- data/README.md +1 -0
- data/VERSION +1 -1
- data/app/assets/stylesheets/{application.css → base/application.css} +0 -0
- data/app/assets/stylesheets/{fake4.css → base/fake4.css} +0 -0
- data/lib/load_dir.rb +6 -6
- data/old_style/index.html +0 -5
- data/old_style.gemspec +7 -7
- data/test/test_load_dir.rb +4 -4
- data/test/test_parse_dir.rb +4 -4
- metadata +20 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee3d6d607c22076a34c300d2f24848af375b0d39
|
|
4
|
+
data.tar.gz: 9f319365f87f2232e65e77ce044efcda58264650
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 09726c9f88368c631bab0518a687eb7eda04772a51c8a14cd875e528cedfd91539e538124658ee7c3e81ffe5916cf1d52d57fe57ab8ed558b35c9a2e713db742
|
|
7
|
+
data.tar.gz: 5eb95f7ef9903d45377ced9874a2c44158529b9eb82061f06027629cca02157b3414b6ee8bc8a045b5a0b1b3c7ae8f6113806a01be1fff5be20a111dc1d6fe19
|
data/Gemfile.lock
CHANGED
|
@@ -1,56 +1,60 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: http://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
addressable (2.3.
|
|
4
|
+
addressable (2.3.8)
|
|
5
5
|
builder (3.2.2)
|
|
6
|
-
css_parser (1.3.
|
|
6
|
+
css_parser (1.3.6)
|
|
7
7
|
addressable
|
|
8
|
-
descendants_tracker (0.0.
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
descendants_tracker (0.0.4)
|
|
9
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
|
10
|
+
docile (1.1.5)
|
|
11
|
+
faraday (0.9.1)
|
|
11
12
|
multipart-post (>= 1.2, < 3)
|
|
12
|
-
git (1.2.
|
|
13
|
-
github_api (0.
|
|
13
|
+
git (1.2.9.1)
|
|
14
|
+
github_api (0.12.3)
|
|
14
15
|
addressable (~> 2.3)
|
|
15
|
-
descendants_tracker (~> 0.0.
|
|
16
|
+
descendants_tracker (~> 0.0.4)
|
|
16
17
|
faraday (~> 0.8, < 0.10)
|
|
17
|
-
hashie (>=
|
|
18
|
+
hashie (>= 3.3)
|
|
18
19
|
multi_json (>= 1.7.5, < 2.0)
|
|
20
|
+
nokogiri (~> 1.6.3)
|
|
19
21
|
oauth2
|
|
20
|
-
hashie (
|
|
21
|
-
highline (1.
|
|
22
|
+
hashie (3.4.1)
|
|
23
|
+
highline (1.7.2)
|
|
22
24
|
jeweler (2.0.1)
|
|
23
25
|
builder
|
|
24
26
|
bundler (>= 1.0)
|
|
25
27
|
git (>= 1.2.5)
|
|
26
28
|
github_api
|
|
27
29
|
highline (>= 1.6.15)
|
|
30
|
+
nokogiri (>= 1.5.10)
|
|
28
31
|
rake
|
|
29
32
|
rdoc
|
|
30
|
-
json (1.8.
|
|
31
|
-
jwt (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
multi_json (1.8.4)
|
|
33
|
+
json (1.8.2)
|
|
34
|
+
jwt (1.5.0)
|
|
35
|
+
mini_portile (0.6.2)
|
|
36
|
+
minitest (5.6.1)
|
|
37
|
+
multi_json (1.11.0)
|
|
36
38
|
multi_xml (0.5.5)
|
|
37
39
|
multipart-post (2.0.0)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
nokogiri (1.6.6.2)
|
|
41
|
+
mini_portile (~> 0.6.0)
|
|
42
|
+
oauth2 (1.0.0)
|
|
40
43
|
faraday (>= 0.8, < 0.10)
|
|
41
|
-
jwt (~>
|
|
44
|
+
jwt (~> 1.0)
|
|
42
45
|
multi_json (~> 1.3)
|
|
43
46
|
multi_xml (~> 0.5)
|
|
44
47
|
rack (~> 1.2)
|
|
45
|
-
rack (1.
|
|
46
|
-
rake (10.
|
|
48
|
+
rack (1.6.1)
|
|
49
|
+
rake (10.4.2)
|
|
47
50
|
rdoc (3.12.2)
|
|
48
51
|
json (~> 1.4)
|
|
49
|
-
simplecov (0.
|
|
52
|
+
simplecov (0.10.0)
|
|
50
53
|
docile (~> 1.1.0)
|
|
51
|
-
|
|
52
|
-
simplecov-html (~> 0.
|
|
53
|
-
simplecov-html (0.
|
|
54
|
+
json (~> 1.8)
|
|
55
|
+
simplecov-html (~> 0.10.0)
|
|
56
|
+
simplecov-html (0.10.0)
|
|
57
|
+
thread_safe (0.3.5)
|
|
54
58
|
|
|
55
59
|
PLATFORMS
|
|
56
60
|
ruby
|
data/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# old_style for Rails
|
|
2
|
+
[](http://badge.fury.io/rb/old_style)
|
|
2
3
|
|
|
3
4
|
I'm not the most organized person. It would be a big help to me if there was a helper to keep my stylesheets clean. old_style.gem helps you do that!
|
|
4
5
|
old_style compares all of your styles with the differen nodes in your views.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.4.
|
|
1
|
+
1.4.3
|
|
File without changes
|
|
File without changes
|
data/lib/load_dir.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
1
|
class LoadDir
|
|
3
2
|
|
|
4
|
-
HTML_PATH
|
|
5
|
-
CSS_PATH
|
|
3
|
+
HTML_PATH = Dir.pwd + '/app/views'
|
|
4
|
+
CSS_PATH = Dir.pwd + '/app/assets/stylesheets'
|
|
5
|
+
CSS_MAIN_PATH = Dir.pwd + '/app/assets/stylesheets/base'
|
|
6
6
|
|
|
7
7
|
attr_accessor :directories, :files
|
|
8
8
|
|
|
@@ -39,8 +39,8 @@ class LoadDir
|
|
|
39
39
|
Dir.foreach(CSS_PATH) do |file|
|
|
40
40
|
self.files[file] = CSS_PATH if /(#{dir}|application)/.match(file)
|
|
41
41
|
end
|
|
42
|
+
Dir.foreach(CSS_MAIN_PATH) do |file|
|
|
43
|
+
self.files[file] = CSS_MAIN_PATH if /(#{dir}|application)/.match(file)
|
|
44
|
+
end
|
|
42
45
|
end
|
|
43
|
-
|
|
44
46
|
end
|
|
45
|
-
|
|
46
|
-
|
data/old_style/index.html
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<div id='header'><li id='main-heading'>
|
|
2
|
-
1 Controller evaluated </li></div><body><head><link rel='stylesheet' type='text/css' href=/Users/hayduke19us/my_gems/old_style/old_style/index.css></head><div id='content'><div id='directories'><h2 id='dir-heading'>["fake"]</h2></div><h4>3 css files compared to
|
|
3
|
-
4 html files
|
|
4
|
-
</h4><div id='looked-in'><div id='looked-css'><div id='css-heading'>Css</div><li><a id='css-file' href=/Users/hayduke19us/my_gems/old_style/app/assets/stylesheets/application.css>application.css<a></li><li><a id='css-file' href=/Users/hayduke19us/my_gems/old_style/app/assets/stylesheets/fake3.css.scss>fake3.css.scss<a></li><li><a id='css-file' href=/Users/hayduke19us/my_gems/old_style/app/assets/stylesheets/fake4.css>fake4.css<a></li></div><div id='looked-html'><div id='html-heading'>Html</div><li><a id='html-file' href=/Users/hayduke19us/my_gems/old_style/app/views/fake/fake1.html.erb>fake1.html.erb<a></li><li><a id='html-file' href=/Users/hayduke19us/my_gems/old_style/app/views/fake/fake2.html>fake2.html<a></li><li><a id='html-file' href=/Users/hayduke19us/my_gems/old_style/app/views/layouts/application.html.erb>application.html.erb<a></li><li><a id='html-file' href=/Users/hayduke19us/my_gems/old_style/app/views/layouts/fake.html.erb>fake.html.erb<a></li></div></div><div id='found-wrapper'><div id='found-title-wrapper'><li id='found-css'>Good</li><li id='good-percent'> 62.5%</li></div><div id='found-style-wrapper'><li id='style'>#franny {padding: 100%;}</li><li id='style'>#salinger {color: blue;}</li><li id='style'>#test-id {border: 1px solid #efefef;}</li><li id='style'>.row {float: left; color: red; border-radius: 5px;}</li><li id='style'>div.well {}</li></div></div><div id='empty-wrapper'><div id='empty-title-wrapper'><h4 id='empty-css'>Bad</h4><li id='bad-percent'> 37.5%</li></div><div id='empty-style-wrapper'><li id='empty_style'>#find {color: blue;}</li><li id='empty_style'>.franny {padding: 50%;}</li><li id='empty_style'>.zooey {width: 5px;}</li></div></div></div></body><div id='footer'><div id='footer-info'><li id='footer-caption'>If you find any issues please let me know
|
|
5
|
-
at </li><a id ='issues-link' href = 'https://github.com/hayduke19us/old_style/issues?state=open'>old_style's issues page on github<a></div></div>
|
data/old_style.gemspec
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: old_style 1.4.
|
|
5
|
+
# stub: old_style 1.4.3 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "old_style"
|
|
9
|
-
s.version = "1.4.
|
|
9
|
+
s.version = "1.4.3"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
|
+
s.require_paths = ["lib"]
|
|
12
13
|
s.authors = ["hayduke19us"]
|
|
13
|
-
s.date = "
|
|
14
|
+
s.date = "2015-05-12"
|
|
14
15
|
s.description = "Rails helper. Finds the irrelevent styles in your \n stylesheet and generates a html report to keep you informed."
|
|
15
16
|
s.email = "hayduke19us@gmail.com"
|
|
16
17
|
s.executables = ["old_style"]
|
|
@@ -26,9 +27,9 @@ Gem::Specification.new do |s|
|
|
|
26
27
|
"README.md",
|
|
27
28
|
"Rakefile",
|
|
28
29
|
"VERSION",
|
|
29
|
-
"app/assets/stylesheets/application.css",
|
|
30
|
+
"app/assets/stylesheets/base/application.css",
|
|
31
|
+
"app/assets/stylesheets/base/fake4.css",
|
|
30
32
|
"app/assets/stylesheets/fake3.css.scss",
|
|
31
|
-
"app/assets/stylesheets/fake4.css",
|
|
32
33
|
"app/views/fake/fake1.html.erb",
|
|
33
34
|
"app/views/fake/fake2.html",
|
|
34
35
|
"app/views/layouts/application.html.erb",
|
|
@@ -54,8 +55,7 @@ Gem::Specification.new do |s|
|
|
|
54
55
|
]
|
|
55
56
|
s.homepage = "http://github.com/hayduke19us/old_style"
|
|
56
57
|
s.licenses = ["MIT"]
|
|
57
|
-
s.
|
|
58
|
-
s.rubygems_version = "2.1.11"
|
|
58
|
+
s.rubygems_version = "2.4.6"
|
|
59
59
|
s.summary = "Get rid of those old css styles"
|
|
60
60
|
|
|
61
61
|
if s.respond_to? :specification_version then
|
data/test/test_load_dir.rb
CHANGED
|
@@ -3,14 +3,16 @@ require 'helper'
|
|
|
3
3
|
class LoadDirTest < MiniTest::Test
|
|
4
4
|
def setup
|
|
5
5
|
@load_dir = LoadDir.new("fake")
|
|
6
|
+
@html_path = Dir.home + '/my_gems/old_style/app/views'
|
|
7
|
+
@css_path = Dir.home + '/my_gems/old_style/app/assets/stylesheets'
|
|
6
8
|
end
|
|
7
9
|
|
|
8
10
|
def test_HTML_PATH_should_be_for_views
|
|
9
|
-
assert_equal
|
|
11
|
+
assert_equal @html_path, LoadDir::HTML_PATH
|
|
10
12
|
end
|
|
11
13
|
|
|
12
14
|
def test_CSS_PATH_should_be_for_assets_stylesheets
|
|
13
|
-
assert_equal
|
|
15
|
+
assert_equal @css_path, LoadDir::CSS_PATH
|
|
14
16
|
end
|
|
15
17
|
|
|
16
18
|
def test_LoadDir_args_is_an_array_of_dir
|
|
@@ -26,6 +28,4 @@ class LoadDirTest < MiniTest::Test
|
|
|
26
28
|
#3 css files
|
|
27
29
|
assert_equal 7, @load_dir.files.keys.count
|
|
28
30
|
end
|
|
29
|
-
|
|
30
31
|
end
|
|
31
|
-
|
data/test/test_parse_dir.rb
CHANGED
|
@@ -18,7 +18,7 @@ class ParseDirTest < MiniTest::Test
|
|
|
18
18
|
def test_true_if_css?
|
|
19
19
|
file = "playlist.css"
|
|
20
20
|
assert @parse.css?(file)
|
|
21
|
-
|
|
21
|
+
end
|
|
22
22
|
|
|
23
23
|
def false_if_html_with_css?
|
|
24
24
|
file = "playlist.html"
|
|
@@ -33,7 +33,7 @@ class ParseDirTest < MiniTest::Test
|
|
|
33
33
|
def false_if_css_for_html?
|
|
34
34
|
file = "playlist.css"
|
|
35
35
|
refute @parse.html?(file)
|
|
36
|
-
|
|
36
|
+
end
|
|
37
37
|
|
|
38
38
|
def test_ParseDir#segregate_puts_css_files_in_an_array
|
|
39
39
|
assert_equal 2, @parse.css.count
|
|
@@ -49,8 +49,8 @@ class ParseDirTest < MiniTest::Test
|
|
|
49
49
|
|
|
50
50
|
def test_parse_css_keys_content
|
|
51
51
|
a = [".row", "#salinger", "#find", "div.well",
|
|
52
|
-
".franny", "#franny", ".zooey", "#test-id"]
|
|
53
|
-
assert_equal a, @parse.parse_css.keys
|
|
52
|
+
".franny", "#franny", ".zooey", "#test-id"].sort
|
|
53
|
+
assert_equal a, @parse.parse_css.keys.sort
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def test_found_css_finds_the_relevent_css
|
metadata
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: old_style
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- hayduke19us
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: css_parser
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: minitest
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rdoc
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - ~>
|
|
45
|
+
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '3.12'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - ~>
|
|
52
|
+
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '3.12'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: bundler
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - ~>
|
|
59
|
+
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '1.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - ~>
|
|
66
|
+
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '1.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: jeweler
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- - ~>
|
|
73
|
+
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: 2.0.1
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- - ~>
|
|
80
|
+
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: 2.0.1
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: simplecov
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
|
-
- -
|
|
87
|
+
- - ">="
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
89
|
version: '0'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- -
|
|
94
|
+
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
97
|
description: "Rails helper. Finds the irrelevent styles in your \n stylesheet and
|
|
@@ -104,16 +104,16 @@ extra_rdoc_files:
|
|
|
104
104
|
- LICENSE.txt
|
|
105
105
|
- README.md
|
|
106
106
|
files:
|
|
107
|
-
- .document
|
|
107
|
+
- ".document"
|
|
108
108
|
- Gemfile
|
|
109
109
|
- Gemfile.lock
|
|
110
110
|
- LICENSE.txt
|
|
111
111
|
- README.md
|
|
112
112
|
- Rakefile
|
|
113
113
|
- VERSION
|
|
114
|
-
- app/assets/stylesheets/application.css
|
|
114
|
+
- app/assets/stylesheets/base/application.css
|
|
115
|
+
- app/assets/stylesheets/base/fake4.css
|
|
115
116
|
- app/assets/stylesheets/fake3.css.scss
|
|
116
|
-
- app/assets/stylesheets/fake4.css
|
|
117
117
|
- app/views/fake/fake1.html.erb
|
|
118
118
|
- app/views/fake/fake2.html
|
|
119
119
|
- app/views/layouts/application.html.erb
|
|
@@ -146,17 +146,17 @@ require_paths:
|
|
|
146
146
|
- lib
|
|
147
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
148
|
requirements:
|
|
149
|
-
- -
|
|
149
|
+
- - ">="
|
|
150
150
|
- !ruby/object:Gem::Version
|
|
151
151
|
version: '0'
|
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
requirements:
|
|
154
|
-
- -
|
|
154
|
+
- - ">="
|
|
155
155
|
- !ruby/object:Gem::Version
|
|
156
156
|
version: '0'
|
|
157
157
|
requirements: []
|
|
158
158
|
rubyforge_project:
|
|
159
|
-
rubygems_version: 2.
|
|
159
|
+
rubygems_version: 2.4.6
|
|
160
160
|
signing_key:
|
|
161
161
|
specification_version: 4
|
|
162
162
|
summary: Get rid of those old css styles
|