gilenson 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,5 +1,9 @@
1
1
  === 1.2.0 / 2011-06-14
2
2
 
3
+ * Некоторые люди - ебанутые самоубийцы и не пользуются KCODE u. Жизнь их научит.
4
+
5
+ === 1.2.0 / 2011-06-14
6
+
3
7
  * Для копирайтов/трейдмарков теперь одна настройка
4
8
  * Починен символ копирайта на 1.9
5
9
 
data/lib/gilenson.rb CHANGED
@@ -1,8 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ old_kcode = $KCODE
2
3
  $KCODE = 'u' if RUBY_VERSION < '1.9.0'
3
4
 
4
5
  class Gilenson
5
- VERSION = '1.2.0'
6
+ VERSION = '1.2.1'
6
7
  autoload :BlueClothExtra, File.dirname(__FILE__) + '/extras/bluecloth_extra'
7
8
  autoload :RedClothExtra, File.dirname(__FILE__) + '/extras/redcloth_extra'
8
9
  autoload :RDiscountExtra, File.dirname(__FILE__) + '/extras/rdiscount_extra'
@@ -468,7 +469,7 @@ class Gilenson
468
469
  # Можно конечно может быть и так
469
470
  # https://github.com/daekrist/gilenson/commit/c3a96151239281dcef6140616133deb56a099d0f#L1R466
470
471
  # но без тестов это позорище.
