ruby-fizzbuzz 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +3 -0
- data/AUTHORS +1 -0
- data/CHANGES +19 -0
- data/CHANGES.rdoc +19 -0
- data/COPYRIGHT +1 -0
- data/LICENSE +202 -0
- data/README +5 -0
- data/README.rdoc +7 -0
- data/Rakefile +78 -0
- data/TODO +22 -0
- data/VERSION +1 -0
- data/bin/fizzbuzz +106 -0
- data/ext/fizzbuzz/common.h +71 -0
- data/ext/fizzbuzz/extconf.rb +40 -0
- data/ext/fizzbuzz/fizzbuzz.c +473 -0
- data/ext/fizzbuzz/fizzbuzz.h +233 -0
- data/lib/fizzbuzz.rb +94 -0
- data/lib/fizzbuzz/bignum.rb +90 -0
- data/lib/fizzbuzz/integer.rb +90 -0
- data/lib/fizzbuzz/version.rb +35 -0
- metadata +133 -0
- metadata.gz.sig +0 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
# :stopdoc:
|
4
|
+
|
5
|
+
#
|
6
|
+
# version.rb
|
7
|
+
#
|
8
|
+
# Copyright 2012-2013 Krzysztof Wilczynski
|
9
|
+
#
|
10
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
# you may not use this file except in compliance with the License.
|
12
|
+
# You may obtain a copy of the License at
|
13
|
+
#
|
14
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
#
|
16
|
+
# Unless required by applicable law or agreed to in writing, software
|
17
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
# See the License for the specific language governing permissions and
|
20
|
+
# limitations under the License.
|
21
|
+
#
|
22
|
+
|
23
|
+
# :startdoc:
|
24
|
+
|
25
|
+
class FizzBuzz
|
26
|
+
#
|
27
|
+
# Current version of _FizzBuzz_.
|
28
|
+
#
|
29
|
+
VERSION = "0.0.2"
|
30
|
+
end
|
31
|
+
|
32
|
+
# :enddoc:
|
33
|
+
|
34
|
+
# vim: set ts=2 sw=2 sts=2 et :
|
35
|
+
# encoding: utf-8
|
metadata
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-fizzbuzz
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Krzysztof Wilczynski
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-08-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.8.7
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.8.7
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rdoc
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3.12'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.12'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: test-unit
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.5.2
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.5.2
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake-compiler
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.7.1
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.7.1
|
78
|
+
description: Yet another FizzBuzz in Ruby
|
79
|
+
email: krzysztof.wilczynski@linux.com
|
80
|
+
executables:
|
81
|
+
- fizzbuzz
|
82
|
+
extensions:
|
83
|
+
- ext/fizzbuzz/extconf.rb
|
84
|
+
extra_rdoc_files: []
|
85
|
+
files:
|
86
|
+
- ext/fizzbuzz/fizzbuzz.c
|
87
|
+
- ext/fizzbuzz/fizzbuzz.h
|
88
|
+
- ext/fizzbuzz/common.h
|
89
|
+
- ext/fizzbuzz/extconf.rb
|
90
|
+
- lib/fizzbuzz/bignum.rb
|
91
|
+
- lib/fizzbuzz/integer.rb
|
92
|
+
- lib/fizzbuzz/version.rb
|
93
|
+
- lib/fizzbuzz.rb
|
94
|
+
- Rakefile
|
95
|
+
- AUTHORS
|
96
|
+
- CHANGES
|
97
|
+
- CHANGES.rdoc
|
98
|
+
- COPYRIGHT
|
99
|
+
- LICENSE
|
100
|
+
- README
|
101
|
+
- README.rdoc
|
102
|
+
- TODO
|
103
|
+
- VERSION
|
104
|
+
- bin/fizzbuzz
|
105
|
+
homepage: http://about.me/kwilczynski
|
106
|
+
licenses:
|
107
|
+
- Apache License, Version 2.0
|
108
|
+
post_install_message:
|
109
|
+
rdoc_options: []
|
110
|
+
require_paths:
|
111
|
+
- lib
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project: ruby-fizzbuzz
|
127
|
+
rubygems_version: 1.8.23
|
128
|
+
signing_key:
|
129
|
+
specification_version: 3
|
130
|
+
summary: Provides simple and fast solution to a popular FizzBuzz problem for Ruby. Written
|
131
|
+
in C as an example of using Ruby's C API - with the support for arbitrary large
|
132
|
+
numeric values via the Bignum class.
|
133
|
+
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|