high_five 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e5fc25c5aa37ca5a2283a88b7cb2dad46e66423b
4
- data.tar.gz: ca7b7b5583209ff0c92f0c11a94a0d0a0f471410
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MjUxOGZjNmE0MmY5YzM4OWZmYjE1OWExYzU5NmY4MTRhY2Q2MjkxNQ==
5
+ data.tar.gz: !binary |-
6
+ NGYxYzgyZjY1OWQwZmY1YmNiYTNmZDBmZDgzOWRlMzM0ZmFiYmM4ZA==
5
7
  SHA512:
6
- metadata.gz: c9b5e81d53e7998e4d9c6e1ae3addf200cb39979f9b3f2bb01c93324a36629cc5d9cc22a2fa9a11e027bcc3f12f5cc00036850f105c5a77558e2f1ca52027c68
7
- data.tar.gz: eb9756286630d751c54280713f612acfb3db3601b4a3597dbe5b060f321ca22938d5a3c1f6ed0d5e2dce1ffe7b495c55f35e0be232eff481bfa087f9b3732353
8
+ metadata.gz: !binary |-
9
+ MWRjZTkwOTMzMDk2NmIwMTI5MmQ0YjI4ZDU1NWI1NjdiZTllNWFmNTM3ZTk4
10
+ NGUwNDc5ZTA2Y2RjZDczMTU0MTAzNWQxZWY2ZTJjZmYwNGQyZjY4Njc5MTcx
11
+ NDQ4MzM1Nzc0M2Q3MDBlOTM2NmQ2ZDBhZjhjMDc5ZjhjOGQxNjc=
12
+ data.tar.gz: !binary |-
13
+ N2M3MTBjMWUyOTE2N2U2NDE1NTNjMGUwMDYzNzk4ZThlNGMyNjc3NjM0Mzk1
14
+ MGM2YTJkMTRiM2FkMTZmMWU2MTQ1MzYyMjc2ZmY3Y2E3YjJjNzIyNWIwMzI0
15
+ YjBhMDQ1NTU3OTAwZDYwZTJjOTBiZTZlYzdjYjBiYmY3ZTMyYzc=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- high_five (0.2.0)
4
+ high_five (0.2.2)
5
5
  chunky_png
6
6
  coffee-script (~> 2.2.0)
7
7
  compass (~> 0.12.2)
@@ -20,24 +20,24 @@ GEM
20
20
  Platform (>= 0.4.0)
21
21
  open4
22
22
  Platform (0.4.0)
23
- chunky_png (1.2.9)
23
+ chunky_png (1.3.0)
24
24
  coffee-script (2.2.0)
25
25
  coffee-script-source
26
26
  execjs
27
- coffee-script-source (1.6.3)
28
- compass (0.12.2)
27
+ coffee-script-source (1.7.0)
28
+ compass (0.12.4)
29
29
  chunky_png (~> 1.2)
30
30
  fssm (>= 0.2.7)
31
- sass (~> 3.1)
31
+ sass (~> 3.2.17)
32
32
  diff-lcs (1.2.5)
33
33
  execjs (2.0.2)
34
34
  fssm (0.2.10)
35
35
  hike (1.2.3)
36
- mini_portile (0.5.2)
37
- multi_json (1.8.4)
36
+ mini_portile (0.5.3)
37
+ multi_json (1.9.2)
38
38
  nokogiri (1.6.1)
39
39
  mini_portile (~> 0.5.0)
40
- open4 (1.3.0)
40
+ open4 (1.3.3)
41
41
  plist (3.1.0)
42
42
  rack (1.5.2)
43
43
  rspec (2.13.0)
@@ -48,8 +48,8 @@ GEM
48
48
  rspec-expectations (2.13.0)
49
49
  diff-lcs (>= 1.1.3, < 2.0)
50
50
  rspec-mocks (2.13.1)
51
- sass (3.2.13)
52
- sprockets (2.10.1)
51
+ sass (3.2.19)
52
+ sprockets (2.12.0)
53
53
  hike (~> 1.2)
54
54
  multi_json (~> 1.0)
55
55
  rack (~> 1.0)
@@ -14,6 +14,7 @@ module HighFive
14
14
  method_option :output_file_name, :aliases => "-o", :desc => "Name of the final output file. Defaults to project_name.apk/ipa"
15
15
  method_option :sign_identity, :aliases => "-s", :desc => "Full name of the code sign identity for use by xcode"
16
16
  method_option :provisioning_profile, :aliases => "-p", :desc => "Path to the provisioning profile"
17
+ method_option :target, :desc => "iOS target to build"
17
18
  def dist(platform)
18
19
  @output_file_name = options[:output_file_name]
19
20
  @sign_identity = options[:sign_identity]
@@ -29,13 +30,7 @@ module HighFive
29
30
  manifest_path = android_manifest_path
30
31
  android_path = File.dirname(manifest_path)
31
32
 
32
- system("android update project --path #{android_path} --subprojects")
33
- system("ant -file '#{android_path}/build.xml' release")
34
-
35
- android_name = HighFive::AndroidHelper.project_name_from_build_xml("#{android_path}/build.xml")
36
- if @output_file_name
37
- FileUtils.cp("#{android_path}/bin/#{android_name}-release.apk", "#{android_path}/bin/#{@output_file_name}.apk")
38
- end
33
+ dist_android(android_path)
39
34
  elsif @platform == "ios"
40
35
  raise "Please pass in the code sign identity to build an ios app. -s [sign_identity]" if @sign_identity.nil?
41
36
  raise "Please pass in the path to the provisioning profile to build an ios app. -p [provisioning_profile]" if @provisioning_profile.nil?
@@ -47,16 +42,30 @@ module HighFive
47
42
  end
48
43
 
49
44
  ios_project_name = File.basename(Dir[ios_path + "/*.xcodeproj"].first, '.xcodeproj')
45
+ ios_target = options[:target] || ios_project_name
50
46
  keychain = ios_project_name.gsub(/\s/, '').gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').gsub(/([a-z\d])([A-Z])/,'\1_\2').tr("-", "_").downcase + '-ios.keychain'
51
47
 
52
- @output_file_name ||= ios_project_name
48
+ @output_file_name ||= ios_target
53
49
 
54
50
  uuid = HighFive::IosHelper.uuid_from_mobileprovision(@provisioning_profile)
55
51
  ENV['uuid'] = uuid
56
52
  FileUtils.cp(@provisioning_profile, "#{ENV['HOME']}/Library/MobileDevice/Provisioning Profiles/#{uuid}.mobileprovision")
57
53
  system(%Q(cd "#{ios_path}";
58
- /usr/bin/xcodebuild -target "#{ios_project_name}" -configuration Release build "CONFIGURATION_BUILD_DIR=#{ios_path}/build" "CODE_SIGN_IDENTITY=#{@sign_identity}" PROVISIONING_PROFILE=$uuid))
59
- system(%Q(/usr/bin/xcrun -sdk iphoneos PackageApplication -v "#{ios_path}/build/#{ios_project_name}.app" -o "#{ios_path}/build/#{@output_file_name}.ipa" --embed "#{@provisioning_profile}" --sign "#{@sign_identity}"))
54
+ /usr/bin/xcodebuild -target "#{ios_target}" -configuration Release build "CONFIGURATION_BUILD_DIR=#{ios_path}/build" "CODE_SIGN_IDENTITY=#{@sign_identity}" PROVISIONING_PROFILE=$uuid))
55
+ system(%Q(/usr/bin/xcrun -sdk iphoneos PackageApplication -v "#{ios_path}/build/#{ios_target}.app" -o "#{ios_path}/build/#{@output_file_name}.ipa" --embed "#{@provisioning_profile}" --sign "#{@sign_identity}"))
56
+ end
57
+ end
58
+
59
+ desc "dist_android [ANDROID_PATH]", "Create a distribution package for android"
60
+ method_option :output_file_name, :aliases => "-o", :desc => "Name of the final output file. Defaults to project_name.apk/ipa"
61
+ def dist_android(android_path)
62
+ @output_file_name = options[:output_file_name]
63
+ system("android update project --path #{android_path} --subprojects")
64
+ system("ant -file '#{android_path}/build.xml' release")
65
+
66
+ android_name = HighFive::AndroidHelper.project_name_from_build_xml("#{android_path}/build.xml")
67
+ if @output_file_name
68
+ FileUtils.cp("#{android_path}/bin/#{android_name}-release.apk", "#{android_path}/bin/#{@output_file_name}.apk")
60
69
  end
61
70
  end
62
71
  end
@@ -1,3 +1,3 @@
1
1
  module HighFive
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: high_five
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Samson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-04 00:00:00.000000000 Z
11
+ date: 2014-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -84,14 +84,14 @@ dependencies:
84
84
  name: sprockets
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '2.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '2.0'
97
97
  - !ruby/object:Gem::Dependency
@@ -112,42 +112,42 @@ dependencies:
112
112
  name: plist
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '3.0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '3.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: nokogiri
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ! '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: 1.5.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: 1.5.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: chunky_png
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ! '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ! '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
@@ -164,8 +164,8 @@ dependencies:
164
164
  - - ~>
165
165
  - !ruby/object:Gem::Version
166
166
  version: 2.13.0
167
- description: "Build, minify, and deal with different platforms and environments for
168
- your HTML5 app.\n This is often used with PhoneGap but designed not to require
167
+ description: ! "Build, minify, and deal with different platforms and environments
168
+ for your HTML5 app.\n This is often used with PhoneGap but designed not to require
169
169
  it, and high_five can be used to deploy any kind of HTML/JS/CSS-based\n application
170
170
  that requires different deployment configurations.\n "
171
171
  email:
@@ -240,17 +240,17 @@ require_paths:
240
240
  - lib
241
241
  required_ruby_version: !ruby/object:Gem::Requirement
242
242
  requirements:
243
- - - '>='
243
+ - - ! '>='
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - '>='
248
+ - - ! '>='
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
252
  rubyforge_project:
253
- rubygems_version: 2.1.11
253
+ rubygems_version: 2.2.2
254
254
  signing_key:
255
255
  specification_version: 4
256
256
  summary: HighFive is a set of build scripts and tools for packing HTML5 apps both