contribution_count 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: c870262a82431fd1f8043f1c5535461868a63386f9c75d487b102f41961f497a
4
- data.tar.gz: 22648ebc651051c3143ef988b4ec8db1166cf930a91146ac0ea3d6434452a1a2
3
+ metadata.gz: 0ad1221e9fe8482e83822894dab60f79b5f0a6750a54a813558f11992db5b771
4
+ data.tar.gz: 63ed694a8843a0970f2b49121a1c3b93a0c11f67f78a79544c79dd08589398c8
5
5
  SHA512:
6
- metadata.gz: aef2250a5bd891d5b35f82c129205296f36778de7d77b0656e7fdd9d1e95b4c5ee693c8cc05edd1832bc0073e5428a0145f9c87b92c279c5a7723e851994e64c
7
- data.tar.gz: 801c93fe90d040a8b61f87a687f61efdf41db058e6466d42bc23c571176de761cf76a7c80bf51376daa2bf97447fe0fb643d5d742c626ff62dba500639510f3c
6
+ metadata.gz: 18c8907aca06d2c9d0cf60f41fc0c041a423a5f74cf17f6c4545d22bc6cb646b1a14125639b3d55ac43de25cf9eda0a7cf28a108f94d50a6aa7202dd353d9020
7
+ data.tar.gz: ca3ad4c5a921f370d4bd326fb61492fda8b00e74197143608a014e5930d43777128aabd993af460f79c5b078e2ed3c4634409e6096a6d8c4642bcf7cafae83a7
@@ -5,3 +5,4 @@ cache: bundler
5
5
  rvm:
6
6
  - 2.5.0
7
7
  before_install: gem install bundler -v 2.0.1
8
+ script: bundle exec rake spec
data/Gemfile CHANGED
@@ -1,5 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in contribution_count.gemspec
4
+ gem 'line-notify-client'
5
+ gem 'slack-incoming-webhooks'
4
6
  gem 'nokogiri'
5
7
  gemspec
@@ -1,12 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- contribution_count (0.1.0)
4
+ contribution_count (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  diff-lcs (1.3)
10
+ line-notify-client (1.0.4)
10
11
  mini_portile2 (2.4.0)
11
12
  nokogiri (1.10.2)
12
13
  mini_portile2 (~> 2.4.0)
@@ -24,6 +25,7 @@ GEM
24
25
  diff-lcs (>= 1.2.0, < 2.0)
25
26
  rspec-support (~> 3.8.0)
26
27
  rspec-support (3.8.0)
28
+ slack-incoming-webhooks (0.2.0)
27
29
 
28
30
  PLATFORMS
29
31
  ruby
@@ -31,9 +33,11 @@ PLATFORMS
31
33
  DEPENDENCIES
32
34
  bundler (~> 2.0)
33
35
  contribution_count!
36
+ line-notify-client
34
37
  nokogiri
35
38
  rake (~> 10.0)
36
39
  rspec (~> 3.0)
40
+ slack-incoming-webhooks
37
41
 
38
42
  BUNDLED WITH
39
43
  2.0.1
data/README.md CHANGED
@@ -1,7 +1,21 @@
1
+ [![Gem Version](https://badge.fury.io/rb/contribution_count.svg)](https://badge.fury.io/rb/contribution_count)
2
+ [![Build Status](https://travis-ci.org/emono/contribution_count.svg?branch=master)](https://travis-ci.org/emono/contribution_count)
3
+ [![Gem Download](https://img.shields.io/gem/dt/contribution_count.svg)](https://rubygems.org/gems/contribution_count)
4
+ [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
5
+
1
6
  # ContributionCount
2
7
  - GitHub contribution count client
3
8
  - https://rubygems.org/gems/contribution_count
4
9
 
10
+ # Independent Gem
11
+ - for scraping
12
+ - nokogiri
13
+ - for notify
14
+ - line-notify-client
15
+ - slack-incoming-webhooks
16
+
17
+
18
+
5
19
  ## Installation
6
20
 
7
21
  Add this line to your application's Gemfile:
@@ -33,6 +47,8 @@ ContributionCount.new(name).date("yyyy-mm-dd")
33
47
  ContributionCount.new(name).contribution_today?
34
48
  # select date contribution?
35
49
  ContributionCount.new(name).contribution?("yyyy-mm-dd")
50
+ # notify line
51
+ ContributionCount.new(name).today_contribution_notify_line
36
52
  ```
37
53
 
38
54
  ## Contributing
@@ -45,8 +61,8 @@ The gem is available as open source under the terms of the [MIT License](https:/
45
61
 
46
62
  ## Code of Conduct
47
63
 
48
- Fork it ( https://github.com/emono/contribution_count )
49
- Create your feature branch (git checkout -b my-new-feature)
50
- Commit your changes (git commit -am 'Add some feature')
51
- Push to the branch (git push origin my-new-feature)
52
- Create a new Pull Request
64
+ - Fork it ( https://github.com/emono/contribution_count )
65
+ - Create your feature branch (git checkout -b my-new-feature)
66
+ - Commit your changes (git commit -am 'Add some feature')
67
+ - Push to the branch (git push origin my-new-feature)
68
+ - Create a new Pull Request
@@ -1,6 +1,7 @@
1
1
  require 'open-uri'
2
2
  require 'nokogiri'
3
3
  require 'date'
4
+ require 'line-notify-client'
4
5
 
5
6
  require_relative 'contribution_count/version'
6
7
  require_relative 'contribution_count/client'
@@ -40,6 +40,12 @@ module ContributionCount
40
40
  true
41
41
  end
42
42
 
43
+ def today_contribution_notify_line
44
+ return if today.nil?
45
+ message = "today_contribution_count: #{today}"
46
+ Line::Notify::Client.message(message: message)
47
+ end
48
+
43
49
  private
44
50
  def html
45
51
  begin
@@ -1,3 +1,3 @@
1
1
  module ContributionCount
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contribution_count
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - emono
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-19 00:00:00.000000000 Z
11
+ date: 2019-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler