officetxt 0.0.1 → 0.1.0

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: b83aaf9dc6f75557d1bc6f79c907a43f7f5233ec
4
- data.tar.gz: 4a1da83c896ff4de7814499d5283346daf184aed
3
+ metadata.gz: 92af724cdd7f66991b0a5c2597583a31a7bf25c1
4
+ data.tar.gz: e203a73a01068941c81f65f7e86790e6bd06b35e
5
5
  SHA512:
6
- metadata.gz: 19817a956f692aff03cd3d9f039f86204b860eab86948d37b861ed19bba1e992661dfb1af289fb42fce0798f371bea5415eb66a47e7fd2a6935bb002a6b98204
7
- data.tar.gz: 87d4d65f4a4813fcee585229516aff091c136069a9341717bbbf4579fffb6ea481c88a412fef2d750373778095a2978217fd22d92ccb248b364d2684312aa2f6
6
+ metadata.gz: bdd139cda8f54e876979707c90567540b661143d5c6259f1f9a66b83726fafd239b8f577d0a1b747d7e94f930071e14c38b579313726dc47e127f66fdf074e1b
7
+ data.tar.gz: e1b498dfff80e43b0e4527a4951a2cc661874b2bdaf8f7ca32f319d33e957086149e5e5117b42c9dc747cee976dddab79c98258963e9d5cf2153a594ebfb1077
@@ -2,6 +2,8 @@ HISTORY.md
2
2
  Manifest.txt
3
3
  README.md
4
4
  Rakefile
5
+ bin/officetxt
6
+ bin/txt
5
7
  lib/officetxt.rb
6
8
  lib/officetxt/version.rb
7
9
  test/helper.rb
data/README.md CHANGED
@@ -10,10 +10,44 @@ officetxt (Office.TXT) - the free writer's command line tool suite
10
10
 
11
11
 
12
12
 
13
-
14
13
  ## Usage
15
14
 
