alfonsox 0.1.0 → 0.1.1
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 +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +21 -0
- data/Rakefile +17 -14
- data/lib/alfonsox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2cee871a10b135714609282f329b904e12cccc9cc1b4d0d9291ea6cc77ee87ed
|
|
4
|
+
data.tar.gz: 7aadff2c99d553a4fa964bf2bb519e190648a9471674a2464e3c669721f6af9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8878a20418c1fc122944db6f5ece7f4a3221ec3e294f37e3e059316c5cf3149eb309037088ea39a860f791ff03c19d1e71380da89768b65d0a825810c8627a81
|
|
7
|
+
data.tar.gz: 17ac27c4c7615f3b74549f2b7b3d2bda8ab86820b6acad7e69beaac6232d4dfb07d8037a7f6e115c61e61ec633ec474da64d7de9a0ea1565099574231333b2e6
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
|
@@ -9,6 +9,6 @@ before_script:
|
|
|
9
9
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
10
10
|
- chmod +x ./cc-test-reporter
|
|
11
11
|
- ./cc-test-reporter before-build
|
|
12
|
-
script: "bundle exec rake test"
|
|
12
|
+
script: "bundle exec rake alfonsox:test"
|
|
13
13
|
after_script:
|
|
14
14
|
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -108,6 +108,18 @@ Dictionaries:
|
|
|
108
108
|
|
|
109
109
|
#### Rake task
|
|
110
110
|
|
|
111
|
+
To use the rake task, you have to include the two following lines
|
|
112
|
+
in your project's Rakefile:
|
|
113
|
+
|
|
114
|
+
```ruby
|
|
115
|
+
alfonsox_gem = Gem::Specification.find_by_name('alfonsox')
|
|
116
|
+
load("#{alfonsox_gem.gem_dir}/Rakefile")
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
That two lines load all Alfonso X tasks' in your Rakefile.
|
|
120
|
+
|
|
121
|
+
Our aim is to use **alfonsox:spellcheck** task.
|
|
122
|
+
|
|
111
123
|
##### Default configuration
|
|
112
124
|
|
|
113
125
|
There is a [default configuration](/resources/configurations/default.yml)
|
|
@@ -276,6 +288,15 @@ RubyMine is a trademark of JetBrains. This project is no way endorsed, supported
|
|
|
276
288
|
|
|
277
289
|
Everyone interacting in the Alfonso X project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/diegojromerolopez/alfonsox/blob/master/CODE_OF_CONDUCT.md).
|
|
278
290
|
|
|
291
|
+
## Contributions
|
|
292
|
+
|
|
293
|
+
I accept contribution and feature requests via PR (GitHub pull requests).
|
|
294
|
+
|
|
295
|
+
Create an issue or send me an email before making a PR
|
|
296
|
+
if you are unsure about if your PR is going to be accepted.
|
|
297
|
+
|
|
298
|
+
Any constructive criticism is welcomed.
|
|
299
|
+
|
|
279
300
|
## Why the name?
|
|
280
301
|
|
|
281
302
|
[Alfonso X](https://en.wikipedia.org/wiki/Alfonso_X_of_Castile), called *The Wise*,
|
data/Rakefile
CHANGED
|
@@ -4,21 +4,25 @@
|
|
|
4
4
|
require 'rake/testtask'
|
|
5
5
|
require 'alfonsox'
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
t.test_files = FileList['test/enable_coverage.rb', 'test/**/*_test.rb']
|
|
11
|
-
t.warning = ENV['warning']
|
|
12
|
-
t.verbose = ENV['verbose']
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
desc 'Generates a coverage report'
|
|
16
|
-
task :coverage do
|
|
17
|
-
ENV['COVERAGE'] = 'true'
|
|
18
|
-
Rake::Task['test'].execute
|
|
19
|
-
end
|
|
7
|
+
# Include this Rakefile in your project's Rakefile by typing:
|
|
8
|
+
# alfonsox_gem = Gem::Specification.find_by_name('alfonsox')
|
|
9
|
+
# load("#{alfonsox_gem.gem_dir}/Rakefile")
|
|
20
10
|
|
|
21
11
|
namespace :alfonsox do
|
|
12
|
+
desc 'Run tests'
|
|
13
|
+
Rake::TestTask.new(:test) do |t|
|
|
14
|
+
t.libs.push 'test'
|
|
15
|
+
t.test_files = FileList['test/enable_coverage.rb', 'test/**/*_test.rb']
|
|
16
|
+
t.warning = ENV['warning']
|
|
17
|
+
t.verbose = ENV['verbose']
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
desc 'Generates a coverage report'
|
|
21
|
+
task :coverage do
|
|
22
|
+
ENV['COVERAGE'] = 'true'
|
|
23
|
+
Rake::Task['test'].execute
|
|
24
|
+
end
|
|
25
|
+
|
|
22
26
|
desc 'Spell checks a project'
|
|
23
27
|
task :spellcheck, [:config_path] => [] do |_t, args|
|
|
24
28
|
if args.config_path
|
|
@@ -37,4 +41,3 @@ namespace :alfonsox do
|
|
|
37
41
|
end
|
|
38
42
|
end
|
|
39
43
|
|
|
40
|
-
task default: :test
|
data/lib/alfonsox/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alfonsox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Diego J. Romero López
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-06-
|
|
11
|
+
date: 2019-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hunspell
|