add_this 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/add_this/requests.rb +3 -1
- data/lib/add_this/version.rb +1 -1
- metadata +14 -14
data/lib/add_this/requests.rb
CHANGED
@@ -17,7 +17,9 @@ module AddThis
|
|
17
17
|
args.each do |arg|
|
18
18
|
define_method arg do |*options|
|
19
19
|
metric, dimension = arg.to_s.split("_")
|
20
|
-
connection.get
|
20
|
+
connection.get do |req|
|
21
|
+
req.url("/analytics/1.0/pub/#{metric}/#{dimension}.json", options[0] || {})
|
22
|
+
end.body
|
21
23
|
end
|
22
24
|
end
|
23
25
|
end
|
data/lib/add_this/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: add_this
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-03-14 00:00:00.000000000Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: faraday
|
18
|
-
requirement: &
|
18
|
+
requirement: &70174950609920 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70174950609920
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
|
-
requirement: &
|
29
|
+
requirement: &70174950607800 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70174950607800
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: hashie
|
40
|
-
requirement: &
|
40
|
+
requirement: &70174950603900 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: '0'
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *70174950603900
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: rspec
|
51
|
-
requirement: &
|
51
|
+
requirement: &70174950602340 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: '0'
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *70174950602340
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: guard
|
62
|
-
requirement: &
|
62
|
+
requirement: &70174950600880 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ! '>='
|
@@ -67,10 +67,10 @@ dependencies:
|
|
67
67
|
version: '0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *70174950600880
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: guard-rspec
|
73
|
-
requirement: &
|
73
|
+
requirement: &70174950598660 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ! '>='
|
@@ -78,7 +78,7 @@ dependencies:
|
|
78
78
|
version: '0'
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
|
-
version_requirements: *
|
81
|
+
version_requirements: *70174950598660
|
82
82
|
description: Simple API connector for getting analytic data from AddThis
|
83
83
|
email:
|
84
84
|
- chris@generalthings.com
|