high_five 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- high_five (0.1.1)
4
+ high_five (0.1.3)
5
5
  compass (~> 0.12.2)
6
6
  multi_json (~> 1.0)
7
7
  sprockets (~> 2.9.0)
@@ -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
@@ -1,6 +1,7 @@
1
1
  require 'sprockets'
2
2
  require 'sass'
3
3
  require 'uglifier'
4
+ require "yui/compressor"
4
5
 
5
6
  module HighFive
6
7
  module DeployTask
@@ -1,3 +1,3 @@
1
1
  module HighFive
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/spec/deploy_spec.rb CHANGED
@@ -112,7 +112,7 @@ describe HighFive::DeployTask do
112
112
  config.manifest = true
113
113
  end
114
114
  config.environment :production do |prod|
115
-
115
+ prod.minify = :yui
116
116
  end
117
117
 
118
118
  end
@@ -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
- # config.platform :ios do |ios|
26
- # ios.assets "resources/ios"
27
- # ios.destination = "www-ios"
28
- # end
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
- # config.environment :production do |prod|
37
- # production.javascripts "settings/production.js"
38
- # production.setting base_url: "http://production.example.com/api/" #these take precedence over the platform overrides
39
- # end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: high_five
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: