rufus-mnemo 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.txt CHANGED
@@ -2,6 +2,11 @@
2
2
  = rufus-mnemo CHANGELOG.txt
3
3
 
4
4
 
5
+ == rufus-mnemo - 1.2.1 released 2011/08/27
6
+
7
+ - Rufus::Mnemo.to_s(i) (alias for .from_i(i))
8
+
9
+
5
10
  == rufus-mnemo - 1.2.0 released 2010/11/22
6
11
 
7
12
  - neutralized -W warnings
data/LICENSE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- Copyright (c) 2007-2010, John Mettraux, jmettraux@gmail.com
2
+ Copyright (c) 2007-2011, John Mettraux, jmettraux@gmail.com
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  of this software and associated documentation files (the "Software"), to deal
data/Rakefile CHANGED
@@ -1,85 +1,83 @@
1
1
 
2
+ $:.unshift('.') # 1.9.2
3
+
2
4
  require 'rubygems'
5
+ require 'rubygems/user_interaction' if Gem::RubyGemsVersion == '1.5.0'
6
+
3
7
  require 'rake'
8
+ require 'rake/clean'
9
+ require 'rdoc/task'
4
10
 
5
11
 
6
- load 'lib/rufus/mnemo.rb'
12
+ #
13
+ # clean
14
+
15
+ CLEAN.include('pkg', 'rdoc')
7
16
 
8
17
 
9
18
  #
10
- # CLEAN
19
+ # test / spec
11
20
 
12
- require 'rake/clean'
13
- CLEAN.include('pkg', 'tmp', 'html')
14
- task :default => [ :clean ]
21
+ task :test do
22
+ sh 'ruby test/test.rb'
23
+ end
24
+ task :default => :test
15
25
 
16
26
 
17
27
  #
18
- # GEM
28
+ # gem
19
29
 
20
- require 'jeweler'
30
+ GEMSPEC_FILE = Dir['*.gemspec'].first
31
+ GEMSPEC = eval(File.read(GEMSPEC_FILE))
32
+ GEMSPEC.validate
21
33
 
22
- Jeweler::Tasks.new do |gem|
23
34
 
24
- gem.version = Rufus::Mnemo::VERSION
25
- gem.name = 'rufus-mnemo'
26
- gem.summary = 'Turning (large) integers into japanese sounding words and vice versa'
27
- gem.description = %{
28
- Turning (large) integers into japanese sounding words and vice versa'
29
- }
30
- gem.email = 'jmettraux@gmail.com'
31
- gem.homepage = 'http://github.com/jmettraux/rufus-mnemo/'
32
- gem.authors = [ 'John Mettraux' ]
33
- gem.rubyforge_project = 'rufus'
35
+ desc %{
36
+ builds the gem and places it in pkg/
37
+ }
38
+ task :build do
34
39
 
35
- gem.test_file = 'test/test.rb'
40
+ sh "gem build #{GEMSPEC_FILE}"
41
+ sh "mkdir pkg" rescue nil
42
+ sh "mv #{GEMSPEC.name}-#{GEMSPEC.version}.gem pkg/"
43
+ end
36
44
 
37
- #gem.add_dependency 'rufus-json', '>= 0.2.5'
38
- gem.add_development_dependency 'rake'
39
- gem.add_development_dependency 'jeweler'
45
+ desc %{
46
+ builds the gem and pushes it to rubygems.org
47
+ }
48
+ task :push => :build do
40
49
 
41
- # gemspec spec : http://www.rubygems.org/read/chapter/20
50
+ sh "gem push pkg/#{GEMSPEC.name}-#{GEMSPEC.version}.gem"
42
51
  end
43
- Jeweler::GemcutterTasks.new
44
52
 
45
53
 
46
54
  #
47
- # DOC
48
-
49
- #begin
50
- # require 'yard'
51
- # YARD::Rake::YardocTask.new do |doc|
52
- # doc.options = [
53
- # '-o', 'html/rufus-cloche', '--title',
54
- # "rufus-cloche #{Rufus::Cloche::VERSION}"
55
- # ]
56
- # end
57
- #rescue LoadError
58
- # task :yard do
59
- # abort "YARD is not available : sudo gem install yard"
60
- # end
61
- #end
62
-
55
+ # rdoc
63
56
  #
