onotole 1.2.10 → 1.2.11

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: 4ec30876887c33df594cb2c08d5666ef22d50d7a
4
- data.tar.gz: f7f20671fed43c2df1b61a0999695c8abf58984d
3
+ metadata.gz: 19ec47116d98944d0b270d19e2145fbb3085a94f
4
+ data.tar.gz: 91b6a20b4767e0b24f6652457ea82350a5711658
5
5
  SHA512:
6
- metadata.gz: 9160c733cadb3d78e844e2bd13111000049f2b17e0ffe472fd953ebf12a10b4bf53925a8fa169f352f92760e7b5435ae891e59f21af5bfffefa84239a08ac6c7
7
- data.tar.gz: 6accac85e3d7052b1eca2ceaca961038efdc08d873114253e3a9ff0253535456af5eab881150e0cd927acd4e2b5803934e1f8b47ae385efb614dee0f900c686b
6
+ metadata.gz: 4f47fd889faff5bbfd373df6e50adb34cabd6129bd4a55bd8f2effce95cbabc3f6abe111fe0e91d64ea6185bd6112fc041b376da6fab381ca243a31a5eafea33
7
+ data.tar.gz: 18f4ad52526d0002b1435bc96e1f3f315f0e65cbf31a805dd8c88c712662bedf655f7ac27a87835802d81da77f622c68e4cdd588d6c0949a20d95216107269ad
data/README.md CHANGED
@@ -180,7 +180,8 @@ for ruby 2.1+
180
180
  * [newrelic_rpm](https://github.com/newrelic/rpm) for monitoring performance
181
181
  * [invisible_captcha](https://github.com/markets/invisible_captcha) Unobtrusive
182
182
  and flexible spam protection for RoR apps
183
-
183
+ * [therubyracer](https://github.com/cowboyd/therubyracer) Embed the V8
184
+ Javascript Interpreter into Ruby
184
185
 
185
186
  ##### XLS & PDF
186
187
 
@@ -350,5 +350,9 @@ module Onotole
350
350
  def add_active_record_doctor_gem
351
351
  inject_into_file('Gemfile', "\n gem 'active_record_doctor'", after: 'group :development do')
352
352
  end
353
+
354
+ def add_therubyracer_gem
355
+ inject_into_file('Gemfile', "\n gem 'therubyracer'", after: '# user_choice')
356
+ end
353
357
  end
354
358
  end
@@ -6,8 +6,7 @@ module Onotole
6
6
  variants = { none: 'No front-end framework',
7
7
  bootstrap3_sass: 'Twitter bootstrap v.3 sass',
8
8
  bootstrap3: 'Twitter bootstrap v.3 asset pipeline',
9
- materialize_sass: 'Materialize Sass version for Rails Asset Pipeline (http://materializecss.com)'
10
- }
9
+ materialize_sass: 'Materialize Sass version for Rails Asset Pipeline (http://materializecss.com)' }
11
10
  gem = choice 'Select front-end framework: ', variants
12
11
  add_to_user_choise(gem) if gem
13
12
  end
@@ -48,8 +47,7 @@ module Onotole
48
47
  flattened_active_admin: 'Theme, bring your Active Admin up-to-date with this customizable add on',
49
48
  active_admin_bootstrap: 'Theme, simple bootstrap (sass) elements',
50
49
  face_of_active_admin: 'Theme for ActiveAdmin with glyphicons and flattens',
51
- active_admin_simple_life: 'Automatize routine with creation simple menus in ActiveAdmin with minimum code duplication.'
52
- }
50
+ active_admin_simple_life: 'Automatize routine with creation simple menus in ActiveAdmin with minimum code duplication.' }
53
51
  themes = [:active_admin_theme, :active_skin, :flattened_active_admin]
54
52
  multiple_choice('Select activeadmin plug-ins (Themes are SASS or SCSS only).', variants).each do |gem|
55
53
  add_to_user_choise gem
@@ -94,8 +92,7 @@ module Onotole
94
92
  meta_request: 'Rails meta panel in chrome console.'\
95
93
  " Very usefull in\n#{' ' * 24}AJAX debugging. Link for chrome"\
96
94
  " add-on in Gemfile.\n#{' ' * 24}Do not delete comments if you need this link",
97
- active_record_doctor: 'Active Record Doctor helps to index unindexed foreign keys'
98
- }
95
+ active_record_doctor: 'Active Record Doctor helps to index unindexed foreign keys' }
99
96
  multiple_choice('Write numbers of all preferred gems.', variants).each do |gem|
100
97
  add_to_user_choise gem
101
98
  end
@@ -125,8 +122,8 @@ module Onotole
125
122
  rack_cors: 'Rack Middleware for handling Cross-Origin Resource Sharing (CORS).',
126
123
  newrelic_rpm: 'New Relic RPM Ruby Agent http://www.newrelic.com',
127
124
  invisible_captcha: 'Unobtrusive and flexible spam protection for RoR apps',
128
- sitemap_generator: 'SitemapGenerator is the easiest way to generate Sitemaps in Ruby.'
129
- }
125
+ sitemap_generator: 'SitemapGenerator is the easiest way to generate Sitemaps in Ruby.',
126
+ therubyracer: 'JS code execution in Ruby' }
130
127
  multiple_choice('Write numbers of all preferred gems.', variants).each do |gem|
131
128
  add_to_user_choise gem
132
129
  end
@@ -137,8 +134,7 @@ module Onotole
137
134
  variants = { none: 'Default',
138
135
  redis: 'Redis db ruby library',
139
136
  redis_rails: 'Provides a full set of stores (Cache, Session, HTTP Cache)',
140
- redis_namespace: 'Provides an interface to a namespaced subset of your redis keyspace'
141
- }
137
+ redis_namespace: 'Provides an interface to a namespaced subset of your redis keyspace' }
142
138
  multiple_choice('Select cache storage and plug-ins.', variants).each do |gem|
143
139
  add_to_user_choise gem
144
140
  end
@@ -8,11 +8,10 @@ module Onotole
8
8
  'spec/helpers',
9
9
  'spec/support/matchers',
10
10
  'spec/support/mixins',
11
- 'spec/support/shared_examples'
12
- ].each do |dir|
13
- run "mkdir #{dir}"
14
- run "touch #{dir}/.keep"
15
- end
11
+ 'spec/support/shared_examples'].each do |dir|
12
+ run "mkdir #{dir}"
13
+ run "touch #{dir}/.keep"
14
+ end
16
15
  rails_generator 'rspec:install'
17
16
  end
18
17
 
@@ -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.2.10'
5
+ VERSION = '1.2.11'
6
6
  end
@@ -77,7 +77,8 @@ RSpec.describe 'Suspend a new project with default configuration' do
77
77
 
78
78
  it 'ensures newrelic.yml reads NewRelic license from env' do
79
79
  expect(newrelic_file).to match(
80
- /license_key: "<%= ENV\["NEW_RELIC_LICENSE_KEY"\] %>"/)
80
+ /license_key: "<%= ENV\["NEW_RELIC_LICENSE_KEY"\] %>"/
81
+ )
81
82
  end
82
83
 
83
84
  it 'records pageviews through Segment if ENV variable set' do
@@ -89,7 +90,8 @@ RSpec.describe 'Suspend a new project with default configuration' do
89
90
 
90
91
  it 'raises on unpermitted parameters in all environments' do
91
92
  expect(application_rb).to match(
92
- /^\s+config.action_controller.action_on_unpermitted_parameters = :raise/)
93
+ /^\s+config.action_controller.action_on_unpermitted_parameters = :raise/
94
+ )
93
95
  end
94
96
 
95
97
  it 'adds explicit quiet_assets configuration' do
@@ -100,7 +102,8 @@ RSpec.describe 'Suspend a new project with default configuration' do
100
102
  %w(development test).each do |environment|
101
103
  environment_file = IO.read("#{project_path}/config/environments/#{environment}.rb")
102
104
  expect(environment_file).to match(
103
- /^ +config.action_view.raise_on_missing_translations = true$/)
105
+ /^ +config.action_view.raise_on_missing_translations = true$/
106
+ )
104
107
  end
105
108
  end
106
109
 
@@ -131,9 +134,11 @@ RSpec.describe 'Suspend a new project with default configuration' do
131
134
 
132
135
  it 'configs active job queue adapter' do
133
136
  expect(application_rb).to match(
134
- /^ +config.active_job.queue_adapter = :delayed_job$/)
137
+ /^ +config.active_job.queue_adapter = :delayed_job$/
138
+ )
135
139
  expect(test_rb).to match(
136
- /^ +config.active_job.queue_adapter = :inline$/)
140
+ /^ +config.active_job.queue_adapter = :inline$/
141
+ )
137
142
  end
138
143
 
139
144
  it 'configs bullet gem in development' do
@@ -3,7 +3,6 @@ source "https://rubygems.org"
3
3
  ruby "<%= Onotole::RUBY_VERSION %>"
4
4
 
5
5
  gem "delayed_job_active_record"
6
- gem "flutie"
7
6
  gem "high_voltage"
8
7
  gem "jquery-rails"
9
8
  gem 'normalize-rails', '~> 3.0.0'
@@ -13,7 +12,6 @@ gem "rack-canonical-host"
13
12
  gem "rails", "<%= Onotole::RAILS_VERSION %>"
14
13
  gem "simple_form"
15
14
  gem "title"
16
- gem "therubyracer"
17
15
  gem 'rake', '~> 11.1.0'
18
16
  gem "awesome_print", :require=>"ap"
19
17
  gem "dotenv-rails"
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.2.10
4
+ version: 1.2.11
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-05-08 00:00:00.000000000 Z
12
+ date: 2016-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler