bases 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bases.gemspec +4 -0
- data/lib/bases/version.rb +1 -1
- data/test/test_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4830291e7d2c4316fe6b443135f45cc172d8618
|
4
|
+
data.tar.gz: 1a558940aed279b82a4cb56b2420b2a4596f906f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9a8b6f9a710f0a902cb2e39383749e47dfd38bb0fef0e181bfec54d0f02e7813c093ee70d8d41861290402fc205317fca804637459756823968e41630fda506
|
7
|
+
data.tar.gz: cef55c71bad2e09c961154c2bd030d8e2e518e19b5b1868177e1f011cd9425c3ebec76f3c1d186872d135ac8c537ff4bcabc4716e1357c2657de33d5ed4ad935
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Convert **from** and **to** any base you can think of.
|
|
12
12
|
A bunch of features:
|
13
13
|
|
14
14
|
* Convert to bases up to **whatever you want!**
|
15
|
-
* Use custom bases defined as arrays, like this binary base: `['
|
15
|
+
* Use custom bases defined as arrays, like this binary base: `['↓', '↑']`.
|
16
16
|
* Use multicharacter digits.
|
17
17
|
* Use **emojis** as digits!
|
18
18
|
* Fall back to Ruby's `Integer#to_s` and `String#to_i` when the base is less
|
@@ -25,7 +25,7 @@ A bunch of features:
|
|
25
25
|
## Why
|
26
26
|
|
27
27
|
Ruby can convert bases, but only with bases up to 36. But converting to bigger
|
28
|
-
|
28
|
+
bases is just as fun (if not even more!), since you can easily reduce the number
|
29
29
|
of character used to represent a number.
|
30
30
|
|
31
31
|
I only know of gem that does this, [radix][radix]. Radix isn't bad, but I don't
|
data/bases.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'bases/version'
|
@@ -23,6 +24,9 @@ Gem::Specification.new do |spec|
|
|
23
24
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
24
25
|
spec.require_paths = ['lib']
|
25
26
|
|
27
|
+
# This gem works for Ruby >= 1.9.3.
|
28
|
+
spec.required_ruby_version = '>= 1.9.3'
|
29
|
+
|
26
30
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
27
31
|
spec.add_development_dependency 'rake', '~> 10'
|
28
32
|
spec.add_development_dependency 'minitest', '~> 5'
|
data/lib/bases/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bases
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrea Leopardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
127
|
requirements:
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
130
|
+
version: 1.9.3
|
131
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
132
|
requirements:
|
133
133
|
- - ">="
|