64
57
  # make sure to have rdoc 2.5.x to run that
65
- #
66
- require 'rake/rdoctask'
58
+
67
59
  Rake::RDocTask.new do |rd|
60
+
68
61
  rd.main = 'README.txt'
69
- rd.rdoc_dir = 'rdoc/rufus-mnemo'
70
- rd.rdoc_files.include('README.rdoc', 'CHANGELOG.txt', 'lib/**/*.rb')
71
- rd.title = "rufus-mnemo #{Rufus::Mnemo::VERSION}"
62
+ rd.rdoc_dir = "rdoc/#{GEMSPEC.name}"
63
+
64
+ rd.rdoc_files.include('README.mdown', 'CHANGELOG.txt', 'lib/**/*.rb')
65
+
66
+ rd.title = "#{GEMSPEC.name} #{GEMSPEC.version}"
72
67
  end
73
68
 
74
69
 
75
70
  #
76
- # TO THE WEB
71
+ # upload_rdoc
77
72
 
73
+ desc %{
74
+ upload the rdoc to rubyforge
75
+ }
78
76
  task :upload_rdoc => [ :clean, :rdoc ] do
79
77
 
80
78
  account = 'jmettraux@rubyforge.org'
81
79
  webdir = '/var/www/gforge-projects/rufus'
82
80
 
83
- sh "rsync -azv -e ssh rdoc/rufus-mnemo #{account}:#{webdir}/"
81
+ sh "rsync -azv -e ssh rdoc/#{GEMSPEC.name} #{account}:#{webdir}/"
84
82
  end
85
83
 
data/lib/rufus/mnemo.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2007-2010, John Mettraux, jmettraux@gmail.com
2
+ # Copyright (c) 2007-2011, John Mettraux, jmettraux@gmail.com
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  # of this software and associated documentation files (the "Software"), to deal
@@ -68,25 +68,15 @@ module Rufus
68
68
  #
69
69
  module Mnemo
70
70
 
71
- VERSION = '1.2.0'
71
+ VERSION = '1.2.1'
72
72
 
73
- V = %w[ a e i o u ]
74
- C = %w[ b d g h j k m n p r s t z ]
75
-
76
- SYL = []
77
-
78
- C.each do |s|
79
- V.each do |v|
80
- SYL << s + v
81
- end
82
- end
83
-
84
- SYL << 'wa'
85
- SYL << 'wo'
86
-
87
- SYL << 'ya'
88
- SYL << 'yo'
89
- SYL << 'yu'
73
+ SYL = %w[
74
+ b d g h j k m n p r s t z
75
+ ].product(%w[
76
+ a e i o u
77
+ ]).collect { |c, v| c + v }.concat(%w[
78
+ wa wo ya yo yu
79
+ ])
90
80
 
