constructor-core 0.7.9 → 0.7.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4138b391d54d90e84bf9a89338a38afbd0a9b183
4
- data.tar.gz: ae1b2d4971a3685e0038df5988c66757baa4dd29
3
+ metadata.gz: 749651bd8d58f82e40f4e891498a0c45d34ade3b
4
+ data.tar.gz: 758653ee4dabaf4a0a71a8f480ee1befdf7c8514
5
5
  SHA512:
6
- metadata.gz: 9f4f75541ab4b14d8680811b458639e84558de35e509987d5eef863804c77e95dc835ceb6402279746e5235bfc490890baeaf8f7d6a7008faff53b6c930acd8c
7
- data.tar.gz: c4bd5dd73bfe7652d1d9c2f5400a442198d4956d68314d3715a1de7fc1250dc875beb406fced73e9b9d46863b84a48affbd9776382777d96ac91d0125d308f57
6
+ metadata.gz: a3e4cb990d17c74703e44e13e16128c9d49b5730a33392ece8e5631f69975a9924785facba45c91fc366cc90bc7aa2e26dcd44fd683e44d9052d051e6eac1dd6
7
+ data.tar.gz: f53dc8584ccd150acc23203342bfea074acae25051a1a1f3ec9a3e8e5d5019abeaccaf797951c6a93fd931a3cf9ae9e238e3f3fa7b92d5eb7ec4e909f66345b0
@@ -21,7 +21,6 @@ class String
21
21
  end
22
22
 
23
23
  def accusative
24
- self.sub(/а$/, 'у').sub(/я$/, 'ю')
24
+ self.sub(/(.*)ая( ?)/, '\1ую\2').sub(/(.*)а( (.+))?$/, '\1у\2').sub(/(.*)я( (.+))?$/, '\1ю\2')
25
25
  end
26
-
27
26
  end
@@ -1,3 +1,3 @@
1
1
  module ConstructorCore
2
- VERSION = '0.7.9'
2
+ VERSION = '0.7.10'
3
3
  end
@@ -10,6 +10,11 @@ module ConstructorCore
10
10
  'стол'.accusative.should == 'стол'
11
11
  'категория'.accusative.should == 'категорию'
12
12
  end
13
+
14
+ it 'should convert two words to accusative' do
15
+ 'главная страница'.accusative.should == 'главную страницу'
16
+ 'страница главная'.accusative.should == 'страницу главную'
17
+ end
13
18
  end
14
19
  end
15
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constructor-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zotov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-26 00:00:00.000000000 Z
11
+ date: 2013-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails