yspell 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmZmMzUwN2NkMjZkYjY5ZTVmZWFmZDZkNGFhMGYzYWYyN2FiODAyZg==
4
+ OGYyMGY2ODVjNjEwNWIyYzg4MGM4ZmNlNmY0NWE2NzU0MWE2OTJlYg==
5
5
  data.tar.gz: !binary |-
6
- MDBiMjBiYjExNzYwMjIwZDY0MjM1YWY2ZDZmZWM2YzBhM2M5M2FlMQ==
6
+ MTljOGI5ZmUxNWEzZGRiNGZkNmRmOGYxMmJjZDcxM2FmNTYwMWQxYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDQ3MzAxMDk1NGJiYzY4OTRkYzkyOWE3YmEzMGUzNTdjOWU0NzgxNWE2YjRl
10
- ZDNkZGY0ZTRiZjc3MTA3OGNmYWUzMDlkZTUyMDk3ZDk0MDY0YTgwMGM5OWIy
11
- NmYwNGFiNGQyNTg0NDMzYjlhOGFlNDFmYTRjMTNhZmUwNzhkM2I=
9
+ NTMzODg1ODVkZjYyMGQzMTkyZTY2NzdkNWZhYTFkYWMyZmY0Mjk3NmI2N2Rj
10
+ NWNjYTRjNTRkYWM2YjBkODUyOTBhYjczMGJkYjdkOTdhNDczNDYxYWFmNDZm
11
+ MjkxMWM5ZDA1MjA1ODVkM2I4ZGFhYTMxNDBhYTY2MTA2NTdjYTM=
12
12
  data.tar.gz: !binary |-
13
- MjU5ZDg2ZTMxNjA1ZDU0NTZhNDk5OGIxZTM5N2Q1YmMxYTQwMmEzMTZiNTU3
14
- OGY0MWNjNTM3ZWJjYWE3NTkwN2Q4MzhhZDRhMzY4ZTBhMTI5YTkxNGVlMzMz
15
- MTJmYjE5Y2I3OTY2YmU4ZTM2MzFkY2VkZDk1MGZmNzJjZmJlYzM=
13
+ MThiYzhmZjg3ZGY3NjlmOGJjZjg4NjgzODY4MjRiMWU1MWU5NzMyNmRlYjY5
14
+ MzI3MTE4NDE4MGZiOWVhNDZmZGNlNTBjNzEwMmY2ZTI5OTY3OWFmNjkzOThl
15
+ ZmE2MmM4MWUwNzk0OWY2ODRiMDJiZjgyNTBiZTUyMmZlZjIwMjM=
data/README.md CHANGED
@@ -25,14 +25,6 @@ Or install it yourself as:
25
25
 
26
26
  ## Usage
27
27
 
28
- As ruby library
29
-
30
- require 'yspell'
31
-
32
- client = YSpell::Client.new
33
- client.check('some text for check')
34
-
35
-
36
28
  As command line tool
37
29
 
38
30
  Usage: yspell TEXT [OPTIONS]
@@ -48,6 +40,18 @@ As command line tool
48
40
  -v, --verbose Run verbosely
49
41
  -h, --help Help
50
42
 
43
+ As ruby library
44
+
45
+ require 'yspell'
46
+
47
+ client = YSpell::Client.new
48
+ client.check('sme text for chck')
49
+
50
+ >> [
51
+ #<YSpell::SpellError::UnknownWord:0x007f92a9156a38 @position=0, @row=0, @column=0, @length=3, @word="sme", @suggestions=["some", "me"], @code=1>,
52
+ #<YSpell::SpellError::UnknownWord:0x007f92a9156808 @position=13, @row=0, @column=13, @length=4, @word="chck", @suggestions=["check", "chick", "chuck"], @code=1>
53
+ ]
54
+
51
55
 
52
56
 
53
57
  ## Options
data/bin/yspell CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  $:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
4
4
 
5
- require 'y_spell'
6
- require 'y_spell/cli/application'
5
+ require 'yspell'
6
+ require 'yspell/cli/application'
7
7
 
8
8
  YSpell::CLI::Application.new.run(ARGV.dup)
data/lib/yspell.rb ADDED
@@ -0,0 +1,8 @@
1
+ require 'yspell/version'
2
+ require 'yspell/client'
3
+ require 'yspell/spell_error'
4
+ require 'yspell/error'
5
+
6
+ module YSpell
7
+
8
+ end
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  require 'optparse'
3
3
  require 'ostruct'
4
- require 'y_spell/cli/presenter'
4
+ require 'yspell/cli/presenter'
5
5
 
6
6
  module YSpell
7
7
  module CLI
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ module YSpell
2
+ VERSION = "0.1.3"
3
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
2
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
3
 
4
- require 'y_spell'
4
+ require 'yspell'
5
5
  require 'webmock/rspec'
6
6
 
7
7
 
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
  require 'spec_helper'
3
- require 'y_spell/cli/application'
3
+ require 'yspell/cli/application'
4
4
 
5
5
  describe YSpell::CLI::Application do
6
6
  include WebHelpers
@@ -13,7 +13,7 @@ describe YSpell::CLI::Application do
13
13
  it 'returns instructions' do
14
14
  cli.run(argv)
15
15
  stdout.rewind
16
- stdout.read.should include('Usage: spell-check TEXT [OPTIONS]')
16
+ stdout.read.should include('Usage: yspell TEXT [OPTIONS]')
17
17
  end
18
18
  end
19
19
 
data/yspell.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'y_spell/version'
4
+ require 'yspell/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "yspell"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yspell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - a.sabirov
@@ -109,13 +109,13 @@ files:
109
109
  - README.md
110
110
  - Rakefile
111
111
  - bin/yspell
112
- - lib/y_spell.rb
113
- - lib/y_spell/cli/application.rb
114
- - lib/y_spell/cli/presenter.rb
115
- - lib/y_spell/client.rb
116
- - lib/y_spell/error.rb
117
- - lib/y_spell/spell_error.rb
118
- - lib/y_spell/version.rb
112
+ - lib/yspell.rb
113
+ - lib/yspell/cli/application.rb
114
+ - lib/yspell/cli/presenter.rb
115
+ - lib/yspell/client.rb
116
+ - lib/yspell/error.rb
117
+ - lib/yspell/spell_error.rb
118
+ - lib/yspell/version.rb
119
119
  - spec/fixtures/english.html
120
120
  - spec/fixtures/english.txt
121
121
  - spec/fixtures/russian.txt
data/lib/y_spell.rb DELETED
@@ -1,8 +0,0 @@
1
- require 'y_spell/version'
2
- require 'y_spell/client'
3
- require 'y_spell/spell_error'
4
- require 'y_spell/error'
5
-
6
- module YSpell
7
-
8
- end
@@ -1,3 +0,0 @@
1
- module YSpell
2
- VERSION = "0.1.2"
3
- end