onotole 1.1.7 → 1.1.8

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: b5ef207a79d6a245177bfd41c614e1b3eed6c861
4
- data.tar.gz: ff5d4cee6550755d937104fc093aa869a128dddb
3
+ metadata.gz: 96de0029e7019c7a24baa11fe02c3dfbf2885791
4
+ data.tar.gz: 4cb1572ff02d0488ac8233b88caa73416174340b
5
5
  SHA512:
6
- metadata.gz: acf11d559c39bdbd0912ad5c3e32c5d60056bcaa37106cb5397d2b958ea90e4364faa07f0b05e36b2e7b3fee6d32953e7ad9679979ecff7486702e12ef457590
7
- data.tar.gz: 9f2fa65056120428d780e76610d84cb831596226f9525f16efdadb3807954761bc18c6561486713df712f2d978869c201e0ab71f1b06f9adc82420249a684a5a
6
+ metadata.gz: 716dd82e55be8990e1da50ada07d866bd9989420693b5e42f35136b9333fa0cb6cfaa08a5ec4358f93b1a660bf24bf3f634db9106e11163700241df60f61c766
7
+ data.tar.gz: 47047e1a1c61c793ed9f7a397c1444a13852f5b2a65d057d96e88910c766901db9cbd77cd11abef1372fa90b73d9f880d645078dd7092874a5dadd151c33f757
data/README.md CHANGED
@@ -26,20 +26,20 @@ will be installed as addition like default, if start `onotole` with out `-c`
26
26
  flag. You can provide automatic install with options, like `--haml`. Default
27
27
  pack will not be installed with any gem option.
28
28
 
