sculptor 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8892ec5089d558ff641359ff69733d048e314ef
4
- data.tar.gz: 67d2fc8ee63e505b326ac3d7e656b7fc92ad4156
3
+ metadata.gz: 53e8cbfeb036c6778345d27140c48fe33de84313
4
+ data.tar.gz: d0ba017f0282cde1b887b3c8568397bc82072e0b
5
5
  SHA512:
6
- metadata.gz: b88e45b635671467b563f201163d0a65e99315347f3044e0b3615a9eec54d6e6a25933850adf7cefc96fab4e7acf3e59d1ae9c259b37e74d42cdafe12ca481d5
7
- data.tar.gz: 5080d19bf694387499df1975c8f889aa04d1b2d45fbbdc5b3657bd1226aff5ac7d9470edf8bfb87536d05e0870bb604dec41021c34474af420fd1ec0ce7927ea
6
+ metadata.gz: deaac2bbe47a7abd27dbf2cbdfe32accadc9bc5e377bf853fc696ea6257d4286355b05d8280294191ffe1034cd181c91dac61524f67309b65af78d5eee79a81e
7
+ data.tar.gz: 13b5e33a624c4114765b2e06a7fa4c77960e929ea2bdc002bbfae1ac8f3df8106c3672903039051e01c20589b73f311d2016db99a2ae2d7a691a5d746af611ad
@@ -27,12 +27,12 @@ class Middleman::Extensions::Model < ::Middleman::Extension
27
27
  html = resource.render
28
28
  elsif options[:component_url] && options[:component_selector]
29
29
  metadata = options
30
- doc = Nokogiri::HTML(open(options[:component_url]))
30
+ doc = Nokogiri::XML(open(options[:component_url]), &:noblanks)
31
31
  result = doc.css(options[:component_selector])
32
32
  if result.empty?
33
33
  raise "Selector `#{options[:component_selector]}` not found in remote location`#{options[:component_url]}`"
34
34
  end
35
- html = result.to_html
35
+ html = result.to_xml
36
36
  else
37
37
  raise "Model `#{options[:title]}`: No `component` of HTML block was given"
38
38
  end
@@ -10,19 +10,14 @@ angular.module('directives', [])
10
10
  restrict: 'C',
11
11
  link: function($scope, $element, $attrs) {
12
12
  $scope.hidden = false;
13
- var nav = $element.parent('nav');
14
-
15
- if(!nav.length) {
16
- return;
17
- }
18
13
 
19
14
  Mousetrap.bind('f', function() {
20
15
  $scope.toggle();
16
+ $scope.$apply();
21
17
  });
22
18
 
23
19
  $scope.toggle = function() {
24
20
  $scope.hidden = !$scope.hidden;
25
- nav.toggleClass('m-hide', $scope.hidden);
26
21
  };
27
22
  }
28
23
  };
@@ -3,7 +3,7 @@ body {
3
3
  height: 100%;
4
4
  }
5
5
 
6
- html {
6
+ body {
7
7
  background: #d9d7de;
8
8
  }
9
9
 
@@ -42,8 +42,8 @@
42
42
 
43
43
  ._standalone {
44
44
  @include position(absolute, 0px 0px null null);
45
- margin: 10px;
46
- font-size: 12px;
45
+ margin: 13px;
46
+ font-size: 14px;
47
47
  }
48
48
  }
49
49
 
@@ -10,7 +10,7 @@
10
10
  border-left: 1px solid rgba(black, .15);
11
11
  }
12
12
 
13
- &.m-hide {
13
+ &.s-hidden {
14
14
  margin-left: -$glypto-nav-width;
15
15
 
16
16
  & + .glyptotheque {
@@ -50,7 +50,7 @@
50
50
  ul {
51
51
  @include clearfix;
52
52
  list-style: none;
53
- font-size: .8rem;
53
+ font-size: 12px;
54
54
  line-height: 1.2;
55
55
  padding: 0;
56
56
  margin: 0;
@@ -35,7 +35,7 @@
35
35
  .codehilite .nf { color: #990000; font-weight: bold } /* Name.Function */
36
36
  .codehilite .nl { color: #990000; font-weight: bold } /* Name.Label */
37
37
  .codehilite .nn { color: #555555 } /* Name.Namespace */
38
- .codehilite .nt { color: #000080 } /* Name.Tag */
38
+ .codehilite .nt { color: #0000b3 } /* Name.Tag */
39
39
  .codehilite .nv { color: #008080 } /* Name.Variable */
40
40
  .codehilite .ow { color: #000000; font-weight: bold } /* Operator.Word */
41
41
  .codehilite .w { color: #bbbbbb } /* Text.Whitespace */
@@ -5,6 +5,7 @@ html ng-app=(yield_content(:ng_app))
5
5
  title = current_page.data.title || yield_content(:page_title) || resource_file(current_page)
6
6
  meta name='viewport' content='width=device-width'
7
7
  = stylesheet_link_tag 'main'
8
+ = stylesheet_link_tag '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css'
8
9
  = yield_content :styles
9
10
  = include_stylesheets(current_page.data.stylesheets) if current_page.data.stylesheets
10
11
  = include_stylesheet(current_page.data.stylesheet) if current_page.data.stylesheet
@@ -15,7 +15,8 @@ article.glypto-model
15
15
  p._description = description
16
16
 
17
17
  - url = locals[:url] ? locals[:url] : current_page.url
18
- ._standalone = link_to 'Standalone', url.sub('.html', '-full.html'), target: '_blank'
18
+ ._standalone = link_to url.sub('.html', '-full.html'), target: '_blank' do
19
+ i.fa.fa-external-link title="Standalone version"
19
20
 
20
21
  section.glypto-model-stage
21
22
  figure = html
@@ -2,7 +2,7 @@
2
2
  - subpages = subpages_for(section)
3
3
 
4
4
  - unless subpages.empty?
5
- nav.glypto-nav
5
+ nav.glypto-nav ng-class="{'s-hidden' : hidden}"
6
6
  button.nav-toggle ng-click="toggle()"
7
7
  = link_to 'Glyptotheque', '/', class: '_logo'
8
8
  ul
@@ -1,3 +1,3 @@
1
1
  module Sculptor
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sculptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyom Semonov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-31 00:00:00.000000000 Z
11
+ date: 2014-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
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: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
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: guard
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
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: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: cucumber
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '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: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: aruba
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
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: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '2.14'
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: '2.14'
97
97
  - !ruby/object:Gem::Dependency
@@ -112,102 +112,102 @@ dependencies:
112
112
  name: guard-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: guard-cucumber
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: pry-plus
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: middleman-core
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - '>='
158
158
  - !ruby/object:Gem::Version
159
159
  version: '3.3'
160
- - - "<"
160
+ - - <
161
161
  - !ruby/object:Gem::Version
162
162
  version: '4.0'
163
163
  type: :runtime
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - ">="
167
+ - - '>='
168
168
  - !ruby/object:Gem::Version
169
169
  version: '3.3'
170
- - - "<"
170
+ - - <
171
171
  - !ruby/object:Gem::Version
172
172
  version: '4.0'
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: thor
175
175
  requirement: !ruby/object:Gem::Requirement
176
176
  requirements:
177
- - - ">="
177
+ - - '>='
178
178
  - !ruby/object:Gem::Version
179
179
  version: 0.15.2
180
- - - "<"
180
+ - - <
181
181
  - !ruby/object:Gem::Version
182
182
  version: '2.0'
183
183
  type: :runtime
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
186
186
  requirements:
187
- - - ">="
187
+ - - '>='
188
188
  - !ruby/object:Gem::Version
189
189
  version: 0.15.2
190
- - - "<"
190
+ - - <
191
191
  - !ruby/object:Gem::Version
192
192
  version: '2.0'
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: nokogiri
195
195
  requirement: !ruby/object:Gem::Requirement
196
196
  requirements:
197
- - - ">="
197
+ - - '>='
198
198
  - !ruby/object:Gem::Version
199
199
  version: '1.6'
200
- - - "<"
200
+ - - <
201
201
  - !ruby/object:Gem::Version
202
202
  version: '2.0'
203
203
  type: :runtime
204
204
  prerelease: false
205
205
  version_requirements: !ruby/object:Gem::Requirement
206
206
  requirements:
207
- - - ">="
207
+ - - '>='
208
208
  - !ruby/object:Gem::Version
209
209
  version: '1.6'
210
- - - "<"
210
+ - - <
211
211
  - !ruby/object:Gem::Version
212
212
  version: '2.0'
213
213
  description: Styleguide generator, prototype and test tool powered by Middleman
@@ -218,8 +218,8 @@ executables:
218
218
  extensions: []
219
219
  extra_rdoc_files: []
220
220
  files:
221
- - ".editorconfig"
222
- - ".gitignore"
221
+ - .editorconfig
222
+ - .gitignore
223
223
  - Gemfile
224
224
  - Guardfile
225
225
  - LICENSE.txt
@@ -287,12 +287,12 @@ require_paths:
287
287
  - lib
288
288
  required_ruby_version: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - ">="
290
+ - - '>='
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0'
293
293
  required_rubygems_version: !ruby/object:Gem::Requirement
294
294
  requirements:
295
- - - ">="
295
+ - - '>='
296
296
  - !ruby/object:Gem::Version
297
297
  version: '0'
298
298
  requirements: []