trecs 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 224c52d3a5d09ed6617696bbc065ed583ef3b7d3
4
- data.tar.gz: 8a45676eceed2883a7ff8cb6be780722e8329166
3
+ metadata.gz: 87c0b4a09cb4986d22945bf20ddcb8c479f6e8fe
4
+ data.tar.gz: ed7c1d258de1fa55960daf9a0feab11d35a3b91c
5
5
  SHA512:
6
- metadata.gz: e88acdd602058452e8639f033eb6432265ec15b589f73a8aefcdb2c348e8e699485a354491741658c32a5cdbef2571f3f91982d163bcfd5d5a8efafc13fa0b90
7
- data.tar.gz: 3001428048466e650b65c89b1c0048e8f4635272ee936dd8cff946847e3305b54ceb673ffcffcde4c9220414e1493ac509861aa2c159ce51011b91c27c72e1ed
6
+ metadata.gz: f56ccb909c71150449dbf09ea3d99eb71281380ba0edf1ea14c4da90d39c3161cb0949163163cc519d12a5826f0ea30358086dbbbd3d7032b85e97d7ef9b31df
7
+ data.tar.gz: 18a03490b2849ccc036dc5ab01f8cc8788f4793927f01d30cd48faee87d52f283f71b6f41c688ce1db632060b57fe3beda2b379944de3a581260258ff1cca679
data/Gemfile.lock CHANGED
@@ -1,8 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trecs (0.1.3)
5
- rubyzip (~> 1.1.4)
4
+ trecs (0.1.4)
6
5
  trollop (~> 2.0)
7
6
 
8
7
  GEM
@@ -10,6 +9,7 @@ GEM
10
9
  specs:
11
10
  coderay (1.1.0)
12
11
  diff-lcs (1.2.5)
12
+ ffi (1.9.3-java)
13
13
  given_core (3.5.4)
14
14
  sorcerer (>= 0.3.7)
15
15
  method_source (0.8.2)
@@ -17,6 +17,11 @@ GEM
17
17
  coderay (~> 1.0)
18
18
  method_source (~> 0.8)
19
19
  slop (~> 3.4)
20
+ pry (0.9.12.6-java)
21
+ coderay (~> 1.0)
22
+ method_source (~> 0.8)
23
+ slop (~> 3.4)
24
+ spoon (~> 0.0)
20
25
  pry-nav (0.2.3)
21
26
  pry (~> 0.9.10)
22
27
  rake (10.3.2)
@@ -31,12 +36,14 @@ GEM
31
36
  given_core (= 3.5.4)
32
37
  rspec (>= 2.12)
33
38
  rspec-mocks (2.99.1)
34
- rubyzip (1.1.4)
35
39
  slop (3.5.0)
36
40
  sorcerer (1.0.2)
41
+ spoon (0.0.4)
42
+ ffi
37
43
  trollop (2.0)
38
44
 
39
45
  PLATFORMS
46
+ java
40
47
  ruby
41
48
 
42
49
  DEPENDENCIES
data/README.org CHANGED
@@ -25,14 +25,86 @@ Text Recordings.
25
25
 
26
26
  Record screencasts in plain text.
27
27
 
28
- ** Just an Idea
29
- The idea is to create a tool that allows to record text somehow and then reproduce it just as you would reproduce a video.
28
+ ** Still under development
29
+ This project is still under development. It's not yet ready for use.
30
30
 
31
- ** Some specifications
31
+ ** Installing TRecs
32
+ To install TRecs, just run
33
+ #+BEGIN_SRC bash
34
+ gem install trecs
35
+ #+END_SRC
32
36
 
33
- - It should have controls (play, pause, ffw, rew, stop, rec)
34
- - It should have some kind of timestamp, so it can be synchronized with other resources
35
- - The other resources:
36
- + Audio track
37
- + Video track
38
- + Browser extension (so, if you are recording the development of a web page, you could see in a browser the current snapshot of the page)
37
+ ** Usage
38
+ *** Reproduce a TRecs
39
+ You have a TRecs file and want to reproduce it? You can do it on a terminal using the =trecs= command.
40
+
41
+ Like this:
42
+ #+BEGIN_SRC bash
43
+ trecs <file>
44
+ #+END_SRC
45
+
46
+ You can also specify the refresh interval for the screen (terminal), using the =--step= argument.
47
+ The value has to be an integer representing the amount of milliseconds between each screen refresh.
48
+
49
+ #+BEGIN_SRC bash
50
+ trecs <file> --step=800
51
+ trecs <file> -s 800
52
+ #+END_SRC
53
+
54
+ *** Recording a TRecs
55
+ Wanna record a TRecs? Do it using the =trecs_record= command.
56
+
57
+ There are several recording plugins available for use
58
+
59
+ Each options has a set of available flags (NOTE: the =--help= argument don't explain each one in detail yet)
60
+
61
+ The main option to select the recording alternative is the Recording Strategy, passed to TRecs via the =--strategy= (=-s=) argument.
62
+
63
+ Here it's also available the =--step= option, which will define the time between frames in milliseconds.
64
+
65
+ **** Terminal session
66
+ The most obvious use for this gem is recording a terminal session. This feature will be the default in the future, but it's not fully implemented yet.
67
+
68
+ To record a terminal session, use the =--strategy=ttyrec= option:
69
+ #+BEGIN_SRC bash
70
+ trecs_record playing_with_bash.trecs --strategy=ttyrec
71
+ #+END_SRC
72
+
73
+ This will open a new terminal session to record. You can finish the recording typing =exit= or pressing =C-d=, then the session will be saved to =playing_with_bash.trecs= and will be ready for replaying.
74
+
75
+ **** Record a file's changes
76
+ You can record the changes that occur on a file by using =--strategy=raw-file=.
77
+
78
+ What this does is sample a file every =step= milliseconds and create a frame with that file's contents.
79
+
80
+ To use it:
81
+ #+BEGIN_SRC bash
82
+ trecs_record my_changes.trecs --strategy=raw_file
83
+ #+END_SRC
84
+
85
+ **** Incremental message TRecs
86
+ Another possibility is to record a text message that will appear on screen character by character with an interval of =step= milliseconds. This is currently the default functionality of the command =trecs_record=
87
+
88
+ #+BEGIN_SRC bash
89
+ trecs_record my_banner.trecs --strategy=incremental --step=50 --message="TRecs"
90
+ #+END_SRC
91
+
92
+ This will create 6 frames:
93
+
94
+ - 0 millis :: ""
95
+ - 50 millis :: "T"
96
+ - 100 millis :: "TR"
97
+ - 150 millis :: "TRe"
98
+ - 200 millis :: "TRec"
99
+ - 250 millis :: "TRecs"
100
+
101
+ ** Extending TRecs
102
+ Right now, you can extend TRecs in three possible ways
103
+
104
+ - Recording Strategies :: This is the object that defines what to record and how to process the input to be converted into frames. To give an example, the IncrementalStrategy (provided by TRecs), will take an input string, make an array with each of it's characters and, for each char, append it to an output string and save the frame.
105
+ - Formats :: The format corresponds to the way the frames are stored. For example, using YamlStore, a tar file or a database.
106
+ - Tickers :: The Ticker is the way the user tells TRecs to advance frames.
107
+
108
+ # *** TODO Recording Strategies
109
+ # *** TODO Formats
110
+ # *** TODO Tickers
data/lib/trecs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TRecs
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/trecs.gemspec CHANGED
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib", "lib/trecs", "bin"]
21
21
 
22
22
  # Dependencies
23
- spec.add_dependency "rubyzip", "~> 1.1.4"
24
23
  spec.add_dependency "trollop", "~> 2.0"
25
24
 
26
25
  # Development dependencies
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Iachetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-19 00:00:00.000000000 Z
11
+ date: 2014-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rubyzip
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 1.1.4
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 1.1.4
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: trollop
29
15
  requirement: !ruby/object:Gem::Requirement