soniji 0.1.2 → 0.2.1

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 (3) hide show
  1. checksums.yaml +15 -0
  2. metadata +6 -9
  3. data/lib/soniji.rb +0 -57
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OWQwYTJkMzIyZDBmN2IyMjJjYzk4ZGQ4YTQxZDY3ODQzMmNlY2Q3Mg==
5
+ data.tar.gz: !binary |-
6
+ YzgzZjg5NDZiOWRkMWNiY2IxNDM4N2ZmMWJhOTNkZDAyODJmZmRlOA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ Njk5ZTE3NzFkMWMzNTIyZmI4OWE2N2ZmYzg3ZmNmYjNiMTM1NWU3OGY0Yjhl
10
+ ZWE4NDFhM2I4NWZiODIzZTAzOGE5ZDI1MjZjOWM1YmEzNjg5YTViYmJhM2U5
11
+ MTVhNTJmNGQzZjMyODI0NTMzYzBiNzU2OTIyNDFiZWRkZjRkMjY=
12
+ data.tar.gz: !binary |-
13
+ MzllY2JiNjRmYTBjMTMxNDc3YjdjZjI3OGRjYTE0MjNhZTI5NDdkZmIxZDQ2
14
+ Mzg0NWI5OWI1ODgxNzY3YWM2NTc1MzI0ZDZmYTlkOGE5NzAyMDEzZDVjZjI1
15
+ OTg2YjFjM2VmZTBkOTMwYmEzMWRhOWI3NWJmOGNhMmU1ZTc1YWY=
metadata CHANGED
@@ -1,46 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soniji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - LBQ
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-03 00:00:00.000000000 Z
11
+ date: 2014-01-13 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Say hi to soniji!
15
14
  email: laoboqi@126.com
16
15
  executables: []
17
16
  extensions: []
18
17
  extra_rdoc_files: []
19
- files:
20
- - lib/soniji.rb
18
+ files: []
21
19
  homepage: http://rubygems.org/gems/soniji
22
20
  licenses:
23
21
  - MIT
22
+ metadata: {}
24
23
  post_install_message:
25
24
  rdoc_options: []
26
25
  require_paths:
27
26
  - lib
28
27
  required_ruby_version: !ruby/object:Gem::Requirement
29
- none: false
30
28
  requirements:
31
29
  - - ! '>='
32
30
  - !ruby/object:Gem::Version
33
31
  version: '0'
34
32
  required_rubygems_version: !ruby/object:Gem::Requirement
35
- none: false
36
33
  requirements:
37
34
  - - ! '>='
38
35
  - !ruby/object:Gem::Version
39
36
  version: '0'
40
37
  requirements: []
41
38
  rubyforge_project:
42
- rubygems_version: 1.8.23
39
+ rubygems_version: 2.1.5
43
40
  signing_key:
44
- specification_version: 3
41
+ specification_version: 4
45
42
  summary: A Birthday Gift for the orzFlyos!
46
43
  test_files: []
@@ -1,57 +0,0 @@
1
- class Human
2
- attr_reader :name
3
- attr_accessor :friendship
4
- attr_reader :childs
5
- def initialize(name)
6
- @name = name
7
- @friendship = 0
8
- @childs = []
9
- end
10
-
11
- POSSIBLE_NAMES = ['Ralph','LBQ','orzFly','Lynn']
12
- def has_child
13
- @childs << Human.new(POSSIBLE_NAMES.sample)
14
- end
15
- end
16
-
17
-
18
- class Soniji < Human
19
- def has_child
20
- @childs << Human.new('Sonic1997')
21
- end
22
- end
23
-
24
-
25
- module Kernel
26
- def say_hi_to person
27
- puts "You said hi to #{person.name}"
28
- person.friendship += rand(2)+1
29
- end
30
-
31
- def papapa_with person
32
- puts "You tried to papapa with #{person.name}"
33
- if person.friendship <= 30
34
- puts "But he/she refused to do so"
35
- else
36
- puts "You successfully papapaed with #{person.name}"
37
- person.friendship += 10
38
- person.has_child
39
- end
40
- end
41
-
42
- def murder person
43
- puts "You successfully murdered #{person.name}"
44
- person = nil
45
- end
46
- end
47
-
48
-
49
- module Kernel
50
- def all_humans
51
- childs = []
52
- ObjectSpace.each_object Human do |c|
53
- childs << c
54
- end
55
- return childs
56
- end
57
- end