qiita2evernote 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 +45 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +59 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +6 -0
- data/exe/q2e +6 -0
- data/lib/qiita2evernote.rb +3 -0
- data/lib/qiita2evernote/cli.rb +114 -0
- data/lib/qiita2evernote/client.rb +4 -0
- data/lib/qiita2evernote/client/evernote.rb +52 -0
- data/lib/qiita2evernote/client/qiita.rb +35 -0
- data/lib/qiita2evernote/error.rb +10 -0
- data/lib/qiita2evernote/version.rb +3 -0
- data/q2e.gemspec +34 -0
- metadata +189 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7767ed3f790e71f7717c8044ab5029a10e1ab14e
|
4
|
+
data.tar.gz: 892724454bfa703e1341683a02f6ab946b100ef9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1d19c446e17796fce313be99a5fb6d51162db702b3056e727efa8b1e76de8b8d8acf5a43366e8c5d84c273b34ca4f3050f049d26961d0aea502f8ffee584dcfe
|
7
|
+
data.tar.gz: 06fd84461911139a0d416457f6659b2a722536ad33fbef37de563e59b1f2f7e37113e7fa71051fe50c9ca0395304bdb87939740dd56c789d953b11099485b099
|
data/.gitignore
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# Created by https://www.gitignore.io
|
2
|
+
|
3
|
+
### Ruby ###
|
4
|
+
*.gem
|
5
|
+
*.rbc
|
6
|
+
/.config
|
7
|
+
/coverage/
|
8
|
+
/InstalledFiles
|
9
|
+
/pkg/
|
10
|
+
/spec/reports/
|
11
|
+
/test/tmp/
|
12
|
+
/test/version_tmp/
|
13
|
+
/tmp/
|
14
|
+
|
15
|
+
## Specific to RubyMotion:
|
16
|
+
.dat*
|
17
|
+
.repl_history
|
18
|
+
build/
|
19
|
+
|
20
|
+
## Documentation cache and generated files:
|
21
|
+
/.yardoc/
|
22
|
+
/_yardoc/
|
23
|
+
/doc/
|
24
|
+
/rdoc/
|
25
|
+
|
26
|
+
## Environment normalisation:
|
27
|
+
/.bundle/
|
28
|
+
/vendor/bundle
|
29
|
+
/lib/bundler/man/
|
30
|
+
|
31
|
+
# for a library or gem, you might want to ignore these files since the code is
|
32
|
+
# intended to run in multiple environments; otherwise, check them in:
|
33
|
+
Gemfile.lock
|
34
|
+
.ruby-version
|
35
|
+
.ruby-gemset
|
36
|
+
|
37
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
38
|
+
.rvmrc
|
39
|
+
|
40
|
+
# MyConfigure
|
41
|
+
.env
|
42
|
+
|
43
|
+
# Mac temporary file
|
44
|
+
.*~
|
45
|
+
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at TODO: Write your email address. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 yasuhiroki
|
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,59 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/yasuhiroki/qiita-to-evernote.svg?branch=master)](https://travis-ci.org/yasuhiroki/qiita-to-evernote)
|
2
|
+
|
3
|
+
# Qiita2Evernote
|
4
|
+
|
5
|
+
Qiitaでストックした記事を、EvernoteのノートにするためのCLIツールです。
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
```sh
|
10
|
+
$ gem install qiita2evernote
|
11
|
+
```
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
```sh
|
16
|
+
$ q2e init
|
17
|
+
What is your qiita API token?
|
18
|
+
- If you have not API token, let's get it from [https://qiita.com/settings/applications].
|
19
|
+
your id: yasuhiroki
|
20
|
+
token: Your Qiita API Token
|
21
|
+
|
22
|
+
What is your evernote token?
|
23
|
+
- If you have not token, let's get it from [https://www.evernote.com/api/DeveloperToken.action].
|
24
|
+
token: Your Evernote NoteStore API Token
|
25
|
+
note store: Your Evernote NoteStore URL
|
26
|
+
|
27
|
+
Evernote default notebook
|
28
|
+
default notebook: Your Default NoteBook Name
|
29
|
+
|
30
|
+
$ q2e q2e
|
31
|
+
ドメイン取得からDDNS設定まで is exist. skip.
|
32
|
+
いちいちbundle execしたくない 決定版 is exist. skip.
|
33
|
+
|
34
|
+
(中略)
|
35
|
+
|
36
|
+
Created Javascriptでオブジェクト指向するときに覚えておくべきこと in evernote.
|
37
|
+
Created pacoでソースビルドをパッケージっぽく管理する in evernote.
|
38
|
+
```
|
39
|
+
|
40
|
+
* tokenを、dotenvで管理しています。
|
41
|
+
* Qiitaの記事名が、ノートのタイトルになります。
|
42
|
+
|
43
|
+
## Development
|
44
|
+
|
45
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
46
|
+
|
47
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
48
|
+
|
49
|
+
## Contributing
|
50
|
+
|
51
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/yasuhiroki/qiita2evernote. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
52
|
+
|
53
|
+
## License
|
54
|
+
|
55
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
56
|
+
|
57
|
+
## Code of Conduct
|
58
|
+
|
59
|
+
Everyone interacting in the Q2e project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/yasuhiroki/qiita2evernote/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "q2e"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/exe/q2e
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'dotenv'
|
3
|
+
|
4
|
+
require_relative './client'
|
5
|
+
require_relative './error'
|
6
|
+
|
7
|
+
class Qiita2Evernote::Cli < Thor
|
8
|
+
|
9
|
+
desc "init", "initialize"
|
10
|
+
def init
|
11
|
+
require 'io/console'
|
12
|
+
|
13
|
+
puts "What is your qiita API token?"
|
14
|
+
puts " - If you have not API token, let's get it from [https://qiita.com/settings/applications]."
|
15
|
+
print "your id: "
|
16
|
+
qiita_id = STDIN.gets.chop || ""
|
17
|
+
qiita_id = ENV["QIITA_ID"] if qiita_id.empty?
|
18
|
+
print "token: "
|
19
|
+
qiita_token = STDIN.gets.chop || ""
|
20
|
+
qiita_token = ENV["QIITA_TOKEN"] if qiita_token.empty?
|
21
|
+
puts ""
|
22
|
+
|
23
|
+
puts "What is your evernote token?"
|
24
|
+
puts " - If you have not token, let's get it from [https://www.evernote.com/api/DeveloperToken.action]."
|
25
|
+
print "token: "
|
26
|
+
evernote_token = STDIN.gets.chop || ""
|
27
|
+
evernote_token = ENV["EVERNOTE_TOKEN"] if evernote_token.empty?
|
28
|
+
print "note store: "
|
29
|
+
evernote_note_store = STDIN.gets.chop || ""
|
30
|
+
evernote_note_store = ENV["EVERNOTE_NOTE_STORE"] if evernote_note_store.empty?
|
31
|
+
puts ""
|
32
|
+
puts "Evernote default notebook"
|
33
|
+
print "default notebook: "
|
34
|
+
evernote_defulat_notebook = STDIN.gets.chop || ""
|
35
|
+
evernote_defulat_notebook = ENV["EVERNOTE_DEFAULT_NOTEBOOK"] if evernote_defulat_notebook.empty?
|
36
|
+
|
37
|
+
File.open(".env", 'w') do |f|
|
38
|
+
f.write("QIITA_ID=\"#{qiita_id}\"\n") unless qiita_id.empty?
|
39
|
+
f.write("QIITA_TOKEN=\"#{qiita_token}\"\n") unless qiita_token.empty?
|
40
|
+
f.write("EVERNOTE_TOKEN=\"#{evernote_token}\"\n") unless evernote_token.empty?
|
41
|
+
f.write("EVERNOTE_NOTE_STORE=\"#{evernote_note_store}\"\n") unless evernote_note_store.empty?
|
42
|
+
f.write("EVERNOTE_DEFAULT_NOTEBOOK=\"#{evernote_defulat_notebook}\"\n") unless evernote_defulat_notebook.empty?
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
desc "stocks", "Show qiita stocks list"
|
47
|
+
def stocks
|
48
|
+
items = qiita.stock_items(ENV["QIITA_ID"])
|
49
|
+
|
50
|
+
items.each do |item|
|
51
|
+
p item["title"]
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
desc "notebooks", "Show evernote notebooks list"
|
56
|
+
def notebooks
|
57
|
+
# Get your note store object
|
58
|
+
note_store = evernote.evernote_client
|
59
|
+
|
60
|
+
# List all of the notebooks in the user's account
|
61
|
+
notebooks = note_store.listNotebooks(ENV["EVERNOTE_TOKEN"])
|
62
|
+
puts "Found #{notebooks.size} notebooks:"
|
63
|
+
notebooks.sort_by{|n| n.name}.each do |notebook|
|
64
|
+
puts " * #{notebook.name}"
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
desc "q2e", "Add qiita stoks to evernote notebook"
|
69
|
+
def q2e
|
70
|
+
|
71
|
+
# Get your note store object
|
72
|
+
note_store_client = evernote.evernote_client
|
73
|
+
|
74
|
+
# Get your qiita stock items
|
75
|
+
items = qiita.stock_items(ENV["QIITA_ID"])
|
76
|
+
|
77
|
+
# Get your default notebook object
|
78
|
+
notebooks = note_store_client.listNotebooks(ENV["EVERNOTE_TOKEN"])
|
79
|
+
default_note_book = notebooks.find{|n| n.name == ENV["EVERNOTE_DEFAULT_NOTEBOOK"]}
|
80
|
+
|
81
|
+
error = []
|
82
|
+
|
83
|
+
items.each do |item|
|
84
|
+
begin
|
85
|
+
if evernote.same_title_note_exist?(item['title'])
|
86
|
+
puts "#{item['title']} is exist. skip."
|
87
|
+
next
|
88
|
+
end
|
89
|
+
|
90
|
+
note = evernote.create_note(
|
91
|
+
item['title'], evernote.to_enml_from(item['rendered_body']), default_note_book.guid)
|
92
|
+
evernote.upload_evernote(note)
|
93
|
+
rescue => e
|
94
|
+
error << Qiita2Evernote::Error.new(item, e)
|
95
|
+
next
|
96
|
+
end
|
97
|
+
puts "Created #{item['title']} in evernote."
|
98
|
+
sleep 0.2
|
99
|
+
end
|
100
|
+
|
101
|
+
error.each do |e|
|
102
|
+
e.out
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
private
|
107
|
+
def qiita
|
108
|
+
@qiita ||= Qiita2Evernote::Client::Qiita.new(ENV["QIITA_TOKEN"])
|
109
|
+
end
|
110
|
+
def evernote
|
111
|
+
@evernote ||= Qiita2Evernote::Client::Evernote.new(ENV["EVERNOTE_TOKEN"], ENV['EVERNOTE_NOTE_STORE'])
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'h2e'
|
2
|
+
require 'evernote-thrift'
|
3
|
+
|
4
|
+
class Qiita2Evernote::Client::Evernote
|
5
|
+
|
6
|
+
def initialize(evernote_token, evernote_note_store)
|
7
|
+
@evernote_token = evernote_token
|
8
|
+
@evernote_note_store = evernote_note_store
|
9
|
+
@converter = H2E::Converter.new
|
10
|
+
@converter.html_base_url = "https://qiita.com"
|
11
|
+
end
|
12
|
+
|
13
|
+
def evernote_client
|
14
|
+
return @note_store if @note_store
|
15
|
+
|
16
|
+
note_storeTransport = Thrift::HTTPClientTransport.new(@evernote_note_store)
|
17
|
+
note_storeProtocol = Thrift::BinaryProtocol.new(note_storeTransport)
|
18
|
+
@note_store = Evernote::EDAM::NoteStore::NoteStore::Client.new(note_storeProtocol)
|
19
|
+
return @note_store
|
20
|
+
end
|
21
|
+
|
22
|
+
def to_enml_from(html)
|
23
|
+
@converter.from(html)
|
24
|
+
end
|
25
|
+
|
26
|
+
def create_note(title, content, notebook_guid)
|
27
|
+
Evernote::EDAM::Type::Note.new({
|
28
|
+
:title => title,
|
29
|
+
:notebookGuid => notebook_guid,
|
30
|
+
:content => content,
|
31
|
+
})
|
32
|
+
end
|
33
|
+
|
34
|
+
def same_title_note_exist?(title)
|
35
|
+
filter = Evernote::EDAM::NoteStore::NoteFilter.new
|
36
|
+
filter.words = 'intitle:"' + title + '"'
|
37
|
+
|
38
|
+
result_spec = Evernote::EDAM::NoteStore::NotesMetadataResultSpec.new
|
39
|
+
result_spec.includeTitle = true
|
40
|
+
|
41
|
+
found_notes = @note_store.findNotesMetadata(@evernote_token, filter, 0, 10, result_spec).notes
|
42
|
+
|
43
|
+
found_notes.any?{|note| note.title == title}
|
44
|
+
end
|
45
|
+
|
46
|
+
def upload_evernote(note)
|
47
|
+
@note_store.createNote(@evernote_token, note)
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'qiita'
|
2
|
+
require 'qiita-markdown'
|
3
|
+
|
4
|
+
class Qiita2Evernote::Client::Qiita
|
5
|
+
attr_reader :client
|
6
|
+
|
7
|
+
def initialize(access_token)
|
8
|
+
@client ||= ::Qiita::Client.new(access_token: access_token)
|
9
|
+
end
|
10
|
+
|
11
|
+
def stock_items(qiita_id)
|
12
|
+
return @items if @items
|
13
|
+
|
14
|
+
id = qiita_id
|
15
|
+
|
16
|
+
per_page = 100
|
17
|
+
stocks_first = @client.list_user_stocks(id, per_page: per_page)
|
18
|
+
stocks_page_num = stocks_first.headers["Total-Count"].to_i / per_page + 1
|
19
|
+
|
20
|
+
@stocks = {
|
21
|
+
1 => stocks_first.body
|
22
|
+
}
|
23
|
+
(2..stocks_page_num).each do |i|
|
24
|
+
@stocks[i] = @client.list_user_stocks(id, per_page: per_page, page: i).body
|
25
|
+
end
|
26
|
+
@items = @stocks.map { |_, items| items}.flatten
|
27
|
+
|
28
|
+
return @items
|
29
|
+
end
|
30
|
+
|
31
|
+
def qiita_markdown
|
32
|
+
@processor ||= ::Qiita::Markdown::Processor.new
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module Qiita2Evernote
|
2
|
+
Error = Struct.new(:item, :exception) do
|
3
|
+
def out
|
4
|
+
puts "- Error. Could not crete note #{item['title']}."
|
5
|
+
puts " - URL: #{item['url']}"
|
6
|
+
puts exception.parameter if exception.respond_to?(:parameter)
|
7
|
+
puts exception.message
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
data/q2e.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "qiita2evernote/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "qiita2evernote"
|
8
|
+
spec.version = Qiita2Evernote::VERSION
|
9
|
+
spec.authors = ["yasuhiroki"]
|
10
|
+
spec.email = ["yasuhiroki.duck@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Transfer your qiita stocks to your evernote notebook}
|
13
|
+
spec.description = %q{Transfer your qiita stocks to your evernote notebook}
|
14
|
+
spec.homepage = "https://github.com/yasuhiroki/qiita-to-evernote"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_dependency "thor", "~> 0.19"
|
25
|
+
spec.add_dependency "dotenv", "~> 2.2"
|
26
|
+
spec.add_dependency "evernote-thrift", "~> 1.25"
|
27
|
+
spec.add_dependency "h2e-rb", "~> 0.1"
|
28
|
+
spec.add_dependency "qiita", "~> 1.3"
|
29
|
+
spec.add_dependency "qiita-markdown", "~> 0.20"
|
30
|
+
|
31
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
32
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
33
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,189 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: qiita2evernote
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- yasuhiroki
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-08-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.19'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.19'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: dotenv
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: evernote-thrift
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.25'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.25'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: h2e-rb
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: qiita
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.3'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: qiita-markdown
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.20'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.20'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.15'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.15'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: minitest
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '5.0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '5.0'
|
139
|
+
description: Transfer your qiita stocks to your evernote notebook
|
140
|
+
email:
|
141
|
+
- yasuhiroki.duck@gmail.com
|
142
|
+
executables:
|
143
|
+
- q2e
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".gitignore"
|
148
|
+
- ".travis.yml"
|
149
|
+
- CODE_OF_CONDUCT.md
|
150
|
+
- Gemfile
|
151
|
+
- LICENSE.txt
|
152
|
+
- README.md
|
153
|
+
- Rakefile
|
154
|
+
- bin/console
|
155
|
+
- bin/setup
|
156
|
+
- exe/q2e
|
157
|
+
- lib/qiita2evernote.rb
|
158
|
+
- lib/qiita2evernote/cli.rb
|
159
|
+
- lib/qiita2evernote/client.rb
|
160
|
+
- lib/qiita2evernote/client/evernote.rb
|
161
|
+
- lib/qiita2evernote/client/qiita.rb
|
162
|
+
- lib/qiita2evernote/error.rb
|
163
|
+
- lib/qiita2evernote/version.rb
|
164
|
+
- q2e.gemspec
|
165
|
+
homepage: https://github.com/yasuhiroki/qiita-to-evernote
|
166
|
+
licenses:
|
167
|
+
- MIT
|
168
|
+
metadata: {}
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '0'
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
requirements: []
|
184
|
+
rubyforge_project:
|
185
|
+
rubygems_version: 2.6.12
|
186
|
+
signing_key:
|
187
|
+
specification_version: 4
|
188
|
+
summary: Transfer your qiita stocks to your evernote notebook
|
189
|
+
test_files: []
|