locomotivecms_steam 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +21 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +19 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +188 -0
- data/LICENSE +20 -0
- data/README.md +36 -0
- data/Rakefile +17 -0
- data/bin/publish +28 -0
- data/config/locales/de.yml +157 -0
- data/config/locales/en.yml +189 -0
- data/config/locales/es.yml +133 -0
- data/config/locales/et.yml +154 -0
- data/config/locales/fr.yml +148 -0
- data/config/locales/it.yml +155 -0
- data/config/locales/nb.yml +191 -0
- data/config/locales/nl.yml +160 -0
- data/config/locales/pl.yml +203 -0
- data/config/locales/pt-BR.yml +139 -0
- data/config/locales/ru.yml +224 -0
- data/lib/locomotive/steam/core_ext.rb +5 -0
- data/lib/locomotive/steam/core_ext/array.rb +3 -0
- data/lib/locomotive/steam/core_ext/boolean/false.rb +3 -0
- data/lib/locomotive/steam/core_ext/boolean/true.rb +3 -0
- data/lib/locomotive/steam/core_ext/hash.rb +27 -0
- data/lib/locomotive/steam/core_ext/string.rb +8 -0
- data/lib/locomotive/steam/exceptions.rb +62 -0
- data/lib/locomotive/steam/initializers.rb +5 -0
- data/lib/locomotive/steam/initializers/i18n.rb +3 -0
- data/lib/locomotive/steam/initializers/markdown.rb +27 -0
- data/lib/locomotive/steam/initializers/will_paginate.rb +16 -0
- data/lib/locomotive/steam/liquid.rb +22 -0
- data/lib/locomotive/steam/liquid/drops/base.rb +46 -0
- data/lib/locomotive/steam/liquid/drops/content_entry.rb +48 -0
- data/lib/locomotive/steam/liquid/drops/content_types.rb +117 -0
- data/lib/locomotive/steam/liquid/drops/page.rb +28 -0
- data/lib/locomotive/steam/liquid/drops/session_proxy.rb +18 -0
- data/lib/locomotive/steam/liquid/drops/site.rb +26 -0
- data/lib/locomotive/steam/liquid/errors.rb +17 -0
- data/lib/locomotive/steam/liquid/filters/date.rb +136 -0
- data/lib/locomotive/steam/liquid/filters/html.rb +188 -0
- data/lib/locomotive/steam/liquid/filters/misc.rb +49 -0
- data/lib/locomotive/steam/liquid/filters/resize.rb +18 -0
- data/lib/locomotive/steam/liquid/filters/text.rb +55 -0
- data/lib/locomotive/steam/liquid/filters/translate.rb +28 -0
- data/lib/locomotive/steam/liquid/patches.rb +47 -0
- data/lib/locomotive/steam/liquid/scopeable.rb +149 -0
- data/lib/locomotive/steam/liquid/tags/consume.rb +97 -0
- data/lib/locomotive/steam/liquid/tags/csrf.rb +34 -0
- data/lib/locomotive/steam/liquid/tags/editable.rb +6 -0
- data/lib/locomotive/steam/liquid/tags/editable/base.rb +50 -0
- data/lib/locomotive/steam/liquid/tags/editable/control.rb +19 -0
- data/lib/locomotive/steam/liquid/tags/editable/file.rb +15 -0
- data/lib/locomotive/steam/liquid/tags/editable/long_text.rb +15 -0
- data/lib/locomotive/steam/liquid/tags/editable/short_text.rb +20 -0
- data/lib/locomotive/steam/liquid/tags/editable/text.rb +15 -0
- data/lib/locomotive/steam/liquid/tags/extends.rb +25 -0
- data/lib/locomotive/steam/liquid/tags/google_analytics.rb +28 -0
- data/lib/locomotive/steam/liquid/tags/hybrid.rb +27 -0
- data/lib/locomotive/steam/liquid/tags/inline_editor.rb +16 -0
- data/lib/locomotive/steam/liquid/tags/link_to.rb +56 -0
- data/lib/locomotive/steam/liquid/tags/locale_switcher.rb +106 -0
- data/lib/locomotive/steam/liquid/tags/nav.rb +287 -0
- data/lib/locomotive/steam/liquid/tags/paginate.rb +105 -0
- data/lib/locomotive/steam/liquid/tags/path_helper.rb +98 -0
- data/lib/locomotive/steam/liquid/tags/path_to.rb +36 -0
- data/lib/locomotive/steam/liquid/tags/seo.rb +74 -0
- data/lib/locomotive/steam/liquid/tags/session_assign.rb +41 -0
- data/lib/locomotive/steam/liquid/tags/snippet.rb +63 -0
- data/lib/locomotive/steam/liquid/tags/with_scope.rb +44 -0
- data/lib/locomotive/steam/listen.rb +64 -0
- data/lib/locomotive/steam/logger.rb +54 -0
- data/lib/locomotive/steam/monkey_patches.rb +5 -0
- data/lib/locomotive/steam/monkey_patches/better_errors.rb +70 -0
- data/lib/locomotive/steam/monkey_patches/dragonfly.rb +79 -0
- data/lib/locomotive/steam/monkey_patches/haml.rb +15 -0
- data/lib/locomotive/steam/monkey_patches/httparty.rb +46 -0
- data/lib/locomotive/steam/monkey_patches/mounter.rb +32 -0
- data/lib/locomotive/steam/server.rb +81 -0
- data/lib/locomotive/steam/server/dynamic_assets.rb +33 -0
- data/lib/locomotive/steam/server/entry_submission.rb +120 -0
- data/lib/locomotive/steam/server/favicon.rb +18 -0
- data/lib/locomotive/steam/server/locale.rb +42 -0
- data/lib/locomotive/steam/server/logging.rb +32 -0
- data/lib/locomotive/steam/server/middleware.rb +61 -0
- data/lib/locomotive/steam/server/page.rb +69 -0
- data/lib/locomotive/steam/server/path.rb +34 -0
- data/lib/locomotive/steam/server/renderer.rb +118 -0
- data/lib/locomotive/steam/server/templatized_page.rb +32 -0
- data/lib/locomotive/steam/server/timezone.rb +18 -0
- data/lib/locomotive/steam/standalone_server.rb +33 -0
- data/lib/locomotive/steam/version.rb +5 -0
- data/lib/steam.rb +4 -0
- data/locomotivecms_steam.gemspec +42 -0
- data/spec/fixtures/default/README +0 -0
- data/spec/fixtures/default/app/content_types/bands.yml +19 -0
- data/spec/fixtures/default/app/content_types/events.yml +25 -0
- data/spec/fixtures/default/app/content_types/messages.yml +17 -0
- data/spec/fixtures/default/app/content_types/songs.yml +25 -0
- data/spec/fixtures/default/app/content_types/updates.yml +33 -0
- data/spec/fixtures/default/app/views/pages/404.liquid.haml +10 -0
- data/spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml +7 -0
- data/spec/fixtures/default/app/views/pages/about_us.liquid.haml +21 -0
- data/spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml +4 -0
- data/spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml +4 -0
- data/spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml +5 -0
- data/spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml +6 -0
- data/spec/fixtures/default/app/views/pages/all.liquid.haml +13 -0
- data/spec/fixtures/default/app/views/pages/archives/news.liquid.haml +10 -0
- data/spec/fixtures/default/app/views/pages/contact.liquid.haml +54 -0
- data/spec/fixtures/default/app/views/pages/contest.liquid.haml +18 -0
- data/spec/fixtures/default/app/views/pages/events.liquid.haml +42 -0
- data/spec/fixtures/default/app/views/pages/filtered.liquid.haml +10 -0
- data/spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml +8 -0
- data/spec/fixtures/default/app/views/pages/index.fr.liquid.haml +3 -0
- data/spec/fixtures/default/app/views/pages/index.liquid.haml +100 -0
- data/spec/fixtures/default/app/views/pages/music.fr.liquid.haml +4 -0
- data/spec/fixtures/default/app/views/pages/music.liquid.haml +42 -0
- data/spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml +16 -0
- data/spec/fixtures/default/app/views/pages/songs/template.liquid.haml +18 -0
- data/spec/fixtures/default/app/views/pages/songs/template/band.liquid.haml +16 -0
- data/spec/fixtures/default/app/views/pages/store.fr.liquid.haml +5 -0
- data/spec/fixtures/default/app/views/pages/store.liquid +5 -0
- data/spec/fixtures/default/app/views/pages/tags/nav.liquid.haml +6 -0
- data/spec/fixtures/default/app/views/pages/tags/nav_in_deep.liquid.haml +6 -0
- data/spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml +9 -0
- data/spec/fixtures/default/app/views/snippets/A_Complicated-one.liquid.haml +1 -0
- data/spec/fixtures/default/app/views/snippets/footer.liquid.haml +6 -0
- data/spec/fixtures/default/app/views/snippets/header.liquid.haml +1 -0
- data/spec/fixtures/default/app/views/snippets/song.fr.liquid.haml +8 -0
- data/spec/fixtures/default/app/views/snippets/song.liquid +12 -0
- data/spec/fixtures/default/config/deploy.yml +12 -0
- data/spec/fixtures/default/config/deploy_example.yml +12 -0
- data/spec/fixtures/default/config/site.yml +15 -0
- data/spec/fixtures/default/config/translations.yml +3 -0
- data/spec/fixtures/default/data/bands.yml +10 -0
- data/spec/fixtures/default/data/events.yml +53 -0
- data/spec/fixtures/default/data/songs.yml +46 -0
- data/spec/fixtures/default/data/updates.yml +48 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.eot +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.svg +213 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.ttf +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.woff +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive.css +8 -0
- data/spec/fixtures/default/public/fonts/chunkfive.otf +0 -0
- data/spec/fixtures/default/public/images/nav_on.png +0 -0
- data/spec/fixtures/default/public/images/photo_frame.png +0 -0
- data/spec/fixtures/default/public/images/sep.png +0 -0
- data/spec/fixtures/default/public/images/top.jpg +0 -0
- data/spec/fixtures/default/public/javascripts/application.js.coffee +2 -0
- data/spec/fixtures/default/public/javascripts/common.js +1 -0
- data/spec/fixtures/default/public/samples/asset_collections/cover.jpg +0 -0
- data/spec/fixtures/default/public/samples/photo.jpg +0 -0
- data/spec/fixtures/default/public/samples/photo_2.jpg +0 -0
- data/spec/fixtures/default/public/stylesheets/application.css +64 -0
- data/spec/fixtures/default/public/stylesheets/other/extra.css.less +8 -0
- data/spec/fixtures/default/public/stylesheets/other/style.css.scss +13 -0
- data/spec/fixtures/default/public/stylesheets/reboot.css +82 -0
- data/spec/integration/integration_helper.rb +15 -0
- data/spec/integration/server/basic_spec.rb +170 -0
- data/spec/integration/server/contact_form_spec.rb +111 -0
- data/spec/integration/server/liquid_spec.rb +91 -0
- data/spec/integration/server/with_scope_spec.rb +20 -0
- data/spec/locales/locales_spec.rb +22 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/support.rb +4 -0
- data/spec/support/examples/locale_file.rb +14 -0
- data/spec/support/examples/matching_locale.rb +8 -0
- data/spec/support/helpers.rb +22 -0
- data/spec/support/matchers/hash.rb +5 -0
- metadata +564 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 286924b9da97684b0d41b2f7665c1bf10d8e7a3c
|
4
|
+
data.tar.gz: 995313de3bb43273c996c3bed12154fb03e6ac0d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d54ce2aac8f838cc950fae949838fa61cb1b223bd43c9cb37abfff14abc41d34feae2674fb45efeec822a924b833834ed2f3d66a32a0de44cff2ae2321888941
|
7
|
+
data.tar.gz: aabe22de1742646c3ee9281b87845ac1cf87b5eb1a26ba3f93b83133103724b318f62dbd534727cf32723519e563fa6c0493e159426605931955bf67e2b54e90
|
data/.gitignore
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
coverage
|
6
|
+
InstalledFiles
|
7
|
+
lib/bundler/man
|
8
|
+
pkg
|
9
|
+
rdoc
|
10
|
+
spec/reports
|
11
|
+
test/tmp
|
12
|
+
test/version_tmp
|
13
|
+
tmp
|
14
|
+
|
15
|
+
# YARD artifacts
|
16
|
+
.yardoc
|
17
|
+
_yardoc
|
18
|
+
doc/
|
19
|
+
|
20
|
+
.rspec
|
21
|
+
spec/fixtures/default/log/*
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
locomotivecms_steam (0.1.0)
|
5
|
+
activesupport (~> 3.2)
|
6
|
+
better_errors (~> 1.0)
|
7
|
+
dragonfly (~> 0.9)
|
8
|
+
listen (~> 2.7)
|
9
|
+
locomotivecms-solid
|
10
|
+
locomotivecms_mounter
|
11
|
+
rack-cache (~> 1.1)
|
12
|
+
redcarpet (~> 3.1)
|
13
|
+
sprockets (~> 2.0)
|
14
|
+
sprockets-sass (~> 1.0)
|
15
|
+
will_paginate (~> 3.0)
|
16
|
+
|
17
|
+
GEM
|
18
|
+
remote: https://rubygems.org/
|
19
|
+
specs:
|
20
|
+
RedCloth (4.2.9)
|
21
|
+
activesupport (3.2.17)
|
22
|
+
i18n (~> 0.6, >= 0.6.4)
|
23
|
+
multi_json (~> 1.0)
|
24
|
+
addressable (2.3.6)
|
25
|
+
better_errors (1.1.0)
|
26
|
+
coderay (>= 1.0.0)
|
27
|
+
erubis (>= 2.6.6)
|
28
|
+
celluloid (0.15.2)
|
29
|
+
timers (~> 1.1.0)
|
30
|
+
celluloid-io (0.15.0)
|
31
|
+
celluloid (>= 0.15.0)
|
32
|
+
nio4r (>= 0.5.0)
|
33
|
+
chronic (0.10.2)
|
34
|
+
chunky_png (1.3.0)
|
35
|
+
coderay (1.1.0)
|
36
|
+
coffee-script (2.2.0)
|
37
|
+
coffee-script-source
|
38
|
+
execjs
|
39
|
+
coffee-script-source (1.7.0)
|
40
|
+
colorize (0.5.8)
|
41
|
+
commonjs (0.2.7)
|
42
|
+
compass (0.12.4)
|
43
|
+
chunky_png (~> 1.2)
|
44
|
+
fssm (>= 0.2.7)
|
45
|
+
sass (~> 3.2.17)
|
46
|
+
coveralls (0.7.0)
|
47
|
+
multi_json (~> 1.3)
|
48
|
+
rest-client
|
49
|
+
simplecov (>= 0.7)
|
50
|
+
term-ansicolor
|
51
|
+
thor
|
52
|
+
crack (0.4.2)
|
53
|
+
safe_yaml (~> 1.0.0)
|
54
|
+
diff-lcs (1.2.5)
|
55
|
+
docile (1.1.3)
|
56
|
+
dragonfly (0.9.15)
|
57
|
+
multi_json (~> 1.0)
|
58
|
+
rack
|
59
|
+
erubis (2.7.0)
|
60
|
+
execjs (2.0.2)
|
61
|
+
ffi (1.9.3)
|
62
|
+
fssm (0.2.10)
|
63
|
+
haml (4.0.5)
|
64
|
+
tilt
|
65
|
+
hike (1.2.3)
|
66
|
+
httmultiparty (0.3.10)
|
67
|
+
httparty (>= 0.7.3)
|
68
|
+
multipart-post
|
69
|
+
httparty (0.13.0)
|
70
|
+
json (~> 1.8)
|
71
|
+
multi_xml (>= 0.5.2)
|
72
|
+
i18n (0.6.9)
|
73
|
+
i18n-spec (0.4.1)
|
74
|
+
iso
|
75
|
+
iso (0.2.1)
|
76
|
+
i18n
|
77
|
+
json (1.8.1)
|
78
|
+
launchy (2.4.2)
|
79
|
+
addressable (~> 2.3)
|
80
|
+
less (2.2.2)
|
81
|
+
commonjs (~> 0.2.6)
|
82
|
+
listen (2.7.1)
|
83
|
+
celluloid (>= 0.15.2)
|
84
|
+
celluloid-io (>= 0.15.0)
|
85
|
+
rb-fsevent (>= 0.9.3)
|
86
|
+
rb-inotify (>= 0.9)
|
87
|
+
locomotivecms-liquid (2.6.0)
|
88
|
+
locomotivecms-solid (0.2.2.1)
|
89
|
+
locomotivecms-liquid (~> 2.6.0)
|
90
|
+
locomotivecms_mounter (1.4.0)
|
91
|
+
RedCloth (~> 4.2.3)
|
92
|
+
activesupport (~> 3.2.15)
|
93
|
+
chronic (~> 0.10.2)
|
94
|
+
coffee-script (~> 2.2.0)
|
95
|
+
colorize (~> 0.5.8)
|
96
|
+
compass (~> 0.12.2)
|
97
|
+
haml (~> 4.0.3)
|
98
|
+
httmultiparty (= 0.3.10)
|
99
|
+
i18n (~> 0.6.0)
|
100
|
+
json (~> 1.8.0)
|
101
|
+
less (~> 2.2.1)
|
102
|
+
logger
|
103
|
+
mime-types (~> 1.19)
|
104
|
+
multi_json (~> 1.7.3)
|
105
|
+
sass (~> 3.2.12)
|
106
|
+
sprockets (~> 2.0)
|
107
|
+
sprockets-sass
|
108
|
+
stringex (~> 2.0.3)
|
109
|
+
tilt (= 1.4.1)
|
110
|
+
tzinfo (~> 0.3.29)
|
111
|
+
zip (~> 2.0.2)
|
112
|
+
logger (1.2.8)
|
113
|
+
method_source (0.8.2)
|
114
|
+
mime-types (1.25.1)
|
115
|
+
multi_json (1.7.9)
|
116
|
+
multi_xml (0.5.5)
|
117
|
+
multipart-post (2.0.0)
|
118
|
+
nio4r (1.0.0)
|
119
|
+
pry (0.9.12.6)
|
120
|
+
coderay (~> 1.0)
|
121
|
+
method_source (~> 0.8)
|
122
|
+
slop (~> 3.4)
|
123
|
+
rack (1.5.2)
|
124
|
+
rack-cache (1.2)
|
125
|
+
rack (>= 0.4)
|
126
|
+
rack-test (0.6.2)
|
127
|
+
rack (>= 1.0)
|
128
|
+
rake (10.2.2)
|
129
|
+
rb-fsevent (0.9.4)
|
130
|
+
rb-inotify (0.9.3)
|
131
|
+
ffi (>= 0.5.0)
|
132
|
+
redcarpet (3.1.1)
|
133
|
+
rest-client (1.6.7)
|
134
|
+
mime-types (>= 1.16)
|
135
|
+
rspec (2.14.1)
|
136
|
+
rspec-core (~> 2.14.0)
|
137
|
+
rspec-expectations (~> 2.14.0)
|
138
|
+
rspec-mocks (~> 2.14.0)
|
139
|
+
rspec-core (2.14.8)
|
140
|
+
rspec-expectations (2.14.5)
|
141
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
142
|
+
rspec-mocks (2.14.6)
|
143
|
+
safe_yaml (1.0.1)
|
144
|
+
sass (3.2.18)
|
145
|
+
simplecov (0.8.2)
|
146
|
+
docile (~> 1.1.0)
|
147
|
+
multi_json
|
148
|
+
simplecov-html (~> 0.8.0)
|
149
|
+
simplecov-html (0.8.0)
|
150
|
+
slop (3.5.0)
|
151
|
+
sprockets (2.12.0)
|
152
|
+
hike (~> 1.2)
|
153
|
+
multi_json (~> 1.0)
|
154
|
+
rack (~> 1.0)
|
155
|
+
tilt (~> 1.1, != 1.3.0)
|
156
|
+
sprockets-sass (1.0.3)
|
157
|
+
sprockets (~> 2.0)
|
158
|
+
tilt (~> 1.1)
|
159
|
+
stringex (2.0.11)
|
160
|
+
term-ansicolor (1.3.0)
|
161
|
+
tins (~> 1.0)
|
162
|
+
thor (0.18.1)
|
163
|
+
tilt (1.4.1)
|
164
|
+
timers (1.1.0)
|
165
|
+
tins (1.0.0)
|
166
|
+
tzinfo (0.3.39)
|
167
|
+
vcr (2.9.0)
|
168
|
+
webmock (1.8.11)
|
169
|
+
addressable (>= 2.2.7)
|
170
|
+
crack (>= 0.1.7)
|
171
|
+
will_paginate (3.0.5)
|
172
|
+
zip (2.0.2)
|
173
|
+
|
174
|
+
PLATFORMS
|
175
|
+
ruby
|
176
|
+
|
177
|
+
DEPENDENCIES
|
178
|
+
bundler (~> 1.5)
|
179
|
+
coveralls
|
180
|
+
i18n-spec
|
181
|
+
launchy
|
182
|
+
locomotivecms_steam!
|
183
|
+
pry
|
184
|
+
rack-test
|
185
|
+
rake (~> 10.1)
|
186
|
+
rspec (~> 2.14)
|
187
|
+
vcr
|
188
|
+
webmock
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 LocomotiveCMS
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
Steam
|
2
|
+
======
|
3
|
+
|
4
|
+
The rendering stack used by both Steam and Station (new name of the engine). It includes the rack stack and the liquid drops/filters/tags.
|
5
|
+
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/steam.png)](http://badge.fury.io/rb/locomotivecms_steam)
|
7
|
+
|
8
|
+
[![Code Climate](https://codeclimate.com/github/locomotivecms/steam.png)](https://codeclimate.com/github/locomotivecms/steam)
|
9
|
+
|
10
|
+
[![Dependency Status](https://gemnasium.com/locomotivecms/steam.png)](https://gemnasium.com/locomotivecms/steam)
|
11
|
+
|
12
|
+
[![Build Status](https://travis-ci.org/locomotivecms/steam.png?branch=master)](https://travis-ci.org/locomotivecms/steam) (Travis CI)
|
13
|
+
|
14
|
+
[![Coverage Status](https://coveralls.io/repos/locomotivecms/steam/badge.png)](https://coveralls.io/r/locomotivecms/steam)
|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
Add this line to your application's Gemfile:
|
19
|
+
|
20
|
+
gem 'locomotivecms_steam'
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
$ bundle
|
25
|
+
|
26
|
+
Or install it yourself as:
|
27
|
+
|
28
|
+
$ gem install locomotivecms_steam
|
29
|
+
|
30
|
+
## Contributing
|
31
|
+
|
32
|
+
1. Fork it ( http://github.com/<my-github-username>/locomotivecms/steam )
|
33
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
34
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
35
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
36
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
require 'rake'
|
5
|
+
require 'rspec'
|
6
|
+
|
7
|
+
require 'rspec/core/rake_task'
|
8
|
+
|
9
|
+
require_relative 'lib/steam'
|
10
|
+
|
11
|
+
RSpec::Core::RakeTask.new('spec:integration') do |spec|
|
12
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
13
|
+
end
|
14
|
+
|
15
|
+
task spec: ['spec:integration']
|
16
|
+
|
17
|
+
task default: :spec
|
data/bin/publish
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require_relative '../lib/steam'
|
4
|
+
|
5
|
+
# bin/publish
|
6
|
+
|
7
|
+
class Publish
|
8
|
+
|
9
|
+
def start version, rvm=false
|
10
|
+
system "rvm use #{rvm}"
|
11
|
+
|
12
|
+
system "bundle && bundle exec rspec"
|
13
|
+
system "gem build locomotivecms_steam.gemspec"
|
14
|
+
system "git tag -a v#{Locomotive::Steam::VERSION} -m 'version #{Locomotive::Steam::VERSION}'"
|
15
|
+
system "git push --tags"
|
16
|
+
system "gem push locomotivecms_steam-#{Locomotive::Steam::VERSION}.gem"
|
17
|
+
system "git push origin master"
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
if ARGV.length != 1 # or !ARGV[0].match(/\d{1,3}.\d{1,3}.\d{1,3}/)
|
23
|
+
puts 'HELP: '
|
24
|
+
puts '$ bin/publish [ruby-2.1.1@steam]'
|
25
|
+
exit 0
|
26
|
+
end
|
27
|
+
|
28
|
+
Publish.new.start ARGV[0]
|
@@ -0,0 +1,157 @@
|
|
1
|
+
de:
|
2
|
+
locomotive:
|
3
|
+
locales:
|
4
|
+
en: Englisch
|
5
|
+
de: Deutsch
|
6
|
+
fr: Französisch
|
7
|
+
pl: Polnisch
|
8
|
+
pt-BR: "Bras. Portugiesisch"
|
9
|
+
it: Italienisch
|
10
|
+
nl: Niederländisch
|
11
|
+
nb: Norwegisch
|
12
|
+
es: Spanisch
|
13
|
+
ru: Russisch
|
14
|
+
et: Estnisch
|
15
|
+
|
16
|
+
errors:
|
17
|
+
messages:
|
18
|
+
blank: "leer"
|
19
|
+
|
20
|
+
pagination:
|
21
|
+
previous: "« Zurück"
|
22
|
+
next: "Vor »"
|
23
|
+
|
24
|
+
date:
|
25
|
+
formats:
|
26
|
+
default: "%d.%m.%Y"
|
27
|
+
short: "%e %b"
|
28
|
+
long: "%e %B %Y"
|
29
|
+
long_ordinal: "%e %B %Y"
|
30
|
+
only_day: "%e"
|
31
|
+
|
32
|
+
day_names: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag]
|
33
|
+
abbr_day_names: [So, Mo, Di, Mi, Do, Fr, Sa]
|
34
|
+
month_names: [~, Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
|
35
|
+
abbr_month_names: [~, Jan., Feb., Mär., Apr., Mai, Juni, Juli, Aug., Sept., Okt., Nov., Dez.]
|
36
|
+
order: [ day, month, year ]
|
37
|
+
|
38
|
+
pagination:
|
39
|
+
previous: "« Zurück"
|
40
|
+
next: "Vor »"
|
41
|
+
|
42
|
+
time:
|
43
|
+
formats:
|
44
|
+
default: "%d %B %Y %H:%M"
|
45
|
+
time: "%H:%M"
|
46
|
+
short: "%d %b %H:%M"
|
47
|
+
long: "%A %d %B %Y %H:%M:%S %Z"
|
48
|
+
long_ordinal: "%A %d %B %Y %H:%M:%S %Z"
|
49
|
+
only_second: "%S"
|
50
|
+
am: 'vormittags'
|
51
|
+
pm: 'nachmittags'
|
52
|
+
|
53
|
+
datetime:
|
54
|
+
distance_in_words:
|
55
|
+
half_a_minute: 'eine halbe Minute'
|
56
|
+
less_than_x_seconds:
|
57
|
+
one: 'weniger als eine Sekunde'
|
58
|
+
other: 'weniger als %{count} Sekunden'
|
59
|
+
x_seconds:
|
60
|
+
one: 'eine Sekunde'
|
61
|
+
other: '%{count} Sekunden'
|
62
|
+
less_than_x_minutes:
|
63
|
+
one: 'weniger als eine Minute'
|
64
|
+
other: 'weniger als %{count} Minuten'
|
65
|
+
x_minutes:
|
66
|
+
one: 'eine Minute'
|
67
|
+
other: '%{count} Minuten'
|
68
|
+
about_x_hours:
|
69
|
+
one: 'etwa eine Stunde'
|
70
|
+
other: 'etwa %{count} Stunden'
|
71
|
+
x_days:
|
72
|
+
one: 'ein Tag'
|
73
|
+
other: '%{count} Tage'
|
74
|
+
about_x_months:
|
75
|
+
one: 'etwa ein Monat'
|
76
|
+
other: 'etwa %{count} Monate'
|
77
|
+
x_months:
|
78
|
+
one: 'ein Monat'
|
79
|
+
other: '%{count} Monate'
|
80
|
+
almost_x_years:
|
81
|
+
one: 'fast ein Jahr'
|
82
|
+
other: 'fast %{count} Jahre'
|
83
|
+
about_x_years:
|
84
|
+
one: 'etwa ein Jahr'
|
85
|
+
other: 'etwa %{count} Jahre'
|
86
|
+
over_x_years:
|
87
|
+
one: 'mehr als ein Jahr'
|
88
|
+
other: 'mehr als %{count} Jahre'
|
89
|
+
prompts:
|
90
|
+
second: "Sekunden"
|
91
|
+
minute: "Minuten"
|
92
|
+
hour: "Stunden"
|
93
|
+
day: "Tag"
|
94
|
+
month: "Monat"
|
95
|
+
year: "Jahr"
|
96
|
+
|
97
|
+
number:
|
98
|
+
format:
|
99
|
+
precision: 2
|
100
|
+
separator: ','
|
101
|
+
delimiter: '.'
|
102
|
+
significant: false
|
103
|
+
strip_insignificant_zeros: false
|
104
|
+
currency:
|
105
|
+
format:
|
106
|
+
unit: '€'
|
107
|
+
format: '%n%u'
|
108
|
+
separator: ","
|
109
|
+
delimiter: ""
|
110
|
+
precision: 2
|
111
|
+
significant: false
|
112
|
+
strip_insignificant_zeros: false
|
113
|
+
percentage:
|
114
|
+
format:
|
115
|
+
delimiter: ""
|
116
|
+
precision:
|
117
|
+
format:
|
118
|
+
delimiter: ""
|
119
|
+
human:
|
120
|
+
format:
|
121
|
+
delimiter: ""
|
122
|
+
precision: 1
|
123
|
+
significant: true
|
124
|
+
strip_insignificant_zeros: true
|
125
|
+
storage_units:
|
126
|
+
# Storage units output formatting.
|
127
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
128
|
+
format: "%n %u"
|
129
|
+
units:
|
130
|
+
byte:
|
131
|
+
one: "Byte"
|
132
|
+
other: "Bytes"
|
133
|
+
kb: "KB"
|
134
|
+
mb: "MB"
|
135
|
+
gb: "GB"
|
136
|
+
tb: "TB"
|
137
|
+
decimal_units:
|
138
|
+
format: "%n %u"
|
139
|
+
units:
|
140
|
+
unit: ""
|
141
|
+
thousand: Tausend
|
142
|
+
million: Millionen
|
143
|
+
billion:
|
144
|
+
one: Milliarde
|
145
|
+
others: Milliarden
|
146
|
+
trillion: Billionen
|
147
|
+
quadrillion:
|
148
|
+
one: Billiarde
|
149
|
+
others: Billiarden
|
150
|
+
|
151
|
+
support:
|
152
|
+
array:
|
153
|
+
sentence_connector: 'und'
|
154
|
+
skip_last_comma: true
|
155
|
+
words_connector: ", "
|
156
|
+
two_words_connector: " und "
|
157
|
+
last_word_connector: " und "
|