16
- To be done
15
+ **See the [Office.TXT documentation »](https://officetxt.github.io/)**
16
+
17
+ Use
18
+
19
+ ```
20
+ $ officetxt
21
+ -or-
22
+ $ txt
23
+ ```
24
+
25
+ to listed included / installed tools e.g. resulting in:
26
+
27
+ ```
28
+ Welcome to officetxt/0.1.0:
29
+
30
+ Tool versions installed:
31
+ journaltxt/1.0.1
32
+ jekyll/3.5.0
33
+ jekyll-import/0.12.0
34
+ jekyll-avatar/0.4.2
35
+ mrhyde/0.1.1
36
+ drjekyll/1.0.1
37
+ slideshow/3.1.0
38
+ pluto/1.2.3
39
+ rouge/1.11.1
40
+ kramdown/1.13.2
41
+ word-to-markdown/1.1.7
42
+ quik/0.3.0
43
+ ```
44
+
45
+
46
+ ## Install
47
+
48
+ Just install the gem:
49
+
50
+ $ gem install officetxt
17
51
 
18
52
 
19
53
  ## License
data/Rakefile CHANGED
@@ -17,10 +17,24 @@ Hoe.spec 'officetxt' do
17
17
  self.readme_file = 'README.md'
18
18
  self.history_file = 'HISTORY.md'
19
19
 
20
+ self.extra_deps = [
21
+ ['journaltxt'],
22
+ ['jekyll'],
23
+ ['jekyll-import'],
24
+ ['jekyll-avatar'],
25
+ ['mrhyde-tools'],
26
+ ['drjekyll'],
27
+ ['slideshow'],
28
+ ['pluto'],
29
+ ['rouge'],
30
+ ['kramdown'],
31
+ ['word-to-markdown'],
32
+ ['quik']
33
+ ]
34
+
20
35
  self.licenses = ['Public Domain']
21
36
 
22
37
  self.spec_extras = {
23
38
  required_ruby_version: '>= 1.9.2'
24
39
  }
25
-
26
40
  end
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'officetxt'
4
+
5
+ Officetxt.about
data/bin/txt ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'officetxt'
4
+
5
+ Officetxt.about
@@ -3,11 +3,114 @@
3
3
 
4
4
  require 'pp'
5
5
 
6
+
7
+ ## add tools
8
+ require 'jekyll'
9
+ require 'quik'
10
+ require 'mrhyde/tools'
11
+ require 'drjekyll'
12
+ require 'slideshow'
13
+ require 'journaltxt'
14
+ require 'pluto'
15
+
16
+ require 'kramdown'
17
+ require 'word-to-markdown'
18
+ require 'rouge'
19
+
20
+
21
+ require 'jekyll-import'
22
+ require 'jekyll-import/version' ## note: not auto-loaded with gem
23
+
24
+ ## require 'jekyll-octopod'
25
+
26
+ ### add more jekyll plugins plus jekyll-admin
27
+ ### plus add some themes!!!
28
+
29
+ require 'jekyll-avatar'
30
+ require 'jekyll-avatar/version' ## note: not auto-loaded with plugin
31
+ require 'jekyll-feed'
32
+
33
+
34
+
6
35
  # our own code
7
36
  require 'officetxt/version' # note: let version always go first
8
37
 
9
38
 
10
39
 
40
+ module Officetxt
41
+
42
+ def self.about
43
+
44
+ puts "Welcome to officetxt/#{Officetxt::VERSION}:"
45
+ puts
46
+ puts "Tool versions installed:"
47
+
48
+ puts " journaltxt/#{Journaltxt::VERSION}"
49
+ puts " jekyll/#{Jekyll::VERSION}"
50
+ puts " jekyll-import/#{JekyllImport::VERSION}"
51
+ puts " jekyll-avatar/#{Jekyll::Avatar::VERSION}"
52
+
53
+ =begin
54
+ puts " jekyll-feed/#{Jekyll::Feed::VERSION}"
55
+ no: version in ruby just in gemspec e.g.
56
+ Gem::Specification.new do |spec|
57
+ spec.name = "jekyll-feed"
58
+ spec.version = "0.9.2"
59
+
60
+ todo: try to get info from gemspec??
61
+ =end
62
+
63
+
64
+ =begin
65
+ ## fix Octopod
66
+
67
+ puts " jekyll-octopod/#{Jekyll::Octopod::VERSION}"
68
+
69
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:68:in `require': C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:32: void value expression (SyntaxError)
70
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:33: syntax error, unexpected '<', expecting keyword_end
71
+ <script>
72
+ ^
73
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:35: syntax error, unexpected '<'
74
+ </script>
75
+ ^
76
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:37: syntax error, unexpected tSTRING_BEG, expecting keyword_end
77
+ ...ipts/podigee-podcast-player.js">
78
+ ... ^
79
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:37: unterminated string meets end of file
80
+ =end
81
+
82
+ puts " mrhyde/#{MrHyde::VERSION}"
83
+ puts " drjekyll/#{DrJekyll::VERSION}"
84
+
85
+ puts " slideshow/#{SlideshowCli::VERSION}" ## note: Slideshow::VERSION is for models
86
+
87
+ puts " pluto/#{PlutoCli::VERSION}" ## note: Pluto::VERSION is for models
88
+
89
+
90
+ puts " rouge/#{Rouge.version}" ## incl. rougify
91
+ puts " kramdown/#{Kramdown::VERSION}"
92
+ puts " word-to-markdown/#{WordToMarkdown::VERSION}" # incl. w2m
93
+
94
+ puts " quik/#{Quik::VERSION}"
95
+
96
+
97
+ ### todo:
98
+ ## (auto-)issue list commands for: !!!!!!!!!!
99
+ ## drjekyll
100
+ ## mrhyde
101
+ ## slideshow
102
+ ## pluto
103
+ ## quik
104
+
105
+ ###
106
+ ## ## fix: hexapdf requires Ruby version >= 2.3.
107
+ ## puts " hexapdf/#{HexaPDF::VERSION}"
108
+
109
+
110
+ end # method about
111
+
112
+ end # class Officetxt
113
+
11
114
 
12
115
 
13
116
  # say hello
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Officetxt
4
4
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
5
- MINOR = 0
6
- PATCH = 1
5
+ MINOR = 1
6
+ PATCH = 0
7
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
8
8
 
9
9
  def self.version
@@ -14,6 +14,71 @@ class TestVersion < MiniTest::Test
14
14
  def test_version
15
15
 
16
16
  puts Officetxt::VERSION
17
+
18
+ puts " jekyll/#{Jekyll::VERSION}"
19
+ puts " jekyll-import/#{JekyllImport::VERSION}"
20
+ puts " jekyll-avatar/#{Jekyll::Avatar::VERSION}"
21
+
22
+ =begin
23
+ puts " jekyll-feed/#{Jekyll::Feed::VERSION}"
24
+ no: version in ruby just in gemspec e.g.
25
+ Gem::Specification.new do |spec|
26
+ spec.name = "jekyll-feed"
27
+ spec.version = "0.9.2"
28
+
29
+ todo: try to get info from gemspec??
30
+ =end
31
+
32
+
33
+ =begin
34
+ ## fix Octopod
35
+
36
+ puts " jekyll-octopod/#{Jekyll::Octopod::VERSION}"
37
+
38
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:68:in `require': C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:32: void value expression (SyntaxError)
39
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:33: syntax error, unexpected '<', expecting keyword_end
40
+ <script>
41
+ ^
42
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:35: syntax error, unexpected '<'
43
+ </script>
44
+ ^
45
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:37: syntax error, unexpected tSTRING_BEG, expecting keyword_end
46
+ ...ipts/podigee-podcast-player.js">
47
+ ... ^
48
+ C:/prg/ri/v310/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-octopod-0.9.0/lib/jekyll/podigee_player_tag.rb:37: unterminated string meets end of file
49
+ =end
50
+
51
+ puts " quik/#{Quik::VERSION}"
52
+ puts Quik.banner
53
+
54
+ puts " mrhyde/#{MrHyde::VERSION}"
55
+ puts MrHyde.banner
56
+
57
+ puts " drjekyll/#{DrJekyll::VERSION}"
58
+ puts DrJekyll.banner
59
+
60
+ puts " slideshow/#{SlideshowCli::VERSION}" ## note: Slideshow::VERSION is for models
61
+ puts SlideshowCli.banner
62
+
63
+ puts " journaltxt/#{Journaltxt::VERSION}"
64
+ puts Journaltxt.banner
65
+
66
+ puts " pluto/#{PlutoCli::VERSION}" ## note: Pluto::VERSION is for models
67
+ puts PlutoCli.banner
68
+
69
+
70
+ puts " rouge/#{Rouge.version}" ## incl. rougify
71
+ puts " kramdown/#{Kramdown::VERSION}"
72
+ puts " word-to-markdown/#{WordToMarkdown::VERSION}"
73
+
74
+
75
+ ###
76
+ ## ## fix: hexapdf requires Ruby version >= 2.3.
77
+ ## puts " hexapdf/#{HexaPDF::VERSION}"
78
+
79
+ Officetxt.about
80
+
81
+
17
82
  assert true
18
83
  ## assume everything ok if get here
19
84
  end
metadata CHANGED
@@ -1,15 +1,183 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: officetxt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-23 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: journaltxt
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: jekyll
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: jekyll-import
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll-avatar
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: mrhyde-tools
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: drjekyll
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: slideshow
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pluto
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rouge
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: kramdown
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: word-to-markdown
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: quik
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
13
181
  - !ruby/object:Gem::Dependency
14
182
  name: rdoc
15
183
  requirement: !ruby/object:Gem::Requirement
@@ -40,7 +208,9 @@ dependencies:
40
208
  version: '3.15'
41
209
  description: officetxt (Office.TXT) - the free writer's command line tool suite
42
210
  email: ruby-talk@ruby-lang.org
43
- executables: []
211
+ executables:
212
+ - officetxt
213
+ - txt
44
214
  extensions: []
45
215
  extra_rdoc_files:
46
216
  - HISTORY.md
@@ -51,6 +221,8 @@ files:
51
221
  - Manifest.txt
52
222
  - README.md
53
223
  - Rakefile
224
+ - bin/officetxt
225
+ - bin/txt
54
226
  - lib/officetxt.rb
55
227
  - lib/officetxt/version.rb
56
228
  - test/helper.rb