asciinema-rails 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +22 -0
- data/README.md +107 -0
- data/Rakefile +2 -0
- data/asciinema-rails.gemspec +27 -0
- data/lib/asciinema-rails.rb +1 -0
- data/lib/asciinema/asciicast.rb +44 -0
- data/lib/asciinema/asciicast_frames_file_updater.rb +24 -0
- data/lib/asciinema/asciicast_snapshot_updater.rb +20 -0
- data/lib/asciinema/brush.rb +78 -0
- data/lib/asciinema/cell.rb +33 -0
- data/lib/asciinema/cursor.rb +18 -0
- data/lib/asciinema/film.rb +40 -0
- data/lib/asciinema/frame.rb +26 -0
- data/lib/asciinema/frame_diff.rb +20 -0
- data/lib/asciinema/frame_diff_list.rb +26 -0
- data/lib/asciinema/grid.rb +51 -0
- data/lib/asciinema/json_file_writer.rb +21 -0
- data/lib/asciinema/rails.rb +8 -0
- data/lib/asciinema/rails/convertor.rb +97 -0
- data/lib/asciinema/rails/engine.rb +6 -0
- data/lib/asciinema/rails/version.rb +5 -0
- data/lib/asciinema/snapshot.rb +41 -0
- data/lib/asciinema/stdout.rb +101 -0
- data/lib/asciinema/terminal.rb +65 -0
- data/spec/.rspec +2 -0
- data/spec/asciinemosh_spec.rb +63 -0
- data/spec/fixtures/sudosh-script +8 -0
- data/spec/fixtures/sudosh-time +22 -0
- data/spec/spec_helper.rb +50 -0
- data/src/terminal +0 -0
- data/src/terminal.c +307 -0
- data/vendor/assets/javscripts/asciinema-rails.js +4 -0
- data/vendor/assets/javscripts/asciinema.org/asciinema-player.js +1149 -0
- data/vendor/assets/javscripts/asciinema.org/rAF.js +32 -0
- data/vendor/assets/javscripts/asciinema.org/react-0.10.0.js +17228 -0
- data/vendor/assets/javscripts/asciinema.org/screenfull.js +143 -0
- data/vendor/assets/stylesheets/asciinema-rails.css +4 -0
- data/vendor/assets/stylesheets/asciinema.org/asciinema-player.css +1732 -0
- data/vendor/assets/stylesheets/asciinema.org/themes/solarized-dark.css +35 -0
- data/vendor/assets/stylesheets/asciinema.org/themes/solarized-light.css +35 -0
- data/vendor/assets/stylesheets/asciinema.org/themes/tango.css +35 -0
- metadata +192 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
.asciinema-theme-solarized-dark .asciinema-terminal {color: #839496;background-color: #002b36;border-color: #002b36}
|
2
|
+
.asciinema-theme-solarized-dark .fg-bg {color: #002b36}
|
3
|
+
.asciinema-theme-solarized-dark .bg-fg {background-color: #839496}
|
4
|
+
.asciinema-theme-solarized-dark .fg-0 { color: #073642 }
|
5
|
+
.asciinema-theme-solarized-dark .bg-0 { background-color: #073642 }
|
6
|
+
.asciinema-theme-solarized-dark .fg-1 { color: #dc322f }
|
7
|
+
.asciinema-theme-solarized-dark .bg-1 { background-color: #dc322f }
|
8
|
+
.asciinema-theme-solarized-dark .fg-2 { color: #859900 }
|
9
|
+
.asciinema-theme-solarized-dark .bg-2 { background-color: #859900 }
|
10
|
+
.asciinema-theme-solarized-dark .fg-3 { color: #b58900 }
|
11
|
+
.asciinema-theme-solarized-dark .bg-3 { background-color: #b58900 }
|
12
|
+
.asciinema-theme-solarized-dark .fg-4 { color: #268bd2 }
|
13
|
+
.asciinema-theme-solarized-dark .bg-4 { background-color: #268bd2 }
|
14
|
+
.asciinema-theme-solarized-dark .fg-5 { color: #d33682 }
|
15
|
+
.asciinema-theme-solarized-dark .bg-5 { background-color: #d33682 }
|
16
|
+
.asciinema-theme-solarized-dark .fg-6 { color: #2aa198 }
|
17
|
+
.asciinema-theme-solarized-dark .bg-6 { background-color: #2aa198 }
|
18
|
+
.asciinema-theme-solarized-dark .fg-7 { color: #eee8d5 }
|
19
|
+
.asciinema-theme-solarized-dark .bg-7 { background-color: #eee8d5 }
|
20
|
+
.asciinema-theme-solarized-dark .fg-8 { color: #002b36 }
|
21
|
+
.asciinema-theme-solarized-dark .bg-8 { background-color: #002b36 }
|
22
|
+
.asciinema-theme-solarized-dark .fg-9 { color: #cb4b16 }
|
23
|
+
.asciinema-theme-solarized-dark .bg-9 { background-color: #cb4b16 }
|
24
|
+
.asciinema-theme-solarized-dark .fg-10 { color: #586e75 }
|
25
|
+
.asciinema-theme-solarized-dark .bg-10 { background-color: #586e75 }
|
26
|
+
.asciinema-theme-solarized-dark .fg-11 { color: #657b83 }
|
27
|
+
.asciinema-theme-solarized-dark .bg-11 { background-color: #657b83 }
|
28
|
+
.asciinema-theme-solarized-dark .fg-12 { color: #839496 }
|
29
|
+
.asciinema-theme-solarized-dark .bg-12 { background-color: #839496 }
|
30
|
+
.asciinema-theme-solarized-dark .fg-13 { color: #6c71c4 }
|
31
|
+
.asciinema-theme-solarized-dark .bg-13 { background-color: #6c71c4 }
|
32
|
+
.asciinema-theme-solarized-dark .fg-14 { color: #93a1a1 }
|
33
|
+
.asciinema-theme-solarized-dark .bg-14 { background-color: #93a1a1 }
|
34
|
+
.asciinema-theme-solarized-dark .fg-15 { color: #fdf6e3 }
|
35
|
+
.asciinema-theme-solarized-dark .bg-15 { background-color: #fdf6e3 }
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.asciinema-theme-solarized-light .asciinema-terminal {color: #657b83;background-color: #fdf6e3;border-color: #fdf6e3}
|
2
|
+
.asciinema-theme-solarized-light .fg-bg {color: #fdf6e3}
|
3
|
+
.asciinema-theme-solarized-light .bg-fg {background-color: #657b83}
|
4
|
+
.asciinema-theme-solarized-light .fg-0 { color: #eee8d5 }
|
5
|
+
.asciinema-theme-solarized-light .bg-0 { background-color: #eee8d5 }
|
6
|
+
.asciinema-theme-solarized-light .fg-1 { color: #dc322f }
|
7
|
+
.asciinema-theme-solarized-light .bg-1 { background-color: #dc322f }
|
8
|
+
.asciinema-theme-solarized-light .fg-2 { color: #859900 }
|
9
|
+
.asciinema-theme-solarized-light .bg-2 { background-color: #859900 }
|
10
|
+
.asciinema-theme-solarized-light .fg-3 { color: #b58900 }
|
11
|
+
.asciinema-theme-solarized-light .bg-3 { background-color: #b58900 }
|
12
|
+
.asciinema-theme-solarized-light .fg-4 { color: #268bd2 }
|
13
|
+
.asciinema-theme-solarized-light .bg-4 { background-color: #268bd2 }
|
14
|
+
.asciinema-theme-solarized-light .fg-5 { color: #d33682 }
|
15
|
+
.asciinema-theme-solarized-light .bg-5 { background-color: #d33682 }
|
16
|
+
.asciinema-theme-solarized-light .fg-6 { color: #2aa198 }
|
17
|
+
.asciinema-theme-solarized-light .bg-6 { background-color: #2aa198 }
|
18
|
+
.asciinema-theme-solarized-light .fg-7 { color: #073642 }
|
19
|
+
.asciinema-theme-solarized-light .bg-7 { background-color: #073642 }
|
20
|
+
.asciinema-theme-solarized-light .fg-8 { color: #fdf6e3 }
|
21
|
+
.asciinema-theme-solarized-light .bg-8 { background-color: #fdf6e3 }
|
22
|
+
.asciinema-theme-solarized-light .fg-9 { color: #cb4b16 }
|
23
|
+
.asciinema-theme-solarized-light .bg-9 { background-color: #cb4b16 }
|
24
|
+
.asciinema-theme-solarized-light .fg-10 { color: #93a1a1 }
|
25
|
+
.asciinema-theme-solarized-light .bg-10 { background-color: #93a1a1 }
|
26
|
+
.asciinema-theme-solarized-light .fg-11 { color: #839496 }
|
27
|
+
.asciinema-theme-solarized-light .bg-11 { background-color: #839496 }
|
28
|
+
.asciinema-theme-solarized-light .fg-12 { color: #657b83 }
|
29
|
+
.asciinema-theme-solarized-light .bg-12 { background-color: #657b83 }
|
30
|
+
.asciinema-theme-solarized-light .fg-13 { color: #6c71c4 }
|
31
|
+
.asciinema-theme-solarized-light .bg-13 { background-color: #6c71c4 }
|
32
|
+
.asciinema-theme-solarized-light .fg-14 { color: #586e75 }
|
33
|
+
.asciinema-theme-solarized-light .bg-14 { background-color: #586e75 }
|
34
|
+
.asciinema-theme-solarized-light .fg-15 { color: #002b36 }
|
35
|
+
.asciinema-theme-solarized-light .bg-15 { background-color: #002b36 }
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.asciinema-theme-tango .asciinema-terminal {color: #CCCCCC;background-color: #121314;border-color: #121314}
|
2
|
+
.asciinema-theme-tango .fg-bg {color: #121314}
|
3
|
+
.asciinema-theme-tango .bg-fg {background-color: #CCCCCC}
|
4
|
+
.asciinema-theme-tango .fg-0 { color: #000000 }
|
5
|
+
.asciinema-theme-tango .bg-0 { background-color: #000000 }
|
6
|
+
.asciinema-theme-tango .fg-1 { color: #CC0000 }
|
7
|
+
.asciinema-theme-tango .bg-1 { background-color: #CC0000 }
|
8
|
+
.asciinema-theme-tango .fg-2 { color: #4E9A06 }
|
9
|
+
.asciinema-theme-tango .bg-2 { background-color: #4E9A06 }
|
10
|
+
.asciinema-theme-tango .fg-3 { color: #C4A000 }
|
11
|
+
.asciinema-theme-tango .bg-3 { background-color: #C4A000 }
|
12
|
+
.asciinema-theme-tango .fg-4 { color: #3465A4 }
|
13
|
+
.asciinema-theme-tango .bg-4 { background-color: #3465A4 }
|
14
|
+
.asciinema-theme-tango .fg-5 { color: #75507B }
|
15
|
+
.asciinema-theme-tango .bg-5 { background-color: #75507B }
|
16
|
+
.asciinema-theme-tango .fg-6 { color: #06989A }
|
17
|
+
.asciinema-theme-tango .bg-6 { background-color: #06989A }
|
18
|
+
.asciinema-theme-tango .fg-7 { color: #D3D7CF }
|
19
|
+
.asciinema-theme-tango .bg-7 { background-color: #D3D7CF }
|
20
|
+
.asciinema-theme-tango .fg-8 { color: #555753; font-weight: bold }
|
21
|
+
.asciinema-theme-tango .bg-8 { background-color: #555753 }
|
22
|
+
.asciinema-theme-tango .fg-9 { color: #EF2929; font-weight: bold }
|
23
|
+
.asciinema-theme-tango .bg-9 { background-color: #EF2929 }
|
24
|
+
.asciinema-theme-tango .fg-10 { color: #8AE234; font-weight: bold }
|
25
|
+
.asciinema-theme-tango .bg-10 { background-color: #8AE234 }
|
26
|
+
.asciinema-theme-tango .fg-11 { color: #FCE94F; font-weight: bold }
|
27
|
+
.asciinema-theme-tango .bg-11 { background-color: #FCE94F }
|
28
|
+
.asciinema-theme-tango .fg-12 { color: #729FCF; font-weight: bold }
|
29
|
+
.asciinema-theme-tango .bg-12 { background-color: #729FCF }
|
30
|
+
.asciinema-theme-tango .fg-13 { color: #AD7FA8; font-weight: bold }
|
31
|
+
.asciinema-theme-tango .bg-13 { background-color: #AD7FA8 }
|
32
|
+
.asciinema-theme-tango .fg-14 { color: #34E2E2; font-weight: bold }
|
33
|
+
.asciinema-theme-tango .bg-14 { background-color: #34E2E2 }
|
34
|
+
.asciinema-theme-tango .fg-15 { color: #EEEEEC; font-weight: bold }
|
35
|
+
.asciinema-theme-tango .bg-15 { background-color: #EEEEEC }
|
metadata
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: asciinema-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eddie Johnston
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: oj
|
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
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: oj_mimic_json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: yajl-ruby
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.2.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.2.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.7'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- eddie@beanstalk.ie
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- Gemfile
|
121
|
+
- LICENSE.txt
|
122
|
+
- README.md
|
123
|
+
- Rakefile
|
124
|
+
- asciinema-rails.gemspec
|
125
|
+
- lib/asciinema-rails.rb
|
126
|
+
- lib/asciinema/asciicast.rb
|
127
|
+
- lib/asciinema/asciicast_frames_file_updater.rb
|
128
|
+
- lib/asciinema/asciicast_snapshot_updater.rb
|
129
|
+
- lib/asciinema/brush.rb
|
130
|
+
- lib/asciinema/cell.rb
|
131
|
+
- lib/asciinema/cursor.rb
|
132
|
+
- lib/asciinema/film.rb
|
133
|
+
- lib/asciinema/frame.rb
|
134
|
+
- lib/asciinema/frame_diff.rb
|
135
|
+
- lib/asciinema/frame_diff_list.rb
|
136
|
+
- lib/asciinema/grid.rb
|
137
|
+
- lib/asciinema/json_file_writer.rb
|
138
|
+
- lib/asciinema/rails.rb
|
139
|
+
- lib/asciinema/rails/convertor.rb
|
140
|
+
- lib/asciinema/rails/engine.rb
|
141
|
+
- lib/asciinema/rails/version.rb
|
142
|
+
- lib/asciinema/snapshot.rb
|
143
|
+
- lib/asciinema/stdout.rb
|
144
|
+
- lib/asciinema/terminal.rb
|
145
|
+
- spec/.rspec
|
146
|
+
- spec/asciinemosh_spec.rb
|
147
|
+
- spec/fixtures/sudosh-script
|
148
|
+
- spec/fixtures/sudosh-time
|
149
|
+
- spec/spec_helper.rb
|
150
|
+
- src/terminal
|
151
|
+
- src/terminal.c
|
152
|
+
- vendor/assets/javscripts/asciinema-rails.js
|
153
|
+
- vendor/assets/javscripts/asciinema.org/asciinema-player.js
|
154
|
+
- vendor/assets/javscripts/asciinema.org/rAF.js
|
155
|
+
- vendor/assets/javscripts/asciinema.org/react-0.10.0.js
|
156
|
+
- vendor/assets/javscripts/asciinema.org/screenfull.js
|
157
|
+
- vendor/assets/stylesheets/asciinema-rails.css
|
158
|
+
- vendor/assets/stylesheets/asciinema.org/asciinema-player.css
|
159
|
+
- vendor/assets/stylesheets/asciinema.org/themes/solarized-dark.css
|
160
|
+
- vendor/assets/stylesheets/asciinema.org/themes/solarized-light.css
|
161
|
+
- vendor/assets/stylesheets/asciinema.org/themes/tango.css
|
162
|
+
homepage: ''
|
163
|
+
licenses:
|
164
|
+
- MIT
|
165
|
+
metadata: {}
|
166
|
+
post_install_message:
|
167
|
+
rdoc_options: []
|
168
|
+
require_paths:
|
169
|
+
- lib
|
170
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
requirements: []
|
181
|
+
rubyforge_project:
|
182
|
+
rubygems_version: 2.4.5
|
183
|
+
signing_key:
|
184
|
+
specification_version: 4
|
185
|
+
summary: Converts sudosh log files to asciinema format. Provides JS and CSS includes
|
186
|
+
to allow you host your own asciicasts.
|
187
|
+
test_files:
|
188
|
+
- spec/.rspec
|
189
|
+
- spec/asciinemosh_spec.rb
|
190
|
+
- spec/fixtures/sudosh-script
|
191
|
+
- spec/fixtures/sudosh-time
|
192
|
+
- spec/spec_helper.rb
|