high_five 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/high_five/config.rb +6 -0
- data/lib/high_five/deploy_task.rb +1 -0
- data/lib/high_five/version.rb +1 -1
- data/spec/deploy_spec.rb +1 -1
- data/template/config/high_five.rb +21 -8
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/high_five/config.rb
CHANGED
@@ -165,5 +165,11 @@ module HighFive
|
|
165
165
|
js
|
166
166
|
end
|
167
167
|
|
168
|
+
def windows!
|
169
|
+
ExecJS::Runtimes::JScript.instance_variable_set(:"@encoding", "UTF-8")
|
170
|
+
ExecJS::Runtimes::JScript.instance_variable_set(:"@command", "cscript //E:jscript //Nologo")
|
171
|
+
ExecJS::Runtimes::JScript.instance_variable_set(:"@binary", "cscript //E:jscript //Nologo")
|
172
|
+
end
|
173
|
+
|
168
174
|
end
|
169
175
|
end
|
data/lib/high_five/version.rb
CHANGED
data/spec/deploy_spec.rb
CHANGED
@@ -2,6 +2,9 @@ HighFive::Config.configure do |config|
|
|
2
2
|
config.root = File.join(File.dirname(__FILE__), '..')
|
3
3
|
config.destination = "www"
|
4
4
|
|
5
|
+
# Uncomment this if you're on windows and having problems with a strange ExecJS RuntimeError
|
6
|
+
# config.windows!
|
7
|
+
|
5
8
|
# This will add the resources folder to all platforms (stylesheets etc.)
|
6
9
|
# config.assets "resources"
|
7
10
|
|
@@ -22,10 +25,15 @@ HighFive::Config.configure do |config|
|
|
22
25
|
# config.setting base_url: "http://dev.example.com/api" # HighFive.settings.base_url = "http://dev.example.com/api"
|
23
26
|
|
24
27
|
# Configure plaform specific settings like this
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
28
|
+
config.platform :ios do |ios|
|
29
|
+
ios.destination = "www-ios"
|
30
|
+
# ios.assets "resources/ios"
|
31
|
+
end
|
32
|
+
|
33
|
+
config.platform :android do |android|
|
34
|
+
android.destination = "www-android"
|
35
|
+
# android.assets "resources/android"
|
36
|
+
end
|
29
37
|
|
30
38
|
# if you need platform-specific javascripts,
|
31
39
|
# simply create app-<platform>.js
|
@@ -33,9 +41,14 @@ HighFive::Config.configure do |config|
|
|
33
41
|
|
34
42
|
# Environment support: production/development/etc
|
35
43
|
# Environments work just like platforms
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
44
|
+
config.envrionment :development do |development|
|
45
|
+
# development.javascripts "lib/some-library-debug-all.js"
|
46
|
+
# development.setting base_url: "http://dev.example.com:1234/api/"
|
47
|
+
end
|
48
|
+
|
49
|
+
config.environment :production do |production|
|
50
|
+
# production.javascripts "lib/some-library-minified.js"
|
51
|
+
# production.setting base_url: "http://production.example.com/api/" #these take precedence over the platform overrides
|
52
|
+
end
|
40
53
|
|
41
54
|
end
|