journaltxt 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c32f384a50536df5f9c7997e721912cfd90f60e6
4
+ data.tar.gz: 0bf922b19677baf36a160a2e147a0c6e67895d89
5
+ SHA512:
6
+ metadata.gz: 70ffa8e8fc8cafeabff2d18658812712bfe1bab4aadd57a033b53b414a905cb4f594d798e0becad0885baaa8027a6e06ceb3522bc3926edb354743383969adb8
7
+ data.tar.gz: 9f558373699db8c8a55ae2412bb1912fb1ed73b36e854730c54159d80b22fcf991ea23fec665745598cf371236cb4588acb2f28c245cc7b8f599d181688e9d5f
data/HISTORY.md ADDED
@@ -0,0 +1,4 @@
1
+
2
+ ### 0.0.1 / 2017-07-20
3
+
4
+ * Everything is new. First release
data/Manifest.txt ADDED
@@ -0,0 +1,8 @@
1
+ HISTORY.md
2
+ Manifest.txt
3
+ README.md
4
+ Rakefile
5
+ lib/journaltxt.rb
6
+ lib/journaltxt/version.rb
7
+ test/helper.rb
8
+ test/test_version.rb
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # journaltxt - reads Journal.TXT and writes out a blog (w/ Jekyll posts etc.)
2
+
3
+ * home :: [github.com/journaltxt/journaltxt](https://github.com/journaltxt/journaltxt)
4
+ * bugs :: [github.com/feedtxt/journaltxt/issues](https://github.com/journaltxt/journaltxt/issues)
5
+ * gem :: [rubygems.org/gems/journaltxt](https://rubygems.org/gems/journaltxt)
6
+ * rdoc :: [rubydoc.info/gems/journaltxt](http://rubydoc.info/gems/journaltxt)
7
+ * forum :: [groups.google.com/group/wwwmake](http://groups.google.com/group/wwwmake)
8
+
9
+
10
+ ## Usage
11
+
12
+ To be done
13
+
14
+
15
+ ## License
16
+
17
+ ![](https://publicdomainworks.github.io/buttons/zero88x31.png)
18
+
19
+ The `journaltxt` scripts are dedicated to the public domain.
20
+ Use it as you please with no restrictions whatsoever.
21
+
22
+ ## Questions? Comments?
23
+
24
+ Send them along to the [wwwmake Forum/Mailing List](http://groups.google.com/group/wwwmake).
25
+ Thanks!
data/Rakefile ADDED
@@ -0,0 +1,30 @@
1
+ require 'hoe'
2
+ require './lib/journaltxt/version.rb'
3
+
4
+ Hoe.spec 'journaltxt' do
5
+
6
+ self.version = Journaltxt::VERSION
7
+
8
+ self.summary = "journaltxt - reads Journal.TXT and writes out a blog (w/ Jekyll posts etc.)"
9
+ self.description = summary
10
+
11
+ self.urls = ['https://github.com/journaltxt/journaltxt']
12
+
13
+ self.author = 'Gerald Bauer'
14
+ self.email = 'wwwmake@googlegroups.com'
15
+
16
+ # switch extension to .markdown for gihub formatting
17
+ self.readme_file = 'README.md'
18
+ self.history_file = 'HISTORY.md'
19
+
20
+ self.licenses = ['Public Domain']
21
+
22
+ ### todo
23
+ ## add deps e.g. props gem for INI.load
24
+
25
+
26
+ self.spec_extras = {
27
+ required_ruby_version: '>= 1.9.2'
28
+ }
29
+
30
+ end
@@ -0,0 +1,22 @@
1
+ # encoding: utf-8
2
+
3
+ module Journaltxt
4
+
5
+ MAJOR = 0
6
+ MINOR = 0
7
+ PATCH = 1
8
+ VERSION = [MAJOR,MINOR,PATCH].join('.')
9
+
10
+ def self.version
11
+ VERSION
12
+ end
13
+
14
+ def self.banner
15
+ "journaltxt/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
16
+ end
17
+
18
+ def self.root
19
+ "#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
20
+ end
21
+
22
+ end # module Journaltxt
data/lib/journaltxt.rb ADDED
@@ -0,0 +1,26 @@
1
+ # encoding: utf-8
2
+
3
+
4
+ # core and stdlibs
5
+
6
+ require 'strscan' ## StringScanner
7
+ require 'json'
8
+ require 'yaml'
9
+ require 'date'
10
+ require 'time'
11
+ require 'pp'
12
+
13
+
14
+
15
+ # 3rd party gems/libs
16
+ require 'logutils'
17
+ require 'props' ## used for IniFile.parse
18
+
19
+
20
+ # our own code
21
+ require 'journaltxt/version' # let it always go first
22
+
23
+
24
+
25
+ # say hello
26
+ puts Journaltxt.banner if $DEBUG || (defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG)
data/test/helper.rb ADDED
@@ -0,0 +1,23 @@
1
+ ## $:.unshift(File.dirname(__FILE__))
2
+
3
+
4
+ ## minitest setup
5
+
6
+ require 'minitest/autorun'
7
+
8
+ require 'logutils'
9
+ require 'textutils'
10
+
11
+
12
+ ## our own code
13
+ require 'feedtxt'
14
+
15
+
16
+
17
+ LogUtils::Logger.root.level = :debug
18
+
19
+
20
+ def read_text( name )
21
+ text = File.read( "#{Feedtxt.root}/test/feeds/#{name}.txt" )
22
+ text
23
+ end
@@ -0,0 +1,17 @@
1
+ ###
2
+ # to run use
3
+ # ruby -I ./lib -I ./test test/test_version.rb
4
+ # or better
5
+ # rake test
6
+
7
+ require 'helper'
8
+
9
+
10
+ class TestVersion < MiniTest::Test
11
+
12
+ def test_version
13
+ puts Journaltxt::Version
14
+ assert true
15
+ end
16
+
17
+ end # class TestVersion
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: journaltxt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Gerald Bauer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rdoc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hoe
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.15'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.15'
41
+ description: journaltxt - reads Journal.TXT and writes out a blog (w/ Jekyll posts
42
+ etc.)
43
+ email: wwwmake@googlegroups.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files:
47
+ - HISTORY.md
48
+ - Manifest.txt
49
+ - README.md
50
+ files:
51
+ - HISTORY.md
52
+ - Manifest.txt
53
+ - README.md
54
+ - Rakefile
55
+ - lib/journaltxt.rb
56
+ - lib/journaltxt/version.rb
57
+ - test/helper.rb
58
+ - test/test_version.rb
59
+ homepage: https://github.com/journaltxt/journaltxt
60
+ licenses:
61
+ - Public Domain
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options:
65
+ - "--main"
66
+ - README.md
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 1.9.2
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubyforge_project:
81
+ rubygems_version: 2.6.7
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: journaltxt - reads Journal.TXT and writes out a blog (w/ Jekyll posts etc.)
85
+ test_files: []