mshard 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b44c4da0d6d299586d4488c609cefe28d4f1205
4
- data.tar.gz: c2eed8df108db6db4a29ae842d341beba815ae57
3
+ metadata.gz: 7b7f3f470980c7f80566319da875c22d95943c94
4
+ data.tar.gz: 918052e25ba43b06ffa27110d8b4a278ac3f7122
5
5
  SHA512:
6
- metadata.gz: 6aa9c50498278221548a0804e39f27fe772af4cacb62fb4a3304040be1f9a0ea7af20e090fb411f18360b8c1eab02092ef7848a7701cef05b5223b75eb09382d
7
- data.tar.gz: 8a9282fcac7dfe0d8988488831322eaee0de7abe6e32569a18e3bc24e062f35870d70764718688a8af11016442c3708468df92de732c9a14c6e78d387649d2b3
6
+ metadata.gz: 31fd39ab0f6616695e599098f371223fadc7b00c05865e15e1dc2d800660f8d6e39a021529bb1552e664081334cb23fd578966c8d2d10c0e0d2ec7babef5aba4
7
+ data.tar.gz: 2ee279f3ca677bc7553752a1a5c4a66f3a386923f76b6208213bb0b85ac5581dfcac2e3b1561fb2e788b66eb2e72480fa77599aae85403ddca46aa585a4a9d13
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/Gemfile.lock ADDED
@@ -0,0 +1,119 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mshard (0.4.0)
5
+ haml
6
+ httparty
7
+ thor
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ ast (2.2.0)
13
+ astrolabe (1.3.1)
14
+ parser (~> 2.2)
15
+ codecov (0.1.2)
16
+ json
17
+ simplecov
18
+ url
19
+ coderay (1.1.0)
20
+ diff-lcs (1.2.5)
21
+ docile (1.1.5)
22
+ ffi (1.9.10)
23
+ formatador (0.2.5)
24
+ guard (2.13.0)
25
+ formatador (>= 0.2.4)
26
+ listen (>= 2.7, <= 4.0)
27
+ lumberjack (~> 1.0)
28
+ nenv (~> 0.1)
29
+ notiffany (~> 0.0)
30
+ pry (>= 0.9.12)
31
+ shellany (~> 0.0)
32
+ thor (>= 0.18.1)
33
+ guard-compat (1.2.1)
34
+ guard-rspec (4.6.4)
35
+ guard (~> 2.1)
36
+ guard-compat (~> 1.1)
37
+ rspec (>= 2.99.0, < 4.0)
38
+ guard-rubocop (1.2.0)
39
+ guard (~> 2.0)
40
+ rubocop (~> 0.20)
41
+ haml (4.0.7)
42
+ tilt
43
+ httparty (0.13.7)
44
+ json (~> 1.8)
45
+ multi_xml (>= 0.5.2)
46
+ json (1.8.3)
47
+ listen (3.0.5)
48
+ rb-fsevent (>= 0.9.3)
49
+ rb-inotify (>= 0.9)
50
+ lumberjack (1.0.10)
51
+ method_source (0.8.2)
52
+ multi_xml (0.5.5)
53
+ nenv (0.2.0)
54
+ notiffany (0.0.8)
55
+ nenv (~> 0.1)
56
+ shellany (~> 0.0)
57
+ parser (2.2.3.0)
58
+ ast (>= 1.1, < 3.0)
59
+ powerpack (0.1.1)
60
+ pry (0.10.3)
61
+ coderay (~> 1.1.0)
62
+ method_source (~> 0.8.1)
63
+ slop (~> 3.4)
64
+ rainbow (2.0.0)
65
+ rake (10.4.2)
66
+ rb-fsevent (0.9.7)
67
+ rb-inotify (0.9.5)
68
+ ffi (>= 0.5.0)
69
+ rspec (3.4.0)
70
+ rspec-core (~> 3.4.0)
71
+ rspec-expectations (~> 3.4.0)
72
+ rspec-mocks (~> 3.4.0)
73
+ rspec-core (3.4.1)
74
+ rspec-support (~> 3.4.0)
75
+ rspec-expectations (3.4.0)
76
+ diff-lcs (>= 1.2.0, < 2.0)
77
+ rspec-support (~> 3.4.0)
78
+ rspec-mocks (3.4.0)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.4.0)
81
+ rspec-support (3.4.1)
82
+ rubocop (0.35.1)
83
+ astrolabe (~> 1.3)
84
+ parser (>= 2.2.3.0, < 3.0)
85
+ powerpack (~> 0.1)
86
+ rainbow (>= 1.99.1, < 3.0)
87
+ ruby-progressbar (~> 1.7)
88
+ tins (<= 1.6.0)
89
+ ruby-progressbar (1.7.5)
90
+ shellany (0.0.1)
91
+ simplecov (0.11.1)
92
+ docile (~> 1.1.0)
93
+ json (~> 1.8)
94
+ simplecov-html (~> 0.10.0)
95
+ simplecov-html (0.10.0)
96
+ slop (3.6.0)
97
+ thor (0.19.1)
98
+ tilt (2.0.5)
99
+ tins (1.6.0)
100
+ url (0.3.2)
101
+
102
+ PLATFORMS
103
+ ruby
104
+
105
+ DEPENDENCIES
106
+ bundler (~> 1.7)
107
+ codecov
108
+ guard
109
+ guard-rspec
110
+ guard-rubocop
111
+ mshard!
112
+ pry
113
+ rake (~> 10.0)
114
+ rspec
115
+ rubocop
116
+ simplecov
117
+
118
+ BUNDLED WITH
119
+ 1.12.5
data/exe/ding ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'mshard'
4
+ require 'mshard/ding'
5
+
6
+ MShard::Ding.start
@@ -0,0 +1,16 @@
1
+ require 'thor'
2
+ require 'mshard'
3
+
4
+ module MShard
5
+ class Ding < Thor::Group
6
+ namespace :''
7
+ argument :text, default: 'Ding!', required: false
8
+ def ding
9
+ MShard.new.set_safe(
10
+ slack: true,
11
+ webhook_url: ENV['SLACK_WEBHOOK_URI'],
12
+ text: text
13
+ )
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module MShard
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
data/ting.sh ADDED
@@ -0,0 +1,7 @@
1
+ TITLE=${1:-Ting!}
2
+ if [ $# -ge 1 ]
3
+ then
4
+ shift
5
+ fi
6
+ BODY="$*"
7
+ curl -XPOST $MSHARD_URI/v2/shards --data pushbullet=true --data type=note --data title="$TITLE" --data body="$BODY"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mshard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minwoo Lee
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2016-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -182,6 +182,7 @@ description: MShard
182
182
  email:
183
183
  - ermaker@gmail.com
184
184
  executables:
185
+ - ding
185
186
  - ting
186
187
  extensions: []
187
188
  extra_rdoc_files: []
@@ -192,19 +193,23 @@ files:
192
193
  - ".rubocop_todo.yml"
193
194
  - ".travis.yml"
194
195
  - Gemfile
196
+ - Gemfile.lock
195
197
  - Guardfile
196
198
  - LICENSE.txt
197
199
  - README.md
198
200
  - Rakefile
199
201
  - cov.sh
202
+ - exe/ding
200
203
  - exe/ting
201
204
  - lib/mshard.rb
205
+ - lib/mshard/ding.rb
202
206
  - lib/mshard/mshard.rb
203
207
  - lib/mshard/ting.rb
204
208
  - lib/mshard/version.rb
205
209
  - mshard.gemspec
206
210
  - spec/lib/mshard/mshard_spec.rb
207
211
  - spec/spec_helper.rb
212
+ - ting.sh
208
213
  homepage: ''
209
214
  licenses:
210
215
  - MIT
@@ -225,10 +230,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
230
  version: '0'
226
231
  requirements: []
227
232
  rubyforge_project:
228
- rubygems_version: 2.4.6
233
+ rubygems_version: 2.5.1
229
234
  signing_key:
230
235
  specification_version: 4
231
236
  summary: MShard
232
237
  test_files:
233
238
  - spec/lib/mshard/mshard_spec.rb
234
239
  - spec/spec_helper.rb
240
+ has_rdoc: