redcar-dev 0.12.14dev-java → 0.12.15dev-java

Sign up to get free protection for your applications and to get access to all the features.
data/lib/redcar.rb CHANGED
@@ -57,7 +57,7 @@ end
57
57
  #
58
58
  # and so on.
59
59
  module Redcar
60
- VERSION = '0.12.14dev' # also change in the gemspec!
60
+ VERSION = '0.12.15dev' # also change in the gemspec!
61
61
  VERSION_MAJOR = 0
62
62
  VERSION_MINOR = 12
63
63
  VERSION_RELEASE = 0
@@ -2,6 +2,7 @@
2
2
  module Redcar
3
3
  class ApplicationSWT
4
4
  class HtmlTab < Tab
5
+
5
6
  attr_reader :browser
6
7
 
7
8
  def initialize(model, notebook)
@@ -13,7 +14,7 @@ module Redcar
13
14
  Swt::Graphics::Device.DEBUG = true
14
15
  if Redcar.platform == :windows
15
16
  java.lang.System.setProperty('org.eclipse.swt.browser.XULRunnerPath',
16
- (Redcar.asset_dir + "/xulrunner").gsub("/", "\\"))
17
+ HtmlTab.windows_xulrunner_path.gsub("/", "\\"))
17
18
  @browser = Swt::Browser.new(notebook.tab_folder, Swt::SWT::MOZILLA)
18
19
  else
19
20
  @browser = Swt::Browser.new(notebook.tab_folder, Swt::SWT::NONE)
@@ -63,6 +64,16 @@ module Redcar
63
64
  @location_listener = LocationListener.new(@model)
64
65
  @browser.add_location_listener(@location_listener)
65
66
  end
67
+
68
+ def self.windows_xulrunner_path
69
+ begin
70
+ require 'redcar-xulrunner-win'
71
+ rescue LoadError => e
72
+ raise "Missing xulrunner browser widget, install gem redcar-xulrunner-win."
73
+ end
74
+ Redcar::XulrunnerWin.ensure_unpacked
75
+ Redcar::XulrunnerWin.path
76
+ end
66
77
  end
67
78
  end
68
79
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: redcar-dev
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 7
5
- version: 0.12.14dev
5
+ version: 0.12.15dev
6
6
  platform: java
7
7
  authors:
8
8
  - Daniel Lucraft
@@ -80,7 +80,7 @@ dependencies:
80
80
  type: :runtime
81
81
  version_requirements: *id006
82
82
  - !ruby/object:Gem::Dependency
83
- name: rubyzip
83
+ name: net-sftp
84
84
  prerelease: false
85
85
  requirement: &id007 !ruby/object:Gem::Requirement
86
86
  none: false
@@ -91,7 +91,7 @@ dependencies:
91
91
  type: :runtime
92
92
  version_requirements: *id007
93
93
  - !ruby/object:Gem::Dependency
94
- name: net-sftp
94
+ name: net-ftp-list
95
95
  prerelease: false
96
96
  requirement: &id008 !ruby/object:Gem::Requirement
97
97
  none: false
@@ -102,7 +102,7 @@ dependencies:
102
102
  type: :runtime
103
103
  version_requirements: *id008
104
104
  - !ruby/object:Gem::Dependency
105
- name: net-ftp-list
105
+ name: jruby-openssl
106
106
  prerelease: false
107
107
  requirement: &id009 !ruby/object:Gem::Requirement
108
108
  none: false
@@ -113,7 +113,7 @@ dependencies:
113
113
  type: :runtime
114
114
  version_requirements: *id009
115
115
  - !ruby/object:Gem::Dependency
116
- name: jruby-openssl
116
+ name: ruby-blockcache
117
117
  prerelease: false
118
118
  requirement: &id010 !ruby/object:Gem::Requirement
119
119
  none: false
@@ -124,7 +124,7 @@ dependencies:
124
124
  type: :runtime
125
125
  version_requirements: *id010
126
126
  - !ruby/object:Gem::Dependency
127
- name: ruby-blockcache
127
+ name: bouncy-castle-java
128
128
  prerelease: false
129
129
  requirement: &id011 !ruby/object:Gem::Requirement
130
130
  none: false
@@ -135,7 +135,7 @@ dependencies:
135
135
  type: :runtime
136
136
  version_requirements: *id011
137
137
  - !ruby/object:Gem::Dependency
138
- name: bouncy-castle-java
138
+ name: swt
139
139
  prerelease: false
140
140
  requirement: &id012 !ruby/object:Gem::Requirement
141
141
  none: false
@@ -146,7 +146,7 @@ dependencies:
146
146
  type: :runtime
147
147
  version_requirements: *id012
148
148
  - !ruby/object:Gem::Dependency
149
- name: swt
149
+ name: plugin_manager
150
150
  prerelease: false
151
151
  requirement: &id013 !ruby/object:Gem::Requirement
152
152
  none: false
@@ -157,7 +157,7 @@ dependencies:
157
157
  type: :runtime
158
158
  version_requirements: *id013
159
159
  - !ruby/object:Gem::Dependency
160
- name: plugin_manager
160
+ name: redcar-icons
161
161
  prerelease: false
162
162
  requirement: &id014 !ruby/object:Gem::Requirement
163
163
  none: false
@@ -168,7 +168,7 @@ dependencies:
168
168
  type: :runtime
169
169
  version_requirements: *id014
170
170
  - !ruby/object:Gem::Dependency
171
- name: redcar-icons
171
+ name: redcar-svnkit
172
172
  prerelease: false
173
173
  requirement: &id015 !ruby/object:Gem::Requirement
174
174
  none: false
@@ -179,7 +179,7 @@ dependencies:
179
179
  type: :runtime
180
180
  version_requirements: *id015
181
181
  - !ruby/object:Gem::Dependency
182
- name: redcar-svnkit
182
+ name: redcar-bundles
183
183
  prerelease: false
184
184
  requirement: &id016 !ruby/object:Gem::Requirement
185
185
  none: false
@@ -190,7 +190,7 @@ dependencies:
190
190
  type: :runtime
191
191
  version_requirements: *id016
192
192
  - !ruby/object:Gem::Dependency
193
- name: redcar-bundles
193
+ name: redcar-javamateview
194
194
  prerelease: false
195
195
  requirement: &id017 !ruby/object:Gem::Requirement
196
196
  none: false
@@ -201,7 +201,7 @@ dependencies:
201
201
  type: :runtime
202
202
  version_requirements: *id017
203
203
  - !ruby/object:Gem::Dependency
204
- name: redcar-javamateview
204
+ name: cucumber
205
205
  prerelease: false
206
206
  requirement: &id018 !ruby/object:Gem::Requirement
207
207
  none: false
@@ -209,10 +209,10 @@ dependencies:
209
209
  - - ">="
210
210
  - !ruby/object:Gem::Version
211
211
  version: "0"
212
- type: :runtime
212
+ type: :development
213
213
  version_requirements: *id018
214
214
  - !ruby/object:Gem::Dependency
215
- name: cucumber
215
+ name: rspec
216
216
  prerelease: false
217
217
  requirement: &id019 !ruby/object:Gem::Requirement
218
218
  none: false
@@ -223,7 +223,7 @@ dependencies:
223
223
  type: :development
224
224
  version_requirements: *id019
225
225
  - !ruby/object:Gem::Dependency
226
- name: rspec
226
+ name: watchr
227
227
  prerelease: false
228
228
  requirement: &id020 !ruby/object:Gem::Requirement
229
229
  none: false
@@ -233,17 +233,6 @@ dependencies:
233
233
  version: "0"
234
234
  type: :development
235
235
  version_requirements: *id020
236
- - !ruby/object:Gem::Dependency
237
- name: watchr
238
- prerelease: false
239
- requirement: &id021 !ruby/object:Gem::Requirement
240
- none: false
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- version: "0"
245
- type: :development
246
- version_requirements: *id021
247
236
  description: ""
248
237
  email:
249
238
  - dan@fluentradical.com