sp 0.0.1 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source :rubygems
2
2
  gem "OptionParser"
3
-
3
+ gem "json"
4
4
  group :development do
5
5
  gem "bundler"
6
6
  gem "jeweler"
@@ -20,3 +20,4 @@ DEPENDENCIES
20
20
  OptionParser
21
21
  bundler
22
22
  jeweler
23
+ json
data/README CHANGED
@@ -1,8 +1,23 @@
1
- To install run these commands:
1
+ Installation
2
+ ===========
3
+ As a 3rd party developer, just "sudo gem install sp"
4
+
5
+ Usage
6
+ =====
7
+ [[TODO: finish these docs]]
8
+ You can then run
9
+ spaceport bundle -c [path to .config file] -o [ path where you would like your bundle ] -m [ path to root of your server ]
10
+
11
+
12
+ Development
13
+ ===========
14
+
15
+ If you would like to actually modify this plugin
16
+ To build ( and install ) run these commands:
2
17
  sudo gem install bundle
3
18
  bundle install
4
19
  rake build
5
20
  sudo rake install
6
21
 
7
- You can then run
8
- spaceport bundle -c [path to .config file] -o [ path where you would like your bundle ] -m [ path to root of your server ]
22
+
23
+
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ Jeweler::Tasks.new do |gem|
19
19
  gem.description = %Q{Seriously, this thing is great}
20
20
  gem.email = "daniel@sibblingz.com"
21
21
  gem.authors = ["djacobs7"]
22
- gem.version = "0.0.1"
22
+ gem.version = "3.3.1"
23
23
 
24
24
  # dependencies defined in Gemfile
25
25
  end
@@ -171,25 +171,74 @@ def generate_manifest
171
171
  end
172
172
 
173
173
 
174
- print_size_information( file_list )
175
-
176
- xml_file_list = file_list.map do |value|
177
- "\t<file " + value.map {|k,v| k.to_s + "=\"#{v}\"" }.join(" ") + "/>"
174
+ def generate_manifest_3_3( file_list )
175
+ prefix = <<-eos
176
+ <?xml version="1.0" encoding="utf-8"?>
177
+ <manifest version="THIS_DOES_NOTHING" platform="3.3">
178
+ eos
179
+
180
+ plugins = <<-eos
181
+ <plugins>
182
+ <entry id="io.spaceport.plugins.chartboost" version="3.3.0"/>
183
+ <entry id="io.spaceport.plugins.facebook" version="3.3.0"/>
184
+ <entry id="io.spaceport.plugins.flurry" version="3.3.0"/>
185
+ <entry id="io.spaceport.plugins.localnotifications" version="3.3.0"/>
186
+ <entry id="io.spaceport.plugins.mail" version="3.3.0"/>
187
+ <entry id="io.spaceport.plugins.market" version="3.3.0"/>
188
+ <entry id="io.spaceport.plugins.remotenotifications" version="3.3.0"/>
189
+ <entry id="io.spaceport.plugins.sms" version="3.3.0"/>
190
+ <entry id="io.spaceport.plugins.tapjoy" version="3.3.0"/>
191
+ <entry id="io.spaceport.plugins.twitter" version="3.3.0"/>
192
+ <entry id="io.spaceport.plugins.particle" version="3.3.0"/>
193
+ </plugins>
194
+ eos
195
+
196
+ xml_file_list = file_list.map do |_value|
197
+ value = _value.dup
198
+ value[:id] = value[:name]
199
+ value.delete(:name)
200
+ "\t<entry " + value.map {|k,v| k.to_s + "=\"#{v}\"" }.join(" ") + "/>"
201
+ end
202
+
203
+ startup = <<-eos
204
+ <startup>
205
+ #{xml_file_list.join("\n")}
206
+ </startup>
207
+ eos
208
+
209
+ suffix = <<-eos
210
+ <code></code>
211
+ <assets></assets>
212
+ </manifest>
213
+ eos
214
+
215
+ output = prefix + plugins + startup + suffix
178
216
  end
179
217
 
180
- prefix = <<-eos
181
- <?xml version="1.0" encoding="utf-8"?>
182
- <manifest version="3.02">
183
- <files>
184
- eos
218
+ def generate_manifest_3_02( file_list )
219
+ xml_file_list = file_list.map do |value|
220
+ "\t<file " + value.map {|k,v| k.to_s + "=\"#{v}\"" }.join(" ") + "/>"
221
+ end
222
+
223
+ prefix = <<-eos
224
+ <?xml version="1.0" encoding="utf-8"?>
225
+ <manifest version="3.02">
226
+ <files>
227
+ eos
185
228
 
186
- suffix = <<-eos
229
+ suffix = <<-eos
187
230
 
188
- </files>
189
- </manifest>
190
- eos
231
+ </files>
232
+ </manifest>
233
+ eos
191
234
 
192
- output = prefix + xml_file_list.join("\n") + suffix
235
+ output = prefix + xml_file_list.join("\n") + suffix
236
+ output
237
+ end
238
+
239
+ print_size_information( file_list )
240
+
241
+ output = generate_manifest_3_3( file_list )
193
242
 
194
243
 
195
244
  Dir.chdir( original_dir )
@@ -4,15 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{spaceport}
8
- s.version = "0.0.1"
7
+ s.name = "sp"
8
+ s.version = "3.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["djacobs7"]
12
- s.date = %q{2012-02-14}
13
- s.default_executable = %q{spaceport}
14
- s.description = %q{Seriously, this thing is great}
15
- s.email = %q{daniel@sibblingz.com}
12
+ s.date = "2012-04-03"
13
+ s.description = "Seriously, this thing is great"
14
+ s.email = "daniel@sibblingz.com"
16
15
  s.executables = ["spaceport"]
17
16
  s.extra_rdoc_files = [
18
17
  "README"
@@ -28,28 +27,31 @@ Gem::Specification.new do |s|
28
27
  "lib/generate_manifest.rb",
29
28
  "lib/lib.rb",
30
29
  "lib/server.rb",
31
- "spaceport.gemspec"
30
+ "sp.gemspec"
32
31
  ]
33
- s.homepage = %q{http://github.com/sibblingz/spaceport-publisher}
32
+ s.homepage = "http://github.com/sibblingz/spaceport-publisher"
34
33
  s.licenses = ["ALL OF THEM"]
35
34
  s.require_paths = ["lib"]
36
- s.rubygems_version = %q{1.6.2}
37
- s.summary = %q{Bundling tool for spaceport}
35
+ s.rubygems_version = "1.8.21"
36
+ s.summary = "Bundling tool for spaceport"
38
37
 
39
38
  if s.respond_to? :specification_version then
40
39
  s.specification_version = 3
41
40
 
42
41
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
42
  s.add_runtime_dependency(%q<OptionParser>, [">= 0"])
43
+ s.add_runtime_dependency(%q<json>, [">= 0"])
44
44
  s.add_development_dependency(%q<bundler>, [">= 0"])
45
45
  s.add_development_dependency(%q<jeweler>, [">= 0"])
46
46
  else
47
47
  s.add_dependency(%q<OptionParser>, [">= 0"])
48
+ s.add_dependency(%q<json>, [">= 0"])
48
49
  s.add_dependency(%q<bundler>, [">= 0"])
49
50
  s.add_dependency(%q<jeweler>, [">= 0"])
50
51
  end
51
52
  else
52
53
  s.add_dependency(%q<OptionParser>, [">= 0"])
54
+ s.add_dependency(%q<json>, [">= 0"])
53
55
  s.add_dependency(%q<bundler>, [">= 0"])
54
56
  s.add_dependency(%q<jeweler>, [">= 0"])
55
57
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sp
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 3.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - djacobs7
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-02-14 00:00:00 -08:00
14
- default_executable: spaceport
13
+ date: 2012-04-03 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: OptionParser
@@ -25,18 +24,18 @@ dependencies:
25
24
  prerelease: false
26
25
  version_requirements: *id001
27
26
  - !ruby/object:Gem::Dependency
28
- name: bundler
27
+ name: json
29
28
  requirement: &id002 !ruby/object:Gem::Requirement
30
29
  none: false
31
30
  requirements:
32
31
  - - ">="
33
32
  - !ruby/object:Gem::Version
34
33
  version: "0"
35
- type: :development
34
+ type: :runtime
36
35
  prerelease: false
37
36
  version_requirements: *id002
38
37
  - !ruby/object:Gem::Dependency
39
- name: jeweler
38
+ name: bundler
40
39
  requirement: &id003 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
@@ -46,6 +45,17 @@ dependencies:
46
45
  type: :development
47
46
  prerelease: false
48
47
  version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: jeweler
50
+ requirement: &id004 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "0"
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *id004
49
59
  description: Seriously, this thing is great
50
60
  email: daniel@sibblingz.com
51
61
  executables:
@@ -65,8 +75,7 @@ files:
65
75
  - lib/generate_manifest.rb
66
76
  - lib/lib.rb
67
77
  - lib/server.rb
68
- - spaceport.gemspec
69
- has_rdoc: true
78
+ - sp.gemspec
70
79
  homepage: http://github.com/sibblingz/spaceport-publisher
71
80
  licenses:
72
81
  - ALL OF THEM
@@ -80,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
89
  requirements:
81
90
  - - ">="
82
91
  - !ruby/object:Gem::Version
83
- hash: 400669750178125209
92
+ hash: -995605975913644909
84
93
  segments:
85
94
  - 0
86
95
  version: "0"
@@ -93,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
102
  requirements: []
94
103
 
95
104
  rubyforge_project:
96
- rubygems_version: 1.6.2
105
+ rubygems_version: 1.8.21
97
106
  signing_key:
98
107
  specification_version: 3
99
108
  summary: Bundling tool for spaceport