zucker 10 → 11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/CHANGELOG +10 -0
  2. data/Rakefile +2 -2
  3. data/desc/binding.yaml +2 -2
  4. data/desc/kernel.yaml +2 -1
  5. data/desc/string.yaml +2 -2
  6. data/doc/zucker_doc.html +107 -42
  7. data/lib/zucker.rb +5 -5
  8. data/lib/zucker/alias_for.rb +1 -0
  9. data/lib/zucker/aliases.rb +1 -0
  10. data/lib/zucker/array.rb +1 -0
  11. data/lib/zucker/array_to_proc.rb +2 -1
  12. data/lib/zucker/binding.rb +18 -15
  13. data/lib/zucker/blank.rb +1 -0
  14. data/lib/zucker/cc.rb +1 -0
  15. data/lib/zucker/class_to_proc.rb +2 -1
  16. data/lib/zucker/dd.rb +1 -0
  17. data/lib/zucker/egonil.rb +1 -0
  18. data/lib/zucker/engine.rb +1 -0
  19. data/lib/zucker/enumerable.rb +2 -1
  20. data/lib/zucker/file.rb +6 -0
  21. data/lib/zucker/hash.rb +1 -0
  22. data/lib/zucker/hash_to_proc.rb +1 -0
  23. data/lib/zucker/info.rb +1 -0
  24. data/lib/zucker/iterate.rb +3 -2
  25. data/lib/zucker/ivars.rb +1 -0
  26. data/lib/zucker/kernel.rb +7 -1
  27. data/lib/zucker/mcopy.rb +1 -0
  28. data/lib/zucker/mm.rb +1 -0
  29. data/lib/zucker/not.rb +1 -0
  30. data/lib/zucker/oo.rb +1 -0
  31. data/lib/zucker/os.rb +1 -0
  32. data/lib/zucker/qq.rb +1 -0
  33. data/lib/zucker/regexp_to_proc.rb +1 -0
  34. data/lib/zucker/regexp_visualize.rb +6 -1
  35. data/lib/zucker/sandbox.rb +2 -0
  36. data/lib/zucker/square_brackets_for.rb +1 -0
  37. data/lib/zucker/string.rb +1 -0
  38. data/lib/zucker/tap.rb +3 -2
  39. data/lib/zucker/unary.rb +1 -0
  40. data/lib/zucker/union.rb +1 -0
  41. data/lib/zucker/version.rb +1 -0
  42. data/spec/kernel_spec.rb +6 -1
  43. data/spec/regexp_visualize_spec.rb +1 -1
  44. data/spec/sandbox_spec.rb +1 -1
  45. data/spec/version_spec.rb +2 -2
  46. data/zucker.gemspec +12 -3
  47. metadata +6 -6
data/spec/version_spec.rb CHANGED
@@ -11,7 +11,7 @@ describe 'RubyVersion' do
11
11
  RubyVersion.to_s.should == '1.8.7'
12
12
  end
13
13
 
14
- context 'using is method with parameter' do
14
+ context 'with "is" method, with parameter' do
15
15
  it 'should check for main version (1.8 or 1.9) when Float paramater is given' do
16
16
  RubyVersion.is?( 1.8 ).should == true
17
17
  RubyVersion.is?( 1.9 ).should == false
@@ -22,7 +22,7 @@ describe 'RubyVersion' do
22
22
  end
23
23
  end
24
24
 
25
- context 'using is method without parameter but method chaining' do
25
+ context 'with "is" method, without parameter, but method chaining' do
26
26
  it 'should return a string for usage with comparison operators' do
27
27
  (RubyVersion.is > '1.8.7').should == false
28
28
  (RubyVersion <= '1.8.7').should == true
data/zucker.gemspec CHANGED
@@ -5,17 +5,26 @@ require File.dirname(__FILE__) + '/lib/zucker'
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "zucker"
7
7
  s.version = Zucker::VERSION
8
- s.authors = ['Jan Lelis','and others']
8
+ s.authors = ['Jan Lelis','others']
9
9
  s.email = 'mail@janlelis.de'
10
10
  s.summary = "Many little helpers that sweeten your Ruby code :)."
11
- s.description = "Sweeten your Ruby code with syntactic sugar :).
11
+ s.description = "Sweetens your Ruby code with syntactic sugar :).
12
12
  Adds a lot of little helpers that you do not want to miss again."
13
13
  s.homepage = "http://rubyzucker.info"
14
14
  s.files = Dir.glob( %w[{lib,spec}/**/*.rb desc/**/*.yaml] ) + %w{Rakefile zucker.gemspec MIT-LICENSE README CHANGELOG doc/zucker_doc.rb doc/zucker_doc.html .gemtest}
15
- s.has_rdoc = false
16
15
  s.require_paths = ["lib"]
17
16
  s.required_ruby_version = '>= 1.8.7' # 1.9 recommended
18
17
  s.license = 'MIT'
19
18
  s.add_development_dependency 'rspec'
20
19
  s.add_development_dependency 'coderay'
20
+
21
+ len = s.homepage.size
22
+ s.post_install_message = \
23
+ (" ┌── " + "info ".ljust(len-2,'%') + "─┐\n" +
24
+ " J-_-L │ " + s.homepage + " │\n" +
25
+ " ├── " + "usage ".ljust(len-2,'%') + "─┤\n" +
26
+ " │ " + "require 'zucker/all'".ljust(len,' ') + " │\n" +
27
+ " │ " + "# or".ljust(len,' ') + " │\n" +
28
+ " │ " + "require 'zucker/<name>".ljust(len,' ') + " │\n" +
29
+ " └─" + '─'*len + "─┘").gsub('%', '─') # 1.8 workaround
21
30
  end
metadata CHANGED
@@ -2,16 +2,16 @@
2
2
  name: zucker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "10"
5
+ version: "11"
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jan Lelis
9
- - and others
9
+ - others
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-04-28 00:00:00 Z
14
+ date: 2011-05-26 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec
@@ -36,7 +36,7 @@ dependencies:
36
36
  type: :development
37
37
  version_requirements: *id002
38
38
  description: |-
39
- Sweeten your Ruby code with syntactic sugar :).
39
+ Sweetens your Ruby code with syntactic sugar :).
40
40
  Adds a lot of little helpers that you do not want to miss again.
41
41
  email: mail@janlelis.de
42
42
  executables: []
@@ -174,7 +174,7 @@ files:
174
174
  homepage: http://rubyzucker.info
175
175
  licenses:
176
176
  - MIT
177
- post_install_message:
177
+ post_install_message: " \xE2\x94\x8C\xE2\x94\x80\xE2\x94\x80 info \xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x90\n J-_-L \xE2\x94\x82 http://rubyzucker.info \xE2\x94\x82\n \xE2\x94\x9C\xE2\x94\x80\xE2\x94\x80 usage \xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\xA4\n \xE2\x94\x82 require 'zucker/all' \xE2\x94\x82\n \xE2\x94\x82 # or \xE2\x94\x82\n \xE2\x94\x82 require 'zucker/<name> \xE2\x94\x82\n \xE2\x94\x94\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x98"
178
178
  rdoc_options: []
179
179
 
180
180
  require_paths:
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  requirements: []
195
195
 
196
196
  rubyforge_project:
197
- rubygems_version: 1.7.2
197
+ rubygems_version: 1.8.1
198
198
  signing_key:
199
199
  specification_version: 3
200
200
  summary: Many little helpers that sweeten your Ruby code :).