github-nippou 0.1.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74f77e32a23cca62a0a455d6b2331e8425c790c1
4
- data.tar.gz: 561f495e19b8bf55fd1b0c2c1ab1b1a2364244fa
3
+ metadata.gz: 77dda075d6032396cef2286adb80257e773b418d
4
+ data.tar.gz: d6f298d8ca4e2d9f0c31a70060199c5d5098a099
5
5
  SHA512:
6
- metadata.gz: 59d80bcc7724eb41490c1ada12423348ffb427652f2fc6126fb509865adc6acce6455a20f8b94dea5f2ea1eeed5c2137210dd9090a7682ce8626d91c9be27c38
7
- data.tar.gz: f7d2b08ea28c2faa9ab04ed52dfba6669cea70ac8c18e8683d8f85e7805279a3fae17b8fddaccefc6ccd63b8398f183ee08a92080c426396f725a0dff727c4d2
6
+ metadata.gz: 075cd8a9b717f624a43ce944c3687fbf99a8670617075ad2ea3a196d9825a355d4b04cd20466ed332067f3815b808195a1f898eee47a68ece28f723aee21559f
7
+ data.tar.gz: 34e3e4e66b5a6c1b8b119b1351d992b2b252172a95a5bf36d2190fedd1d115b91d749835ee7a46a432a852fdbc5ff02252209a5e268baf7148b49808e7302793
data/Gemfile.lock CHANGED
@@ -1,32 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github-nippou (0.1.1)
4
+ github-nippou (1.0.0)
5
5
  octokit (~> 3.7)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  addressable (2.3.6)
11
- diff-lcs (1.2.5)
12
11
  faraday (0.9.0)
13
12
  multipart-post (>= 1.2, < 3)
14
13
  multipart-post (2.0.0)
15
14
  octokit (3.7.0)
16
15
  sawyer (~> 0.6.0, >= 0.5.3)
17
16
  rake (10.4.2)
18
- rspec (3.1.0)
19
- rspec-core (~> 3.1.0)
20
- rspec-expectations (~> 3.1.0)
21
- rspec-mocks (~> 3.1.0)
22
- rspec-core (3.1.7)
23
- rspec-support (~> 3.1.0)
24
- rspec-expectations (3.1.2)
25
- diff-lcs (>= 1.2.0, < 2.0)
26
- rspec-support (~> 3.1.0)
27
- rspec-mocks (3.1.3)
28
- rspec-support (~> 3.1.0)
29
- rspec-support (3.1.2)
30
17
  sawyer (0.6.0)
31
18
  addressable (~> 2.3.5)
32
19
  faraday (~> 0.8, < 0.10)
@@ -38,4 +25,3 @@ DEPENDENCIES
38
25
  bundler (~> 1.7)
39
26
  github-nippou!
40
27
  rake (~> 10.0)
41
- rspec (~> 3.1)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Github::Nippou
1
+ # Github::Nippou [![Gem Version][gem-badge]][gem-link]
2
2
 
3
- Outputs today's your GitHub action.
3
+ Print today's your GitHub action.
4
4
 
5
5
  This is a helpful tool when you write a daily report in reference to
6
6
  GitHub. nippou is a japanese word which means a daily report.
@@ -37,3 +37,6 @@ Or install it yourself as:
37
37
  3. Commit your changes (`git commit -am 'Add some feature'`)
38
38
  4. Push to the branch (`git push origin my-new-feature`)
39
39
  5. Create a new Pull Request
40
+
41
+ [gem-badge]: https://badge.fury.io/rb/github-nippou.svg
42
+ [gem-link]: http://badge.fury.io/rb/github-nippou
data/Rakefile CHANGED
@@ -1,7 +1 @@
1
1
  require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
7
-
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Github::Nippou::VERSION
9
9
  spec.authors = ['Takashi Masuda']
10
10
  spec.email = ['masutaka.net@gmail.com']
