iching 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +1 -1
  2. data/bin/iching +1 -1
  3. data/iching.gemspec +2 -2
  4. data/lib/iching.rb +3 -3
  5. metadata +30 -35
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('iching', '0.0.6') do |p|
5
+ Echoe.new('iching', '0.1.0') do |p|
6
6
  p.description = "Generate an Iching hexagram and access various things about it."
7
7
  p.url = "https://github.com/mattmills/iching"
8
8
  p.author = "Matt Mills"
data/bin/iching CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # encoding: UTF-8
2
3
  require 'rubygems'
3
- require 'backports'
4
4
  require 'iching'
5
5
  Iching.new.display
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "iching"
5
- s.version = "0.0.6"
5
+ s.version = "0.1.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Matt Mills"]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Iching", "--main", "readme.markdown"]
17
17
  s.require_paths = ["lib"]
18
18
  s.rubyforge_project = "iching"
19
- s.rubygems_version = "1.8.11"
19
+ s.rubygems_version = "1.8.10"
20
20
  s.summary = "Generate an Iching hexagram and access various things about it."
21
21
 
22
22
  if s.respond_to? :specification_version then
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
+ # encoding: UTF-8
2
3
  require 'rubygems'
3
4
 
4
5
  #ruby version compatibility hax
5
- if RUBY_VERSION.gsub(".","").to_i > 191
6
- Encoding.default_internal = Encoding.find("UTF-8")
7
- else
6
+ unless RUBY_VERSION.gsub(".","").to_i > 190
8
7
  require 'backports'
9
8
  end
10
9
 
10
+
11
11
  class Iching
12
12
  def initialize()
13
13
  @hex = 6.times.map{ Random.new.rand(6..9) }.reverse
metadata CHANGED
@@ -1,38 +1,36 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: iching
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
4
5
  prerelease:
5
- version: 0.0.6
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Matt Mills
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-10-08 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-10-08 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: backports
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2153506040 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
24
22
  type: :runtime
25
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *2153506040
26
25
  description: Generate an Iching hexagram and access various things about it.
27
26
  email: sunrisetimes@gmail.com
28
- executables:
27
+ executables:
29
28
  - iching
30
29
  extensions: []
31
-
32
- extra_rdoc_files:
30
+ extra_rdoc_files:
33
31
  - bin/iching
34
32
  - lib/iching.rb
35
- files:
33
+ files:
36
34
  - Rakefile
37
35
  - bin/iching
38
36
  - lib/iching.rb
@@ -41,35 +39,32 @@ files:
41
39
  - iching.gemspec
42
40
  homepage: https://github.com/mattmills/iching
43
41
  licenses: []
44
-
45
42
  post_install_message:
46
- rdoc_options:
43
+ rdoc_options:
47
44
  - --line-numbers
48
45
  - --inline-source
49
46
  - --title
50
47
  - Iching
51
48
  - --main
52
49
  - readme.markdown
53
- require_paths:
50
+ require_paths:
54
51
  - lib
55
- required_ruby_version: !ruby/object:Gem::Requirement
52
+ required_ruby_version: !ruby/object:Gem::Requirement
56
53
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: "0"
61
- required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
59
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "1.2"
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '1.2'
67
64
  requirements: []
68
-
69
65
  rubyforge_project: iching
70
- rubygems_version: 1.8.11
66
+ rubygems_version: 1.8.10
71
67
  signing_key:
72
68
  specification_version: 3
73
69
  summary: Generate an Iching hexagram and access various things about it.
74
70
  test_files: []
75
-