watch_tower 0.0.1.beta6 → 0.0.1.beta7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -37,4 +37,8 @@ end
37
37
 
38
38
  platforms :mri do
39
39
  gem 'pg'
40
+
41
+ if RbConfig::CONFIG['target_os'] =~ /darwin/i
42
+ gem 'rb-appscript', '~>0.6.1'
43
+ end
40
44
  end
data/bin/watchtower CHANGED
@@ -1,10 +1,23 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
3
 
4
+ # Verify that mac users have rb-appscript installed
5
+ require 'rbconfig'
6
+ if RbConfig::CONFIG['target_os'] =~ /darwin/i
7
+ begin
8
+ require 'rubygems'
9
+ require 'appscript'
10
+ rescue LoadError
11
+ STDERR.puts "Please install 'rb-appscript' to use this gem with Textmate and Xcode"
12
+ STDERR.puts "gem install rb-appscript"
13
+ exit
14
+ end
15
+ end
16
+ # Set the environment to production unless explicitly set
4
17
  ENV['WATCH_TOWER_ENV'] ||= 'production'
5
-
18
+ # Add the lib folder to the load path
6
19
  $:.push File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
7
-
20
+ # Load watch_tower
8
21
  require 'watch_tower'
9
-
10
- WatchTower::CLI::Runner.start
22
+ # Start the CLI
23
+ WatchTower::CLI::Runner.start
@@ -1,8 +1,15 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  begin
4
+ require 'rubygems'
4
5
  require 'appscript'
5
6
  rescue LoadError
7
+ require 'rbconfig'
8
+ if RbConfig::CONFIG['target_os'] =~ /darwin/i
9
+ STDERR.puts "Please install 'rb-appscript' to use this gem with Textmate and Xcode"
10
+ STDERR.puts "gem install rb-appscript"
11
+ end
12
+
6
13
  # Define a part of the Appscript gem so WatchTower is fully operational
7
14
  module ::Appscript
8
15
  CommandError = Class.new(Exception)
@@ -4,7 +4,7 @@ module WatchTower
4
4
  MAJOR = 0
5
5
  MINOR = 0
6
6
  TINY = 1
7
- PRE = 'beta6'
7
+ PRE = 'beta7'
8
8
 
9
9
  def self.version
10
10
  # Init the version
data/watch_tower.gemspec CHANGED
@@ -1,7 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
  require "watch_tower/version"
4
- require 'rbconfig'
5
4
 
6
5
  Gem::Specification.new do |s|
7
6
  s.name = "watch_tower"
@@ -45,9 +44,6 @@ MSG
45
44
  # Run-time dependencies
46
45
  ####
47
46
 
48
- # Appscript
49
- s.add_dependency 'rb-appscript', '~>0.6.1' if RbConfig::CONFIG['target_os'] =~ /darwin/i
50
-
51
47
  # Active Support
52
48
  s.add_dependency 'activesupport', '~>3.1.1'
53
49
  s.add_dependency 'i18n', '~>0.6.0'
@@ -73,7 +69,7 @@ MSG
73
69
  s.add_dependency 'systemu', '~>2.4.0'
74
70
 
75
71
  # Crontab editor
76
- s.add_dependency 'cronedit', '~>0.3.0' if RbConfig::CONFIG['target_os'] =~ /linux/i
72
+ s.add_dependency 'cronedit', '~>0.3.0'
77
73
 
78
74
  ####
79
75
  # Development dependencies
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watch_tower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta6
4
+ version: 0.0.1.beta7
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &6330800 !ruby/object:Gem::Requirement
16
+ requirement: &6301240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *6330800
24
+ version_requirements: *6301240
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: i18n
27
- requirement: &6359580 !ruby/object:Gem::Requirement
27
+ requirement: &6300640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.6.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *6359580
35
+ version_requirements: *6300640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: activerecord
38
- requirement: &6358440 !ruby/object:Gem::Requirement
38
+ requirement: &6299840 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 3.1.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *6358440
46
+ version_requirements: *6299840
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sinatra
49
- requirement: &6357900 !ruby/object:Gem::Requirement
49
+ requirement: &6315020 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.3.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *6357900
57
+ version_requirements: *6315020
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sinatra-snap
60
- requirement: &6357240 !ruby/object:Gem::Requirement
60
+ requirement: &6313040 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.3.2
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *6357240
68
+ version_requirements: *6313040
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: haml
71
- requirement: &6356460 !ruby/object:Gem::Requirement
71
+ requirement: &6310680 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 3.1.3
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *6356460
79
+ version_requirements: *6310680
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: grit
82
- requirement: &6355560 !ruby/object:Gem::Requirement
82
+ requirement: &6338160 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 2.4.1
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *6355560
90
+ version_requirements: *6338160
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: coffee-script
93
- requirement: &6354640 !ruby/object:Gem::Requirement
93
+ requirement: &6336560 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 2.2.0
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *6354640
101
+ version_requirements: *6336560
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: uglifier
104
- requirement: &6353980 !ruby/object:Gem::Requirement
104
+ requirement: &6335200 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 1.0.3
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *6353980
112
+ version_requirements: *6335200
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: sass
115
- requirement: &6352860 !ruby/object:Gem::Requirement
115
+ requirement: &6333680 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 3.1.10
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *6352860
123
+ version_requirements: *6333680
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: sprockets
126
- requirement: &6377260 !ruby/object:Gem::Requirement
126
+ requirement: &6332500 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 2.0.2
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *6377260
134
+ version_requirements: *6332500
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: systemu
137
- requirement: &6375260 !ruby/object:Gem::Requirement
137
+ requirement: &6331640 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ~>
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: 2.4.0
143
143
  type: :runtime
144
144
  prerelease: false
145
- version_requirements: *6375260
145
+ version_requirements: *6331640
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: cronedit
148
- requirement: &6374100 !ruby/object:Gem::Requirement
148
+ requirement: &6330720 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ~>
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: 0.3.0
154
154
  type: :runtime
155
155
  prerelease: false
156
- version_requirements: *6374100
156
+ version_requirements: *6330720
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: guard
159
- requirement: &6369520 !ruby/object:Gem::Requirement
159
+ requirement: &6359520 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ~>
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: 0.8.4
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *6369520
167
+ version_requirements: *6359520
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: guard-bundler
170
- requirement: &6393760 !ruby/object:Gem::Requirement
170
+ requirement: &6358560 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ~>
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: 0.1.3
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *6393760
178
+ version_requirements: *6358560
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: guard-rspec
181
- requirement: &6392440 !ruby/object:Gem::Requirement
181
+ requirement: &6358020 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ~>
@@ -186,10 +186,10 @@ dependencies:
186
186
  version: 0.4.5
187
187
  type: :development
188
188
  prerelease: false
189
- version_requirements: *6392440
189
+ version_requirements: *6358020
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: guard-sprockets2
192
- requirement: &6391200 !ruby/object:Gem::Requirement
192
+ requirement: &6357400 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ~>
@@ -197,10 +197,10 @@ dependencies:
197
197
  version: 0.0.5
198
198
  type: :development
199
199
  prerelease: false
200
- version_requirements: *6391200
200
+ version_requirements: *6357400
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: yard
203
- requirement: &6389500 !ruby/object:Gem::Requirement
203
+ requirement: &6356720 !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
206
206
  - - ~>
@@ -208,10 +208,10 @@ dependencies:
208
208
  version: 0.7.2
209
209
  type: :development
210
210
  prerelease: false
211
- version_requirements: *6389500
211
+ version_requirements: *6356720
212
212
  - !ruby/object:Gem::Dependency
213
213
  name: rspec
214
- requirement: &6388380 !ruby/object:Gem::Requirement
214
+ requirement: &6355760 !ruby/object:Gem::Requirement
215
215
  none: false
216
216
  requirements:
217
217
  - - ~>
@@ -219,10 +219,10 @@ dependencies:
219
219
  version: 2.6.0
220
220
  type: :development
221
221
  prerelease: false
222
- version_requirements: *6388380
222
+ version_requirements: *6355760
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: rspec-rails
225
- requirement: &6412760 !ruby/object:Gem::Requirement
225
+ requirement: &6354780 !ruby/object:Gem::Requirement
226
226
  none: false
227
227
  requirements:
228
228
  - - ~>
@@ -230,10 +230,10 @@ dependencies:
230
230
  version: 2.6.1
231
231
  type: :development
232
232
  prerelease: false
233
- version_requirements: *6412760
233
+ version_requirements: *6354780
234
234
  - !ruby/object:Gem::Dependency
235
235
  name: capybara
236
- requirement: &6409600 !ruby/object:Gem::Requirement
236
+ requirement: &6354080 !ruby/object:Gem::Requirement
237
237
  none: false
238
238
  requirements:
239
239
  - - ~>
@@ -241,10 +241,10 @@ dependencies:
241
241
  version: 1.1.1
242
242
  type: :development
243
243
  prerelease: false
244
- version_requirements: *6409600
244
+ version_requirements: *6354080
245
245
  - !ruby/object:Gem::Dependency
246
246
  name: launchy
247
- requirement: &6407740 !ruby/object:Gem::Requirement
247
+ requirement: &6352980 !ruby/object:Gem::Requirement
248
248
  none: false
249
249
  requirements:
250
250
  - - ~>
@@ -252,10 +252,10 @@ dependencies:
252
252
  version: 2.0.5
253
253
  type: :development
254
254
  prerelease: false
255
- version_requirements: *6407740
255
+ version_requirements: *6352980
256
256
  - !ruby/object:Gem::Dependency
257
257
  name: mocha
258
- requirement: &6406480 !ruby/object:Gem::Requirement
258
+ requirement: &6351880 !ruby/object:Gem::Requirement
259
259
  none: false
260
260
  requirements:
261
261
  - - ~>
@@ -263,10 +263,10 @@ dependencies:
263
263
  version: 0.10.0
264
264
  type: :development
265
265
  prerelease: false
266
- version_requirements: *6406480
266
+ version_requirements: *6351880
267
267
  - !ruby/object:Gem::Dependency
268
268
  name: factory_girl
269
- requirement: &6405640 !ruby/object:Gem::Requirement
269
+ requirement: &6375220 !ruby/object:Gem::Requirement
270
270
  none: false
271
271
  requirements:
272
272
  - - ~>
@@ -274,10 +274,10 @@ dependencies:
274
274
  version: 2.1.2
275
275
  type: :development
276
276
  prerelease: false
277
- version_requirements: *6405640
277
+ version_requirements: *6375220
278
278
  - !ruby/object:Gem::Dependency
279
279
  name: timecop
280
- requirement: &6421720 !ruby/object:Gem::Requirement
280
+ requirement: &6374000 !ruby/object:Gem::Requirement
281
281
  none: false
282
282
  requirements:
283
283
  - - ~>
@@ -285,10 +285,10 @@ dependencies:
285
285
  version: 0.3.5
286
286
  type: :development
287
287
  prerelease: false
288
- version_requirements: *6421720
288
+ version_requirements: *6374000
289
289
  - !ruby/object:Gem::Dependency
290
290
  name: pry
291
- requirement: &6420420 !ruby/object:Gem::Requirement
291
+ requirement: &6369980 !ruby/object:Gem::Requirement
292
292
  none: false
293
293
  requirements:
294
294
  - - ~>
@@ -296,7 +296,7 @@ dependencies:
296
296
  version: 0.9.6.2
297
297
  type: :development
298
298
  prerelease: false
299
- version_requirements: *6420420
299
+ version_requirements: *6369980
300
300
  description: ! 'Did you ever want to keep track of how much time you _really_ spend
301
301
  on all of
302
302