zeno 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zeno/version.rb +1 -1
  3. data/lib/zeno.rb +23 -2
  4. metadata +11 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e9663b92c8a4e45072629e98ef83c2a00998858
4
- data.tar.gz: e2f951043000b9c55f990867f0c99c091c96c757
3
+ metadata.gz: 7e3ffb471e7920c26ef333a7c35cb55e50a5ef07
4
+ data.tar.gz: 7702c7a067b4acaefcabae86da7a91a5f620709a
5
5
  SHA512:
6
- metadata.gz: e7a5e1fa8a37ddbc6aa40bcc57ff916b01306f4a313c88bfad80c07cd813bdf29151dea256a3f2add7e83194adde7264a2c8ef4d304c4527d0f13440cbdad8bb
7
- data.tar.gz: c01e0b76e9933be79f4accd1847876bf059892c31716ceaad268fd9f3ec4094cc98d7b9e989b921fc739695455cdfdb9c6049359e3fbc6cadfaccf6ce3c0435b
6
+ metadata.gz: 9100ee4a02d0fde7d51195dbf4aa4bc2d12b88fa2e70bc806ee39a581cb00d6e3402b35209bde37e008ba1a93552edc58871f87a65cdf39efb02dbacc14b961d
7
+ data.tar.gz: 52675e5957d46c692334254159eaa2d328a8feb6606355e3e64dcba78f160317e435e84e77ebde65f3e6dd39adc6492e5fe35de88f20c9b591f719cc6ac4674d
data/lib/zeno/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zeno
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.0'
3
3
  end
data/lib/zeno.rb CHANGED
@@ -29,8 +29,11 @@ require 'zeno/version'
29
29
  require 'zeno/scaffolder'
30
30
  require 'zeno/applicationalreadyexistserror'
31
31
 
32
+ # Zeno base module
32
33
  module Zeno
33
34
  class << self
35
+ # Start the Zeno application
36
+ # @param args [Array] The ARGV argument array.
34
37
  def start(args)
35
38
  case args.shift
36
39
  when 'app'
@@ -49,11 +52,14 @@ module Zeno
49
52
  puts "Usage: zeno <command> <args>"
50
53
  puts ""
51
54
  puts "Available commands are:"
52
- puts " app\tScaffolder to create new ETA/OS applications"
53
- puts " get\tETA/OS download service"
55
+ puts " app\t\tScaffolder to create new ETA/OS applications"
56
+ puts " get\t\tETA/OS download service"
57
+ puts " solution\tCreate an ETA/OS solution"
54
58
  end
55
59
  end
56
60
 
61
+ # Start the get subcommand.
62
+ # @param args [Array] The ARGV argument array.
57
63
  def start_get(args)
58
64
  options = OpenStruct.new
59
65
  options.output = Dir.pwd
@@ -100,6 +106,8 @@ module Zeno
100
106
  Zeno.download(options.output, options.target)
101
107
  end
102
108
 
109
+ # Start the solution subcommand.
110
+ # @param args [Array] The ARGV argument array.
103
111
  def start_solution(args)
104
112
  options = OpenStruct.new
105
113
  options.name = nil
@@ -187,6 +195,8 @@ module Zeno
187
195
  end
188
196
  end
189
197
 
198
+ # Start the app subcommand.
199
+ # @param args [Array] The ARGV argument array.
190
200
  def start_app(args)
191
201
  options = OpenStruct.new
192
202
  options.name = nil
@@ -266,6 +276,12 @@ module Zeno
266
276
  end
267
277
  end
268
278
 
279
+ # Parse a target string (git reference).
280
+ # @param target [String] Git reference to parse.
281
+ # @return [String] A valid git ref.
282
+ #
283
+ # Targets such as 'stable', 'old-stable' and 'bleeding' are turned into
284
+ # actual git refs using this method.
269
285
  def parse_target(target)
270
286
  ref = target
271
287
  odd_versions = ['stable', 'latest', 'old-stable', 'bleeding']
@@ -278,11 +294,16 @@ module Zeno
278
294
  ref
279
295
  end
280
296
 
297
+ # Get all available ETA/OS versions.
298
+ # @return [String] A list of all published ETA/OS versions.
281
299
  def get_versions
282
300
  uri = URI("http://zeno.bietje.net/versions.txt")
283
301
  Net::HTTP.get(uri)
284
302
  end
285
303
 
304
+ # Download a specific version of ETA/OS.
305
+ # @param out [String] Output directory.
306
+ # @param target [String] Version to download.
286
307
  def download(out, target)
287
308
  # The correct git refs for the target can be found using the Zeno
288
309
  # web service (zeno.bietje.net).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeno
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Megens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-17 00:00:00.000000000 Z
11
+ date: 2016-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,6 +56,9 @@ dependencies:
56
56
  name: rubyzip
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
59
62
  - - ">="
60
63
  - !ruby/object:Gem::Version
61
64
  version: 1.0.0
@@ -63,6 +66,9 @@ dependencies:
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '1.0'
66
72
  - - ">="
67
73
  - !ruby/object:Gem::Version
68
74
  version: 1.0.0
@@ -82,7 +88,8 @@ files:
82
88
  - lib/zeno/scaffolder.rb
83
89
  - lib/zeno/version.rb
84
90
  homepage: http://bietje.net/zeno
85
- licenses: []
91
+ licenses:
92
+ - GPLv3
86
93
  metadata: {}
87
94
  post_install_message:
88
95
  rdoc_options: []
@@ -105,3 +112,4 @@ signing_key:
105
112
  specification_version: 4
106
113
  summary: ETA/OS scaffolder
107
114
  test_files: []
115
+ has_rdoc: