snarl-snp 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/GUIDE.rdoc.ja +126 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +144 -0
- data/README.rdoc.ja +166 -0
- data/Rakefile +47 -0
- data/VERSION +1 -0
- data/exsample/ping.rb +8 -0
- data/exsample/winamp_nowplaying.rb +227 -0
- data/exsample/yahoo_weather.rb +35 -0
- data/lib/snarl/autotest.rb +112 -0
- data/lib/snarl/snp.rb +11 -0
- data/lib/snarl/snp/action.rb +138 -0
- data/lib/snarl/snp/config.rb +32 -0
- data/lib/snarl/snp/error.rb +76 -0
- data/lib/snarl/snp/request.rb +83 -0
- data/lib/snarl/snp/response.rb +36 -0
- data/lib/snarl/snp/snp.rb +142 -0
- data/snarl-snp.gemspec +78 -0
- data/spec/exsample/data/weather_yahoo_co_jp.html +608 -0
- data/spec/exsample/yahoo_weather_spec.rb +22 -0
- data/spec/snp/action_spec.rb +198 -0
- data/spec/snp/config_spec.rb +53 -0
- data/spec/snp/request_spec.rb +72 -0
- data/spec/snp/response_sprc.rb +96 -0
- data/spec/snp/snp_spec.rb +265 -0
- data/spec/spec_helper.rb +20 -0
- metadata +119 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
require 'spec'
|
4
|
+
require 'spec/autorun'
|
5
|
+
|
6
|
+
Spec::Runner.configure do |config|
|
7
|
+
|
8
|
+
require 'snarl/snp'
|
9
|
+
require 'logger'
|
10
|
+
require 'tempfile'
|
11
|
+
require 'yaml'
|
12
|
+
begin
|
13
|
+
config = YAML.load_file(File.join(File.dirname(__FILE__), 'snp.config'))
|
14
|
+
rescue Errno::ENOENT
|
15
|
+
config = {}
|
16
|
+
end
|
17
|
+
config.each_pair do |mes, value|
|
18
|
+
Snarl::SNP::Config.__send__("#{mes}=", value)
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: snarl-snp
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- kitamomonga
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-04-23 00:00:00 +09:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rspec
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 2
|
30
|
+
- 9
|
31
|
+
version: 1.2.9
|
32
|
+
type: :development
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: webmock
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
version: "0"
|
44
|
+
type: :development
|
45
|
+
version_requirements: *id002
|
46
|
+
description: Snarl Network Protocol Client. Snarl is the notification program for Windows. You can send notification messages to Snarl with SNP over LAN.
|
47
|
+
email: ezookojo@gmail.com
|
48
|
+
executables: []
|
49
|
+
|
50
|
+
extensions: []
|
51
|
+
|
52
|
+
extra_rdoc_files:
|
53
|
+
- README.rdoc
|
54
|
+
- README.rdoc.ja
|
55
|
+
files:
|
56
|
+
- GUIDE.rdoc.ja
|
57
|
+
- MIT-LICENSE
|
58
|
+
- README.rdoc
|
59
|
+
- README.rdoc.ja
|
60
|
+
- Rakefile
|
61
|
+
- VERSION
|
62
|
+
- exsample/ping.rb
|
63
|
+
- exsample/winamp_nowplaying.rb
|
64
|
+
- exsample/yahoo_weather.rb
|
65
|
+
- lib/snarl/autotest.rb
|
66
|
+
- lib/snarl/snp.rb
|
67
|
+
- lib/snarl/snp/action.rb
|
68
|
+
- lib/snarl/snp/config.rb
|
69
|
+
- lib/snarl/snp/error.rb
|
70
|
+
- lib/snarl/snp/request.rb
|
71
|
+
- lib/snarl/snp/response.rb
|
72
|
+
- lib/snarl/snp/snp.rb
|
73
|
+
- snarl-snp.gemspec
|
74
|
+
- spec/exsample/data/weather_yahoo_co_jp.html
|
75
|
+
- spec/exsample/yahoo_weather_spec.rb
|
76
|
+
- spec/snp/action_spec.rb
|
77
|
+
- spec/snp/config_spec.rb
|
78
|
+
- spec/snp/request_spec.rb
|
79
|
+
- spec/snp/response_sprc.rb
|
80
|
+
- spec/snp/snp_spec.rb
|
81
|
+
- spec/spec_helper.rb
|
82
|
+
has_rdoc: true
|
83
|
+
homepage: http://github.com/kitamomonga/snarl-snp
|
84
|
+
licenses: []
|
85
|
+
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options:
|
88
|
+
- --charset=UTF-8
|
89
|
+
require_paths:
|
90
|
+
- lib
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
version: "0"
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
version: "0"
|
105
|
+
requirements: []
|
106
|
+
|
107
|
+
rubyforge_project:
|
108
|
+
rubygems_version: 1.3.6
|
109
|
+
signing_key:
|
110
|
+
specification_version: 3
|
111
|
+
summary: Snarl Network Protocol Client. You can notify to Snarl over LAN.
|
112
|
+
test_files:
|
113
|
+
- spec/exsample/yahoo_weather_spec.rb
|
114
|
+
- spec/spec_helper.rb
|
115
|
+
- spec/snp/config_spec.rb
|
116
|
+
- spec/snp/response_sprc.rb
|
117
|
+
- spec/snp/request_spec.rb
|
118
|
+
- spec/snp/snp_spec.rb
|
119
|
+
- spec/snp/action_spec.rb
|