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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 902a4986a5074750b2a81f17eaccb1e8bd944e3d
4
- data.tar.gz: d639c6bb2b3b3f71f1a42dd009f046d2fe5bf721
3
+ metadata.gz: f4830291e7d2c4316fe6b443135f45cc172d8618
4
+ data.tar.gz: 1a558940aed279b82a4cb56b2420b2a4596f906f
5
5
  SHA512:
6
- metadata.gz: 5377cb3c5ef10f7a28854c42f373cb3afbb43ad9b9c1e09a4f337607bec6c6d6c769e3979300b0eab1f7a8427cb87674637418da8ed02c65aac1f984e6d3db32
7
- data.tar.gz: 9ec434e817b7563702b584c64f619a06000c410c5343744f8460786bf20f719b447346f482263e5277ea5e69f2b4299b30b577dbff75fba4915a9620512b7ca0
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
- basis is just as fun (if not even more!), since you can easily reduce the number
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
@@ -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'
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bases
4
4
  # The version of the Bases gem.
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
@@ -8,6 +8,6 @@ require 'minitest/autorun'
8
8
  require 'minitest/pride'
9
9
  require 'minitest/reporters'
10
10
 
11
- require_relative '../lib/bases'
11
+ require 'bases'
12
12
 
13
13
  Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
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.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-21 00:00:00.000000000 Z
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: '0'
130
+ version: 1.9.3
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - ">="