471
- text.gsub!(/\([сСcC]\)[^\.,;:]/u) { |m| [@copy, m[-1..-1]].join }
472
+ text.gsub!(/\([сСcC]\)[^\.\,\;\:]/ui) { |m| [@copy, m.split(//u)[-1..-1]].join }
472
473
 
473
474
  # 4a. (r)
474
475
  text.gsub!( /\(r\)/ui, '<sup>'+@reg+'</sup>')
@@ -594,3 +595,5 @@ class Gilenson
594
595
  end
595
596
 
596
597
  Object::String.send(:include, Gilenson::StringFormatting)
598
+
599
+ $KCODE = old_kcode if RUBY_VERSION < '1.9.0'
@@ -1,16 +1,27 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $KCODE = 'u' if RUBY_VERSION < '1.9.0'
3
2
  require 'test/unit'
4
3
 
5
- # Prepend a slash to workaround a debilifuckitation (domo arigato Ruby core!)
6
- require File.expand_path(File.dirname(__FILE__)) + '/../lib/gilenson'
4
+ class A_TestRequireDoesNotReconfigureKcode < Test::Unit::TestCase
5
+ if RUBY_VERSION < '1.9.0'
6
+ def test_require_does_not_reconfigure
7
+ $KCODE = "NONE"
8
+ # Prepend a slash to workaround a debilifuckitation (domo arigato Ruby core!)
9
+ require File.expand_path(File.dirname(__FILE__)) + '/../lib/gilenson'
10
+ assert_equal "NONE", $KCODE, "$KCODE should have been reset"
11
+ end
12
+ else
13
+ require File.expand_path(File.dirname(__FILE__)) + '/../lib/gilenson'
14
+ end
15
+ end
7
16
 
17
+ $KCODE = 'u' if RUBY_VERSION < '1.9.0'
8
18
 
9
19
  # Cюда идут наши тесты типографа. Мы содержим их отдельно поскольку набор тестов Типографицы нами не контролируется.
10
20
  # Когда у рутилей появятся собственные баги под каждый баг следует завести тест
11
21
  class GilensonOwnTest < Test::Unit::TestCase
12
22
 
13
23
  def setup
24
+ $KCODE = 'u' if RUBY_VERSION < '1.9.0'
14
25
  @gilenson = Gilenson.new
15
26
  end
16
27
 
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gilenson
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 29
4
5
  prerelease:
5
- version: 1.2.0
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 1
10
+ version: 1.2.1
6
11
  platform: ruby
7
12
  authors:
8
13
  - Julik Tarkhanov
@@ -10,7 +15,8 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-06-14 00:00:00 Z
18
+ date: 2011-06-18 00:00:00 +02:00
19
+ default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: hoe
@@ -20,13 +26,27 @@ dependencies:
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 35
30
+ segments:
31
+ - 2
32
+ - 9
33
+ - 4
23
34
  version: 2.9.4
24
35
  type: :development
25
36
  version_requirements: *id001
26
- description: "\xD0\x9E\xD0\xB1\xD1\x80\xD0\xB0\xD0\xB1\xD0\xBE\xD1\x82\xD1\x87\xD0\xB8\xD0\xBA \xD1\x82\xD0\xB8\xD0\xBF\xD0\xBE\xD0\xB3\xD1\x80\xD0\xB0\xD1\x84\xD1\x81\xD0\xBA\xD0\xB8\xD1\x85 \xD1\x81\xD0\xB8\xD0\xBC\xD0\xB2\xD0\xBE\xD0\xBB\xD0\xBE\xD0\xB2 \xD0\xB2 HTML \xD1\x81\xD0\xBE\xD0\xB3\xD0\xBB\xD0\xB0\xD1\x81\xD0\xBD\xD0\xBE \xD0\xBE\xD0\xB1\xD1\x89\xD0\xB5\xD0\xBF\xD1\x80\xD0\xB8\xD0\xBD\xD1\x8F\xD1\x82\xD1\x8B\xD0\xBC \xD0\xBF\xD1\x80\xD0\xB0\xD0\xB2\xD0\xB8\xD0\xBB\xD0\xB0\xD0\xBC.\n\
27
- \xD0\x9F\xD0\xBE\xD1\x81\xD0\xB2\xD1\x8F\xD1\x89\xD0\xB0\xD0\xB5\xD1\x82\xD1\x81\xD1\x8F \xD0\x9F.\xD0\x93.\xD0\x93\xD0\xB8\xD0\xBB\xD0\xB5\xD0\xBD\xD1\x81\xD0\xBE\xD0\xBD\xD1\x83[http://www.rudtp.ru/lib.php?book=172], \xD0\xB1\xD0\xBB\xD0\xB0\xD0\xB3\xD0\xBE\xD0\xB4\xD0\xB0\xD1\x80\xD1\x8F \xD0\xBA\xD0\xBE\xD1\x82\xD0\xBE\xD1\x80\xD0\xBE\xD0\xBC\xD1\x83 \xD1\x80\xD1\x83\xD1\x81\xD1\x81\xD0\xBA\xD0\xB8\xD0\xB5 \xD0\xBF\xD1\x80\xD0\xB0\xD0\xB2\xD0\xB8\xD0\xBB\xD0\xB0 \xD1\x82\xD0\xB5\xD1\x85.\n\
28
- \xD1\x80\xD0\xB5\xD0\xB4\xD0\xB0\xD0\xBA\xD1\x82\xD1\x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DIwINC70LXRgiDQvtGB0YLQsNC9
46
+ 0YPRgtGB0Y8g0LHQtdGB0YHQvNGL0YHQu9C10L3QvdC+INGB0YLQsNGA0L7Q
47
+ vNC+0LTQvdGL0LzQuC4KCtCg0LDQt9GA0LDQsdC+0YLRh9C40LrQuCBnaWxl
48
+ bnNvbiAtIEp1bGlrLCBNYXNoLCBZYXJvc2xhdiBNYXJraW4u
49
+
30
50
  email:
31
51
  - me@julik.nl
32
52
  executables:
@@ -56,6 +76,7 @@ files:
56
76
  - test/test_integration_redcloth3.rb
57
77
  - test/test_integration_redcloth4.rb
58
78
  - .gemtest
79
+ has_rdoc: true
59
80
  homepage: http://github.com/julik/gilenson
60
81
  licenses: []
61
82
 
@@ -70,20 +91,30 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
91
  requirements:
71
92
  - - ">="
72
93
  - !ruby/object:Gem::Version
94
+ hash: 3
95
+ segments:
96
+ - 0
73
97
  version: "0"
74
98
  required_rubygems_version: !ruby/object:Gem::Requirement
75
99
  none: false
76
100
  requirements:
77
101
  - - ">="
78
102
  - !ruby/object:Gem::Version
103
+ hash: 3
104
+ segments:
105
+ - 0
79
106
  version: "0"
80
107
  requirements: []
81
108
 
82
109
  rubyforge_project: gilenson
83
- rubygems_version: 1.8.5
110
+ rubygems_version: 1.6.2
84
111
  signing_key:
85
112
  specification_version: 3
86
- summary: "\xD0\x9E\xD0\xB1\xD1\x80\xD0\xB0\xD0\xB1\xD0\xBE\xD1\x82\xD1\x87\xD0\xB8\xD0\xBA \xD1\x82\xD0\xB8\xD0\xBF\xD0\xBE\xD0\xB3\xD1\x80\xD0\xB0\xD1\x84\xD1\x81\xD0\xBA\xD0\xB8\xD1\x85 \xD1\x81\xD0\xB8\xD0\xBC\xD0\xB2\xD0\xBE\xD0\xBB\xD0\xBE\xD0\xB2 \xD0\xB2 HTML \xD1\x81\xD0\xBE\xD0\xB3\xD0\xBB\xD0\xB0\xD1\x81\xD0\xBD\xD0\xBE \xD0\xBE\xD0\xB1\xD1\x89\xD0\xB5\xD0\xBF\xD1\x80\xD0\xB8\xD0\xBD\xD1\x8F\xD1\x82\xD1\x8B\xD0\xBC \xD0\xBF\xD1\x80\xD0\xB0\xD0\xB2\xD0\xB8\xD0\xBB\xD0\xB0\xD0\xBC"
113
+ summary: !binary |
114
+ 0J7QsdGA0LDQsdC+0YLRh9C40Log0YLQuNC/0L7Qs9GA0LDRhNGB0LrQuNGF
115
+ INGB0LjQvNCy0L7Qu9C+0LIg0LIgSFRNTCDRgdC+0LPQu9Cw0YHQvdC+INC+
116
+ 0LHRidC10L/RgNC40L3Rj9GC0YvQvCDQv9GA0LDQstC40LvQsNC8
117
+
87
118
  test_files:
88
119
  - test/test_gilenson.rb
89
120
  - test/test_integration_bluecloth.rb