Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Re-implementation (#12)
Browse files Browse the repository at this point in the history
* Re-implementation
* Remove Gemfile.lock
  • Loading branch information
yasuhiroki authored Aug 4, 2017
1 parent 1e54a4b commit bf275b6
Show file tree
Hide file tree
Showing 21 changed files with 388 additions and 331 deletions.
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ build/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset
Gemfile.lock
.ruby-version
.ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# MyConfigure
.env

# Mac temporary file
.*~

5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sudo: false
language: ruby
rvm:
- 2.2

- 2.4.1
before_install: gem install bundler -v 1.15.1
74 changes: 74 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at TODO: Write your email address. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
20 changes: 3 additions & 17 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
source 'https://rubygems.org'
source "https://rubygems.org"

gem 'rake'
gem 'dotenv'

gem 'h2e-rb'
gem 'evernote-thrift'

gem 'qiita', '= 1.2.0'
gem 'qiita-markdown'

group :development do
gem 'pry'
end

group :test do
gem 'test-unit'
end
# Specify your gem's dependencies in q2e.gemspec
gemspec
111 changes: 0 additions & 111 deletions Gemfile.lock

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 yasuhiroki

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
48 changes: 25 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
[![Build Status](https://travis-ci.org/yasuhiroki/qiita-to-evernote.svg?branch=master)](https://travis-ci.org/yasuhiroki/qiita-to-evernote)

# qiita-to-evernote
# Qiita2Evernote

Qiitaでストックした記事を、EvernoteのノートにするためのRakefileです
Qiitaでストックした記事を、EvernoteのノートにするためのCLIツールです

まだ完璧ではありませんので、改善中です。
## Installation

# 動作環境

当方 `ruby 2.2.1p85` で動作確認をしております。

# Required

* `gem 'qiita' '= 1.2.0'`
* `gem 'evernote-thrift'`
* `gem 'oga'`
* `gem 'dotenv'`
```sh
$ gem install qiita2evernote
```

# 使い方
## Usage

```
$ git clone git@github.com:yasuhiroki/qiita-to-evernote.git
$ bundle install --path vendor/bundle
$ bundle exec rake init
```sh
$ q2e init
What is your qiita API token?
- If you have not API token, let's get it from [https://qiita.com/settings/applications].
your id: yasuhiroki
Expand All @@ -35,7 +26,8 @@ note store: Your Evernote NoteStore URL

Evernote default notebook
default notebook: Your Default NoteBook Name
$ bundle exec rake qiita:stock:to:evernote

$ q2e q2e
ドメイン取得からDDNS設定まで is exist. skip.
いちいちbundle execしたくない 決定版 is exist. skip.

Expand All @@ -48,10 +40,20 @@ Created pacoでソースビルドをパッケージっぽく管理する in ever
* tokenを、dotenvで管理しています。
* Qiitaの記事名が、ノートのタイトルになります。

# LICENSE
## Development

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.

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).

## Contributing

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.

## License

MIT
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

# 課題
## Code of Conduct

詳しくは、Issueを参考にして下さい。
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).
Loading

0 comments on commit bf275b6

Please sign in to comment.