russial 0.9.2 → 0.10.0

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: 8a8fca2276ace25021a9691b5e16a0a690a38b55
4
- data.tar.gz: 058a230274acf90a2499302ee55d693d20c44759
3
+ metadata.gz: 553c9a9fefb552e606941dc9ceb481ae44c7e0e1
4
+ data.tar.gz: 4fe6e9d70f79255915ea8d16684ae597158e3915
5
5
  SHA512:
6
- metadata.gz: 4cb189067c29ba7638f46220df4bbc7c1a13e5d8ec62e88c7129fde5b0c9ad1d785b49f0dd9ad75b393a2a889820f81ef68016998b6666225b80c8ff39766798
7
- data.tar.gz: 68150d5651439a8afe473b8f66b29591c9a04b35a5b8e108eb55c3e9f464838fe8a6529defec43078e8deb95a72d5c56d8b4cc2edd75a802ca37ccaabf3d6737
6
+ metadata.gz: b5c741e3da1416cc0d606e28beccf3520851266c6f2936d2f7c35779e8b3a6997672ce6c79adabf787cc475a81c01a234bde466a0055fd8f573055aed7efba60
7
+ data.tar.gz: f0c5460b874f25bf5a6bc64d036b59111514e62c442d8a434f5ad97973d1c2a041c135c195deefc89f9d3da23ee226d0700b061508339972fb508b47b4cb133a
data/README.md CHANGED
@@ -123,6 +123,13 @@ word.dative # "трёхкомнатной квартире"
123
123
  word.instrumental # "трёхкомнатной квартирой"
124
124
  ```
125
125
 
126
+ ### Shortcut
127
+
128
+ Instead of using full form of instantiating, you can use shortcut:
129
+ ```ruby
130
+ Russial("ruby")
131
+ ```
132
+
126
133
  ## Settings
127
134
 
128
135
  You can configure this gem. Add settings to initializers.
@@ -53,3 +53,5 @@ class Russial
53
53
  dictionary.dig(*path) || super
54
54
  end
55
55
  end
56
+
57
+ require "russial/kernel"
@@ -0,0 +1,5 @@
1
+ module Kernel
2
+ def Russial(*args)
3
+ Russial.new(*args)
4
+ end
5
+ end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class Russial
3
- VERSION = "0.9.2"
3
+ VERSION = "0.10.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: russial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mesto.ru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-29 00:00:00.000000000 Z
11
+ date: 2017-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -119,6 +119,7 @@ files:
119
119
  - lib/russial/dictionary/dynamic_methods.rb
120
120
  - lib/russial/dictionary/i18n.rb
121
121
  - lib/russial/dictionary/initializer.rb
122
+ - lib/russial/kernel.rb
122
123
  - lib/russial/version.rb
123
124
  - russial.gemspec
124
125
  homepage: https://github.com/mestoru/russial