spassky 0.1.42 → 0.1.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,7 @@ module Spassky::Server
29
29
  end
30
30
 
31
31
  get '/device/idle/:random' do
32
+ Kernel.puts("Connected device: #{request.user_agent}")
32
33
  test_run = TestRun.find_next_test_to_run_by_device_id(get_device_identifier)
33
34
  @device_list.update_last_connected(get_device_identifier)
34
35
  if test_run
@@ -1,3 +1,3 @@
1
1
  module Spassky
2
- VERSION = '0.1.42'
2
+ VERSION = '0.1.43'
3
3
  end
@@ -54,6 +54,11 @@ module Spassky::Server
54
54
  get "/device/idle/123"
55
55
  end
56
56
 
57
+ it "writes out the device user agent" do
58
+ Kernel.should_receive(:puts).with("Connected device: some user agent")
59
+ get "/device/idle/123"
60
+ end
61
+
57
62
  context "when there are no tests to run on the connected device" do
58
63
  it "serves HTML page with a meta-refresh tag" do
59
64
  TestRun.stub!(:find_next_test_to_run_by_device_id).and_return(nil)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spassky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.42
4
+ version: 0.1.43
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: 2011-09-29 00:00:00.000000000Z
14
+ date: 2011-09-30 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
18
- requirement: &70269511244960 !ruby/object:Gem::Requirement
18
+ requirement: &70157771631040 !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: *70269511244960
26
+ version_requirements: *70157771631040
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
- requirement: &70269511243740 !ruby/object:Gem::Requirement
29
+ requirement: &70157771630360 !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: *70269511243740
37
+ version_requirements: *70157771630360
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: sinatra
40
- requirement: &70269511241540 !ruby/object:Gem::Requirement
40
+ requirement: &70157771629580 !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: *70269511241540
48
+ version_requirements: *70157771629580
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rainbow
51
- requirement: &70269511239940 !ruby/object:Gem::Requirement
51
+ requirement: &70157771628820 !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: :runtime
58
58
  prerelease: false
59
- version_requirements: *70269511239940
59
+ version_requirements: *70157771628820
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: wurfl-lite
62
- requirement: &70269511238500 !ruby/object:Gem::Requirement
62
+ requirement: &70157771628180 !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: :runtime
69
69
  prerelease: false
70
- version_requirements: *70269511238500
70
+ version_requirements: *70157771628180
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: trollop
73
- requirement: &70269511237480 !ruby/object:Gem::Requirement
73
+ requirement: &70157771627020 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *70269511237480
81
+ version_requirements: *70157771627020
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: rake
84
- requirement: &70269511235660 !ruby/object:Gem::Requirement
84
+ requirement: &70157771626540 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *70269511235660
92
+ version_requirements: *70157771626540
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rspec
95
- requirement: &70269511235000 !ruby/object:Gem::Requirement
95
+ requirement: &70157771626120 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: '0'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *70269511235000
103
+ version_requirements: *70157771626120
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: cucumber
106
- requirement: &70269511234200 !ruby/object:Gem::Requirement
106
+ requirement: &70157771625560 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: '0'
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *70269511234200
114
+ version_requirements: *70157771625560
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: capybara
117
- requirement: &70269511233240 !ruby/object:Gem::Requirement
117
+ requirement: &70157771624900 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: '0'
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *70269511233240
125
+ version_requirements: *70157771624900
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: aruba
128
- requirement: &70269511232240 !ruby/object:Gem::Requirement
128
+ requirement: &70157771624420 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: '0'
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *70269511232240
136
+ version_requirements: *70157771624420
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: fakefs
139
- requirement: &70269511231460 !ruby/object:Gem::Requirement
139
+ requirement: &70157771624000 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ! '>='
@@ -144,10 +144,10 @@ dependencies:
144
144
  version: '0'
145
145
  type: :development
146
146
  prerelease: false
147
- version_requirements: *70269511231460
147
+ version_requirements: *70157771624000
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: factory_girl
150
- requirement: &70269511230380 !ruby/object:Gem::Requirement
150
+ requirement: &70157771623560 !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
153
153
  - - ! '>='
@@ -155,7 +155,7 @@ dependencies:
155
155
  version: '0'
156
156
  type: :development
157
157
  prerelease: false
158
- version_requirements: *70269511230380
158
+ version_requirements: *70157771623560
159
159
  description: ''
160
160
  email:
161
161
  - andrew.vos@gmail.com