xass 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -7
- data/Gemfile.lock +90 -18
- data/lib/xass/view_helpers.rb +1 -1
- data/spec/answers/spec.html +1 -0
- data/spec/helpers_spec.rb +8 -0
- data/spec/problems/spec.html.erb +20 -0
- data/spec/spec_helper.rb +16 -4
- data/spec/support/render.rb +3 -0
- data/xass.gemspec +5 -2
- metadata +49 -7
- data/spec/secrets.yml +0 -4
- data/spec/test_spec.rb +0 -5
- data/template/files/.gitkeep +0 -0
- data/template/secrets.yml +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 376b30a8930cfe354ce8093ef63e87b2c925e6a8
|
4
|
+
data.tar.gz: 45047749d602f718e572d6136b2603cc2b1d0ac2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 553d01e5b16b3b6d921695ad5eea1b1ebc8a2db1b4419b56ce6428d4ac07c33bf459947da68a750e6c7e2da3b85b8b9bdcced3e950058d6ac60a9c4cdcb6b05b
|
7
|
+
data.tar.gz: 667687cb31f8a0277695a03ced263a636e531713cd0a36425392892a1e29b837191867cf98f7ff5a3d2845cb3eeb9d5a8b6a3fde0ce0c9daa007e07282bbfa93
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,31 +1,103 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
xass (0.1.9)
|
5
|
+
activesupport (~> 4.0)
|
6
|
+
csspool
|
7
|
+
nokogiri
|
8
|
+
sass
|
9
|
+
|
1
10
|
GEM
|
2
11
|
remote: https://rubygems.org/
|
3
12
|
specs:
|
4
|
-
|
13
|
+
actionmailer (4.1.6)
|
14
|
+
actionpack (= 4.1.6)
|
15
|
+
actionview (= 4.1.6)
|
16
|
+
mail (~> 2.5, >= 2.5.4)
|
17
|
+
actionpack (4.1.6)
|
18
|
+
actionview (= 4.1.6)
|
19
|
+
activesupport (= 4.1.6)
|
20
|
+
rack (~> 1.5.2)
|
21
|
+
rack-test (~> 0.6.2)
|
22
|
+
actionview (4.1.6)
|
23
|
+
activesupport (= 4.1.6)
|
24
|
+
builder (~> 3.1)
|
25
|
+
erubis (~> 2.7.0)
|
26
|
+
activemodel (4.1.6)
|
27
|
+
activesupport (= 4.1.6)
|
28
|
+
builder (~> 3.1)
|
29
|
+
activerecord (4.1.6)
|
30
|
+
activemodel (= 4.1.6)
|
31
|
+
activesupport (= 4.1.6)
|
32
|
+
arel (~> 5.0.0)
|
33
|
+
activesupport (4.1.6)
|
5
34
|
i18n (~> 0.6, >= 0.6.9)
|
6
35
|
json (~> 1.7, >= 1.7.7)
|
7
36
|
minitest (~> 5.1)
|
8
37
|
thread_safe (~> 0.1)
|
9
38
|
tzinfo (~> 1.1)
|
10
|
-
|
39
|
+
arel (5.0.1.20140414130214)
|
40
|
+
builder (3.2.2)
|
41
|
+
csspool (4.0.1)
|
11
42
|
diff-lcs (1.2.5)
|
43
|
+
erubis (2.7.0)
|
44
|
+
haml (4.0.5)
|
45
|
+
tilt
|
46
|
+
hike (1.2.3)
|
12
47
|
i18n (0.6.11)
|
13
48
|
json (1.8.1)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
49
|
+
mail (2.6.1)
|
50
|
+
mime-types (>= 1.16, < 3)
|
51
|
+
mime-types (2.3)
|
52
|
+
mini_portile (0.6.0)
|
53
|
+
minitest (5.4.1)
|
54
|
+
multi_json (1.10.1)
|
55
|
+
nokogiri (1.6.3.1)
|
56
|
+
mini_portile (= 0.6.0)
|
57
|
+
rack (1.5.2)
|
58
|
+
rack-test (0.6.2)
|
59
|
+
rack (>= 1.0)
|
60
|
+
rails (4.1.6)
|
61
|
+
actionmailer (= 4.1.6)
|
62
|
+
actionpack (= 4.1.6)
|
63
|
+
actionview (= 4.1.6)
|
64
|
+
activemodel (= 4.1.6)
|
65
|
+
activerecord (= 4.1.6)
|
66
|
+
activesupport (= 4.1.6)
|
67
|
+
bundler (>= 1.3.0, < 2.0)
|
68
|
+
railties (= 4.1.6)
|
69
|
+
sprockets-rails (~> 2.0)
|
70
|
+
railties (4.1.6)
|
71
|
+
actionpack (= 4.1.6)
|
72
|
+
activesupport (= 4.1.6)
|
73
|
+
rake (>= 0.8.7)
|
74
|
+
thor (>= 0.18.1, < 2.0)
|
75
|
+
rake (10.3.2)
|
76
|
+
rspec (3.1.0)
|
77
|
+
rspec-core (~> 3.1.0)
|
78
|
+
rspec-expectations (~> 3.1.0)
|
79
|
+
rspec-mocks (~> 3.1.0)
|
80
|
+
rspec-core (3.1.2)
|
81
|
+
rspec-support (~> 3.1.0)
|
82
|
+
rspec-expectations (3.1.0)
|
22
83
|
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
-
rspec-support (~> 3.
|
24
|
-
rspec-mocks (3.0
|
25
|
-
rspec-support (~> 3.
|
26
|
-
rspec-support (3.0
|
27
|
-
sass (3.4.
|
84
|
+
rspec-support (~> 3.1.0)
|
85
|
+
rspec-mocks (3.1.0)
|
86
|
+
rspec-support (~> 3.1.0)
|
87
|
+
rspec-support (3.1.0)
|
88
|
+
sass (3.4.3)
|
89
|
+
sprockets (2.12.2)
|
90
|
+
hike (~> 1.2)
|
91
|
+
multi_json (~> 1.0)
|
92
|
+
rack (~> 1.0)
|
93
|
+
tilt (~> 1.1, != 1.3.0)
|
94
|
+
sprockets-rails (2.1.4)
|
95
|
+
actionpack (>= 3.0)
|
96
|
+
activesupport (>= 3.0)
|
97
|
+
sprockets (~> 2.8)
|
98
|
+
thor (0.19.1)
|
28
99
|
thread_safe (0.3.4)
|
100
|
+
tilt (1.4.1)
|
29
101
|
tzinfo (1.2.2)
|
30
102
|
thread_safe (~> 0.1)
|
31
103
|
|
@@ -33,7 +105,7 @@ PLATFORMS
|
|
33
105
|
ruby
|
34
106
|
|
35
107
|
DEPENDENCIES
|
36
|
-
|
37
|
-
|
108
|
+
haml
|
109
|
+
rails
|
38
110
|
rspec
|
39
|
-
|
111
|
+
xass!
|
data/lib/xass/view_helpers.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
<divclass="a"><divclass="b"><divclass="a___c"><divclass="a___d"></div><divclass="a__e___f"></div><divclass="g___h"></div><divclass="i"><divclass="i___j"></div><divclass="i___k"></div><divclass="i"></div><divclass="l__m"></div><divclass="n___o"></div></div></div></div></div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%= dnsr :a do %>
|
2
|
+
<div class="b">
|
3
|
+
<div class="ns-c">
|
4
|
+
<%= nsc :d %>
|
5
|
+
<%= dns :e do %>
|
6
|
+
<div class="ns-f"></div>
|
7
|
+
<% end %>
|
8
|
+
<%= dns! :g do %>
|
9
|
+
<div class="ns-h"></div>
|
10
|
+
<% end %>
|
11
|
+
<%= dnsr! :i do %>
|
12
|
+
<div class="ns-j"></div>
|
13
|
+
<%= nsc :k %>
|
14
|
+
<div class="nsr"></div>
|
15
|
+
<div class="nsrb-l--m"></div>
|
16
|
+
<div class="nsb-n--o"></div>
|
17
|
+
<% end %>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<% end %>
|
data/spec/spec_helper.rb
CHANGED
@@ -1,8 +1,20 @@
|
|
1
1
|
require 'bundler/setup'
|
2
|
-
Bundler.
|
2
|
+
Bundler.require
|
3
3
|
|
4
|
-
require '
|
4
|
+
require 'xass'
|
5
|
+
require 'action_view/railtie'
|
6
|
+
require 'nokogiri'
|
5
7
|
|
6
|
-
|
7
|
-
|
8
|
+
ActionView::Helpers.include(Xass::ViewHelpers)
|
9
|
+
|
10
|
+
class View
|
11
|
+
def initialize
|
12
|
+
@action_view = ActionView::Base.new [File.expand_path('../problems', __FILE__)]
|
13
|
+
end
|
14
|
+
|
15
|
+
def render(path)
|
16
|
+
@action_view.render(file: path)
|
17
|
+
end
|
8
18
|
end
|
19
|
+
|
20
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
data/xass.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'xass'
|
3
|
-
s.version = '0.
|
3
|
+
s.version = '0.2.0'
|
4
4
|
s.authors = ['Tetsuri Moriya']
|
5
5
|
s.email = ['tetsuri.moriya@gmail.com']
|
6
6
|
s.summary = 'Sass namespace extension'
|
@@ -8,8 +8,11 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.homepage = 'https://github.com/pandora2000/xass'
|
9
9
|
s.license = 'MIT'
|
10
10
|
s.files = `git ls-files`.split("\n")
|
11
|
-
s.add_development_dependency 'rspec', '
|
11
|
+
s.add_development_dependency 'rspec', '>= 0'
|
12
|
+
s.add_development_dependency 'rails', '>= 0'
|
13
|
+
s.add_development_dependency 'haml', '>= 0'
|
12
14
|
s.add_runtime_dependency 'activesupport', '~> 4.0'
|
13
15
|
s.add_runtime_dependency 'sass', '>= 0'
|
14
16
|
s.add_runtime_dependency 'csspool', '>= 0'
|
17
|
+
s.add_runtime_dependency 'nokogiri', '>= 0'
|
15
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tetsuri Moriya
|
@@ -14,14 +14,42 @@ dependencies:
|
|
14
14
|
name: rspec
|
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: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
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: haml
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
25
53
|
- !ruby/object:Gem::Version
|
26
54
|
version: '0'
|
27
55
|
- !ruby/object:Gem::Dependency
|
@@ -66,6 +94,20 @@ dependencies:
|
|
66
94
|
- - ">="
|
67
95
|
- !ruby/object:Gem::Version
|
68
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: nokogiri
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
69
111
|
description: Namespace in sass
|
70
112
|
email:
|
71
113
|
- tetsuri.moriya@gmail.com
|
@@ -81,11 +123,11 @@ files:
|
|
81
123
|
- lib/xass.rb
|
82
124
|
- lib/xass/railtie.rb
|
83
125
|
- lib/xass/view_helpers.rb
|
84
|
-
- spec/
|
126
|
+
- spec/answers/spec.html
|
127
|
+
- spec/helpers_spec.rb
|
128
|
+
- spec/problems/spec.html.erb
|
85
129
|
- spec/spec_helper.rb
|
86
|
-
- spec/
|
87
|
-
- template/files/.gitkeep
|
88
|
-
- template/secrets.yml
|
130
|
+
- spec/support/render.rb
|
89
131
|
- xass.gemspec
|
90
132
|
homepage: https://github.com/pandora2000/xass
|
91
133
|
licenses:
|
data/spec/secrets.yml
DELETED
data/spec/test_spec.rb
DELETED
data/template/files/.gitkeep
DELETED
File without changes
|
data/template/secrets.yml
DELETED