bloggertojekyll 0.0.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/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.md +21 -0
- data/README.md +38 -0
- data/ROADMAP.md +19 -0
- data/Rakefile +7 -0
- data/bin/bloggertojekyll +5 -0
- data/bloggertojekyll.gemspec +26 -0
- data/lib/bloggertojekyll.rb +5 -0
- data/lib/bloggertojekyll/version.rb +3 -0
- data/spec/bloggertojekyll_spec.rb +11 -0
- data/spec/spec_helper.rb +2 -0
- metadata +120 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0fe39b1332b407b19e5e7aabec3e7d1811d81fb5
|
4
|
+
data.tar.gz: 9e5fb200eddeda68ff3b6d31260700f363c80673
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e751210429477307127df7052aeff26d966237c27fba823c1ac4b27ec000d5210cb409072b86403ba4bcfd05a0622707398d306d301f4056da2ef1f02d21cd77
|
7
|
+
data.tar.gz: 4c4531c42949f3402fc7bc2392910ba65018b0ceec684e55c0fa64ab7e1025826380dc4ac1a020f27b73b853c4789c7af14ae365eaa8508e1604648cee5bb115
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
### The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014, Jeff Dickey
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all 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,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# bloggertojekyll
|
2
|
+
|
3
|
+
This will become a Gem and tool to extract content and metadata exported from a Blogger.com (Google) blog and save it as a collection of single-article post files with [Jekyll](http://jekyllrb.com)/[Github Pages](https://pages.github.com) front matter.
|
4
|
+
|
5
|
+
Early versions are (comically) non-functionual, with features expected to be added in accordance with the [roadmap](ROADMAP.md).
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Normally, you'll want to use the standalone application installed with the Gem. To install it, use
|
10
|
+
|
11
|
+
$ gem install bundler
|
12
|
+
|
13
|
+
Alternatively, if you wish to incorporate this functionality as a feature of your larger application, you can add this line to your application's `Gemfile`:
|
14
|
+
Add this line to your application's Gemfile:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
gem 'bloggertojekyll'
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
As noted [above](#installation), this is normally run using the command line:
|
27
|
+
|
28
|
+
$ bloggertojekyll [options]
|
29
|
+
|
30
|
+
Options will be documented here as they are added.
|
31
|
+
|
32
|
+
## Contributing
|
33
|
+
|
34
|
+
1. Fork it ( https://github.com/jdickey/bloggertojekyll/fork )
|
35
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
36
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
37
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
38
|
+
5. Create a new [Pull Request](https://help.github.com/articles/creating-a-pull-request)
|
data/ROADMAP.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
### Current thinking on release versions:
|
3
|
+
|
4
|
+
| Version | Description |
|
5
|
+
| -------:| ----------- |
|
6
|
+
| 0.1.0 | Hello, Gem! |
|
7
|
+
| 0.1.1 | Command-line option to get location of Blogger export file. |
|
8
|
+
| 0.1.2 | Environment variable as alternative to 0.1.1's CLI option. |
|
9
|
+
| 0.1.3 | Reads export file, prints titles and dates of all `kind#post` `<entry>` items. |
|
10
|
+
| 0.1.4 | Adds list of all `term`s in each post to output list. |
|
11
|
+
| 0.1.5 | Report now includes what would be complete Jekyll front matter for each file, as well as its filename. |
|
12
|
+
| 0.1.6 | Report includes Markdown-formatted contents of each post. |
|
13
|
+
| 0.1.7 | Creates `_posts` directory if nonexistent and writes files. Aborts with message if directory exists. |
|
14
|
+
| 0.1.8 | Accepts command-line option to specify output directory (defaults to `./_posts`). |
|
15
|
+
| 0.1.9 | Environment variable as alternative to 0.1.8's CLI option. |
|
16
|
+
| 0.1.10 | CLI and environment-variable options to clobber output directory and contents. |
|
17
|
+
| 0.2.0 | Initial public pre-release. Fix issues; gratefully accept useful PRs. |
|
18
|
+
| ??? | ??? |
|
19
|
+
| 1.0.0 | It's in the wild now! |
|
data/Rakefile
ADDED
data/bin/bloggertojekyll
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'bloggertojekyll/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "bloggertojekyll"
|
8
|
+
spec.version = Bloggertojekyll::VERSION
|
9
|
+
spec.authors = ["Jeff Dickey"]
|
10
|
+
spec.email = ["jdickey@seven-sigma.com"]
|
11
|
+
spec.summary = %q{Convert blogger.com HTML posts to Markdown.}
|
12
|
+
spec.description = %q{Parses your Blogger.com export file and creates
|
13
|
+
individual post files with Jekyll front matter.}
|
14
|
+
spec.homepage = "https://github.com/jdickey/bloggertojekyll"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0")
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency 'nokogiri', '~> 1.6.3'
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
spec.add_development_dependency "rspec"
|
26
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bloggertojekyll
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeff Dickey
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.6.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.6.3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: |-
|
70
|
+
Parses your Blogger.com export file and creates
|
71
|
+
individual post files with Jekyll front matter.
|
72
|
+
email:
|
73
|
+
- jdickey@seven-sigma.com
|
74
|
+
executables:
|
75
|
+
- bloggertojekyll
|
76
|
+
extensions: []
|
77
|
+
extra_rdoc_files: []
|
78
|
+
files:
|
79
|
+
- ".gitignore"
|
80
|
+
- ".rspec"
|
81
|
+
- ".travis.yml"
|
82
|
+
- Gemfile
|
83
|
+
- LICENSE.md
|
84
|
+
- README.md
|
85
|
+
- ROADMAP.md
|
86
|
+
- Rakefile
|
87
|
+
- bin/bloggertojekyll
|
88
|
+
- bloggertojekyll.gemspec
|
89
|
+
- lib/bloggertojekyll.rb
|
90
|
+
- lib/bloggertojekyll/version.rb
|
91
|
+
- spec/bloggertojekyll_spec.rb
|
92
|
+
- spec/spec_helper.rb
|
93
|
+
homepage: https://github.com/jdickey/bloggertojekyll
|
94
|
+
licenses:
|
95
|
+
- MIT
|
96
|
+
metadata: {}
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 2.4.1
|
114
|
+
signing_key:
|
115
|
+
specification_version: 4
|
116
|
+
summary: Convert blogger.com HTML posts to Markdown.
|
117
|
+
test_files:
|
118
|
+
- spec/bloggertojekyll_spec.rb
|
119
|
+
- spec/spec_helper.rb
|
120
|
+
has_rdoc:
|