29
+ I begin collecting some [goodies](https://github.com/kvokka/onotole/goodies)
30
+ where some patches and tweaks will be placed in, for easyer getting into and
31
+ using it with already started projects.
32
+
29
33
  ### Flexible gem group
30
34
 
31
- * [Airbrake](https://github.com/airbrake/airbrake) For exception notification
35
+ #### Frontend frameworks
36
+
32
37
  * [bootstrap3](https://github.com/seyhunak/twitter-bootstrap-rails) Bootstrap
33
38
  with asset pipeline support
34
39
  * [bootstrap3_sass](https://github.com/twbs/bootstrap-sass) Bootstrap sass
35
- * [bundler_audit](https://github.com/rubysec/bundler-audit) Patch-level
36
- verification for Bundler
37
- * `*`[faker](https://github.com/stympy/faker) A library for generating fake data
38
- such as names, addresses, and phone numbers.
39
- * `*`[guard](https://github.com/guard/guard) Guard is a command line tool to
40
- easily handle events on file system modifications. http://guardgem.org
41
- * [guard_rubocop](https://github.com/yujinakayama/guard-rubocop) Guard plugin
42
- for RuboCop
40
+
41
+ #### Template engines
42
+
43
43
  * `*`[slim](https://github.com/slim-template/slim) Slim is a template language
44
44
  whose goal is reduce the syntax to the essential parts without becoming
45
45
  cryptic. http://slim-lang.com
@@ -47,35 +47,26 @@ pack will not be installed with any gem option.
47
47
  installs with slim
48
48
  * [haml](https://github.com/haml/haml) HTML Abstraction Markup Language - A
49
49
  Markup Haiku http://haml.info
50
- * `*`[meta_request](https://github.com/dejan/rails_panel/tree/master/meta_request)
51
- Supporting gem for Rails Panel (Google Chrome extension for Rails development).
52
- * [rails_db](https://github.com/igorkasyanchuk/rails_db) Rails Database Viewer
53
- and SQL Query Runner https://youtu.be/TYsRxXRFp1g
54
- * `*`[rubocop](https://github.com/bbatsov/rubocop) A Ruby static code analyzer,
55
- based on the community Ruby style guide.
50
+
51
+ #### Authenticate engines
52
+
56
53
  * [devise](https://github.com/plataformatec/devise) Flexible authentication
57
54
  solution for Rails with Warden. http://blog.plataformatec.com.br/tag/devise/
58
55
  * [devise-bootstrap-views](https://github.com/hisea/devise-bootstrap-views)
59
- * [will_paginate](https://github.com/mislav/will_paginate) Pagination library
60
- for Rails, Sinatra, Merb, DataMapper
61
- * [will_paginate-bootstrap](https://github.com/bootstrap-ruby/will_paginate-bootstrap)
62
- Integrates the Twitter Bootstrap pagination component with will_paginate
63
- * `*`[responders](https://github.com/plataformatec/responders) A set of responders
64
- modules to dry up your Rails 4.2+ app.
65
- * [hirb-unicode](https://github.com/miaout17/hirb-unicode) Unicode support
66
- for hirb
67
- * [dotenv-heroku](https://github.com/sideshowcoder/dotenv-heroku) Addition for
68
- quick variables export to heroku
69
- * [tinymce-rails](https://github.com/spohlenz/tinymce-rails) Integration of
70
- TinyMCE with the Rails asset pipeline
71
- * `*`[annotate](https://github.com/ctran/annotate_models) Annotate Rails classes
72
- with schema and routes info
73
- * `*`[overcommit](https://github.com/brigade/overcommit) A fully configurable
74
- and extendable Git hook manager
56
+
57
+ #### CMS engines & DB viewers
58
+
75
59
  * [rails_admin](https://github.com/sferik/rails_admin) Rails engine that
76
60
  provides an easy-to-use interface for managing your data
77
61
  * [activeadmin](https://github.com/activeadmin/activeadmin) Rails framework for
78
62
  creating elegant backends for website administration.
63
+ * [typus](https://github.com/typus/typus) Ruby on Rails control panel to allow
64
+ trusted users edit structured content. http://docs.typuscmf.com
65
+ * [rails_db](https://github.com/igorkasyanchuk/rails_db) Rails Database Viewer
66
+ and SQL Query Runner https://youtu.be/TYsRxXRFp1g
67
+
68
+ ##### ActiveAdmin plug-ins
69
+
79
70
  * [ActiveAdminImport](https://github.com/activeadmin-plugins/active_admin_import)
80
71
  Based on ActiveRecord-import gem - the most efficient way to import for ActiveAdmin
81
72
  * [ActiveAdminTheme](https://github.com/activeadmin-plugins/active_admin_theme)
@@ -85,12 +76,68 @@ creating elegant backends for website administration.
85
76
  Theme. Bring your Active Admin up-to-date with this customizable add on
86
77
  * [Face_of_active_admin](https://github.com/kvokka/face_of_active_admin) Theme
87
78
  for ActiveAdmin with glyphicons and flattens
79
+ * [active_admin_bootstrap](https://gist.github.com/ball-hayden/2fd4d40b150a39716dec)
80
+ Very simple ActiveAdmin Bootstrap theme
81
+
82
+ #### Pagimation
83
+
84
+ * [will_paginate](https://github.com/mislav/will_paginate) Pagination library
85
+ for Rails, Sinatra, Merb, DataMapper
86
+ * [will_paginate-bootstrap](https://github.com/bootstrap-ruby/will_paginate-bootstrap)
87
+ Integrates the Twitter Bootstrap pagination component with will_paginate
88
+ * [kaminari](https://github.com/amatsuda/kaminari) A Scope & Engine based,
89
+ clean, powerful, customizable and sophisticated paginator for Rails
90
+ * [bootstrap-kaminari-views](https://github.com/matenia/bootstrap-kaminari-views)
91
+ Bootstrap kaminari plugin
92
+
93
+ #### WYSIWYG
94
+
95
+ * [ckeditor](https://github.com/galetahub/ckeditor) CKEditor is a WYSIWYG text
96
+ editor designed to simplify web content creation.
97
+ * [tinymce-rails](https://github.com/spohlenz/tinymce-rails) Integration of
98
+ TinyMCE with the Rails asset pipeline
99
+
100
+
101
+ #### Developer tools
102
+
103
+ * [Airbrake](https://github.com/airbrake/airbrake) For exception notification
104
+ * [bundler_audit](https://github.com/rubysec/bundler-audit) Patch-level
105
+ verification for Bundler
106
+ * `*`[faker](https://github.com/stympy/faker) A library for generating fake data
107
+ such as names, addresses, and phone numbers.
108
+ * `*`[guard](https://github.com/guard/guard) Guard is a command line tool to
109
+ easily handle events on file system modifications. http://guardgem.org
110
+ * [guard_rubocop](https://github.com/yujinakayama/guard-rubocop) Guard plugin
111
+ for RuboCop
112
+ * `*`[meta_request](https://github.com/dejan/rails_panel/tree/master/meta_request)
113
+ Supporting gem for Rails Panel (Google Chrome extension for Rails development).
114
+ * `*`[rubocop](https://github.com/bbatsov/rubocop) A Ruby static code analyzer,
115
+ based on the community Ruby style guide.
116
+ * `*`[annotate](https://github.com/ctran/annotate_models) Annotate Rails classes
117
+ with schema and routes info
118
+ * `*`[overcommit](https://github.com/brigade/overcommit) A fully configurable
119
+ and extendable Git hook manager
88
120
  * `*`[rubycritic](https://github.com/whitesmith/rubycritic) A Ruby code quality
89
121
  reporter
90
122
  * [railroady](https://github.com/preston/railroady) Model and controller UML
91
123
  class diagram generator. Originally based on the "railroad" plugin
92
- * [typus](https://github.com/typus/typus) Ruby on Rails control panel to allow
93
- trusted users edit structured content. http://docs.typuscmf.com
124
+ * [hirb-unicode](https://github.com/miaout17/hirb-unicode) Unicode support
125
+ for hirb
126
+ * [dotenv-heroku](https://github.com/sideshowcoder/dotenv-heroku) Addition for
127
+ quick variables export to heroku
128
+ * [image_optim](https://github.com/toy/image_optim) Optimize (lossless compress,
129
+ optionally lossy) images (jpeg, png, gif, svg) using external utilities
130
+ * [mailcatcher](https://github.com/sj26/mailcatcher) Catches mail and serves
131
+ it through a dream. http://mailcatcher.me
132
+
133
+ #### Misc
134
+
135
+
136
+
137
+ * [activerecord_import](https://github.com/zdennis/activerecord-import)
138
+ Activerecord-import is a library for bulk inserting data using ActiveRecord.
139
+ * `*`[responders](https://github.com/plataformatec/responders) A set of responders
140
+ modules to dry up your Rails 4.2+ app.
94
141
  * [paper_trail](https://github.com/airblade/paper_trail) Track changes to your
95
142
  models' data. Good for auditing or versioning.
96
143
  * [validates_timeliness](https://github.com/adzap/validates_timeliness)
@@ -100,8 +147,11 @@ creating elegant backends for website administration.
100
147
  Font-Awesome Sass gem for use in Ruby/Rails projects
101
148
  * [cyrillizer](https://github.com/dalibor/cyrillizer) Character conversion from
102
149
  latin to cyrillic and vice versa
103
- * [ckeditor](https://github.com/galetahub/ckeditor) CKEditor is a WYSIWYG text
104
- editor designed to simplify web content creation.
150
+ * [fotoramajs](https://github.com/ai/fotoramajs) Fotorama JS gallery for Ruby
151
+ on Rails http://fotorama.io/
152
+
153
+ ##### XLS & PDF
154
+
105
155
  * [axslx](https://github.com/randym/axlsx) Xlsx generation with charts, images,
106
156
  automated column width, customizable styles and full schema validation.
107
157
  * [axlsx_rails](https://github.com/straydogstudio/axlsx_rails) A Rails plug-in
@@ -110,18 +160,15 @@ creating elegant backends for website administration.
110
160
  http://prawnpdf.org
111
161
  * [prawn-table](https://github.com/prawnpdf/prawn-table) Provides support for
112
162
  tables in Prawn
113
- * [fotoramajs](https://github.com/ai/fotoramajs) Fotorama JS gallery for Ruby
114
- on Rails http://fotorama.io/
163
+
164
+ ##### Geolocation
165
+
115
166
  * [geocoder](https://github.com/alexreisner/geocoder) Complete Ruby geocoding
116
167
  solution. http://www.rubygeocoder.com
117
168
  * [Gmaps4rails](https://github.com/apneadiving/Google-Maps-for-Rails) Enables
118
169
  easy Google map + overlays creation in Ruby apps http://apneadiving.github.io/
119
- * [image_optim](https://github.com/toy/image_optim) Optimize (lossless compress,
120
- optionally lossy) images (jpeg, png, gif, svg) using external utilities
121
- * [mailcatcher](https://github.com/sj26/mailcatcher) Catches mail and serves
122
- it through a dream. http://mailcatcher.me
123
170
 
124
- Mandatory installation gem list you will find in `Gemfile` section
171
+ Mandatory installation gem list you will find in `Gemfile` section of this readme
125
172
 
126
173
  ## Installation
127
174
 
@@ -259,6 +306,8 @@ selected for pretty view from the box
259
306
  * Added autoload js and scss from `vendor/assets/javascripts` and
260
307
  `vendor/assets/stylesheets`
261
308
  * Added autoload fonts from `app/assets/fonts/**/*`
309
+ * Patch for no error work, if `Mailcatcher` is not loaded. In this case
310
+ `delivery_method = :file`. It checks on the `rails server` starts.
262
311
 
263
312
  ## Heroku
264
313
 
@@ -0,0 +1,50 @@
1
+ ### Mailcatcher on load error
2
+
3
+ I got in love in `Mailcather` project, but there is one dizzy feature in it- if
4
+ in your controller must be sent some mail and `Mailcatcher` daemon is not running
5
+ you will have an error (and it is oblivious). The is a sample code
6
+
7
+ ```
8
+ def create
9
+ @review = Review.new(review_params)
10
+ if @review.save
11
+ flash.now[:notice] = "All ok!"
12
+ Mailer.review_for_admin(@review).deliver # <- Here it is
13
+ respond_to do |format|
14
+ format.js { render partial: "reviews/create" }
15
+ end
16
+ else
17
+ flash.now[:alert] = @review.errors.full_messages.join(", ")
18
+ respond_to do |format|
19
+ format.js { render partial: "pages/flash" }
20
+ end
21
+ end
22
+ end
23
+ ```
24
+
25
+ Actually, you test mail services not very often, and, it will be good enough, if
26
+ there will not be unneeded error and mail will be sent in
27
+ `action_mailer.delivery_method = :test` or `action_mailer.delivery_method = :file`
28
+ mode. I preferred the second method. And there is the code, which it implements
29
+ in `delelodment.rb`
30
+
31
+ ```
32
+ Rails.application.configure do
33
+ ...
34
+ if system ('lsof -i :1025 | grep mailcatch > /dev/null')
35
+ config.action_mailer.delivery_method = :smtp
36
+ config.action_mailer.smtp_settings = { address: "localhost", port: 1025 }
37
+ else
38
+ config.action_mailer.delivery_method = :file
39
+ end
40
+ end
41
+ ```
42
+
43
+ This code will run only once, when `rails server` starts, so, it will not slow
44
+ down your system. I hope it was useful!
45
+
46
+ [Kvoka](https://github.com/kvokka/)
47
+
48
+ PS: You may need to install `lsof` utility, if you have no it.
49
+ `sudo apt-get install lsof` will help in this case.
50
+
@@ -243,8 +243,13 @@ end
243
243
  def after_install_mailcatcher
244
244
  config = <<-RUBY
245
245
 
246
- config.action_mailer.delivery_method = :smtp
247
- config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
246
+ if system ('lsof -i :1025 | grep mailcatch > /dev/null')
247
+ config.action_mailer.delivery_method = :smtp
248
+ config.action_mailer.smtp_settings = { address: "localhost", port: 1025 }
249
+ else
250
+ config.action_mailer.delivery_method = :file
251
+ end
252
+
248
253
  RUBY
249
254
 
250
255
  replace_in_file 'config/environments/development.rb',
@@ -2,5 +2,5 @@
2
2
  module Onotole
3
3
  RAILS_VERSION = '~> 4.2.0'
4
4
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
5
- VERSION = '1.1.7'
5
+ VERSION = '1.1.8'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onotole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - kvokka
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-27 00:00:00.000000000 Z
12
+ date: 2016-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -80,6 +80,7 @@ files:
80
80
  - bin/rake
81
81
  - bin/rspec
82
82
  - bin/setup
83
+ - goodies/mailcatcher_loading_patch.md
83
84
  - lib/onotole.rb
84
85
  - lib/onotole/actions.rb
85
86
  - lib/onotole/adapters/heroku.rb