subzero 1.0.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 (5) hide show
  1. data/LICENSE.txt +20 -0
  2. data/README.rdoc +77 -0
  3. data/Rakefile +52 -0
  4. data/lib/subzero.rb +5 -0
  5. metadata +122 -0
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Gregory Eremin
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,77 @@
1
+ ______ __ __ ______ ______ ______ ______ ______
2
+ /\ ___\ /\ \/\ \ /\ == \ /\___ \ /\ ___\ /\ == \ /\ __ \
3
+ \ \___ \ \ \ \_\ \ \ \ __< \/_/ /__ \ \ __\ \ \ __< \ \ \/\ \
4
+ \/\_____\ \ \_____\ \ \_____\ /\_____\ \ \_____\ \ \_\ \_\ \ \_____\
5
+ \/_____/ \/_____/ \/_____/ \/_____/ \/_____/ \/_/ /_/ \/_____/
6
+
7
+
8
+ Yeah, he IS awesome!
9
+
10
+ tjG###
11
+ tjfG###j::#
12
+ tjfLE###LLDWLi
13
+ ,jfE##KW###fi.; :W
14
+ jD###KKKW###ft::,WWt
15
+ tL###KKKK#### EDi iWWDt
16
+ ###KGGEW#WK# KE#GWjLjt
17
+ Di#KLLK###KW LK#fWiftit
18
+ #Gj#EDK##WEK DW G iD E;
19
+ #K#ffKW##WEK# K# E tG D; WWWKK
20
+ #E#LG###WEK## fK ## KW fj KKKKKKKK
21
+ #K##EE##WK#### W### K# WWKKDEKKEK
22
+ #W###EEDEWW#WKW W ###WKGDEKEEW
23
+ K#####WWW#KWDLLD# LE ##KKKEGDEKEE#
24
+ EK#####KDDEj;,;if##GGGE ###KK#KDDEKKDW
25
+ EEKWEEDDDti: .;tEDfWWfLG ###KDWWKKKKKEK#
26
+ KEDEDGfEjt;. ,tD#WDjEKLLj ####KK##W##WKK#
27
+ WEDfijDGLji,,tGGWGjjftWjtj ###############
28
+ KKDjiGEDLfjtfDjEitifftGttt ##########W####
29
+ DWEjfEKEDLLfEjj;iittii;Wtf ################
30
+ DWDLDKWKDGG#KfiiiitiitjWiLK#######GLjj:ijGD
31
+ GWEDEKKKDDEWiiiiiiittjj#E#######fLfiji;fjf
32
+ EWKKEWWKEtDiiiiiiiiiif#######L#fE###GGGLE
33
+ KWKKKKKEitiiiiiiiiiiW#######jijjEW#####
34
+ WWKKWWLtiiiiiiiiiL########j,i:jDWEG#
35
+ WWWjiiiiiiii;L###WK###Lf,tijjDjK
36
+ GW#GEjiiiiiiL####WE###ELf,fDfjfjf
37
+ j####iEitii;j###K#KW###EGf,,:;t:j
38
+ ######WtW;KE###WK#K###EKWffjGWEE
39
+ W#ft####EiEK####KK####EDDLfffDG
40
+ W#:t:;K#EED######W####EGGLDDDEWf
41
+ i#tjff:;#EK#####WW#####EGLGDEKf;W
42
+ jftjffji;###############EDGGDDttiKj
43
+ j;ijffjtL################EEDDtii;;iE
44
+ D,tjffff#################WWDfiitiit:Wt
45
+ #ttjffff################EKGftttt;ii,WWLf
46
+ i#iijfLfE###############ffjjititiii;jWi## :iiGft
47
+ i#iijfff##############fKftiti;;,,,:LW;### ;,;j;.;ij;t
48
+ G#ifjffD##############WEKL;;,,,,,,jW;### :;W##,j###E,
49
+ t#jW#fGDW#############i:i##Ej;,,:LWiWEE# :iE####L#t
50
+ Di:iE##E##############tti:W##fjtfWt#GGD# ;fG#######Gj
51
+ f,:tjiW##############tjjtt;E##LfWfWGfifK itE#####W##Gi
52
+ ::,tjtj#############Wffffff;L##DLKDji;tE #W### Gf
53
+ :,,tttj#############ffffffff:#EG#Eji,:,j ##K### tE
54
+ :,,ttjL############ELLLfffffDWf#WDt;. :iL #K###W fi
55
+ :,ijtjG############GGLLGLLLDWf###Gj,. ;tL #K##WK K
56
+ :;itjjD############EGGGGGGGWf###WDfi;..,ijKWK##WE
57
+ :ittjfE#############EGDDDDEL#####KGjt;,;tt#K###EE
58
+ :ttjfLE##########ti###DDEEWE####WWDLjtiij##K###KE
59
+ :,jjffK##########fEEEWWKEEW#####KKKDLjjfE#KW##WEE
60
+ ;,tjfLK#########jEEEWWWW########WEEEEEEW#KE###EGG
61
+ ,,,jfLE#########EEEEKWWWW##W#####EGGDWWGWEK###DGE
62
+ :;jfGK########GEEEEKWWW#E###WW##KGfj;;LKE####DEE
63
+ :,tLDE########EEEEEEWWWED##### #DLj;tff#####ED
64
+ ,,tLDE#######WEKGGEEWWGD##### KGfjj#LGE#WEDE
65
+ ,ifGE#######LLDGGDEWGDD#### #EGLG#EEEE#WD#
66
+ ;ifDE######EGEDDGGLffLW### WKGE###EE####
67
+ ,G;fEE######GEDDDDGGLfE#### KDD########
68
+ jWjGKW#####ELGDDDGGfLDW### KK########
69
+ E##fLL#####DGGGGGGLLfD### K########
70
+ G##K#WfEfD#EGDGGGLLLGE## #W######
71
+ iL############EGGDDEE#WE ####W
72
+ tLjj##################KEW ##
73
+ ;tGW,,L###############GKK
74
+ tjfWjfDLi,,G#########DfWEW
75
+ ,jtfWjtfLGLLLjiWWEEWWWLEEEW
76
+ jijjLjjffffttt:WWEKWEWWWKGW
77
+
data/Rakefile ADDED
@@ -0,0 +1,52 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "subzero"
18
+ gem.homepage = "http://github.com/magnolia-fan/subzero"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{Totally awesome gem that extends Fixnum functionality}
21
+ gem.description = %Q{Adds one magic method to the Numeric class. Guest what method is it?}
22
+ gem.email = "magnolia_fan@me.com"
23
+ gem.authors = ["Gregory Eremin"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rspec/core'
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec) do |spec|
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
33
+
34
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
35
+ spec.pattern = 'spec/**/*_spec.rb'
36
+ spec.rcov = true
37
+ end
38
+
39
+ require 'cucumber/rake/task'
40
+ Cucumber::Rake::Task.new(:features)
41
+
42
+ task :default => :spec
43
+
44
+ require 'rdoc/task'
45
+ RDoc::Task.new do |rdoc|
46
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
47
+
48
+ rdoc.rdoc_dir = 'rdoc'
49
+ rdoc.title = "subzero #{version}"
50
+ rdoc.rdoc_files.include('README*')
51
+ rdoc.rdoc_files.include('lib/**/*.rb')
52
+ end
data/lib/subzero.rb ADDED
@@ -0,0 +1,5 @@
1
+ class Numeric
2
+ def subzero?
3
+ self < 0
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: subzero
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Gregory Eremin
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-07-27 00:00:00.000000000 +04:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rdoc
17
+ requirement: &2164063740 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: *2164063740
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &2164063160 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 2.3.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *2164063160
37
+ - !ruby/object:Gem::Dependency
38
+ name: cucumber
39
+ requirement: &2164062560 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *2164062560
48
+ - !ruby/object:Gem::Dependency
49
+ name: bundler
50
+ requirement: &2164061980 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 1.0.0
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *2164061980
59
+ - !ruby/object:Gem::Dependency
60
+ name: jeweler
61
+ requirement: &2164061400 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ version: 1.6.4
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: *2164061400
70
+ - !ruby/object:Gem::Dependency
71
+ name: rcov
72
+ requirement: &2164060820 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: *2164060820
81
+ description: Adds one magic method to the Numeric class. Guest what method is it?
82
+ email: magnolia_fan@me.com
83
+ executables: []
84
+ extensions: []
85
+ extra_rdoc_files:
86
+ - LICENSE.txt
87
+ - README.rdoc
88
+ files:
89
+ - Rakefile
90
+ - lib/subzero.rb
91
+ - LICENSE.txt
92
+ - README.rdoc
93
+ has_rdoc: true
94
+ homepage: http://github.com/magnolia-fan/subzero
95
+ licenses:
96
+ - MIT
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ segments:
108
+ - 0
109
+ hash: -1530304762594754926
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubyforge_project:
118
+ rubygems_version: 1.6.2
119
+ signing_key:
120
+ specification_version: 3
121
+ summary: Totally awesome gem that extends Fixnum functionality
122
+ test_files: []