annotate_models 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fb388dbc9aa769b9fcc1d2807b79df97f3a407a
4
- data.tar.gz: d1255c67fc2f7dbcce4789c92b5f9571b3066e96
3
+ metadata.gz: c86f26d19656e179ca6c93a814e03e28994a561d
4
+ data.tar.gz: 4351b8d7bd27c9c6001bedc396fe2deb0733b23c
5
5
  SHA512:
6
- metadata.gz: 0282eedcbf64ea8f33af71d86ac8e23367439cd45727150e4193dc1ee8ecbbf7ccb322fe00b4eda5f8e55b4c2f5b97073c26c5a622d0bd7de0bfe9ad8601b388
7
- data.tar.gz: 7b5aa82c9f52ae110b517aa546ce4fa0ad4171db40da44da05d3dbd3601e4f0cc5707441d47b538fe57c5b7ad2c48071e9ada42a1a8adc0110b0078d346be5a2
6
+ metadata.gz: 1dc443ab73686ffe1e87e0781a78003e92d97364015ab38a33ec475c94412d83781943fab6a9f440f8211ee6c9c999026d5909710a51523c1bcfc86b4f874b0c
7
+ data.tar.gz: 927a21e253f73e822ff5162812a4587b855531f09b56a7d2b74007dd3233a0d9937793a4fa083c2ce88b45375bc4c5aae6b7bbbab3037acf949175d99b7b7e9f
data/README.md CHANGED
@@ -43,4 +43,15 @@ Feel free to fork or clone this repository.
43
43
 
44
44
  ## Workflow
45
45
 
46
- I used the following commands in my workflow when working on this gem:
46
+ To build the gem, execute these commands:
47
+
48
+ ```
49
+ gem build annotate_models.gemspec
50
+ mv annotate_models-*.gem pkg/
51
+ ```
52
+
53
+ To publish the gem, execute this command:
54
+
55
+ ```
56
+ gem push pkg/annotate_models-<version>.gem
57
+ ```
@@ -60,7 +60,7 @@ module AnnotateModels
60
60
  Dir["app/models/*.rb"].each do |path|
61
61
  result = File.basename(path).scan(/^(.+)\.rb/)[0][0]
62
62
  model = eval(ActiveSupport::Inflector.camelize(result))
63
- next if model.respond_to? :abstract_class && model.abstract_class
63
+ next if model.respond_to?(:abstract_class) && model.abstract_class
64
64
  next unless model < ActiveRecord::Base
65
65
  @annotations[model] = generate_annotation(model) unless @annotations.keys.include?(model)
66
66
  end
@@ -1,3 +1,3 @@
1
1
  module AnnotateModels
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: annotate_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Brazil