11
- spec.summary = %q{Outputs today's your GitHub action.}
11
+ spec.summary = %q{Print today's your GitHub action.}
12
12
  spec.description = <<-EOS
13
13
  This is a helpful tool when you write a daily report in reference to
14
14
  GitHub. nippou is a japanese word which means a daily report.
@@ -25,5 +25,4 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.7'
27
27
  spec.add_development_dependency 'rake', '~> 10.0'
28
- spec.add_development_dependency 'rspec', '~> 3.1'
29
28
  end
data/lib/github/nippou.rb CHANGED
@@ -15,14 +15,12 @@ module Github
15
15
  case _.type
16
16
  when 'IssuesEvent', 'IssueCommentEvent'
17
17
  title = _.payload.issue.title.gsub('`', '\\\`')
18
- repo_basename = _.repo.name.sub('feedforce/', '')
19
18
  merged = client.pull_merged?(_.repo.name, _.payload.issue.number)
20
- url_to_detail[_.payload.issue.html_url] ||= {title: title, repo_basename: repo_basename, username: _.payload.issue.user.login, merged: merged}
19
+ url_to_detail[_.payload.issue.html_url] ||= {title: title, repo_basename: _.repo.name, username: _.payload.issue.user.login, merged: merged}
21
20
  when 'PullRequestEvent', 'PullRequestReviewCommentEvent'
22
21
  title = _.payload.pull_request.title.gsub('`', '\\\`')
23
- repo_basename = _.repo.name.sub('feedforce/', '')
24
22
  merged = client.pull_merged?(_.repo.name, _.payload.pull_request.number)
25
- url_to_detail[_.payload.pull_request.html_url] ||= {title: title, repo_basename: repo_basename, username: _.payload.pull_request.user.login, merged: merged}
23
+ url_to_detail[_.payload.pull_request.html_url] ||= {title: title, repo_basename: _.repo.name, username: _.payload.pull_request.user.login, merged: merged}
26
24
  end
27
25
  end
28
26
 
@@ -1,5 +1,5 @@
1
1
  module Github
2
2
  module Nippou
3
- VERSION = '0.1.1'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-nippou
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Masuda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-17 00:00:00.000000000 Z
11
+ date: 2015-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
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: '3.1'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '3.1'
69
55
  description: |2
70
56
  This is a helpful tool when you write a daily report in reference to
71
57
  GitHub. nippou is a japanese word which means a daily report.
@@ -77,8 +63,6 @@ extensions: []
77
63
  extra_rdoc_files: []
78
64
  files:
79
65
  - ".gitignore"
80
- - ".rspec"
81
- - ".travis.yml"
82
66
  - Gemfile
83
67
  - Gemfile.lock
84
68
  - LICENSE.txt
@@ -88,8 +72,6 @@ files:
88
72
  - github-nippou.gemspec
89
73
  - lib/github/nippou.rb
90
74
  - lib/github/nippou/version.rb
91
- - spec/github/nippou_spec.rb
92
- - spec/spec_helper.rb
93
75
  homepage: https://github.com/masutaka/github-nippou
94
76
  licenses:
95
77
  - MIT
@@ -113,7 +95,5 @@ rubyforge_project:
113
95
  rubygems_version: 2.4.5
114
96
  signing_key:
115
97
  specification_version: 4
116
- summary: Outputs today's your GitHub action.
117
- test_files:
118
- - spec/github/nippou_spec.rb
119
- - spec/spec_helper.rb
98
+ summary: Print today's your GitHub action.
99
+ test_files: []
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.travis.yml DELETED
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.5
@@ -1,11 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Github::Nippou do
4
- it 'has a version number' do
5
- expect(Github::Nippou::VERSION).not_to be nil
6
- end
7
-
8
- it 'does something useful' do
9
- expect(false).to eq(true)
10
- end
11
- end
data/spec/spec_helper.rb DELETED
@@ -1,2 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
- require 'github/nippou'