qiita-team-reporter 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +52 -0
- data/CODE_OF_CONDUCT.md +14 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/README.md +10 -0
- data/exe/list_daily_reports +18 -0
- data/exe/list_tag_items_all +34 -0
- data/qiita-team-reporter.gemspec +16 -0
- metadata +69 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6803e202796cf2bb8227bc80832493e5a7b3e3ad
|
4
|
+
data.tar.gz: 3850b720c302692c8b7fcf09742c376acf883223
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 42dd565f2fe22bf5276b6ee2606a3acf49d4526d914808912263d7e7be95cf868d6f5351db6ce097e7826cd21e7313d90cde8907a99297189a9dfcfc1d5e76d9
|
7
|
+
data.tar.gz: bb0b437982d5b79ad4d969ce42c8aa390bcddbb69e3115e4da370db866cc78c480451c57bf27bd7b9ea5efc3d3a5e6d67f96e74ebd6396636c56a00b8566a8ba
|
data/.gitignore
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
*.bridgesupport
|
21
|
+
build-iPhoneOS/
|
22
|
+
build-iPhoneSimulator/
|
23
|
+
|
24
|
+
## Specific to RubyMotion (use of CocoaPods):
|
25
|
+
#
|
26
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
+
#
|
30
|
+
# vendor/Pods/
|
31
|
+
|
32
|
+
## Documentation cache and generated files:
|
33
|
+
/.yardoc/
|
34
|
+
/_yardoc/
|
35
|
+
/doc/
|
36
|
+
/rdoc/
|
37
|
+
|
38
|
+
## Environment normalization:
|
39
|
+
/.bundle/
|
40
|
+
/vendor/bundle
|
41
|
+
/lib/bundler/man/
|
42
|
+
|
43
|
+
# for a library or gem, you might want to ignore these files since the code is
|
44
|
+
# intended to run in multiple environments; otherwise, check them in:
|
45
|
+
# Gemfile.lock
|
46
|
+
# .ruby-version
|
47
|
+
# .ruby-gemset
|
48
|
+
|
49
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
+
.rvmrc
|
51
|
+
|
52
|
+
Gemfile.lock
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
YassLab team is committed to fostering a welcoming community.
|
4
|
+
|
5
|
+
**Our Code of Conduct can be found here**:
|
6
|
+
|
7
|
+
English : https://yasslab.jp/en/coc/
|
8
|
+
Japanese: https://yasslab.jp/ja/coc/
|
9
|
+
|
10
|
+
For a history of updates, see the page history here:
|
11
|
+
|
12
|
+
English : https://github.com/yasslab/yasslab.github.io/commits/master/en/coc/index.md
|
13
|
+
Japanese: https://github.com/yasslab/yasslab.github.io/commits/master/ja/coc/index.md
|
14
|
+
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 YassLab
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'shellwords'
|
4
|
+
|
5
|
+
def list_daily_reports(username)
|
6
|
+
m = Time.now.strftime("%Y/%m")
|
7
|
+
tag = "日報/#{m}"
|
8
|
+
# Show given user's daily repots this month
|
9
|
+
puts `list_tag_items_all #{tag.shellescape} | grep #{username.shellescape} | sort | cut -d, -f2-`
|
10
|
+
end
|
11
|
+
|
12
|
+
unless ARGV.size == 1
|
13
|
+
puts "Usage: list_daily_reports.sh USERNAME"
|
14
|
+
puts " Ex.: list_daily_reports.sh yasulab"
|
15
|
+
exit 1
|
16
|
+
end
|
17
|
+
|
18
|
+
list_daily_reports(*ARGV)
|
@@ -0,0 +1,34 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'json'
|
3
|
+
require 'shellwords'
|
4
|
+
|
5
|
+
def qiita_team
|
6
|
+
ENV.fetch('QIITA_TEAM')
|
7
|
+
end
|
8
|
+
|
9
|
+
def list_tag_items_all(tag)
|
10
|
+
per_page = 100
|
11
|
+
page = 1
|
12
|
+
|
13
|
+
loop do
|
14
|
+
items_json = `qiita list_tag_items #{tag.shellescape} per_page=#{per_page} page=#{page} -t #{qiita_team}`
|
15
|
+
items = JSON.parse(items_json)
|
16
|
+
|
17
|
+
break if items.empty?
|
18
|
+
|
19
|
+
items.each do |item|
|
20
|
+
user_id = item['user']['id']
|
21
|
+
title = item['title']
|
22
|
+
puts "#{user_id},#{title}"
|
23
|
+
end
|
24
|
+
|
25
|
+
page += 1
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
unless ARGV.size == 1
|
30
|
+
puts "Usage: list_tag_items_all TAG"
|
31
|
+
exit 1
|
32
|
+
end
|
33
|
+
|
34
|
+
list_tag_items_all(ARGV[0])
|
@@ -0,0 +1,16 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'qiita-team-reporter'
|
3
|
+
s.version = '0.1.0'
|
4
|
+
s.licenses = ['MIT']
|
5
|
+
s.summary = 'Qiita:Team reporter'
|
6
|
+
s.authors = ['Seiei Miyagi', 'Yohei Yasukawa']
|
7
|
+
s.email = ['yohei@yasslab.jp']
|
8
|
+
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
9
|
+
f.match(%r{^(test|spec|features)/})
|
10
|
+
end
|
11
|
+
s.bindir = "exe"
|
12
|
+
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
13
|
+
s.homepage = 'https://github.com/yasslab/qiita-team-reporter/'
|
14
|
+
|
15
|
+
s.add_runtime_dependency "qiita"
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: qiita-team-reporter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Seiei Miyagi
|
8
|
+
- Yohei Yasukawa
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: qiita
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
description:
|
29
|
+
email:
|
30
|
+
- yohei@yasslab.jp
|
31
|
+
executables:
|
32
|
+
- list_daily_reports
|
33
|
+
- list_tag_items_all
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- ".gitignore"
|
38
|
+
- CODE_OF_CONDUCT.md
|
39
|
+
- Gemfile
|
40
|
+
- LICENSE
|
41
|
+
- README.md
|
42
|
+
- exe/list_daily_reports
|
43
|
+
- exe/list_tag_items_all
|
44
|
+
- qiita-team-reporter.gemspec
|
45
|
+
homepage: https://github.com/yasslab/qiita-team-reporter/
|
46
|
+
licenses:
|
47
|
+
- MIT
|
48
|
+
metadata: {}
|
49
|
+
post_install_message:
|
50
|
+
rdoc_options: []
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
requirements: []
|
64
|
+
rubyforge_project:
|
65
|
+
rubygems_version: 2.6.13
|
66
|
+
signing_key:
|
67
|
+
specification_version: 4
|
68
|
+
summary: Qiita:Team reporter
|
69
|
+
test_files: []
|