km-resque 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/km/resque/version.rb +1 -1
- data/lib/km/resque.rb +1 -0
- data/spec/lib/km/resque/record_job_spec.rb +6 -0
- metadata +43 -50
data/lib/km/resque/version.rb
CHANGED
data/lib/km/resque.rb
CHANGED
@@ -22,5 +22,11 @@ describe "KM::Resque::RecordJob" do
|
|
22
22
|
expected_api_hit = "http://trk.kissmetrics.com/e?_d=1&_k=abc123&_n=eventName&_p=identifier&_t=#{timestamp}"
|
23
23
|
WebMock.should have_requested(:get, expected_api_hit)
|
24
24
|
end
|
25
|
+
it "should raise an error when no identity is provided" do
|
26
|
+
timestamp = Time.now.to_i
|
27
|
+
lambda {
|
28
|
+
KM::Resque::RecordJob.perform(nil, "eventName", { :foo => 'bar', :baz => 'bay'}, timestamp)
|
29
|
+
}.should raise_error(KM::Resque::Error)
|
30
|
+
end
|
25
31
|
end
|
26
32
|
end
|
metadata
CHANGED
@@ -1,60 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: km-resque
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.1
|
4
5
|
prerelease:
|
5
|
-
version: 0.9.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Luke Melia
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-09-12 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: resque
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2170036840 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 1.1.0
|
24
22
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: resque_spec
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: *2170036840
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: resque_spec
|
27
|
+
requirement: &2170036180 !ruby/object:Gem::Requirement
|
30
28
|
none: false
|
31
|
-
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version:
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
35
33
|
type: :development
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: webmock
|
39
34
|
prerelease: false
|
40
|
-
|
35
|
+
version_requirements: *2170036180
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: webmock
|
38
|
+
requirement: &2170035300 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
46
44
|
type: :development
|
47
|
-
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2170035300
|
48
47
|
description: Interact with the KISSMetrics API via Resque
|
49
|
-
email:
|
48
|
+
email:
|
50
49
|
- luke@lukemelia.com
|
51
50
|
executables: []
|
52
|
-
|
53
51
|
extensions: []
|
54
|
-
|
55
52
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
53
|
+
files:
|
58
54
|
- .gitignore
|
59
55
|
- Gemfile
|
60
56
|
- LICENSE
|
@@ -74,32 +70,29 @@ files:
|
|
74
70
|
- spec/lib/km/resque_spec.rb
|
75
71
|
homepage: https://github.com/lukemelia/km-resque
|
76
72
|
licenses: []
|
77
|
-
|
78
73
|
post_install_message:
|
79
74
|
rdoc_options: []
|
80
|
-
|
81
|
-
require_paths:
|
75
|
+
require_paths:
|
82
76
|
- lib
|
83
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
78
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version:
|
89
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
84
|
none: false
|
91
|
-
requirements:
|
92
|
-
- -
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version:
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
95
89
|
requirements: []
|
96
|
-
|
97
90
|
rubyforge_project:
|
98
91
|
rubygems_version: 1.8.10
|
99
92
|
signing_key:
|
100
93
|
specification_version: 3
|
101
94
|
summary: Interact with the KISSMetrics API via Resque
|
102
|
-
test_files:
|
95
|
+
test_files:
|
103
96
|
- spec/lib/km/resque/alias_job_spec.rb
|
104
97
|
- spec/lib/km/resque/record_job_spec.rb
|
105
98
|
- spec/lib/km/resque/set_job_spec.rb
|