91
81
  SPECIAL = [
92
82
  [ 'hu', 'fu' ],
@@ -101,26 +91,24 @@ module Rufus
101
91
 
102
92
  # Turns the given integer into a Mnemo word.
103
93
  #
104
- def self.from_integer (integer)
94
+ def self.from_integer(integer)
105
95
 
106
96
  return "#{NEG}#{from_integer(-integer)}" if integer < 0
107
97
 
108
- s = from_i(integer)
109
- to_special(s)
98
+ to_special(from_i(integer))
110
99
  end
111
100
 
112
101
  # Turns the given Mnemo word to its equivalent integer.
113
102
  #
114
- def self.to_integer (string)
103
+ def self.to_integer(string)
115
104
 
116
- s = from_special(string)
117
- to_i(s)
105
+ to_i(from_special(string))
118
106
  end
119
107
 
120
108
  # Turns a simple syllable into the equivalent number.
121
109
  # For example Mnemo::to_number("fu") will yield 19.
122
110
  #
123
- def self.to_number (syllable)
111
+ def self.to_number(syllable)
124
112
 
125
113
  SYL.each_with_index do |s, index|
126
114
  return index if syllable == s
@@ -132,7 +120,7 @@ module Rufus
132
120
  # For example, "tsunashima" will be split into
133
121
  # [ "tsu", "na", "shi", "ma" ]
134
122
  #
135
- def self.split (word)
123
+ def self.split(word)
136
124
 
137
125
  word = from_special(word)
138
126
  a = string_split(word)
@@ -143,19 +131,17 @@ module Rufus
143
131
  # Returns if the string is a Mnemo word, like "fugu" or
144
132
  # "toriyamanobashi".
145
133
  #
146
- def self.is_mnemo_word (string)
134
+ def self.is_mnemo_word(string)
147
135
 
148
136
  begin
149
137
  to_integer(string)
150
138
  true
151
- rescue #Exception => e
139
+ rescue
152
140
  false
153
141
  end
154
142
  end
155
143
 
156
- private
157
-
158
- def self.string_split (s, result=[])
144
+ def self.string_split(s, result=[])
159
145
 
160
146
  return result if s.length < 1
161
147
 
@@ -164,22 +150,22 @@ module Rufus
164
150
  string_split(s[2..-1], result)
165
151
  end
166
152
 
167
- def self.a_to_special (a)
153
+ def self.a_to_special(a)
168
154
 
169
155
  a.collect { |syl| SPECIAL.find { |aa, bb| syl == bb } || syl }
170
156
  end
171
157
 
172
- def self.to_special (s)
158
+ def self.to_special(s)
173
159
 
174
160
  SPECIAL.inject(s) { |ss, (a, b)| ss.gsub(a, b) }
175
161
  end
176
162
 
177
- def self.from_special (s)
163
+ def self.from_special(s)
178
164
 
179
165
  SPECIAL.inject(s) { |ss, (a, b)| ss.gsub(b, a) }
180
166
  end
181
167
 
182
- def self.from_i (integer)
168
+ def self.from_i(integer)
183
169
 
184
170
  return '' if integer == 0
185
171
 
@@ -193,9 +179,11 @@ module Rufus
193
179
  from_i(rest) + SYL[mod]
194
180
  end
195
181
 
196
- def self.to_i (s)
182
+ def self.to_i(s)
197
183
 
198
- return 0 if s.length == 0
184
+ if s.length == 0
185
+ return 0
186
+ end
199
187
 
200
188
  if m = s.match(NEGATIVE)
201
189
  return -1 * to_i(m[1])
@@ -203,6 +191,10 @@ module Rufus
203
191
 
204
192
  SYL.length * to_i(s[0..-3]) + to_number(s[-2, 2])
205
193
  end
194
+
195
+ class << self
196
+ alias to_s from_i
197
+ end
206
198
  end
207
199
  end
208
200
 
data/rufus-mnemo.gemspec CHANGED
@@ -1,59 +1,33 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
1
 
6
2
  Gem::Specification.new do |s|
7
- s.name = %q{rufus-mnemo}
8
- s.version = "1.2.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["John Mettraux"]
12
- s.date = %q{2010-11-22}
13
- s.description = %q{
14
- Turning (large) integers into japanese sounding words and vice versa'
3
+
4
+ s.name = 'rufus-mnemo'
5
+
6
+ s.version = File.read(
7
+ File.expand_path('../lib/rufus/mnemo.rb', __FILE__)
8
+ ).match(/VERSION *= *['"]([^'"]+)/)[1]
9
+
10
+ s.platform = Gem::Platform::RUBY
11
+ s.authors = [ 'John Mettraux' ]
12
+ s.email = %w[ jmettraux@gmail.com ]
13
+ s.homepage = 'http://github.com/jmettraux/rufus-mnemo/'
14
+ s.rubyforge_project = 'rufus'
15
+ s.summary = 'Turning (large) integers into japanese sounding words and vice versa'
16
+ s.description = %{
17
+ Turning (large) integers into japanese sounding words and vice versa
15
18
  }
16
- s.email = %q{jmettraux@gmail.com}
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
19
- "README.txt"
20
- ]
21
- s.files = [
22
- "CHANGELOG.txt",
23
- "CREDITS.txt",
24
- "LICENSE.txt",
25
- "README.txt",
26
- "Rakefile",
27
- "doc/rdoc-style.css",
28
- "lib/rufus-mnemo.rb",
29
- "lib/rufus/mnemo.rb",
30
- "rufus-mnemo.gemspec",
31
- "test/test.rb"
32
- ]
33
- s.homepage = %q{http://github.com/jmettraux/rufus-mnemo/}
34
- s.rdoc_options = ["--charset=UTF-8"]
35
- s.require_paths = ["lib"]
36
- s.rubyforge_project = %q{rufus}
37
- s.rubygems_version = %q{1.3.7}
38
- s.summary = %q{Turning (large) integers into japanese sounding words and vice versa}
39
- s.test_files = [
40
- "test/test.rb"
19
+
20
+ #s.files = `git ls-files`.split("\n")
21
+ s.files = Dir[
22
+ 'Rakefile',
23
+ 'lib/**/*.rb', 'spec/**/*.rb', 'test/**/*.rb',
24
+ '*.gemspec', '*.txt', '*.rdoc', '*.md', '*.mdown'
41
25
  ]
42
26
 
43
- if s.respond_to? :specification_version then
44
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
45
- s.specification_version = 3
46
-
47
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
- s.add_development_dependency(%q<rake>, [">= 0"])
49
- s.add_development_dependency(%q<jeweler>, [">= 0"])
50
- else
51
- s.add_dependency(%q<rake>, [">= 0"])
52
- s.add_dependency(%q<jeweler>, [">= 0"])
53
- end
54
- else
55
- s.add_dependency(%q<rake>, [">= 0"])
56
- s.add_dependency(%q<jeweler>, [">= 0"])
57
- end
27
+ #s.add_dependency 'rufus-json', '>= 1.0.1'
28
+
29
+ s.add_development_dependency 'rake'
30
+
31
+ s.require_path = 'lib'
58
32
  end
59
33
 
data/test/test.rb CHANGED
@@ -2,8 +2,6 @@
2
2
  #
3
3
  # Testing rufus-mnemo
4
4
  #
5
- # John Mettraux at openwfe.org
6
- #
7
5
  # Sun Mar 18 13:29:37 JST 2007
8
6
  #
9
7
 
@@ -15,7 +13,6 @@ require 'rufus/mnemo'
15
13
  #
16
14
  # testing misc things
17
15
  #
18
-
19
16
  class MnemoTest < Test::Unit::TestCase
20
17
 
21
18
  #def setup
@@ -100,5 +97,10 @@ class MnemoTest < Test::Unit::TestCase
100
97
 
101
98
  assert_equal 'dobejotehozi', Rufus::Mnemo.from_i(13477774722)
102
99
  end
100
+
101
+ def test_to_s
102
+
103
+ assert_equal 'dobejotehozi', Rufus::Mnemo.to_s(13477774722)
104
+ end
103
105
  end
104
106
 
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufus-mnemo
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 29
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 2
8
- - 0
9
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - John Mettraux
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-11-22 00:00:00 +09:00
18
+ date: 2011-08-27 00:00:00 +09:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,52 +26,39 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 3
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
31
33
  type: :development
32
34
  version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: jeweler
35
- prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- version: "0"
44
- type: :development
45
- version_requirements: *id002
46
35
  description: "\n\
47
- Turning (large) integers into japanese sounding words and vice versa'\n "
48
- email: jmettraux@gmail.com
36
+ Turning (large) integers into japanese sounding words and vice versa\n "
37
+ email:
38
+ - jmettraux@gmail.com
49
39
  executables: []
50
40
 
51
41
  extensions: []
52
42
 
53
- extra_rdoc_files:
54
- - LICENSE.txt
55
- - README.txt
43
+ extra_rdoc_files: []
44
+
56
45
  files:
46
+ - Rakefile
47
+ - lib/rufus/mnemo.rb
48
+ - lib/rufus-mnemo.rb
49
+ - test/test.rb
50
+ - rufus-mnemo.gemspec
57
51
  - CHANGELOG.txt
58
52
  - CREDITS.txt
59
53
  - LICENSE.txt
60
54
  - README.txt
61
- - Rakefile
62
- - doc/rdoc-style.css
63
- - lib/rufus-mnemo.rb
64
- - lib/rufus/mnemo.rb
65
- - rufus-mnemo.gemspec
66
- - test/test.rb
67
55
  has_rdoc: true
68
56
  homepage: http://github.com/jmettraux/rufus-mnemo/
69
57
  licenses: []
70
58
 
71
59
  post_install_message:
72
- rdoc_options:
73
- - --charset=UTF-8
60
+ rdoc_options: []
61
+
74
62
  require_paths:
75
63
  - lib
76
64
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -78,6 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
66
  requirements:
79
67
  - - ">="
80
68
  - !ruby/object:Gem::Version
69
+ hash: 3
81
70
  segments:
82
71
  - 0
83
72
  version: "0"
@@ -86,15 +75,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
75
  requirements:
87
76
  - - ">="
88
77
  - !ruby/object:Gem::Version
78
+ hash: 3
89
79
  segments:
90
80
  - 0
91
81
  version: "0"
92
82
  requirements: []
93
83
 
94
84
  rubyforge_project: rufus
95
- rubygems_version: 1.3.7
85
+ rubygems_version: 1.6.2
96
86
  signing_key:
97
87
  specification_version: 3
98
88
  summary: Turning (large) integers into japanese sounding words and vice versa
99
- test_files:
100
- - test/test.rb
89
+ test_files: []
90
+
data/doc/rdoc-style.css DELETED
@@ -1,320 +0,0 @@
1
- html, body {
2
- height: 100%; }
3
-
4
- body {
5
- font-family: Helvetica Neue, Helvetica, sans-serif;
6
- font-size: 85%;
7
- margin: 0;
8
- padding: 0;
9
- background: white;
10
- color: black; }
11
-
12
- #wrapper {
13
- min-height: 100%;
14
- height: auto !important;
15
- height: 100%;
16
- margin: 0 auto -43px; }
17
-
18
- #footer-push {
19
- height: 43px; }
20
-
21
- div.header, #footer {
22
- background: #eee; }
23
-
24
- #footer {
25
- border-top: 1px solid silver;
26
- margin-top: 12px;
27
- padding: 0 2em;
28
- line-height: 30px;
29
- text-align: center;
30
- font-variant: small-caps;
31
- font-size: 95%; }
32
-
33
- .clearing:after {
34
- content: ".";
35
- visibility: hidden;
36
- height: 0;
37
- display: block;
38
- clear: both; }
39
- * html .clearing {
40
- height: 1px; }
41
- .clearing *:first-child + html {
42
- overflow: hidden; }
43
-
44
- h1, h2, h3, h4, h5, h6 {
45
- margin: 0;
46
- font-weight: normal; }
47
-
48
- a {
49
- color: #0b3e71; }
50
- a:hover {
51
- background: #336699;
52
- text-decoration: none;
53
- color: #eef; }
54
-
55
- #diagram img {
56
- border: 0; }
57
-
58
- #description a, .method .description a, .header a {
59
- color: #336699; }
60
- #description a:hover, .method .description a:hover, .header a:hover {
61
- color: #eee; }
62
- #description h1 a, #description h2 a, #description h3 a, #description h4 a, #description h5 a, #description h6 a, .method .description h1 a, .method .description h2 a, .method .description h3 a, .method .description h4 a, .method .description h5 a, .method .description h6 a, .header h1 a, .header h2 a, .header h3 a, .header h4 a, .header h5 a, .header h6 a {
63
- color: #0b3e71; }
64
-
65
- ol {
66
- margin: 0;
67
- padding: 0;
68
- list-style: none; }
69
- ol li {
70
- margin-left: 0;
71
- white-space: nowrap; }
72
- ol li.other {
73
- display: none; }
74
-
75
- ol.expanded li.other {
76
- display: list-item; }
77
-
78
- table {
79
- margin-bottom: 1em;
80
- font-size: 1em;
81
- border-collapse: collapse; }
82
- table td, table th {
83
- padding: .4em .8em; }
84
- table thead {
85
- background-color: #e8e8e8; }
86
- table thead th {
87
- font-variant: small-caps;
88
- color: #666666; }
89
- table tr {
90
- border-bottom: 1px solid silver; }
91
-
92
- #index a.show, div.header a.show {
93
- text-decoration: underline;
94
- font-style: italic;
95
- color: #666666; }
96
- #index a.show:after, div.header a.show:after {
97
- content: " ..."; }
98
- #index a.show:hover, div.header a.show:hover {
99
- color: black;
100
- background: #ffe; }
101
-
102
- #index {
103
- font: 85%/1.2 Helvetica neue, Helvetica, sans-serif; }
104
- #index a {
105
- text-decoration: none; }
106
- #index h1 {
107
- padding: .2em .5em .1em;
108
- background: #ccc;
109
- font: small-caps 1.2em Helvetica Neue, Helvetica, sans-serif;
110
- color: #333;
111
- border-bottom: 1px solid gray; }
112
- #index form {
113
- margin: 0;
114
- padding: 0; }
115
- #index form input {
116
- margin: .4em;
117
- margin-bottom: 0;
118
- width: 90%; }
119
- #index form #search.untouched {
120
- color: #777777; }
121
- #index ol {
122
- padding: .4em .5em; }
123
- #index ol li {
124
- white-space: nowrap; }
125
- #index #index-entries li a {
126
- padding: 1px 2px; }
127
- #index #index-entries.classes {
128
- font-size: 1.1em; }
129
- #index #index-entries.classes ol {
130
- padding: 0; }
131
- #index #index-entries.classes span.nodoc {
132
- display: none; }
133
- #index #index-entries.classes span.nodoc, #index #index-entries.classes a {
134
- font-weight: bold; }
135
- #index #index-entries.classes .parent {
136
- font-weight: normal; }
137
- #index #index-entries.methods li, #index #search-results.methods li {
138
- margin-bottom: 0.2em; }
139
- #index #index-entries.methods li a .method_name, #index #search-results.methods li a .method_name {
140
- margin-right: 0.25em; }
141
- #index #index-entries.methods li a .module_name, #index #search-results.methods li a .module_name {
142
- color: #666666; }
143
- #index #index-entries.methods li a:hover .module_name, #index #search-results.methods li a:hover .module_name {
144
- color: #ddd; }
145
-
146
- div.header {
147
- font-size: 80%;
148
- padding: .5em 2%;
149
- font-family: Helvetica, sans-serif;
150
- border-bottom: 1px solid silver; }
151
- div.header .name {
152
- font-size: 1.6em;
153
- font-family: Helvetica, sans-serif; }
154
- div.header .name .type {
155
- color: #666666;
156
- font-size: 80%;
157
- font-variant: small-caps; }
158
- div.header h1.name {
159
- font-size: 2.2em; }
160
- div.header .paths, div.header .last-update, div.header .parent {
161
- color: #666666; }
162
- div.header .last-update .datetime {
163
- color: #484848; }
164
- div.header .parent {
165
- margin-top: .3em; }
166
- div.header .parent strong {
167
- font-weight: normal;
168
- color: #484848; }
169
-
170
- #content {
171
- padding: 12px 2%; }
172
- div.class #content {
173
- position: relative;
174
- width: 72%; }
175
- #content pre, #content .method .synopsis {
176
- font: 14px Monaco, DejaVu Sans Mono , Bitstream Vera Sans Mono , Courier New , monospace; }
177
- #content pre {
178
- color: black;
179
- background: #eee;
180
- border: 1px solid silver;
181
- padding: .5em .8em;
182
- overflow: auto; }
183
- #content p code, #content p tt, #content li code, #content li tt, #content dl code, #content dl tt {
184
- font: 14px Monaco, DejaVu Sans Mono , Bitstream Vera Sans Mono , Courier New , monospace;
185
- background: #ffffe3;
186
- padding: 2px 3px;
187
- line-height: 1.4; }
188
- #content h1 code, #content h1 tt, #content h2 code, #content h2 tt, #content h3 code, #content h3 tt, #content h4 code, #content h4 tt, #content h5 code, #content h5 tt, #content h6 code, #content h6 tt {
189
- font-size: 1.1em; }
190
- #content #text {
191
- position: relative; }
192
- #content #description p {
193
- margin-top: .5em; }
194
- #content #description h1, #content #description h2, #content #description h3, #content #description h4, #content #description h5, #content #description h6 {
195
- font-family: Helvetica Neue, Helvetica, sans-serif; }
196
- #content #description h1 {
197
- font-size: 2.2em;
198
- margin-bottom: .2em;
199
- border-bottom: 3px double #d8d8d8;
200
- padding-bottom: .1em; }
201
- #content #description h2 {
202
- font-size: 1.8em;
203
- color: #0e3062;
204
- margin: .8em 0 .3em 0; }
205
- #content #description h3 {
206
- font-size: 1.6em;
207
- margin: .8em 0 .3em 0;
208
- color: #666666; }
209
- #content #description h4 {
210
- font-size: 1.4em;
211
- margin: .8em 0 .3em 0; }
212
- #content #description h5 {
213
- font-size: 1.2em;
214
- margin: .8em 0 .3em 0;
215
- color: #0e3062; }
216
- #content #description h6 {
217
- font-size: 1.0em;
218
- margin: .8em 0 .3em 0;
219
- color: #666666; }
220
- #content #description ul, #content #description ol, #content .method .description ul, #content .method .description ol {
221
- margin: .8em 0;
222
- padding-left: 1.5em; }
223
- #content #description ol, #content .method .description ol {
224
- list-style: decimal; }
225
- #content #description ol li, #content .method .description ol li {
226
- white-space: normal; }
227
-
228
- #method-list {
229
- position: absolute;
230
- top: 0px;
231
- right: -33%;
232
- width: 28%;
233
- background: #eee;
234
- border: 1px solid silver;
235
- padding: .4em 1%;
236
- overflow: hidden; }
237
- #method-list h2 {
238
- font-size: 1.3em; }
239
- #method-list h3 {
240
- font-variant: small-caps;
241
- text-transform: capitalize;
242
- font-family: Helvetica Neue, Helvetica, sans-serif;
243
- color: #666;
244
- font-size: 1.1em; }
245
- #method-list ol {
246
- padding: 0 0 .5em .5em; }
247
-
248
- #context {
249
- border-top: 1px dashed silver;
250
- margin-top: 1em;
251
- margin-bottom: 1em; }
252
-
253
- #context h2, #section h2 {
254
- font: small-caps 1.2em Helvetica Neue, Helvetica, sans-serif;
255
- color: #444;
256
- margin: 1em 0 .2em 0; }
257
-
258
- #methods .method {
259
- border: 1px solid silver;
260
- margin-top: .5em;
261
- background: #eee; }
262
- #methods .method .synopsis {
263
- color: black;
264
- background: silver;
265
- padding: .2em 1em; }
266
- #methods .method .synopsis .name {
267
- font-weight: bold; }
268
- #methods .method .synopsis a {
269
- text-decoration: none; }
270
- #methods .method .description {
271
- padding: 0 1em; }
272
- #methods .method .description pre {
273
- background: #f8f8f8; }
274
- #methods .method .source {
275
- margin: .5em 0; }
276
- #methods .method .source-toggle {
277
- font-size: 85%;
278
- margin-left: 1em; }
279
- #methods .public-class {
280
- background: #ffffe4; }
281
- #methods .public-instance .synopsis {
282
- color: #eee;
283
- background: #336699; }
284
-
285
- #content .method .source pre {
286
- font-size: 90%;
287
- background: #262626;
288
- color: #ffdead;
289
- margin: 1em;
290
- padding: 0.5em;
291
- border: 1px dashed #999;
292
- overflow: auto; }
293
- #content .method .source pre .ruby-constant {
294
- color: #7fffd4;
295
- background: transparent; }
296
- #content .method .source pre .ruby-keyword {
297
- color: #00ffff;
298
- background: transparent; }
299
- #content .method .source pre .ruby-ivar {
300
- color: #eedd82;
301
- background: transparent; }
302
- #content .method .source pre .ruby-operator {
303
- color: #00ffee;
304
- background: transparent; }
305
- #content .method .source pre .ruby-identifier {
306
- color: #ffdead;
307
- background: transparent; }
308
- #content .method .source pre .ruby-node {
309
- color: #ffa07a;
310
- background: transparent; }
311
- #content .method .source pre .ruby-comment {
312
- color: #b22222;
313
- font-weight: bold;
314
- background: transparent; }
315
- #content .method .source pre .ruby-regexp {
316
- color: #ffa07a;
317
- background: transparent; }
318
- #content .method .source pre .ruby-value {
319
- color: #7fffd4;
320
- background: transparent; }