h2ocube_rails_development 0.1.1 → 0.1.2

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: 6b09c17062ac084c8e6ce7e185f919cbc0d3f47c
4
- data.tar.gz: 22c23099824a615c629eb746a0ecc59348d06dad
3
+ metadata.gz: cf34a2775ea9a1444e44f4efbc68b8ec5e25560d
4
+ data.tar.gz: 3605ce56dc38c89a96fdc97baefc89128de658a3
5
5
  SHA512:
6
- metadata.gz: 7c983baa9ca5ead0de06c1d29a1c5c574e6600ff70566ab6841160d4040b85749759b0006af420f4b27b2fdee525e0b325963cf56920f416496eca6e4aa53c48
7
- data.tar.gz: 8be39ba9417318fc033694179442e7ec0123d30ef8b614a3554c8e81367de3b345ec414b3c7ab631777eeea355dc5739e5b35c8d8a112932b0ed296792b3a2ff
6
+ metadata.gz: 45064095b55a4673bdef264e77d2818f65f9edab031723fe7aac7d3af3d999fab8abd6ea30079723208286a493a1f0747b96d317a95159adba7b8bdab46c7fb6
7
+ data.tar.gz: dbe56102d05750d1f1c3f790f4c5ff715d67607d1946df173eb889d0a23f07de1b707099c3abcc3cc36ade620be81cdfe99969e299a5d38d06567674d0252b96
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 H2ocube.com
1
+ Copyright (c) 2014 H2ocube.com
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -20,7 +20,10 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- see include gems below :p
23
+ $ rake annotate # => annotate all your models, tests, fixtures, factories and routes
24
+ $ rake annotate:remove # => remove all annotated comments
25
+
26
+ more details see below
24
27
 
25
28
  ## Include
26
29
 
@@ -36,6 +39,7 @@ see include gems below :p
36
39
  * capistrano-rails https://github.com/capistrano/rails
37
40
  * vendorer https://github.com/grosser/vendorer
38
41
  * spring https://github.com/rails/spring
42
+ * annotate https://github.com/ctran/annotate_models
39
43
 
40
44
  ## Contributing
41
45
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'h2ocube_rails_development'
7
- spec.version = '0.1.1'
7
+ spec.version = '0.1.2'
8
8
  spec.authors = ['Ben']
9
9
  spec.email = ['ben@zfben.com']
10
10
  spec.description = %q{Just a collection for development gems}
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency 'capistrano-bundler'
30
30
  spec.add_dependency 'capistrano-rails'
31
31
  spec.add_dependency 'spring'
32
+ spec.add_dependency 'annotate'
32
33
  end
@@ -1,11 +1,18 @@
1
- %w(pry-rails pry-remote better_errors binding_of_caller meta_request).each{ |gem| require gem }
2
-
1
+ %w(pry-rails pry-remote better_errors binding_of_caller meta_request annotate).each{ |gem| require gem }
3
2
 
4
3
  module H2ocubeRailsDevelopment
5
- module Rails
6
- class Rails::Engine < ::Rails::Engine
7
- initializer 'h2ocube_rails_development.require_dependency' do |app|
4
+ class Railtie < Rails::Railtie
5
+ railtie_name :h2ocube_rails_development
6
+
7
+ rake_tasks do
8
+ desc 'annotate all your models, tests, fixtures, factories and routes'
9
+ task :annotate do
10
+ system 'bundle exec annotate -i;bundle exec annotate -r'
11
+ end
8
12
 
13
+ desc 'remove all annotated comments'
14
+ task 'annotate:remove' do
15
+ system 'bundle exec annotate -d;bundle exec annotate -r -d'
9
16
  end
10
17
  end
11
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_development
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-12 00:00:00.000000000 Z
11
+ date: 2014-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-rails
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: annotate
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
181
195
  description: Just a collection for development gems
182
196
  email:
183
197
  - ben@zfben.com
@@ -217,3 +231,4 @@ signing_key:
217
231
  specification_version: 4
218
232
  summary: Just a collection for development gems
219
233
  test_files: []
234
+ has_rdoc: