skypager 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/Gemfile +9 -0
  4. data/LICENSE.txt +22 -0
  5. data/Rakefile +21 -0
  6. data/bin/skypager +17 -0
  7. data/examples/.gitignore +4 -0
  8. data/examples/blog-site/.gitignore +18 -0
  9. data/examples/blog-site/.pryrc +4 -0
  10. data/examples/blog-site/Gemfile +8 -0
  11. data/examples/blog-site/config.rb +17 -0
  12. data/examples/blog-site/data/dropbox.json +1 -0
  13. data/examples/blog-site/source/images/background.png +0 -0
  14. data/examples/blog-site/source/images/middleman.png +0 -0
  15. data/examples/blog-site/source/index.html.erb +10 -0
  16. data/examples/blog-site/source/javascripts/all.js +1 -0
  17. data/examples/blog-site/source/layouts/layout.erb +19 -0
  18. data/examples/blog-site/source/posts/introduction-to-skypager.html.md +23 -0
  19. data/examples/blog-site/source/posts/skypager-and-dnsimple-and-amazon-web-services-combo.html.md +9 -0
  20. data/examples/blog-site/source/stylesheets/all.css +55 -0
  21. data/examples/blog-site/source/stylesheets/normalize.css +375 -0
  22. data/examples/gallery-site/.gitignore +18 -0
  23. data/examples/gallery-site/.pryrc +4 -0
  24. data/examples/gallery-site/Gemfile +11 -0
  25. data/examples/gallery-site/config.rb +38 -0
  26. data/examples/gallery-site/data/dropbox.json +1 -0
  27. data/examples/gallery-site/data/galleries.json +1 -0
  28. data/examples/gallery-site/source/gallery.html.erb +7 -0
  29. data/examples/gallery-site/source/images/background.png +0 -0
  30. data/examples/gallery-site/source/images/galleries/cristian-gallery-1/001.jpg +0 -0
  31. data/examples/gallery-site/source/images/galleries/cristian-gallery-1/002.jpg +0 -0
  32. data/examples/gallery-site/source/images/galleries/cristian-gallery-1/003.jpg +0 -0
  33. data/examples/gallery-site/source/images/galleries/cristian-gallery-1/004.jpg +0 -0
  34. data/examples/gallery-site/source/images/galleries/luca-gallery-1/001.jpg +0 -0
  35. data/examples/gallery-site/source/images/galleries/luca-gallery-1/002.JPG +0 -0
  36. data/examples/gallery-site/source/images/galleries/luca-gallery-1/003.jpg +0 -0
  37. data/examples/gallery-site/source/images/galleries/luca-gallery-1/004.JPG +0 -0
  38. data/examples/gallery-site/source/images/middleman.png +0 -0
  39. data/examples/gallery-site/source/index.html.erb +10 -0
  40. data/examples/gallery-site/source/javascripts/all.js +1 -0
  41. data/examples/gallery-site/source/layouts/layout.erb +20 -0
  42. data/examples/gallery-site/source/stylesheets/all.css +0 -0
  43. data/examples/gallery-site/source/stylesheets/normalize.css +375 -0
  44. data/examples/gallery-site/source/tutorial.md +151 -0
  45. data/lib/skypager.rb +92 -0
  46. data/lib/skypager/build_server.rb +17 -0
  47. data/lib/skypager/cli/commands/config.rb +58 -0
  48. data/lib/skypager/cli/commands/create.rb +98 -0
  49. data/lib/skypager/cli/commands/deploy.rb +30 -0
  50. data/lib/skypager/cli/commands/edit.rb +32 -0
  51. data/lib/skypager/cli/commands/list.rb +12 -0
  52. data/lib/skypager/cli/commands/setup.rb +124 -0
  53. data/lib/skypager/cli/commands/sync.rb +18 -0
  54. data/lib/skypager/configuration.rb +173 -0
  55. data/lib/skypager/data.rb +8 -0
  56. data/lib/skypager/data/excel_spreadsheet.rb +8 -0
  57. data/lib/skypager/data/google_spreadsheet.rb +225 -0
  58. data/lib/skypager/data/request.rb +12 -0
  59. data/lib/skypager/data/source.rb +171 -0
  60. data/lib/skypager/data/source_routes_proxy.rb +30 -0
  61. data/lib/skypager/dns.rb +65 -0
  62. data/lib/skypager/extension.rb +203 -0
  63. data/lib/skypager/middleman/commands/data.rb +0 -0
  64. data/lib/skypager/middleman/commands/deploy.rb +0 -0
  65. data/lib/skypager/middleman/commands/sync.rb +0 -0
  66. data/lib/skypager/site.rb +208 -0
  67. data/lib/skypager/sync.rb +23 -0
  68. data/lib/skypager/sync/amazon.rb +171 -0
  69. data/lib/skypager/sync/dropbox.rb +173 -0
  70. data/lib/skypager/sync/dropbox/delta.rb +67 -0
  71. data/lib/skypager/sync/folder.rb +235 -0
  72. data/lib/skypager/sync/google.rb +143 -0
  73. data/lib/skypager/tar.rb +77 -0
  74. data/lib/skypager/version.rb +3 -0
  75. data/skypager.gemspec +40 -0
  76. data/spec/lib/skypager/configuration_spec.rb +5 -0
  77. data/spec/lib/skypager/data_spec.rb +5 -0
  78. data/spec/lib/skypager/site_spec.rb +5 -0
  79. data/spec/spec_helper.rb +14 -0
  80. data/spec/support/json_helper.rb +7 -0
  81. metadata +383 -0
@@ -0,0 +1,3 @@
1
+ module Skypager
2
+ VERSION = "0.0.2"
3
+ end
data/skypager.gemspec ADDED
@@ -0,0 +1,40 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'skypager/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "skypager"
8
+ spec.version = Skypager::VERSION
9
+ spec.authors = ["Jonathan Soeder"]
10
+ spec.email = ["jonathan.soeder@gmail.com"]
11
+ spec.description = %q{Skypager is for launching your websites}
12
+ spec.summary = %q{Skypager lets people collaborate on advanced, dynamic sites using simple familiar tools}
13
+ spec.homepage = "http://skypager.io"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'hashie'
22
+ spec.add_dependency 'commander'
23
+ spec.add_dependency 'aws-sdk'
24
+ spec.add_dependency 'fog'
25
+ spec.add_dependency 'dropbox-api', '>= 0.4.6'
26
+ spec.add_dependency 'google_drive'
27
+ spec.add_dependency 'middleman'
28
+ spec.add_dependency 'rack-contrib'
29
+ spec.add_dependency 'launchy'
30
+ spec.add_dependency 'activesupport'
31
+ spec.add_dependency 'axlsx'
32
+ spec.add_dependency 'uri_template'
33
+ spec.add_dependency 'dnsimple-ruby'
34
+
35
+ spec.add_development_dependency "bundler", "~> 1.3"
36
+ spec.add_development_dependency "rake"
37
+ spec.add_development_dependency "pry"
38
+ spec.add_development_dependency "pry-nav"
39
+ spec.add_development_dependency "rack-test"
40
+ end
@@ -0,0 +1,5 @@
1
+ require "spec_helper"
2
+
3
+ describe Skypager::Configuration do
4
+ end
5
+
@@ -0,0 +1,5 @@
1
+ require "spec_helper"
2
+
3
+ describe Skypager::Data do
4
+
5
+ end
@@ -0,0 +1,5 @@
1
+ require "spec_helper"
2
+
3
+ describe Skypager::Site do
4
+
5
+ end
@@ -0,0 +1,14 @@
1
+ require 'rack/test'
2
+ require 'pry'
3
+
4
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
5
+
6
+ RSpec.configure do |config|
7
+ config.mock_with :rspec
8
+ config.use_transactional_fixtures = true
9
+ config.infer_base_class_for_anonymous_controllers = false
10
+ config.order = "random"
11
+
12
+ config.include Rack::Test
13
+ config.include Requests::JsonHelpers, type: :request
14
+ end
@@ -0,0 +1,7 @@
1
+ module Requests
2
+ module JsonHelpers
3
+ def json
4
+ @json ||= JSON.parse(response.body)
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,383 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: skypager
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Jonathan Soeder
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hashie
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: commander
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: aws-sdk
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: fog
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: dropbox-api
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.4.6
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.4.6
83
+ - !ruby/object:Gem::Dependency
84
+ name: google_drive
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: middleman
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rack-contrib
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: launchy
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: activesupport
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: axlsx
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: uri_template
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: dnsimple-ruby
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: bundler
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '1.3'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '1.3'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rake
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: pry
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: pry-nav
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rack-test
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ description: Skypager is for launching your websites
266
+ email:
267
+ - jonathan.soeder@gmail.com
268
+ executables:
269
+ - skypager
270
+ extensions: []
271
+ extra_rdoc_files: []
272
+ files:
273
+ - ".gitignore"
274
+ - Gemfile
275
+ - LICENSE.txt
276
+ - Rakefile
277
+ - bin/skypager
278
+ - examples/.gitignore
279
+ - examples/blog-site/.gitignore
280
+ - examples/blog-site/.pryrc
281
+ - examples/blog-site/Gemfile
282
+ - examples/blog-site/config.rb
283
+ - examples/blog-site/data/dropbox.json
284
+ - examples/blog-site/source/images/background.png
285
+ - examples/blog-site/source/images/middleman.png
286
+ - examples/blog-site/source/index.html.erb
287
+ - examples/blog-site/source/javascripts/all.js
288
+ - examples/blog-site/source/layouts/layout.erb
289
+ - examples/blog-site/source/posts/introduction-to-skypager.html.md
290
+ - examples/blog-site/source/posts/skypager-and-dnsimple-and-amazon-web-services-combo.html.md
291
+ - examples/blog-site/source/stylesheets/all.css
292
+ - examples/blog-site/source/stylesheets/normalize.css
293
+ - examples/gallery-site/.gitignore
294
+ - examples/gallery-site/.pryrc
295
+ - examples/gallery-site/Gemfile
296
+ - examples/gallery-site/config.rb
297
+ - examples/gallery-site/data/dropbox.json
298
+ - examples/gallery-site/data/galleries.json
299
+ - examples/gallery-site/source/gallery.html.erb
300
+ - examples/gallery-site/source/images/background.png
301
+ - examples/gallery-site/source/images/galleries/cristian-gallery-1/001.jpg
302
+ - examples/gallery-site/source/images/galleries/cristian-gallery-1/002.jpg
303
+ - examples/gallery-site/source/images/galleries/cristian-gallery-1/003.jpg
304
+ - examples/gallery-site/source/images/galleries/cristian-gallery-1/004.jpg
305
+ - examples/gallery-site/source/images/galleries/luca-gallery-1/001.jpg
306
+ - examples/gallery-site/source/images/galleries/luca-gallery-1/002.JPG
307
+ - examples/gallery-site/source/images/galleries/luca-gallery-1/003.jpg
308
+ - examples/gallery-site/source/images/galleries/luca-gallery-1/004.JPG
309
+ - examples/gallery-site/source/images/middleman.png
310
+ - examples/gallery-site/source/index.html.erb
311
+ - examples/gallery-site/source/javascripts/all.js
312
+ - examples/gallery-site/source/layouts/layout.erb
313
+ - examples/gallery-site/source/stylesheets/all.css
314
+ - examples/gallery-site/source/stylesheets/normalize.css
315
+ - examples/gallery-site/source/tutorial.md
316
+ - lib/skypager.rb
317
+ - lib/skypager/build_server.rb
318
+ - lib/skypager/cli/commands/config.rb
319
+ - lib/skypager/cli/commands/create.rb
320
+ - lib/skypager/cli/commands/deploy.rb
321
+ - lib/skypager/cli/commands/edit.rb
322
+ - lib/skypager/cli/commands/list.rb
323
+ - lib/skypager/cli/commands/setup.rb
324
+ - lib/skypager/cli/commands/sync.rb
325
+ - lib/skypager/configuration.rb
326
+ - lib/skypager/data.rb
327
+ - lib/skypager/data/excel_spreadsheet.rb
328
+ - lib/skypager/data/google_spreadsheet.rb
329
+ - lib/skypager/data/request.rb
330
+ - lib/skypager/data/source.rb
331
+ - lib/skypager/data/source_routes_proxy.rb
332
+ - lib/skypager/dns.rb
333
+ - lib/skypager/extension.rb
334
+ - lib/skypager/middleman/commands/data.rb
335
+ - lib/skypager/middleman/commands/deploy.rb
336
+ - lib/skypager/middleman/commands/sync.rb
337
+ - lib/skypager/site.rb
338
+ - lib/skypager/sync.rb
339
+ - lib/skypager/sync/amazon.rb
340
+ - lib/skypager/sync/dropbox.rb
341
+ - lib/skypager/sync/dropbox/delta.rb
342
+ - lib/skypager/sync/folder.rb
343
+ - lib/skypager/sync/google.rb
344
+ - lib/skypager/tar.rb
345
+ - lib/skypager/version.rb
346
+ - skypager.gemspec
347
+ - spec/lib/skypager/configuration_spec.rb
348
+ - spec/lib/skypager/data_spec.rb
349
+ - spec/lib/skypager/site_spec.rb
350
+ - spec/spec_helper.rb
351
+ - spec/support/json_helper.rb
352
+ homepage: http://skypager.io
353
+ licenses:
354
+ - MIT
355
+ metadata: {}
356
+ post_install_message:
357
+ rdoc_options: []
358
+ require_paths:
359
+ - lib
360
+ required_ruby_version: !ruby/object:Gem::Requirement
361
+ requirements:
362
+ - - ">="
363
+ - !ruby/object:Gem::Version
364
+ version: '0'
365
+ required_rubygems_version: !ruby/object:Gem::Requirement
366
+ requirements:
367
+ - - ">="
368
+ - !ruby/object:Gem::Version
369
+ version: '0'
370
+ requirements: []
371
+ rubyforge_project:
372
+ rubygems_version: 2.2.2
373
+ signing_key:
374
+ specification_version: 4
375
+ summary: Skypager lets people collaborate on advanced, dynamic sites using simple
376
+ familiar tools
377
+ test_files:
378
+ - spec/lib/skypager/configuration_spec.rb
379
+ - spec/lib/skypager/data_spec.rb
380
+ - spec/lib/skypager/site_spec.rb
381
+ - spec/spec_helper.rb
382
+ - spec/support/json_helper.rb
383
+ has_rdoc: