stathat 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +6 -0
- data/Rakefile +7 -0
- data/VERSION +1 -1
- data/lib/stathat.rb +4 -4
- data/stathat.gemspec +6 -4
- metadata +67 -78
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -7,8 +7,13 @@ GEM
|
|
7
7
|
git (>= 1.2.5)
|
8
8
|
rake
|
9
9
|
minitest (2.0.2)
|
10
|
+
mustache (0.12.0)
|
10
11
|
rake (0.8.7)
|
11
12
|
rcov (0.9.9)
|
13
|
+
rdiscount (1.6.5)
|
14
|
+
rocco (0.5)
|
15
|
+
mustache
|
16
|
+
rdiscount
|
12
17
|
|
13
18
|
PLATFORMS
|
14
19
|
ruby
|
@@ -18,3 +23,4 @@ DEPENDENCIES
|
|
18
23
|
jeweler (~> 1.5.2)
|
19
24
|
minitest
|
20
25
|
rcov
|
26
|
+
rocco
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/stathat.rb
CHANGED
@@ -7,7 +7,7 @@ module StatHat
|
|
7
7
|
args = { :key => stat_key,
|
8
8
|
:ukey => user_key,
|
9
9
|
:value => value }
|
10
|
-
resp = Net::HTTP.post_form(URI.parse("http://stathat.com/
|
10
|
+
resp = Net::HTTP.post_form(URI.parse("http://api.stathat.com/v"), args)
|
11
11
|
return self.response_valid?(resp)
|
12
12
|
end
|
13
13
|
|
@@ -15,7 +15,7 @@ module StatHat
|
|
15
15
|
args = { :key => stat_key,
|
16
16
|
:ukey => user_key,
|
17
17
|
:value => value }
|
18
|
-
resp = Net::HTTP.post_form(URI.parse("http://stathat.com/
|
18
|
+
resp = Net::HTTP.post_form(URI.parse("http://api.stathat.com/c"), args)
|
19
19
|
return self.response_valid?(resp)
|
20
20
|
end
|
21
21
|
|
@@ -23,7 +23,7 @@ module StatHat
|
|
23
23
|
args = { :stat => stat_name,
|
24
24
|
:email => account_email,
|
25
25
|
:value => value }
|
26
|
-
resp = Net::HTTP.post_form(URI.parse("http://stathat.com/
|
26
|
+
resp = Net::HTTP.post_form(URI.parse("http://api.stathat.com/ez"), args)
|
27
27
|
return self.response_valid?(resp)
|
28
28
|
end
|
29
29
|
|
@@ -31,7 +31,7 @@ module StatHat
|
|
31
31
|
args = { :stat => stat_name,
|
32
32
|
:email => account_email,
|
33
33
|
:count => count }
|
34
|
-
resp = Net::HTTP.post_form(URI.parse("http://stathat.com/
|
34
|
+
resp = Net::HTTP.post_form(URI.parse("http://api.stathat.com/ez"), args)
|
35
35
|
return self.response_valid?(resp)
|
36
36
|
end
|
37
37
|
|
data/stathat.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{stathat}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Patrick Crosby"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-02-08}
|
13
13
|
s.description = %q{Easily post stats to your StatHat account using this gem. Encapsulates full API.}
|
14
14
|
s.email = %q{patrick@xblabs.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.homepage = %q{http://github.com/patrickxb/stathat}
|
33
33
|
s.licenses = ["MIT"]
|
34
34
|
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = %q{1.
|
35
|
+
s.rubygems_version = %q{1.5.0}
|
36
36
|
s.summary = %q{gem to access StatHat api}
|
37
37
|
s.test_files = [
|
38
38
|
"test/helper.rb",
|
@@ -40,7 +40,6 @@ Gem::Specification.new do |s|
|
|
40
40
|
]
|
41
41
|
|
42
42
|
if s.respond_to? :specification_version then
|
43
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
43
|
s.specification_version = 3
|
45
44
|
|
46
45
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
@@ -48,17 +47,20 @@ Gem::Specification.new do |s|
|
|
48
47
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
49
48
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
50
49
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
50
|
+
s.add_development_dependency(%q<rocco>, [">= 0"])
|
51
51
|
else
|
52
52
|
s.add_dependency(%q<minitest>, [">= 0"])
|
53
53
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
54
54
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
55
55
|
s.add_dependency(%q<rcov>, [">= 0"])
|
56
|
+
s.add_dependency(%q<rocco>, [">= 0"])
|
56
57
|
end
|
57
58
|
else
|
58
59
|
s.add_dependency(%q<minitest>, [">= 0"])
|
59
60
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
60
61
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
61
62
|
s.add_dependency(%q<rcov>, [">= 0"])
|
63
|
+
s.add_dependency(%q<rocco>, [">= 0"])
|
62
64
|
end
|
63
65
|
end
|
64
66
|
|
metadata
CHANGED
@@ -1,88 +1,81 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: stathat
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease: !!null
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Patrick Crosby
|
13
|
-
autorequire:
|
9
|
+
autorequire: !!null
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-02-08 00:00:00.000000000 -06:00
|
13
|
+
default_executable: !!null
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
21
16
|
name: minitest
|
22
|
-
requirement: &
|
17
|
+
requirement: &2153308180 !ruby/object:Gem::Requirement
|
23
18
|
none: false
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 0
|
29
|
-
version: "0"
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
30
23
|
type: :development
|
31
24
|
prerelease: false
|
32
|
-
version_requirements: *
|
33
|
-
- !ruby/object:Gem::Dependency
|
25
|
+
version_requirements: *2153308180
|
26
|
+
- !ruby/object:Gem::Dependency
|
34
27
|
name: bundler
|
35
|
-
requirement: &
|
28
|
+
requirement: &2153307200 !ruby/object:Gem::Requirement
|
36
29
|
none: false
|
37
|
-
requirements:
|
30
|
+
requirements:
|
38
31
|
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
segments:
|
41
|
-
- 1
|
42
|
-
- 0
|
43
|
-
- 0
|
32
|
+
- !ruby/object:Gem::Version
|
44
33
|
version: 1.0.0
|
45
34
|
type: :development
|
46
35
|
prerelease: false
|
47
|
-
version_requirements: *
|
48
|
-
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: *2153307200
|
37
|
+
- !ruby/object:Gem::Dependency
|
49
38
|
name: jeweler
|
50
|
-
requirement: &
|
39
|
+
requirement: &2153306120 !ruby/object:Gem::Requirement
|
51
40
|
none: false
|
52
|
-
requirements:
|
41
|
+
requirements:
|
53
42
|
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
segments:
|
56
|
-
- 1
|
57
|
-
- 5
|
58
|
-
- 2
|
43
|
+
- !ruby/object:Gem::Version
|
59
44
|
version: 1.5.2
|
60
45
|
type: :development
|
61
46
|
prerelease: false
|
62
|
-
version_requirements: *
|
63
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *2153306120
|
48
|
+
- !ruby/object:Gem::Dependency
|
64
49
|
name: rcov
|
65
|
-
requirement: &
|
50
|
+
requirement: &2153304780 !ruby/object:Gem::Requirement
|
66
51
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
- 0
|
72
|
-
version: "0"
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
73
56
|
type: :development
|
74
57
|
prerelease: false
|
75
|
-
version_requirements: *
|
76
|
-
|
58
|
+
version_requirements: *2153304780
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: rocco
|
61
|
+
requirement: &2153303420 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *2153303420
|
70
|
+
description: Easily post stats to your StatHat account using this gem. Encapsulates
|
71
|
+
full API.
|
77
72
|
email: patrick@xblabs.com
|
78
73
|
executables: []
|
79
|
-
|
80
74
|
extensions: []
|
81
|
-
|
82
|
-
extra_rdoc_files:
|
75
|
+
extra_rdoc_files:
|
83
76
|
- LICENSE.txt
|
84
77
|
- README.rdoc
|
85
|
-
files:
|
78
|
+
files:
|
86
79
|
- .document
|
87
80
|
- Gemfile
|
88
81
|
- Gemfile.lock
|
@@ -96,37 +89,33 @@ files:
|
|
96
89
|
- test/test_stathat.rb
|
97
90
|
has_rdoc: true
|
98
91
|
homepage: http://github.com/patrickxb/stathat
|
99
|
-
licenses:
|
92
|
+
licenses:
|
100
93
|
- MIT
|
101
|
-
post_install_message:
|
94
|
+
post_install_message: !!null
|
102
95
|
rdoc_options: []
|
103
|
-
|
104
|
-
require_paths:
|
96
|
+
require_paths:
|
105
97
|
- lib
|
106
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
99
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
|
112
|
-
segments:
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
segments:
|
113
105
|
- 0
|
114
|
-
|
115
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
hash: -1798753845188386765
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
108
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
|
121
|
-
- 0
|
122
|
-
version: "0"
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
123
113
|
requirements: []
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
signing_key:
|
114
|
+
rubyforge_project: !!null
|
115
|
+
rubygems_version: 1.5.0
|
116
|
+
signing_key: !!null
|
128
117
|
specification_version: 3
|
129
118
|
summary: gem to access StatHat api
|
130
|
-
test_files:
|
119
|
+
test_files:
|
131
120
|
- test/helper.rb
|
132
121
|
- test/test_stathat.rb
|