middleman-presentation-contrib 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +33 -0
- data/.rdebugrc +7 -0
- data/.rspec +5 -0
- data/.rubocop.yml +4 -0
- data/.simplecov +9 -0
- data/.travis.yml +8 -0
- data/.yardopts +5 -0
- data/Gemfile +57 -0
- data/Gemfile.lock +372 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +196 -0
- data/config/license_finder.yml +13 -0
- data/config/rubocop/exclude.yml +25 -0
- data/config/rubocop/include.yml +142 -0
- data/cucumber.yml +2 -0
- data/lib/middleman/presentation/contrib.rb +9 -0
- data/lib/middleman/presentation/contrib/version.rb +7 -0
- data/middleman-presentation-contrib.gemspec +21 -0
- metadata +78 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 93fda79835064cc300ddfebb176810a99f86e890
|
4
|
+
data.tar.gz: bd535d5998f4663f6cef188afdb2948d87c21a60
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 488f14bb76d0c58806c7dd898a38c155b23cb7bea3402c60921dcb19e0536b78582b1aa8e9c747cd176c77e2a60afa02fcd1a3ee012a8f53a20692c358407c4b
|
7
|
+
data.tar.gz: 51a2d398c85461d13fc73184f672d6dcaf0902e5f3552ee5cf24d8ae9d983631c6480a162fac8933e1f485d92005b57723720f0295c64ced0d523cc55fa40e07
|
data/.gitignore
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile ~/.gitignore_global
|
6
|
+
|
7
|
+
# Ignore bundler config
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore the build directory
|
11
|
+
/build
|
12
|
+
|
13
|
+
# Ignore cache
|
14
|
+
/.sass-cache
|
15
|
+
/.cache
|
16
|
+
|
17
|
+
# Ignore .DS_store file
|
18
|
+
.DS_Store
|
19
|
+
|
20
|
+
# Only for cloning,
|
21
|
+
# will be substituted
|
22
|
+
source/*
|
23
|
+
|
24
|
+
!templates/source/*
|
25
|
+
|
26
|
+
# no tmp files
|
27
|
+
tmp/
|
28
|
+
|
29
|
+
coverage/
|
30
|
+
pkg/
|
31
|
+
|
32
|
+
doc/yard/
|
33
|
+
.yardoc
|
data/.rdebugrc
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.simplecov
ADDED
data/.travis.yml
ADDED
data/.yardopts
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
group :middleman do
|
6
|
+
gem 'middleman', '~>3.3.2'
|
7
|
+
gem 'middleman-sprockets' #, git: 'https://github.com/middleman/middleman-sprockets', branch: 'v3-stable'
|
8
|
+
gem 'middleman-livereload' #, '~> 3.1.0'
|
9
|
+
gem 'wdm', '~> 0.1.0', :platforms => [:mswin, :mingw]
|
10
|
+
gem 'tzinfo-data', platforms: [:mswin, :mingw]
|
11
|
+
end
|
12
|
+
|
13
|
+
gem 'thor'
|
14
|
+
|
15
|
+
group :development, :test do
|
16
|
+
gem 'rspec', require: false
|
17
|
+
gem 'rspec-legacy_formatters', require: false
|
18
|
+
gem 'fuubar', require: false
|
19
|
+
gem 'simplecov', require: false
|
20
|
+
gem 'rubocop', require: false
|
21
|
+
gem 'coveralls', require: false
|
22
|
+
gem 'cucumber', require: false
|
23
|
+
gem 'aruba'
|
24
|
+
gem 'bundler', require: false
|
25
|
+
gem 'erubis'
|
26
|
+
gem 'versionomy', require: false
|
27
|
+
gem 'activesupport', require: false
|
28
|
+
gem 'awesome_print', require: 'ap'
|
29
|
+
|
30
|
+
gem 'mutant'
|
31
|
+
gem 'mutant-rspec'
|
32
|
+
|
33
|
+
if !ENV.key?('CI') && !ENV.key?('TRAVIS')
|
34
|
+
gem 'byebug'
|
35
|
+
gem 'pry'
|
36
|
+
gem 'pry-byebug', require: false
|
37
|
+
gem 'pry-doc', require: false
|
38
|
+
end
|
39
|
+
|
40
|
+
gem 'foreman', require: false
|
41
|
+
gem 'github-markup'
|
42
|
+
gem 'redcarpet', require: false
|
43
|
+
gem 'tmrb', require: false
|
44
|
+
gem 'yard', require: false
|
45
|
+
gem 'inch', require: false
|
46
|
+
gem 'license_finder'
|
47
|
+
gem 'filegen', require: false
|
48
|
+
gem 'travis-lint', require: false
|
49
|
+
gem 'command_exec', require: false
|
50
|
+
gem 'rake', require: false
|
51
|
+
gem 'launchy', require: false
|
52
|
+
|
53
|
+
gem 'therubyracer'
|
54
|
+
gem 'therubyrhino'
|
55
|
+
|
56
|
+
gem 'middleman-presentation-test-simple', path: File.expand_path('../fixtures/test-simple-plugin', __FILE__), require: false
|
57
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,372 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
middleman-presentation-contrib (0.0.1)
|
5
|
+
middleman-presentation
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
CFPropertyList (2.2.8)
|
11
|
+
abstract_type (0.0.7)
|
12
|
+
activesupport (4.1.5)
|
13
|
+
i18n (~> 0.6, >= 0.6.9)
|
14
|
+
json (~> 1.7, >= 1.7.7)
|
15
|
+
minitest (~> 5.1)
|
16
|
+
thread_safe (~> 0.1)
|
17
|
+
tzinfo (~> 1.1)
|
18
|
+
adamantium (0.2.0)
|
19
|
+
ice_nine (~> 0.11.0)
|
20
|
+
memoizable (~> 0.4.0)
|
21
|
+
addressable (2.3.6)
|
22
|
+
anima (0.2.0)
|
23
|
+
abstract_type (~> 0.0.7)
|
24
|
+
adamantium (~> 0.1)
|
25
|
+
equalizer (~> 0.0.8)
|
26
|
+
aruba (0.6.1)
|
27
|
+
childprocess (>= 0.3.6)
|
28
|
+
cucumber (>= 1.1.1)
|
29
|
+
rspec-expectations (>= 2.7.0)
|
30
|
+
ast (2.0.0)
|
31
|
+
awesome_print (1.2.0)
|
32
|
+
blockenspiel (0.4.5)
|
33
|
+
builder (3.2.2)
|
34
|
+
byebug (2.7.0)
|
35
|
+
columnize (~> 0.3)
|
36
|
+
debugger-linecache (~> 1.2)
|
37
|
+
celluloid (0.15.2)
|
38
|
+
timers (~> 1.1.0)
|
39
|
+
childprocess (0.5.3)
|
40
|
+
ffi (~> 1.0, >= 1.0.11)
|
41
|
+
chunky_png (1.3.1)
|
42
|
+
coderay (1.1.0)
|
43
|
+
coffee-script (2.3.0)
|
44
|
+
coffee-script-source
|
45
|
+
execjs
|
46
|
+
coffee-script-source (1.8.0)
|
47
|
+
columnize (0.8.9)
|
48
|
+
command_exec (0.2.0)
|
49
|
+
activesupport
|
50
|
+
smart_colored
|
51
|
+
xml-simple
|
52
|
+
compass (1.0.1)
|
53
|
+
chunky_png (~> 1.2)
|
54
|
+
compass-core (~> 1.0.1)
|
55
|
+
compass-import-once (~> 1.0.5)
|
56
|
+
rb-fsevent (>= 0.9.3)
|
57
|
+
rb-inotify (>= 0.9)
|
58
|
+
sass (>= 3.3.13, < 3.5)
|
59
|
+
compass-core (1.0.1)
|
60
|
+
multi_json (~> 1.0)
|
61
|
+
sass (>= 3.3.0, < 3.5)
|
62
|
+
compass-import-once (1.0.5)
|
63
|
+
sass (>= 3.2, < 3.5)
|
64
|
+
concord (0.1.5)
|
65
|
+
adamantium (~> 0.2.0)
|
66
|
+
equalizer (~> 0.0.9)
|
67
|
+
coveralls (0.7.1)
|
68
|
+
multi_json (~> 1.3)
|
69
|
+
rest-client
|
70
|
+
simplecov (>= 0.7)
|
71
|
+
term-ansicolor
|
72
|
+
thor
|
73
|
+
cucumber (1.3.16)
|
74
|
+
builder (>= 2.1.2)
|
75
|
+
diff-lcs (>= 1.1.3)
|
76
|
+
gherkin (~> 2.12)
|
77
|
+
multi_json (>= 1.7.5, < 2.0)
|
78
|
+
multi_test (>= 0.1.1)
|
79
|
+
debugger-linecache (1.2.0)
|
80
|
+
diff-lcs (1.2.5)
|
81
|
+
docile (1.1.5)
|
82
|
+
dotenv (0.11.1)
|
83
|
+
dotenv-deployment (~> 0.0.2)
|
84
|
+
dotenv-deployment (0.0.2)
|
85
|
+
equalizer (0.0.9)
|
86
|
+
erubis (2.7.0)
|
87
|
+
execjs (2.2.1)
|
88
|
+
facter (2.2.0)
|
89
|
+
CFPropertyList (~> 2.2.6)
|
90
|
+
fedux_org-stdlib (0.7.11)
|
91
|
+
activesupport
|
92
|
+
ffi (1.9.3)
|
93
|
+
filegen (0.4.3)
|
94
|
+
activesupport
|
95
|
+
foreman (0.75.0)
|
96
|
+
dotenv (~> 0.11.1)
|
97
|
+
thor (~> 0.19.1)
|
98
|
+
fuubar (2.0.0)
|
99
|
+
rspec (~> 3.0)
|
100
|
+
ruby-progressbar (~> 1.4)
|
101
|
+
gherkin (2.12.2)
|
102
|
+
multi_json (~> 1.3)
|
103
|
+
github-markup (1.2.1)
|
104
|
+
posix-spawn (~> 0.3.8)
|
105
|
+
haml (4.0.5)
|
106
|
+
tilt
|
107
|
+
hike (1.2.3)
|
108
|
+
hooks (0.4.0)
|
109
|
+
uber (~> 0.0.4)
|
110
|
+
httparty (0.13.1)
|
111
|
+
json (~> 1.8)
|
112
|
+
multi_xml (>= 0.5.2)
|
113
|
+
i18n (0.6.11)
|
114
|
+
ice_nine (0.11.0)
|
115
|
+
inch (0.4.10)
|
116
|
+
pry
|
117
|
+
sparkr (>= 0.2.0)
|
118
|
+
term-ansicolor
|
119
|
+
yard (~> 0.8.7)
|
120
|
+
inflecto (0.0.2)
|
121
|
+
json (1.8.1)
|
122
|
+
kramdown (1.4.1)
|
123
|
+
launchy (2.4.2)
|
124
|
+
addressable (~> 2.3)
|
125
|
+
libv8 (3.16.14.3)
|
126
|
+
license_finder (1.1.1)
|
127
|
+
bundler
|
128
|
+
httparty
|
129
|
+
sequel
|
130
|
+
sqlite3
|
131
|
+
thor
|
132
|
+
xml-simple
|
133
|
+
liquid (2.6.1)
|
134
|
+
listen (2.7.9)
|
135
|
+
celluloid (>= 0.15.2)
|
136
|
+
rb-fsevent (>= 0.9.3)
|
137
|
+
rb-inotify (>= 0.9)
|
138
|
+
memoizable (0.4.2)
|
139
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
140
|
+
method_source (0.8.2)
|
141
|
+
middleman (3.3.5)
|
142
|
+
coffee-script (~> 2.2)
|
143
|
+
compass (>= 0.12.4)
|
144
|
+
compass-import-once (= 1.0.5)
|
145
|
+
execjs (~> 2.0)
|
146
|
+
haml (>= 4.0.5)
|
147
|
+
kramdown (~> 1.2)
|
148
|
+
middleman-core (= 3.3.5)
|
149
|
+
middleman-sprockets (>= 3.1.2)
|
150
|
+
sass (>= 3.2.17, < 4.0)
|
151
|
+
uglifier (~> 2.5)
|
152
|
+
middleman-core (3.3.5)
|
153
|
+
activesupport (~> 4.1.0)
|
154
|
+
bundler (~> 1.1)
|
155
|
+
erubis
|
156
|
+
hooks (~> 0.3)
|
157
|
+
i18n (~> 0.6.9)
|
158
|
+
listen (>= 2.7.9, < 3.0)
|
159
|
+
padrino-helpers (~> 0.12.3)
|
160
|
+
rack (>= 1.4.5, < 2.0)
|
161
|
+
rack-test (~> 0.6.2)
|
162
|
+
thor (>= 0.15.2, < 2.0)
|
163
|
+
tilt (~> 1.4.1, < 2.0)
|
164
|
+
middleman-presentation (0.15.8)
|
165
|
+
addressable (~> 2.3.5)
|
166
|
+
bundler
|
167
|
+
erubis
|
168
|
+
facter
|
169
|
+
fedux_org-stdlib (>= 0.6.48)
|
170
|
+
i18n
|
171
|
+
kramdown
|
172
|
+
launchy (~> 2.4.2)
|
173
|
+
liquid
|
174
|
+
middleman (~> 3.3.4)
|
175
|
+
middleman-sprockets (~> 3.3.6)
|
176
|
+
nokogiri
|
177
|
+
rake
|
178
|
+
tzinfo (>= 0.3.0)
|
179
|
+
middleman-sprockets (3.3.9)
|
180
|
+
middleman-core (~> 3.3)
|
181
|
+
sprockets (~> 2.12.1)
|
182
|
+
sprockets-helpers (~> 1.1.0)
|
183
|
+
sprockets-sass (~> 1.2.0)
|
184
|
+
mime-types (2.3)
|
185
|
+
mini_portile (0.6.0)
|
186
|
+
minitest (5.4.0)
|
187
|
+
morpher (0.2.3)
|
188
|
+
abstract_type (~> 0.0.7)
|
189
|
+
adamantium (~> 0.2.0)
|
190
|
+
anima (~> 0.2.0)
|
191
|
+
ast (~> 2.0.0)
|
192
|
+
concord (~> 0.1.4)
|
193
|
+
equalizer (~> 0.0.9)
|
194
|
+
ice_nine (~> 0.11.0)
|
195
|
+
procto (~> 0.0.2)
|
196
|
+
multi_json (1.10.1)
|
197
|
+
multi_test (0.1.1)
|
198
|
+
multi_xml (0.5.5)
|
199
|
+
mutant (0.6.0)
|
200
|
+
abstract_type (~> 0.0.7)
|
201
|
+
adamantium (~> 0.2.0)
|
202
|
+
anima (~> 0.2.0)
|
203
|
+
ast (~> 2.0)
|
204
|
+
concord (~> 0.1.5)
|
205
|
+
diff-lcs (~> 1.2)
|
206
|
+
equalizer (~> 0.0.9)
|
207
|
+
ice_nine (~> 0.11.0)
|
208
|
+
inflecto (~> 0.0.2)
|
209
|
+
memoizable (~> 0.4.2)
|
210
|
+
morpher (~> 0.2.3)
|
211
|
+
parallel (~> 1.2.0)
|
212
|
+
parser (~> 2.1)
|
213
|
+
procto (~> 0.0.2)
|
214
|
+
unparser (~> 0.1.14)
|
215
|
+
mutant-rspec (0.6.0)
|
216
|
+
mutant (~> 0.6.0)
|
217
|
+
rspec-core (>= 2.14.1, < 3.1.0)
|
218
|
+
netrc (0.7.7)
|
219
|
+
nokogiri (1.6.3.1)
|
220
|
+
mini_portile (= 0.6.0)
|
221
|
+
padrino-helpers (0.12.3)
|
222
|
+
i18n (~> 0.6, >= 0.6.7)
|
223
|
+
padrino-support (= 0.12.3)
|
224
|
+
tilt (~> 1.4.1)
|
225
|
+
padrino-support (0.12.3)
|
226
|
+
activesupport (>= 3.1)
|
227
|
+
parallel (1.2.4)
|
228
|
+
parser (2.1.9)
|
229
|
+
ast (>= 1.1, < 3.0)
|
230
|
+
slop (~> 3.4, >= 3.4.5)
|
231
|
+
posix-spawn (0.3.9)
|
232
|
+
powerpack (0.0.9)
|
233
|
+
procto (0.0.2)
|
234
|
+
pry (0.10.1)
|
235
|
+
coderay (~> 1.1.0)
|
236
|
+
method_source (~> 0.8.1)
|
237
|
+
slop (~> 3.4)
|
238
|
+
pry-byebug (1.3.3)
|
239
|
+
byebug (~> 2.7)
|
240
|
+
pry (~> 0.10)
|
241
|
+
pry-doc (0.6.0)
|
242
|
+
pry (~> 0.9)
|
243
|
+
yard (~> 0.8)
|
244
|
+
rack (1.5.2)
|
245
|
+
rack-test (0.6.2)
|
246
|
+
rack (>= 1.0)
|
247
|
+
rainbow (2.0.0)
|
248
|
+
rake (10.3.2)
|
249
|
+
rb-fsevent (0.9.4)
|
250
|
+
rb-inotify (0.9.5)
|
251
|
+
ffi (>= 0.5.0)
|
252
|
+
redcarpet (3.1.2)
|
253
|
+
ref (1.0.5)
|
254
|
+
rest-client (1.7.2)
|
255
|
+
mime-types (>= 1.16, < 3.0)
|
256
|
+
netrc (~> 0.7)
|
257
|
+
rspec (3.0.0)
|
258
|
+
rspec-core (~> 3.0.0)
|
259
|
+
rspec-expectations (~> 3.0.0)
|
260
|
+
rspec-mocks (~> 3.0.0)
|
261
|
+
rspec-core (3.0.4)
|
262
|
+
rspec-support (~> 3.0.0)
|
263
|
+
rspec-expectations (3.0.4)
|
264
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
265
|
+
rspec-support (~> 3.0.0)
|
266
|
+
rspec-legacy_formatters (1.0.0)
|
267
|
+
rspec-core (>= 3.0.0.beta2)
|
268
|
+
rspec-support (>= 3.0.0.beta2)
|
269
|
+
rspec-mocks (3.0.4)
|
270
|
+
rspec-support (~> 3.0.0)
|
271
|
+
rspec-support (3.0.4)
|
272
|
+
rubocop (0.23.0)
|
273
|
+
json (>= 1.7.7, < 2)
|
274
|
+
parser (~> 2.1.9)
|
275
|
+
powerpack (~> 0.0.6)
|
276
|
+
rainbow (>= 1.99.1, < 3.0)
|
277
|
+
ruby-progressbar (~> 1.4)
|
278
|
+
ruby-progressbar (1.5.1)
|
279
|
+
sass (3.4.1)
|
280
|
+
sequel (4.13.0)
|
281
|
+
simplecov (0.9.0)
|
282
|
+
docile (~> 1.1.0)
|
283
|
+
multi_json
|
284
|
+
simplecov-html (~> 0.8.0)
|
285
|
+
simplecov-html (0.8.0)
|
286
|
+
slop (3.6.0)
|
287
|
+
smart_colored (1.1.1)
|
288
|
+
sparkr (0.4.1)
|
289
|
+
sprockets (2.12.1)
|
290
|
+
hike (~> 1.2)
|
291
|
+
multi_json (~> 1.0)
|
292
|
+
rack (~> 1.0)
|
293
|
+
tilt (~> 1.1, != 1.3.0)
|
294
|
+
sprockets-helpers (1.1.0)
|
295
|
+
sprockets (~> 2.0)
|
296
|
+
sprockets-sass (1.2.0)
|
297
|
+
sprockets (~> 2.0)
|
298
|
+
tilt (~> 1.1)
|
299
|
+
sqlite3 (1.3.9)
|
300
|
+
term-ansicolor (1.3.0)
|
301
|
+
tins (~> 1.0)
|
302
|
+
therubyracer (0.12.1)
|
303
|
+
libv8 (~> 3.16.14.0)
|
304
|
+
ref
|
305
|
+
therubyrhino (2.0.4)
|
306
|
+
therubyrhino_jar (>= 1.7.3)
|
307
|
+
therubyrhino_jar (1.7.4)
|
308
|
+
thor (0.19.1)
|
309
|
+
thread_safe (0.3.4)
|
310
|
+
tilt (1.4.1)
|
311
|
+
timers (1.1.0)
|
312
|
+
tins (1.3.2)
|
313
|
+
tmrb (1.2.7)
|
314
|
+
thor
|
315
|
+
travis-lint (2.0.0)
|
316
|
+
json
|
317
|
+
tzinfo (1.2.2)
|
318
|
+
thread_safe (~> 0.1)
|
319
|
+
uber (0.0.8)
|
320
|
+
uglifier (2.5.3)
|
321
|
+
execjs (>= 0.3.0)
|
322
|
+
json (>= 1.8.0)
|
323
|
+
unparser (0.1.14)
|
324
|
+
abstract_type (~> 0.0.7)
|
325
|
+
adamantium (~> 0.2.0)
|
326
|
+
concord (~> 0.1.5)
|
327
|
+
equalizer (~> 0.0.9)
|
328
|
+
parser (~> 2.1)
|
329
|
+
procto (~> 0.0.2)
|
330
|
+
versionomy (0.4.4)
|
331
|
+
blockenspiel (>= 0.4.5)
|
332
|
+
xml-simple (1.1.4)
|
333
|
+
yard (0.8.7.4)
|
334
|
+
|
335
|
+
PLATFORMS
|
336
|
+
ruby
|
337
|
+
|
338
|
+
DEPENDENCIES
|
339
|
+
activesupport
|
340
|
+
aruba
|
341
|
+
awesome_print
|
342
|
+
bundler
|
343
|
+
byebug
|
344
|
+
command_exec
|
345
|
+
coveralls
|
346
|
+
cucumber
|
347
|
+
erubis
|
348
|
+
filegen
|
349
|
+
foreman
|
350
|
+
fuubar
|
351
|
+
github-markup
|
352
|
+
inch
|
353
|
+
launchy
|
354
|
+
license_finder
|
355
|
+
middleman-presentation-contrib!
|
356
|
+
mutant
|
357
|
+
mutant-rspec
|
358
|
+
pry
|
359
|
+
pry-byebug
|
360
|
+
pry-doc
|
361
|
+
rake
|
362
|
+
redcarpet
|
363
|
+
rspec
|
364
|
+
rspec-legacy_formatters
|
365
|
+
rubocop
|
366
|
+
simplecov
|
367
|
+
therubyracer
|
368
|
+
therubyrhino
|
369
|
+
tmrb
|
370
|
+
travis-lint
|
371
|
+
versionomy
|
372
|
+
yard
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Max Meyer
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Middleman::Presentation::Contrib
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'middleman-presentation-contrib'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install middleman-presentation-contrib
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it ( https://github.com/[my-github-username]/middleman-presentation-contrib/fork )
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
|
3
|
+
require 'filegen'
|
4
|
+
require 'fedux_org_stdlib/rake_tasks'
|
5
|
+
require 'active_support/all'
|
6
|
+
require 'open3'
|
7
|
+
|
8
|
+
def software
|
9
|
+
gemspec.name
|
10
|
+
end
|
11
|
+
|
12
|
+
def module_name
|
13
|
+
software.gsub(/-/, '/').camelcase
|
14
|
+
end
|
15
|
+
|
16
|
+
def require_name
|
17
|
+
software.gsub(/-/, '/')
|
18
|
+
end
|
19
|
+
|
20
|
+
def gemspec
|
21
|
+
# rubocop:disable Lint/Eval
|
22
|
+
eval File.read(Dir.glob(File.join(File.expand_path('../', __FILE__), '*.gemspec')).first)
|
23
|
+
# rubocop:enable Lint/Eval
|
24
|
+
end
|
25
|
+
|
26
|
+
def hardware_architecture
|
27
|
+
`uname -m`.chomp
|
28
|
+
end
|
29
|
+
|
30
|
+
def archlinux_package_name
|
31
|
+
File.join(archlinux_build_directory, "#{software}-#{version}-*-#{hardware_architecture}.pkg.tar.xz")
|
32
|
+
end
|
33
|
+
|
34
|
+
def version
|
35
|
+
require "#{require_name}/version"
|
36
|
+
"#{module_name}::VERSION".constantize
|
37
|
+
end
|
38
|
+
|
39
|
+
def root_directory
|
40
|
+
::File.expand_path('../', __FILE__)
|
41
|
+
end
|
42
|
+
|
43
|
+
def tar_file
|
44
|
+
::File.join(pkg_directory, "#{software}-#{version}.tar.gz")
|
45
|
+
end
|
46
|
+
|
47
|
+
def tmp_directory
|
48
|
+
::File.join(root_directory, 'tmp', "#{software}-#{version}")
|
49
|
+
end
|
50
|
+
|
51
|
+
def archlinux_build_directory
|
52
|
+
::File.join(root_directory, 'share', 'archlinux')
|
53
|
+
end
|
54
|
+
|
55
|
+
def gem_file
|
56
|
+
::File.join(root_directory, 'pkg', "#{software}-#{version}.gem")
|
57
|
+
end
|
58
|
+
|
59
|
+
def pkg_directory
|
60
|
+
::File.join(root_directory, 'pkg')
|
61
|
+
end
|
62
|
+
|
63
|
+
def gem_directory
|
64
|
+
::File.join(root_directory, 'vendor', 'cache')
|
65
|
+
end
|
66
|
+
|
67
|
+
task default: 'package:gem'
|
68
|
+
|
69
|
+
file tmp_directory do
|
70
|
+
FileUtils.mkdir_p tmp_directory
|
71
|
+
end
|
72
|
+
|
73
|
+
file archlinux_build_directory do
|
74
|
+
FileUtils.mkdir_p archlinux_build_directory
|
75
|
+
end
|
76
|
+
|
77
|
+
def extract_sha
|
78
|
+
`makepkg -g 2>/dev/null`.split(/\n/).find { |l| l =~ /sha256/ }
|
79
|
+
end
|
80
|
+
|
81
|
+
namespace :package do
|
82
|
+
|
83
|
+
desc 'build gem package'
|
84
|
+
task :gem do
|
85
|
+
sh 'RAILS_ENV=production bundle exec rake -f Rakefile.rails assets:clobber'
|
86
|
+
sh 'RAILS_ENV=production bundle exec rake -f Rakefile.rails assets:precompile'
|
87
|
+
|
88
|
+
base_path = File.expand_path('..', __FILE__)
|
89
|
+
FileUtils.chmod_R 'a+r', Dir.glob(File.join(base_path, 'public', 'assets', '**', '*')).keep_if { |f| File.file? f }
|
90
|
+
|
91
|
+
Rake::Task['gem:clean'].invoke
|
92
|
+
Rake::Task['gem:build'].invoke
|
93
|
+
end
|
94
|
+
|
95
|
+
desc 'build arch linux package'
|
96
|
+
task :archlinux do
|
97
|
+
Rake::Task['archlinux:build'].invoke
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
require 'coveralls/rake/task'
|
102
|
+
Coveralls::RakeTask.new
|
103
|
+
|
104
|
+
desc 'Run test suite'
|
105
|
+
task test: ['test:rspec', 'test:rubocop', 'test:cucumber']
|
106
|
+
|
107
|
+
namespace :test do
|
108
|
+
desc 'Test with coveralls'
|
109
|
+
task coveralls: ['test', 'coveralls:push']
|
110
|
+
|
111
|
+
require 'rubocop/rake_task'
|
112
|
+
RuboCop::RakeTask.new
|
113
|
+
|
114
|
+
desc 'Run rspec'
|
115
|
+
task :rspec do
|
116
|
+
sh 'bundle exec rspec'
|
117
|
+
end
|
118
|
+
|
119
|
+
desc 'Run cucumber'
|
120
|
+
task :cucumber do
|
121
|
+
sh 'bundle exec cucumber -p all'
|
122
|
+
end
|
123
|
+
|
124
|
+
desc 'Run mutant'
|
125
|
+
task :mutant do
|
126
|
+
sh 'mutant --include lib --require middleman-presentation --use rspec "Middleman::Presentation*"'
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
namespace :gem do
|
131
|
+
desc 'Clean build packages'
|
132
|
+
task :clean do
|
133
|
+
FileUtils.rm Dir.glob(File.join(pkg_directory, '*.gem'))
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
namespace :archlinux do
|
138
|
+
desc 'Install arch linux package'
|
139
|
+
task :install do
|
140
|
+
sh "sudo pacman -U #{archlinux_package_name}"
|
141
|
+
end
|
142
|
+
|
143
|
+
desc 'Prepare package build'
|
144
|
+
task prepare: ['package:gem', archlinux_build_directory] do
|
145
|
+
generator = Filegen::Rubygen.new
|
146
|
+
template = File.read(File.expand_path('../share/archlinux/PKGBUILD.sh.erb', __FILE__))
|
147
|
+
build_file = File.expand_path('../share/archlinux/PKGBUILD', __FILE__)
|
148
|
+
|
149
|
+
if ENV.key?('LOCAL_BUILD')
|
150
|
+
package_file = ::File.join(pkg_directory, "#{software}-#{version}.gem")
|
151
|
+
source = ''
|
152
|
+
else
|
153
|
+
# package_file = '$pkgname-$pkgver.gem'
|
154
|
+
package_file = '$pkgname'
|
155
|
+
source = 'http://gems.rubyforge.org/gems/$pkgname-$pkgver.gem'
|
156
|
+
end
|
157
|
+
|
158
|
+
data = {
|
159
|
+
sha: nil,
|
160
|
+
version: version,
|
161
|
+
package: package_file,
|
162
|
+
source: source
|
163
|
+
}
|
164
|
+
|
165
|
+
Dir.chdir(archlinux_build_directory) do
|
166
|
+
File.open(build_file, 'w') do |f|
|
167
|
+
f.write generator.run(template, data)
|
168
|
+
end
|
169
|
+
|
170
|
+
data = {
|
171
|
+
sha: extract_sha,
|
172
|
+
version: version,
|
173
|
+
package: package_file,
|
174
|
+
source: source
|
175
|
+
}
|
176
|
+
|
177
|
+
File.open(build_file, 'w') do |f|
|
178
|
+
f.write generator.run(template, data)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
desc 'Build package'
|
184
|
+
task build: 'archlinux:prepare' do
|
185
|
+
Dir.chdir(archlinux_build_directory) do
|
186
|
+
sh 'makepkg -f'
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
desc 'Build source package for aur'
|
191
|
+
task build_source: 'archlinux:prepare' do
|
192
|
+
Dir.chdir(archlinux_build_directory) do
|
193
|
+
sh 'makepkg --source'
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- 'tmp/**/*'
|
4
|
+
|
5
|
+
# Offense count: 1
|
6
|
+
# Configuration parameters: Exclude.
|
7
|
+
Style/FileName:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
# Offense count: 8
|
11
|
+
# Configuration parameters: CountComments.
|
12
|
+
Style/MethodLength:
|
13
|
+
Max: 118
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
# Offense count: 1
|
17
|
+
# Configuration parameters: CountComments.
|
18
|
+
Style/ClassLength:
|
19
|
+
Max: 160
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
# Offense count: 3
|
23
|
+
Style/CyclomaticComplexity:
|
24
|
+
Max: 9
|
25
|
+
Enabled: false
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# This configuration was generated by `rubocop --auto-gen-config`
|
2
|
+
# on 2014-08-04 09:10:49 +0200 using RuboCop version 0.24.1.
|
3
|
+
# The point is for the user to remove these configuration records
|
4
|
+
# one by one as the offenses are removed from the code base.
|
5
|
+
# Note that changes in the inspected code, or installation of new
|
6
|
+
# versions of RuboCop, may require this file to be generated again.
|
7
|
+
|
8
|
+
# Offense count: 1
|
9
|
+
# Configuration parameters: AlignWith, SupportedStyles.
|
10
|
+
Lint/EndAlignment:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
# Offense count: 1
|
14
|
+
Lint/Eval:
|
15
|
+
Enabled: true
|
16
|
+
|
17
|
+
# Offense count: 1
|
18
|
+
Lint/HandleExceptions:
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
# Offense count: 1
|
22
|
+
# Cop supports --auto-correct.
|
23
|
+
Lint/StringConversionInInterpolation:
|
24
|
+
Enabled: true
|
25
|
+
|
26
|
+
# Offense count: 1
|
27
|
+
# Cop supports --auto-correct.
|
28
|
+
Lint/UnusedBlockArgument:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
# Offense count: 1
|
32
|
+
Lint/UselessAccessModifier:
|
33
|
+
Enabled: true
|
34
|
+
|
35
|
+
# Offense count: 7
|
36
|
+
# Cop supports --auto-correct.
|
37
|
+
Style/AndOr:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
# Offense count: 7
|
41
|
+
# Cop supports --auto-correct.
|
42
|
+
Style/Blocks:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
# Offense count: 1
|
46
|
+
Style/CaseEquality:
|
47
|
+
Enabled: true
|
48
|
+
|
49
|
+
# Offense count: 1
|
50
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
51
|
+
Style/ClassAndModuleChildren:
|
52
|
+
Enabled: true
|
53
|
+
|
54
|
+
# Offense count: 1
|
55
|
+
# Cop supports --auto-correct.
|
56
|
+
Style/CommentIndentation:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
# Offense count: 30
|
60
|
+
Style/Documentation:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
# Offense count: 3
|
64
|
+
Style/EachWithObject:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
# Offense count: 4
|
68
|
+
# Cop supports --auto-correct.
|
69
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
70
|
+
Style/HashSyntax:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
# Offense count: 1
|
74
|
+
# Cop supports --auto-correct.
|
75
|
+
Style/LeadingCommentSpace:
|
76
|
+
Enabled: true
|
77
|
+
|
78
|
+
# Offense count: 151
|
79
|
+
# Configuration parameters: AllowURI.
|
80
|
+
Style/LineLength:
|
81
|
+
Max: 225
|
82
|
+
|
83
|
+
# Offense count: 3
|
84
|
+
Style/MultilineBlockChain:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
# Offense count: 1
|
88
|
+
# Configuration parameters: CountKeywordArgs.
|
89
|
+
Style/ParameterLists:
|
90
|
+
Max: 6
|
91
|
+
|
92
|
+
# Offense count: 4
|
93
|
+
# Configuration parameters: NamePrefixBlacklist.
|
94
|
+
Style/PredicateName:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
# Offense count: 3
|
98
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
99
|
+
Style/RaiseArgs:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
# Offense count: 5
|
103
|
+
# Configuration parameters: MaxSlashes.
|
104
|
+
Style/RegexpLiteral:
|
105
|
+
Enabled: true
|
106
|
+
|
107
|
+
# Offense count: 1
|
108
|
+
# Cop supports --auto-correct.
|
109
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
110
|
+
Style/Semicolon:
|
111
|
+
Enabled: true
|
112
|
+
|
113
|
+
# Offense count: 2
|
114
|
+
# Configuration parameters: Methods.
|
115
|
+
Style/SingleLineBlockParams:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
# Offense count: 2
|
119
|
+
# Cop supports --auto-correct.
|
120
|
+
Style/SpaceInsideParens:
|
121
|
+
Enabled: true
|
122
|
+
|
123
|
+
# Offense count: 5
|
124
|
+
# Cop supports --auto-correct.
|
125
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
126
|
+
Style/StringLiterals:
|
127
|
+
Enabled: true
|
128
|
+
|
129
|
+
# Offense count: 5
|
130
|
+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
131
|
+
Style/TrailingComma:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
# Offense count: 2
|
135
|
+
# Cop supports --auto-correct.
|
136
|
+
Style/TrailingWhitespace:
|
137
|
+
Enabled: true
|
138
|
+
|
139
|
+
# Offense count: 1
|
140
|
+
# Configuration parameters: CountComments.
|
141
|
+
Style/ClassLength:
|
142
|
+
Max: 160
|
data/cucumber.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'middleman/presentation/contrib/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "middleman-presentation-contrib"
|
8
|
+
spec.version = Middleman::Presentation::Contrib::VERSION
|
9
|
+
spec.authors = ["Max Meyer"]
|
10
|
+
spec.email = ["dev@fedux.org"]
|
11
|
+
spec.summary = %q{External contributions for middleman-presentation-helpers etc.}
|
12
|
+
spec.homepage = ""
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_dependency 'middleman-presentation'
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: middleman-presentation-contrib
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Max Meyer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: middleman-presentation
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- dev@fedux.org
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".gitignore"
|
35
|
+
- ".rdebugrc"
|
36
|
+
- ".rspec"
|
37
|
+
- ".rubocop.yml"
|
38
|
+
- ".simplecov"
|
39
|
+
- ".travis.yml"
|
40
|
+
- ".yardopts"
|
41
|
+
- Gemfile
|
42
|
+
- Gemfile.lock
|
43
|
+
- LICENSE.txt
|
44
|
+
- README.md
|
45
|
+
- Rakefile
|
46
|
+
- config/license_finder.yml
|
47
|
+
- config/rubocop/exclude.yml
|
48
|
+
- config/rubocop/include.yml
|
49
|
+
- cucumber.yml
|
50
|
+
- lib/middleman/presentation/contrib.rb
|
51
|
+
- lib/middleman/presentation/contrib/version.rb
|
52
|
+
- middleman-presentation-contrib.gemspec
|
53
|
+
homepage: ''
|
54
|
+
licenses:
|
55
|
+
- MIT
|
56
|
+
metadata: {}
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options: []
|
59
|
+
require_paths:
|
60
|
+
- lib
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
requirements: []
|
72
|
+
rubyforge_project:
|
73
|
+
rubygems_version: 2.4.1
|
74
|
+
signing_key:
|
75
|
+
specification_version: 4
|
76
|
+
summary: External contributions for middleman-presentation-helpers etc.
|
77
|
+
test_files: []
|
78
|
+
has_rdoc:
|