middleman-presentation-helpers 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fbccb76fba897565058e6530e9ce6d433543bf5a
4
+ data.tar.gz: 6cd4b20b6eb016bb56ae63fc3174f3a1c8e07ac0
5
+ SHA512:
6
+ metadata.gz: 7d1ac201b545fa29f04f894421f1a7e77e6d2e3224e7f79fd4d5f31be893cf0a9fe5eebb84db9bd0a2433b7c41e69153e9e0055892ba05c0571eb99688371762
7
+ data.tar.gz: a2b803a78a80fdfcbf1c615fdc37b14ceba479111fb0fdc28074c37824b21f3e99221a6ce2b36bb9b3502082c594d5d9b551cfdb19506661f9e1fb277fb23c5d
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
@@ -0,0 +1,7 @@
1
+ set listsize 30
2
+ set history save on
3
+ set history size 99999
4
+ set history filename ~/.rdebug_history
5
+ set autolist
6
+ set autoeval
7
+ set autoreload
data/.rspec ADDED
@@ -0,0 +1,5 @@
1
+ --require rspec/legacy_formatters
2
+ #--require spec_helper
3
+ --format Fuubar
4
+ --order rand
5
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,4 @@
1
+ inherit_from:
2
+ - config/rubocop/include.yml
3
+ - config/rubocop/exclude.yml
4
+ - config/rubocop/exclude.yml
data/.simplecov ADDED
@@ -0,0 +1,9 @@
1
+ SimpleCov.start do
2
+ add_filter "/features/"
3
+ add_filter "/fixtures/"
4
+ add_filter "/spec/"
5
+ add_filter "/tmp"
6
+ add_filter "/vendor"
7
+
8
+ add_group "lib", "lib"
9
+ end
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ bundler_args: --without development
3
+ rvm:
4
+ - 2.1.0
5
+ - 2.1.1
6
+ - 2.1.2
7
+ install: script/bootstrap
8
+ script: script/ci
data/.yardopts ADDED
@@ -0,0 +1,5 @@
1
+ -o doc/yard
2
+ --verbose
3
+ -
4
+ LICENSE.md
5
+ README.md
data/Gemfile ADDED
@@ -0,0 +1,45 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rspec', require: false
7
+ gem 'rspec-legacy_formatters', require: false
8
+ gem 'fuubar', require: false
9
+ gem 'simplecov', require: false
10
+ gem 'rubocop', require: false
11
+ gem 'coveralls', require: false
12
+ gem 'cucumber', require: false
13
+ gem 'aruba'
14
+ gem 'bundler', require: false
15
+ gem 'erubis'
16
+ gem 'versionomy', require: false
17
+ gem 'activesupport', require: false
18
+ gem 'awesome_print', require: 'ap'
19
+
20
+ gem 'mutant'
21
+ gem 'mutant-rspec'
22
+
23
+ if !ENV.key?('CI') && !ENV.key?('TRAVIS')
24
+ gem 'byebug'
25
+ gem 'pry'
26
+ gem 'pry-byebug', require: false
27
+ gem 'pry-doc', require: false
28
+ end
29
+
30
+ gem 'foreman', require: false
31
+ gem 'github-markup'
32
+ gem 'redcarpet', require: false
33
+ gem 'tmrb', require: false
34
+ gem 'yard', require: false
35
+ gem 'inch', require: false
36
+ gem 'license_finder'
37
+ gem 'filegen', require: false
38
+ gem 'travis-lint', require: false
39
+ gem 'command_exec', require: false
40
+ gem 'rake', require: false
41
+ gem 'launchy', require: false
42
+
43
+ gem 'therubyracer'
44
+ gem 'therubyrhino'
45
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,370 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ middleman-presentation-helpers (0.0.1)
5
+ middleman-presentation
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ abstract_type (0.0.7)
11
+ activesupport (4.1.5)
12
+ i18n (~> 0.6, >= 0.6.9)
13
+ json (~> 1.7, >= 1.7.7)
14
+ minitest (~> 5.1)
15
+ thread_safe (~> 0.1)
16
+ tzinfo (~> 1.1)
17
+ adamantium (0.2.0)
18
+ ice_nine (~> 0.11.0)
19
+ memoizable (~> 0.4.0)
20
+ addressable (2.3.6)
21
+ anima (0.2.0)
22
+ abstract_type (~> 0.0.7)
23
+ adamantium (~> 0.1)
24
+ equalizer (~> 0.0.8)
25
+ aruba (0.6.1)
26
+ childprocess (>= 0.3.6)
27
+ cucumber (>= 1.1.1)
28
+ rspec-expectations (>= 2.7.0)
29
+ ast (2.0.0)
30
+ awesome_print (1.2.0)
31
+ blockenspiel (0.4.5)
32
+ builder (3.2.2)
33
+ byebug (2.7.0)
34
+ columnize (~> 0.3)
35
+ debugger-linecache (~> 1.2)
36
+ celluloid (0.15.2)
37
+ timers (~> 1.1.0)
38
+ childprocess (0.5.3)
39
+ ffi (~> 1.0, >= 1.0.11)
40
+ chunky_png (1.3.1)
41
+ coderay (1.1.0)
42
+ coffee-script (2.3.0)
43
+ coffee-script-source
44
+ execjs
45
+ coffee-script-source (1.8.0)
46
+ columnize (0.8.9)
47
+ command_exec (0.2.0)
48
+ activesupport
49
+ smart_colored
50
+ xml-simple
51
+ compass (1.0.1)
52
+ chunky_png (~> 1.2)
53
+ compass-core (~> 1.0.1)
54
+ compass-import-once (~> 1.0.5)
55
+ rb-fsevent (>= 0.9.3)
56
+ rb-inotify (>= 0.9)
57
+ sass (>= 3.3.13, < 3.5)
58
+ compass-core (1.0.1)
59
+ multi_json (~> 1.0)
60
+ sass (>= 3.3.0, < 3.5)
61
+ compass-import-once (1.0.5)
62
+ sass (>= 3.2, < 3.5)
63
+ concord (0.1.5)
64
+ adamantium (~> 0.2.0)
65
+ equalizer (~> 0.0.9)
66
+ coveralls (0.7.1)
67
+ multi_json (~> 1.3)
68
+ rest-client
69
+ simplecov (>= 0.7)
70
+ term-ansicolor
71
+ thor
72
+ cucumber (1.3.16)
73
+ builder (>= 2.1.2)
74
+ diff-lcs (>= 1.1.3)
75
+ gherkin (~> 2.12)
76
+ multi_json (>= 1.7.5, < 2.0)
77
+ multi_test (>= 0.1.1)
78
+ debugger-linecache (1.2.0)
79
+ diff-lcs (1.2.5)
80
+ docile (1.1.5)
81
+ dotenv (0.11.1)
82
+ dotenv-deployment (~> 0.0.2)
83
+ dotenv-deployment (0.0.2)
84
+ equalizer (0.0.9)
85
+ erubis (2.7.0)
86
+ execjs (2.2.1)
87
+ facter (2.2.0)
88
+ fedux_org-stdlib (0.7.11)
89
+ activesupport
90
+ ffi (1.9.3)
91
+ filegen (0.4.3)
92
+ activesupport
93
+ foreman (0.75.0)
94
+ dotenv (~> 0.11.1)
95
+ thor (~> 0.19.1)
96
+ fuubar (2.0.0)
97
+ rspec (~> 3.0)
98
+ ruby-progressbar (~> 1.4)
99
+ gherkin (2.12.2)
100
+ multi_json (~> 1.3)
101
+ github-markup (1.2.1)
102
+ posix-spawn (~> 0.3.8)
103
+ haml (4.0.5)
104
+ tilt
105
+ hike (1.2.3)
106
+ hooks (0.4.0)
107
+ uber (~> 0.0.4)
108
+ httparty (0.13.1)
109
+ json (~> 1.8)
110
+ multi_xml (>= 0.5.2)
111
+ i18n (0.6.11)
112
+ ice_nine (0.11.0)
113
+ inch (0.4.10)
114
+ pry
115
+ sparkr (>= 0.2.0)
116
+ term-ansicolor
117
+ yard (~> 0.8.7)
118
+ inflecto (0.0.2)
119
+ json (1.8.1)
120
+ kramdown (1.4.1)
121
+ launchy (2.4.2)
122
+ addressable (~> 2.3)
123
+ libv8 (3.16.14.3)
124
+ license_finder (1.1.1)
125
+ bundler
126
+ httparty
127
+ sequel
128
+ sqlite3
129
+ thor
130
+ xml-simple
131
+ liquid (2.6.1)
132
+ listen (2.7.9)
133
+ celluloid (>= 0.15.2)
134
+ rb-fsevent (>= 0.9.3)
135
+ rb-inotify (>= 0.9)
136
+ memoizable (0.4.2)
137
+ thread_safe (~> 0.3, >= 0.3.1)
138
+ method_source (0.8.2)
139
+ middleman (3.3.5)
140
+ coffee-script (~> 2.2)
141
+ compass (>= 0.12.4)
142
+ compass-import-once (= 1.0.5)
143
+ execjs (~> 2.0)
144
+ haml (>= 4.0.5)
145
+ kramdown (~> 1.2)
146
+ middleman-core (= 3.3.5)
147
+ middleman-sprockets (>= 3.1.2)
148
+ sass (>= 3.2.17, < 4.0)
149
+ uglifier (~> 2.5)
150
+ middleman-core (3.3.5)
151
+ activesupport (~> 4.1.0)
152
+ bundler (~> 1.1)
153
+ erubis
154
+ hooks (~> 0.3)
155
+ i18n (~> 0.6.9)
156
+ listen (>= 2.7.9, < 3.0)
157
+ padrino-helpers (~> 0.12.3)
158
+ rack (>= 1.4.5, < 2.0)
159
+ rack-test (~> 0.6.2)
160
+ thor (>= 0.15.2, < 2.0)
161
+ tilt (~> 1.4.1, < 2.0)
162
+ middleman-presentation (0.15.8)
163
+ addressable (~> 2.3.5)
164
+ bundler
165
+ erubis
166
+ facter
167
+ fedux_org-stdlib (>= 0.6.48)
168
+ i18n
169
+ kramdown
170
+ launchy (~> 2.4.2)
171
+ liquid
172
+ middleman (~> 3.3.4)
173
+ middleman-sprockets (~> 3.3.6)
174
+ nokogiri
175
+ rake
176
+ tzinfo (>= 0.3.0)
177
+ middleman-sprockets (3.3.9)
178
+ middleman-core (~> 3.3)
179
+ sprockets (~> 2.12.1)
180
+ sprockets-helpers (~> 1.1.0)
181
+ sprockets-sass (~> 1.2.0)
182
+ mime-types (2.3)
183
+ mini_portile (0.6.0)
184
+ minitest (5.4.0)
185
+ morpher (0.2.3)
186
+ abstract_type (~> 0.0.7)
187
+ adamantium (~> 0.2.0)
188
+ anima (~> 0.2.0)
189
+ ast (~> 2.0.0)
190
+ concord (~> 0.1.4)
191
+ equalizer (~> 0.0.9)
192
+ ice_nine (~> 0.11.0)
193
+ procto (~> 0.0.2)
194
+ multi_json (1.10.1)
195
+ multi_test (0.1.1)
196
+ multi_xml (0.5.5)
197
+ mutant (0.6.0)
198
+ abstract_type (~> 0.0.7)
199
+ adamantium (~> 0.2.0)
200
+ anima (~> 0.2.0)
201
+ ast (~> 2.0)
202
+ concord (~> 0.1.5)
203
+ diff-lcs (~> 1.2)
204
+ equalizer (~> 0.0.9)
205
+ ice_nine (~> 0.11.0)
206
+ inflecto (~> 0.0.2)
207
+ memoizable (~> 0.4.2)
208
+ morpher (~> 0.2.3)
209
+ parallel (~> 1.2.0)
210
+ parser (~> 2.1)
211
+ procto (~> 0.0.2)
212
+ unparser (~> 0.1.14)
213
+ mutant-rspec (0.6.0)
214
+ mutant (~> 0.6.0)
215
+ rspec-core (>= 2.14.1, < 3.1.0)
216
+ netrc (0.7.7)
217
+ nokogiri (1.6.3.1)
218
+ mini_portile (= 0.6.0)
219
+ padrino-helpers (0.12.3)
220
+ i18n (~> 0.6, >= 0.6.7)
221
+ padrino-support (= 0.12.3)
222
+ tilt (~> 1.4.1)
223
+ padrino-support (0.12.3)
224
+ activesupport (>= 3.1)
225
+ parallel (1.2.4)
226
+ parser (2.1.9)
227
+ ast (>= 1.1, < 3.0)
228
+ slop (~> 3.4, >= 3.4.5)
229
+ posix-spawn (0.3.9)
230
+ powerpack (0.0.9)
231
+ procto (0.0.2)
232
+ pry (0.10.1)
233
+ coderay (~> 1.1.0)
234
+ method_source (~> 0.8.1)
235
+ slop (~> 3.4)
236
+ pry-byebug (1.3.3)
237
+ byebug (~> 2.7)
238
+ pry (~> 0.10)
239
+ pry-doc (0.6.0)
240
+ pry (~> 0.9)
241
+ yard (~> 0.8)
242
+ rack (1.5.2)
243
+ rack-test (0.6.2)
244
+ rack (>= 1.0)
245
+ rainbow (2.0.0)
246
+ rake (10.3.2)
247
+ rb-fsevent (0.9.4)
248
+ rb-inotify (0.9.5)
249
+ ffi (>= 0.5.0)
250
+ redcarpet (3.1.2)
251
+ ref (1.0.5)
252
+ rest-client (1.7.2)
253
+ mime-types (>= 1.16, < 3.0)
254
+ netrc (~> 0.7)
255
+ rspec (3.0.0)
256
+ rspec-core (~> 3.0.0)
257
+ rspec-expectations (~> 3.0.0)
258
+ rspec-mocks (~> 3.0.0)
259
+ rspec-core (3.0.4)
260
+ rspec-support (~> 3.0.0)
261
+ rspec-expectations (3.0.4)
262
+ diff-lcs (>= 1.2.0, < 2.0)
263
+ rspec-support (~> 3.0.0)
264
+ rspec-legacy_formatters (1.0.0)
265
+ rspec-core (>= 3.0.0.beta2)
266
+ rspec-support (>= 3.0.0.beta2)
267
+ rspec-mocks (3.0.4)
268
+ rspec-support (~> 3.0.0)
269
+ rspec-support (3.0.4)
270
+ rubocop (0.23.0)
271
+ json (>= 1.7.7, < 2)
272
+ parser (~> 2.1.9)
273
+ powerpack (~> 0.0.6)
274
+ rainbow (>= 1.99.1, < 3.0)
275
+ ruby-progressbar (~> 1.4)
276
+ ruby-progressbar (1.5.1)
277
+ sass (3.4.1)
278
+ sequel (4.13.0)
279
+ simplecov (0.9.0)
280
+ docile (~> 1.1.0)
281
+ multi_json
282
+ simplecov-html (~> 0.8.0)
283
+ simplecov-html (0.8.0)
284
+ slop (3.6.0)
285
+ smart_colored (1.1.1)
286
+ sparkr (0.4.1)
287
+ sprockets (2.12.1)
288
+ hike (~> 1.2)
289
+ multi_json (~> 1.0)
290
+ rack (~> 1.0)
291
+ tilt (~> 1.1, != 1.3.0)
292
+ sprockets-helpers (1.1.0)
293
+ sprockets (~> 2.0)
294
+ sprockets-sass (1.2.0)
295
+ sprockets (~> 2.0)
296
+ tilt (~> 1.1)
297
+ sqlite3 (1.3.9)
298
+ term-ansicolor (1.3.0)
299
+ tins (~> 1.0)
300
+ therubyracer (0.12.1)
301
+ libv8 (~> 3.16.14.0)
302
+ ref
303
+ therubyrhino (2.0.4)
304
+ therubyrhino_jar (>= 1.7.3)
305
+ therubyrhino_jar (1.7.4)
306
+ thor (0.19.1)
307
+ thread_safe (0.3.4)
308
+ tilt (1.4.1)
309
+ timers (1.1.0)
310
+ tins (1.3.2)
311
+ tmrb (1.2.7)
312
+ thor
313
+ travis-lint (2.0.0)
314
+ json
315
+ tzinfo (1.2.2)
316
+ thread_safe (~> 0.1)
317
+ uber (0.0.8)
318
+ uglifier (2.5.3)
319
+ execjs (>= 0.3.0)
320
+ json (>= 1.8.0)
321
+ unparser (0.1.14)
322
+ abstract_type (~> 0.0.7)
323
+ adamantium (~> 0.2.0)
324
+ concord (~> 0.1.5)
325
+ equalizer (~> 0.0.9)
326
+ parser (~> 2.1)
327
+ procto (~> 0.0.2)
328
+ versionomy (0.4.4)
329
+ blockenspiel (>= 0.4.5)
330
+ xml-simple (1.1.4)
331
+ yard (0.8.7.4)
332
+
333
+ PLATFORMS
334
+ ruby
335
+
336
+ DEPENDENCIES
337
+ activesupport
338
+ aruba
339
+ awesome_print
340
+ bundler
341
+ byebug
342
+ command_exec
343
+ coveralls
344
+ cucumber
345
+ erubis
346
+ filegen
347
+ foreman
348
+ fuubar
349
+ github-markup
350
+ inch
351
+ launchy
352
+ license_finder
353
+ middleman-presentation-helpers!
354
+ mutant
355
+ mutant-rspec
356
+ pry
357
+ pry-byebug
358
+ pry-doc
359
+ rake
360
+ redcarpet
361
+ rspec
362
+ rspec-legacy_formatters
363
+ rubocop
364
+ simplecov
365
+ therubyracer
366
+ therubyrhino
367
+ tmrb
368
+ travis-lint
369
+ versionomy
370
+ 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::Helpers
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-helpers'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install middleman-presentation-helpers
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-helpers/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,13 @@
1
+ ---
2
+ whitelist:
3
+ - MIT
4
+ - Apache 2.0
5
+ - BSD
6
+ - ruby
7
+ ignore_groups:
8
+ - test
9
+ - development
10
+ ignore_dependencies:
11
+ #- bundler
12
+ dependencies_file_dir: './doc/licenses'
13
+ project_name: middleman-presentation
@@ -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,2 @@
1
+ default: --tags @wip:3 --tags ~@broken --tags ~@broken-external
2
+ all: --tags ~@wip --tags ~@broken --tags ~@broken-external
@@ -0,0 +1,7 @@
1
+ module Middleman
2
+ module Presentation
3
+ module Helpers
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ require "middleman/presentation/helpers/version"
2
+
3
+ module Middleman
4
+ module Presentation
5
+ module Helpers
6
+ # Your code goes here...
7
+ end
8
+ end
9
+ end
@@ -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/helpers/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "middleman-presentation-helpers"
8
+ spec.version = Middleman::Presentation::Helpers::VERSION
9
+ spec.authors = ["Max Meyer"]
10
+ spec.email = ["dev@fedux.org"]
11
+ spec.summary = %q{Helpers for middleman-presentation}
12
+ spec.homepage = "https://github.com/maxmeyer/middleman-presentation-helpers"
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-helpers
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/helpers.rb
51
+ - lib/middleman/presentation/helpers/version.rb
52
+ - middleman-presentation-helpers.gemspec
53
+ homepage: https://github.com/maxmeyer/middleman-presentation-helpers
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: Helpers for middleman-presentation
77
+ test_files: []
78
+ has_rdoc: