pythonism 0.0.1 → 0.0.2

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.
data/README.md CHANGED
@@ -19,7 +19,34 @@ Or install it yourself as:
19
19
 
20
20
  ## Usage
21
21
 
22
- TODO: Write usage instructions here
22
+ ```ruby
23
+ MegurineLuka% irb
24
+ irb(main):001:0> require 'pythonism'
25
+ => True
26
+ irb(main):002:0> import this
27
+ The Zen of Python, by Tim Peters
28
+
29
+ Beautiful is better than ugly.
30
+ Explicit is better than implicit.
31
+ Simple is better than complex.
32
+ Complex is better than complicated.
33
+ Flat is better than nested.
34
+ Sparse is better than dense.
35
+ Readability counts.
36
+ Special cases aren't special enough to break the rules.
37
+ Although practicality beats purity.
38
+ Errors should never pass silently.
39
+ Unless explicitly silenced.
40
+ In the face of ambiguity, refuse the temptation to guess.
41
+ There should be one-- and preferably only one --obvious way to do it.
42
+ Although that way may not be obvious at first unless you're Dutch.
43
+ Now is better than never.
44
+ Although never is often better than *right* now.
45
+ If the implementation is hard to explain, it's a bad idea.
46
+ If the implementation is easy to explain, it may be a good idea.
47
+ Namespaces are one honking great idea -- let's do more of those!
48
+ => nil
49
+ ```
23
50
 
24
51
  ## Contributing
25
52
 
@@ -1,5 +1,6 @@
1
1
  require 'pythonism/classes/class'
2
2
  require 'pythonism/classes/boolean'
3
+ require 'pythonism/classes/nil_class'
3
4
  require 'pythonism/classes/string'
4
5
  require 'pythonism/classes/fixnum'
5
6
  require 'pythonism/classes/array'
@@ -6,7 +6,7 @@ class NilClass
6
6
  include Pythonism::Pythonize::Basic
7
7
 
8
8
  # @return [String]
9
- def inspect; 'False'; end
9
+ def inspect; 'None'; end
10
10
 
11
11
  # @return [FalseClass]
12
12
  def __nonzero__; false; end
@@ -1,3 +1,3 @@
1
1
  module Pythonism
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pythonism
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: