linggle 0.02 → 0.03

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: 0e9751c84373bda3940f935253f35168486ad3fa
4
- data.tar.gz: e8dfe438656c9ca2d01214d32e4733e477f64d72
3
+ metadata.gz: 4b84fd307ea286cfa52eeb140f31910e346c65c1
4
+ data.tar.gz: 78ccfb33e517f27ddf418b34c9d373c29214d63e
5
5
  SHA512:
6
- metadata.gz: 8ad77dada3896b0df3b0df82a9f30f3a4a8897729c9ca862f7bb8581c23e2f3de6c54552e342a3577287b0394b1cc3215040cbb194494be3b9202c988a443e20
7
- data.tar.gz: 15102762aae36927e4b55b6c888e8236ba46e409d8d806f9af1ee44441b3b49e2c01f4cdb5f1fde76c4a6f8ba66119087a86c8de833711a232aaa35e91e3a50b
6
+ metadata.gz: 10426a517462bf91e688dbb510c352783538ad09f5a2eb030b6481c44816e191baf767e2427521eee7a9078f427e9b92815e05daf64ef7ab3893a0de0c2d8075
7
+ data.tar.gz: efa5c1709e6f0eab608e93137a4d1e7647a7c769b7419a8ce614f4e84954a80cf62ee75ce1bcd63a0afe9cdf3fd7d766083bd530d7a8f6b65cda82c951b6ce52
File without changes
@@ -1,3 +1,3 @@
1
1
  module Linggle
2
- VERSION = "0.02"
2
+ VERSION = "0.03"
3
3
  end
@@ -0,0 +1,9 @@
1
+ RSpec.describe Linggle do
2
+ it "has a version number" do
3
+ expect(Linggle::VERSION).not_to be nil
4
+ end
5
+
6
+ it "does something useful" do
7
+ expect(false).to eq(true)
8
+ end
9
+ end
@@ -0,0 +1,14 @@
1
+ require "bundler/setup"
2
+ require "linggle"
3
+
4
+ RSpec.configure do |config|
5
+ # Enable flags like --only-failures and --next-failure
6
+ config.example_status_persistence_file_path = ".rspec_status"
7
+
8
+ # Disable RSpec exposing methods globally on `Module` and `main`
9
+ config.disable_monkey_patching!
10
+
11
+ config.expect_with :rspec do |c|
12
+ c.syntax = :expect
13
+ end
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linggle
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.02'
4
+ version: '0.03'
5
5
  platform: ruby
6
6
  authors:
7
7
  - fangxing
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-13 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,29 +69,21 @@ dependencies:
69
69
  description: use linggle in your command line
70
70
  email:
71
71
  - fangxing204@gmail.com
72
- executables: []
72
+ executables:
73
+ - linggle
74
+ - linggle-console
73
75
  extensions: []
74
76
  extra_rdoc_files: []
75
77
  files:
76
- - ".gitignore"
77
- - ".rspec"
78
- - ".travis.yml"
79
- - Gemfile
80
- - Gemfile.lock
81
- - LICENSE.txt
82
- - README.md
83
- - Rakefile
84
- - assets/short.png
85
- - bin/console
86
78
  - bin/linggle
87
- - bin/setup
79
+ - bin/linggle-console
88
80
  - lib/linggle.rb
89
81
  - lib/linggle/api.rb
90
82
  - lib/linggle/prints.rb
91
83
  - lib/linggle/string.rb
92
84
  - lib/linggle/version.rb
93
- - linggle.gemspec
94
- - test
85
+ - spec/linggle_spec.rb
86
+ - spec/spec_helper.rb
95
87
  homepage: https://github.com/fffx/linggle-cli
96
88
  licenses:
97
89
  - MIT
@@ -116,4 +108,6 @@ rubygems_version: 2.6.11
116
108
  signing_key:
117
109
  specification_version: 4
118
110
  summary: http://linggle.com/ in cli
119
- test_files: []
111
+ test_files:
112
+ - spec/linggle_spec.rb
113
+ - spec/spec_helper.rb
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2.2
5
- before_install: gem install bundler -v 1.16.0.pre.3
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source "https://gems.ruby-china.org"
2
-
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in linggle.gemspec
6
- gemspec
@@ -1,37 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- linggle (0.1.0)
5
-
6
- GEM
7
- remote: https://gems.ruby-china.org/
8
- specs:
9
- colorize (0.8.1)
10
- diff-lcs (1.3)
11
- rake (10.5.0)
12
- rspec (3.5.0)
13
- rspec-core (~> 3.5.0)
14
- rspec-expectations (~> 3.5.0)
15
- rspec-mocks (~> 3.5.0)
16
- rspec-core (3.5.4)
17
- rspec-support (~> 3.5.0)
18
- rspec-expectations (3.5.0)
19
- diff-lcs (>= 1.2.0, < 2.0)
20
- rspec-support (~> 3.5.0)
21
- rspec-mocks (3.5.0)
22
- diff-lcs (>= 1.2.0, < 2.0)
23
- rspec-support (~> 3.5.0)
24
- rspec-support (3.5.0)
25
-
26
- PLATFORMS
27
- ruby
28
-
29
- DEPENDENCIES
30
- bundler (~> 1.16.a)
31
- colorize (~> 0.8.0)
32
- linggle!
33
- rake (~> 10.0)
34
- rspec (~> 3.0)
35
-
36
- BUNDLED WITH
37
- 1.16.0.pre.3
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 fangxing
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/README.md DELETED
@@ -1,82 +0,0 @@
1
- # Linggle
2
- A Linggle(http://linggle.com/) in cli
3
-
4
- ![linggle cli](https://raw.githubusercontent.com/fffx/linggle-cli/master/assets/short.png)
5
-
6
- ## Installation
7
-
8
- Add this line to your application's Gemfile:
9
-
10
- ```ruby
11
- gem 'linggle'
12
- ```
13
-
14
- And then execute:
15
-
16
- $ bundle
17
-
18
- Or install it yourself as:
19
-
20
- $ gem install linggle
21
-
22
- ## Usage
23
-
24
- - 查询任意一至多个词
25
- 只要在你想要插入字词的位置使用* (星号)来查询一个词,或是_ (底线)来查询零至多个词就可以了。
26
-
27
- ```
28
- present a method _
29
- listen _ music
30
- ```
31
-
32
-
33
-
34
- - 使用问号查询是否需要某个字
35
- 小明在报告里写了这么一句话:“I would like to discuss about the issue.”
36
- 回头检查时,总是觉得哪里怪怪的,他很怀疑“discuss”后面到底需不需要
37
- 加“about” ⋯⋯这时只要使用Linggle,在你不确定的字前加上? (问号),Linggle就会告诉你需不需要这个字啰!
38
-
39
- ```
40
- discuss ?about the issue
41
- ```
42
-
43
- - 使用斜线号查询如何替换某字词
44
- 介系词这么多常常搞不清楚要用哪一个吗?太多字可以用却不知道哪一个比较适合吗?
45
- 让Linggle来告诉你该怎么选吧!很简单,只需要在你要抉择的两个字中间加入/ (斜线号)
46
- 就可以了!不只是介系词,其他词性也可以!
47
-
48
- ```
49
- in/at the afternoon
50
- play _ important role/part
51
- ```
52
-
53
- - 使用任意词性查询搭配词
54
- Linggle最大的特色,就是可以使用「关键词」配合「特定词性」来查询各种搭配词。比如说,
55
- 可以用v. death penalty来查询“death penalty”搭配的动词,效果不逊于一般搭配词典喔!
56
- ```
57
- v. death penalty
58
- acquire n.
59
- ```
60
-
61
-
62
- - 精准的搭配词查询
63
- 想要更加精准的查询搭配词,我们就会建议使用复杂的查询式,例如在想要查询的动词前
64
- 加上一个“to”,让Linggle 不至于会错意。
65
- ```
66
- to v. ?prep. ?det. difficulty/difficulties
67
- ```
68
-
69
-
70
- ## Development
71
-
72
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
73
-
74
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
75
-
76
- ## Contributing
77
-
78
- Bug reports and pull requests are welcome on GitHub at https://github.com/fangxing204/linggle.
79
-
80
- ## License
81
-
82
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
Binary file
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,38 +0,0 @@
1
-
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "linggle/version"
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "linggle"
8
- spec.version = Linggle::VERSION
9
- spec.authors = ["fangxing"]
10
- spec.email = ["fangxing204@gmail.com"]
11
-
12
- spec.summary = %q{http://linggle.com/ in cli}
13
- spec.description = %q{use linggle in your command line}
14
- spec.homepage = "https://github.com/fffx/linggle-cli"
15
- spec.license = "MIT"
16
-
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- ##
20
- # if spec.respond_to?(:metadata)
21
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
22
- # else
23
- # raise "RubyGems 2.0 or newer is required to protect against " \
24
- # "public gem pushes."
25
- # end
26
-
27
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
28
- f.match(%r{^(test|spec|features)/})
29
- end
30
- spec.bindir = "exe"
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
- spec.require_paths = ["lib"]
33
-
34
- spec.add_development_dependency "bundler", "~> 1.16.a"
35
- spec.add_development_dependency "rake", "~> 10.0"
36
- spec.add_development_dependency "rspec", "~> 3.0"
37
- spec.add_dependency "colorize", "~> 0.8.0"
38
- end
data/test DELETED
@@ -1,2 +0,0 @@
1
-
2
- puts $: