baze 0.0.14 → 0.1.0

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/primes +17 -0
  3. metadata +19 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cb75db782520861f93611c33bbcbc037f68df39
4
- data.tar.gz: aed4f9b3136250966218a44f5428b7330c557e2e
3
+ metadata.gz: 975bf0e7070ea8672818ccd03b7a3778da76410d
4
+ data.tar.gz: d549f33c159ed8488056d9d25338e3d13b747b7d
5
5
  SHA512:
6
- metadata.gz: 0c031b7b39a5bd4a80e3575ae343e7f8a091f91f6ac6ae1e0bf3129677469372874ac57675011aed3ec24c8ee7838d53768b786a2a4508774799f51500068193
7
- data.tar.gz: 483652d5d8ea326c25548be3cacd49c7b0304f01bd9c0fd4e427bdf6ff53c66a2eda17f40cfc30822a2a8d96881568f7f1de17fa014afebab4d5c459201a770b
6
+ metadata.gz: 09fca2167049d055df12587cbe0a6ce7649fe6d9bcbc80f52e58932fffff9944f9e39cc0142bf91479e56c626ff77ceb76f10fa086197d2e92936dad54c27329
7
+ data.tar.gz: 26aa46e48498ed9679e73f3809f6fc5f7cfd6c13e9d7bb4056bd6963d79a674a9f44889ac4f529b937cb37d595eccaa3b2d40dd8b05f145786f57de37e393d0d
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ max = ARGV.shift.to_i
4
+ unless max > 0
5
+ STDERR.puts 'Usage: primes x, x > 0'
6
+ exit 1
7
+ end
8
+
9
+ r = Array.new max
10
+ (2..max).each do |i|
11
+ unless r[i]
12
+ p i
13
+ (2*i).step max, i do |j|
14
+ r[j] = true
15
+ end
16
+ end
17
+ end
metadata CHANGED
@@ -1,43 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baze
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Carrier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-15 00:00:00.000000000 Z
11
+ date: 2016-01-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
15
15
  - pierre@gcarrier.fr
16
16
  executables:
17
- - cols
18
- - fixperms
19
- - hex2ip
17
+ - statistik
20
18
  - ip2hex
21
- - json2yaml
22
- - lecho
19
+ - shost
20
+ - shellescape
23
21
  - randmac
22
+ - json2yaml
23
+ - yaml2json
24
24
  - rrtmux
25
- - shellescape
26
- - shost
27
- - statistik
28
- - suc
29
- - urldecode
30
25
  - urlencode
31
- - yaml2json
26
+ - hex2ip
27
+ - lecho
28
+ - cols
29
+ - fixperms
30
+ - urldecode
31
+ - suc
32
+ - primes
32
33
  extensions: []
33
34
  extra_rdoc_files: []
34
35
  files:
36
+ - COPYING
35
37
  - bin/cols
36
38
  - bin/fixperms
37
39
  - bin/hex2ip
38
40
  - bin/ip2hex
39
41
  - bin/json2yaml
40
42
  - bin/lecho
43
+ - bin/primes
41
44
  - bin/randmac
42
45
  - bin/rrtmux
43
46
  - bin/shellescape
@@ -47,7 +50,6 @@ files:
47
50
  - bin/urldecode
48
51
  - bin/urlencode
49
52
  - bin/yaml2json
50
- - COPYING
51
53
  homepage: https://github.com/pcarrier/baze
52
54
  licenses:
53
55
  - ISC
@@ -58,17 +60,17 @@ require_paths:
58
60
  - lib
59
61
  required_ruby_version: !ruby/object:Gem::Requirement
60
62
  requirements:
61
- - - '>='
63
+ - - ">="
62
64
  - !ruby/object:Gem::Version
63
65
  version: '0'
64
66
  required_rubygems_version: !ruby/object:Gem::Requirement
65
67
  requirements:
66
- - - '>='
68
+ - - ">="
67
69
  - !ruby/object:Gem::Version
68
70
  version: 1.2.0
69
71
  requirements: []
70
72
  rubyforge_project: baze
71
- rubygems_version: 2.0.14
73
+ rubygems_version: 2.5.1
72
74
  signing_key:
73
75
  specification_version: 4
74
76
  summary: Base utilities for POSIX system