auxiliary_rails 0.1.1 → 0.1.2
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/.rubocop.yml +2 -1
- data/.travis.yml +3 -0
- data/CHANGELOG.md +16 -2
- data/Gemfile.lock +1 -1
- data/README.md +15 -3
- data/lib/auxiliary_rails/railtie.rb +9 -0
- data/lib/auxiliary_rails/version.rb +1 -1
- data/lib/auxiliary_rails/view_helpers.rb +11 -0
- data/lib/auxiliary_rails.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dce34a0947ba20a256225ca03f3622701fb2a4e93ce59b9a4742398ff09e7158
|
4
|
+
data.tar.gz: 720609166305db76bbb4b501011fb240f9448894f1d0abcbd2f7cf59f6949b89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b91070a6b45fd48d6ba572fa6994b551621bc2de2394bbb8330e6c92deee7de9a25ebbc3e07c760f4560ace4491bab91ef5ce1262d208a5419c0bb4c2e8511f5
|
7
|
+
data.tar.gz: 9e82e6f53db8770b2d0cd1771889f7a481f5e80907d0b009cbbc67878526cc4423fe242f55b986938cc73f30e2c90a5e7a4d24ed74c9ec2055aed48e651df719
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
-
#
|
1
|
+
# AuxiliaryRails Changelog
|
2
2
|
|
3
|
-
|
3
|
+
## v0.1.1
|
4
|
+
|
5
|
+
* Fix Gemfile.lock
|
6
|
+
|
7
|
+
## v0.1.1
|
8
|
+
|
9
|
+
* View Helpers: `current_controller?` and `current_action?`
|
10
|
+
* Travis CI, Code Climate integration
|
11
|
+
* Badges in README.md: gem, build status, maintainability
|
12
|
+
|
13
|
+
## v0.1.0
|
14
|
+
|
15
|
+
Initial release
|
16
|
+
|
17
|
+
* Generators `install_rubocop` and `install_errors`
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
Collection of classes, configs, scripts, generators for Ruby on Rails helping you get things done, better.
|
4
4
|
|
5
|
+
[](https://rubygems.org/gems/auxiliary_rails)
|
6
|
+
[](https://travis-ci.org/ergoserv/auxiliary_rails)
|
7
|
+
[](https://codeclimate.com/github/ergoserv/auxiliary_rails/maintainability)
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
Add this line to your application's Gemfile:
|
@@ -20,10 +24,18 @@ Or install it yourself as:
|
|
20
24
|
|
21
25
|
## Usage
|
22
26
|
|
27
|
+
### Generators
|
28
|
+
|
23
29
|
```sh
|
24
|
-
|
25
|
-
rails
|
26
|
-
|
30
|
+
rails generate auxiliary_rails:install_errors
|
31
|
+
rails generate auxiliary_rails:install_rubocop
|
32
|
+
```
|
33
|
+
|
34
|
+
### View Helpers
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
current_controller?(*ctrl_names)
|
38
|
+
current_action?(*action_names)
|
27
39
|
```
|
28
40
|
|
29
41
|
## Development
|
data/lib/auxiliary_rails.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auxiliary_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Babenko
|
@@ -104,7 +104,9 @@ files:
|
|
104
104
|
- bin/setup
|
105
105
|
- lib/auxiliary_rails.rb
|
106
106
|
- lib/auxiliary_rails/abstract_error.rb
|
107
|
+
- lib/auxiliary_rails/railtie.rb
|
107
108
|
- lib/auxiliary_rails/version.rb
|
109
|
+
- lib/auxiliary_rails/view_helpers.rb
|
108
110
|
- lib/generators/auxiliary_rails/install_errors_generator.rb
|
109
111
|
- lib/generators/auxiliary_rails/install_rubocop_generator.rb
|
110
112
|
- lib/generators/auxiliary_rails/templates/application_error_template.rb
|