Skip to content

Commit 4d28b10

Browse files
authored
Merge pull request #81 from Exelord/feature-upgrades
Feature upgrades
2 parents 73534d7 + ae1096c commit 4d28b10

14 files changed

+113
-114
lines changed

.rubocop.yml

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ Style/MixinGrouping:
2727
Lint/AmbiguousBlockAssociation:
2828
Exclude:
2929
- 'spec/**/*.rb'
30+
Gemspec/RequiredRubyVersion:
31+
Enabled: false

Gemfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ gemspec
1717
# gem 'byebug', group: [:development, :test]
1818

1919
group :development, :test do
20-
gem 'database_cleaner', '1.6.1'
20+
gem 'database_cleaner', '1.6.2'
2121
gem 'db-query-matchers', '0.9.0'
22-
gem 'factory_girl_rails', '4.8.0'
23-
gem 'ffaker', '2.7.0'
22+
gem 'factory_girl_rails', '4.9.0'
23+
gem 'ffaker', '2.8.1'
2424
gem 'pry-rails', '0.3.6'
25-
gem 'rails', '5.1.4'
26-
gem 'rspec-rails', '3.6.1'
27-
gem 'rubocop', '0.50.0'
25+
gem 'rails', '5.1.5'
26+
gem 'rspec-rails', '3.7.2'
27+
gem 'rubocop', '0.54.0'
2828
gem 'shoulda-matchers', '3.1.2'
2929
gem 'sqlite3', '1.3.13'
3030
end

Gemfile.lock

+90-93
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
monarchy (2.4.0)
5-
active_record_union (= 1.2.0)
5+
active_record_union (= 1.3.0)
66
activerecord (>= 4.2.7.1)
77
closure_tree (= 6.6.0)
88
configurations (= 2.2.2)
@@ -11,47 +11,47 @@ PATH
1111
GEM
1212
remote: https://rubygems.org/
1313
specs:
14-
actioncable (5.1.4)
15-
actionpack (= 5.1.4)
14+
actioncable (5.1.5)
15+
actionpack (= 5.1.5)
1616
nio4r (~> 2.0)
1717
websocket-driver (~> 0.6.1)
18-
actionmailer (5.1.4)
19-
actionpack (= 5.1.4)
20-
actionview (= 5.1.4)
21-
activejob (= 5.1.4)
18+
actionmailer (5.1.5)
19+
actionpack (= 5.1.5)
20+
actionview (= 5.1.5)
21+
activejob (= 5.1.5)
2222
mail (~> 2.5, >= 2.5.4)
2323
rails-dom-testing (~> 2.0)
24-
actionpack (5.1.4)
25-
actionview (= 5.1.4)
26-
activesupport (= 5.1.4)
24+
actionpack (5.1.5)
25+
actionview (= 5.1.5)
26+
activesupport (= 5.1.5)
2727
rack (~> 2.0)
2828
rack-test (>= 0.6.3)
2929
rails-dom-testing (~> 2.0)
3030
rails-html-sanitizer (~> 1.0, >= 1.0.2)
31-
actionview (5.1.4)
32-
activesupport (= 5.1.4)
31+
actionview (5.1.5)
32+
activesupport (= 5.1.5)
3333
builder (~> 3.1)
3434
erubi (~> 1.4)
3535
rails-dom-testing (~> 2.0)
3636
rails-html-sanitizer (~> 1.0, >= 1.0.3)
37-
active_record_union (1.2.0)
37+
active_record_union (1.3.0)
3838
activerecord (>= 4.0)
39-
activejob (5.1.4)
40-
activesupport (= 5.1.4)
39+
activejob (5.1.5)
40+
activesupport (= 5.1.5)
4141
globalid (>= 0.3.6)
42-
activemodel (5.1.4)
43-
activesupport (= 5.1.4)
44-
activerecord (5.1.4)
45-
activemodel (= 5.1.4)
46-
activesupport (= 5.1.4)
42+
activemodel (5.1.5)
43+
activesupport (= 5.1.5)
44+
activerecord (5.1.5)
45+
activemodel (= 5.1.5)
46+
activesupport (= 5.1.5)
4747
arel (~> 8.0)
48-
activesupport (5.1.4)
48+
activesupport (5.1.5)
4949
concurrent-ruby (~> 1.0, >= 1.0.2)
5050
i18n (~> 0.7)
5151
minitest (~> 5.1)
5252
tzinfo (~> 1.1)
5353
arel (8.0.0)
54-
ast (2.3.0)
54+
ast (2.4.0)
5555
builder (3.2.3)
5656
closure_tree (6.6.0)
5757
activerecord (>= 4.1.0)
@@ -61,103 +61,100 @@ GEM
6161
coderay (1.1.2)
6262
concurrent-ruby (1.0.5)
6363
configurations (2.2.2)
64-
crass (1.0.2)
65-
database_cleaner (1.6.1)
64+
crass (1.0.3)
65+
database_cleaner (1.6.2)
6666
db-query-matchers (0.9.0)
6767
activesupport (>= 4.0, <= 6.0)
6868
rspec (~> 3.0)
6969
diff-lcs (1.3)
7070
docile (1.1.5)
71-
erubi (1.7.0)
72-
factory_girl (4.8.1)
71+
erubi (1.7.1)
72+
factory_girl (4.9.0)
7373
activesupport (>= 3.0.0)
74-
factory_girl_rails (4.8.0)
75-
factory_girl (~> 4.8.0)
74+
factory_girl_rails (4.9.0)
75+
factory_girl (~> 4.9.0)
7676
railties (>= 3.0.0)
77-
ffaker (2.7.0)
77+
ffaker (2.8.1)
7878
globalid (0.4.1)
7979
activesupport (>= 4.2.0)
80-
i18n (0.9.0)
80+
i18n (0.9.5)
8181
concurrent-ruby (~> 1.0)
8282
json (2.1.0)
83-
loofah (2.1.1)
83+
loofah (2.2.2)
8484
crass (~> 1.0.2)
8585
nokogiri (>= 1.5.9)
86-
mail (2.6.6)
87-
mime-types (>= 1.16, < 4)
86+
mail (2.7.0)
87+
mini_mime (>= 0.1.1)
8888
method_source (0.9.0)
89-
mime-types (3.1)
90-
mime-types-data (~> 3.2015)
91-
mime-types-data (3.2016.0521)
89+
mini_mime (1.0.0)
9290
mini_portile2 (2.3.0)
93-
minitest (5.10.3)
94-
nio4r (2.1.0)
95-
nokogiri (1.8.1)
91+
minitest (5.11.3)
92+
nio4r (2.3.0)
93+
nokogiri (1.8.2)
9694
mini_portile2 (~> 2.3.0)
97-
parallel (1.12.0)
98-
parser (2.4.0.0)
99-
ast (~> 2.2)
95+
parallel (1.12.1)
96+
parser (2.5.0.5)
97+
ast (~> 2.4.0)
10098
powerpack (0.1.1)
101-
pry (0.11.2)
99+
pry (0.11.3)
102100
coderay (~> 1.1.0)
103101
method_source (~> 0.9.0)
104102
pry-rails (0.3.6)
105103
pry (>= 0.10.4)
106-
rack (2.0.3)
107-
rack-test (0.7.0)
104+
rack (2.0.4)
105+
rack-test (0.8.3)
108106
rack (>= 1.0, < 3)
109-
rails (5.1.4)
110-
actioncable (= 5.1.4)
111-
actionmailer (= 5.1.4)
112-
actionpack (= 5.1.4)
113-
actionview (= 5.1.4)
114-
activejob (= 5.1.4)
115-
activemodel (= 5.1.4)
116-
activerecord (= 5.1.4)
117-
activesupport (= 5.1.4)
107+
rails (5.1.5)
108+
actioncable (= 5.1.5)
109+
actionmailer (= 5.1.5)
110+
actionpack (= 5.1.5)
111+
actionview (= 5.1.5)
112+
activejob (= 5.1.5)
113+
activemodel (= 5.1.5)
114+
activerecord (= 5.1.5)
115+
activesupport (= 5.1.5)
118116
bundler (>= 1.3.0)
119-
railties (= 5.1.4)
117+
railties (= 5.1.5)
120118
sprockets-rails (>= 2.0.0)
121119
rails-dom-testing (2.0.3)
122120
activesupport (>= 4.2.0)
123121
nokogiri (>= 1.6)
124-
rails-html-sanitizer (1.0.3)
125-
loofah (~> 2.0)
126-
railties (5.1.4)
127-
actionpack (= 5.1.4)
128-
activesupport (= 5.1.4)
122+
rails-html-sanitizer (1.0.4)
123+
loofah (~> 2.2, >= 2.2.2)
124+
railties (5.1.5)
125+
actionpack (= 5.1.5)
126+
activesupport (= 5.1.5)
129127
method_source
130128
rake (>= 0.8.7)
131129
thor (>= 0.18.1, < 2.0)
132-
rainbow (2.2.2)
133-
rake
134-
rake (12.2.1)
135-
rspec (3.6.0)
136-
rspec-core (~> 3.6.0)
137-
rspec-expectations (~> 3.6.0)
138-
rspec-mocks (~> 3.6.0)
139-
rspec-core (3.6.0)
140-
rspec-support (~> 3.6.0)
141-
rspec-expectations (3.6.0)
130+
rainbow (3.0.0)
131+
rake (12.3.1)
132+
rspec (3.7.0)
133+
rspec-core (~> 3.7.0)
134+
rspec-expectations (~> 3.7.0)
135+
rspec-mocks (~> 3.7.0)
136+
rspec-core (3.7.1)
137+
rspec-support (~> 3.7.0)
138+
rspec-expectations (3.7.0)
142139
diff-lcs (>= 1.2.0, < 2.0)
143-
rspec-support (~> 3.6.0)
144-
rspec-mocks (3.6.0)
140+
rspec-support (~> 3.7.0)
141+
rspec-mocks (3.7.0)
145142
diff-lcs (>= 1.2.0, < 2.0)
146-
rspec-support (~> 3.6.0)
147-
rspec-rails (3.6.1)
143+
rspec-support (~> 3.7.0)
144+
rspec-rails (3.7.2)
148145
actionpack (>= 3.0)
149146
activesupport (>= 3.0)
150147
railties (>= 3.0)
151-
rspec-core (~> 3.6.0)
152-
rspec-expectations (~> 3.6.0)
153-
rspec-mocks (~> 3.6.0)
154-
rspec-support (~> 3.6.0)
155-
rspec-support (3.6.0)
156-
rubocop (0.50.0)
148+
rspec-core (~> 3.7.0)
149+
rspec-expectations (~> 3.7.0)
150+
rspec-mocks (~> 3.7.0)
151+
rspec-support (~> 3.7.0)
152+
rspec-support (3.7.1)
153+
rubocop (0.54.0)
157154
parallel (~> 1.10)
158-
parser (>= 2.3.3.1, < 3.0)
155+
parser (>= 2.5)
159156
powerpack (~> 0.1)
160-
rainbow (>= 2.2.2, < 3.0)
157+
rainbow (>= 2.2.2, < 4.0)
161158
ruby-progressbar (~> 1.7)
162159
unicode-display_width (~> 1.0, >= 1.0.1)
163160
ruby-progressbar (1.9.0)
@@ -179,12 +176,12 @@ GEM
179176
thor (0.20.0)
180177
thread_safe (0.3.6)
181178
tqdm (0.3.0)
182-
tzinfo (1.2.3)
179+
tzinfo (1.2.5)
183180
thread_safe (~> 0.1)
184181
unicode-display_width (1.3.0)
185182
websocket-driver (0.6.5)
186183
websocket-extensions (>= 0.1.0)
187-
websocket-extensions (0.1.2)
184+
websocket-extensions (0.1.3)
188185
with_advisory_lock (3.2.0)
189186
activerecord (>= 3.2)
190187

@@ -194,17 +191,17 @@ PLATFORMS
194191
DEPENDENCIES
195192
bundler (~> 1.12)
196193
codeclimate-test-reporter (~> 1.0.8)
197-
database_cleaner (= 1.6.1)
194+
database_cleaner (= 1.6.2)
198195
db-query-matchers (= 0.9.0)
199-
factory_girl_rails (= 4.8.0)
200-
ffaker (= 2.7.0)
196+
factory_girl_rails (= 4.9.0)
197+
ffaker (= 2.8.1)
201198
monarchy!
202199
pry-rails (= 0.3.6)
203-
rails (= 5.1.4)
204-
rake (~> 12.0)
205-
rspec (= 3.6.0)
206-
rspec-rails (= 3.6.1)
207-
rubocop (= 0.50.0)
200+
rails (= 5.1.5)
201+
rake (~> 12.3.1)
202+
rspec (= 3.7.0)
203+
rspec-rails (= 3.7.2)
204+
rubocop (= 0.54.0)
208205
shoulda-matchers (= 3.1.2)
209206
simplecov (= 0.13.0)
210207
sqlite3 (= 1.3.13)
@@ -213,4 +210,4 @@ RUBY VERSION
213210
ruby 2.4.2p198
214211

215212
BUNDLED WITH
216-
1.15.4
213+
1.16.0

dummy/Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# Add your own tasks in files placed in lib/tasks ending in .rake,
44
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
55

6-
require File.expand_path('../config/application', __FILE__)
6+
require File.expand_path('config/application', __dir__)
77

88
Rails.application.load_tasks

dummy/bin/bundle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

4-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
4+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
55
load Gem.bin_path('bundler', 'bundle')

dummy/bin/rails

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

4-
APP_PATH = File.expand_path('../../config/application', __FILE__)
4+
APP_PATH = File.expand_path('../config/application', __dir__)
55
require_relative '../config/boot'
66
require 'rails/commands'

dummy/bin/setup

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require 'pathname'
55

66
# path to your application root.
7-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
7+
APP_ROOT = Pathname.new File.expand_path('..', __dir__)
88

99
Dir.chdir APP_ROOT do
1010
# This script is a starting point to setup your application.

dummy/config/application.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require File.expand_path('../boot', __FILE__)
3+
require File.expand_path('boot', __dir__)
44

55
require 'rails/all'
66

dummy/config/boot.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Set up gems listed in the Gemfile.
4-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
4+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
55

66
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
7-
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
7+
$LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)

dummy/config/environment.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Load the Rails application.
4-
require File.expand_path('../application', __FILE__)
4+
require File.expand_path('application', __dir__)
55

66
# Initialize the Rails application.
77
Rails.application.initialize!

lib/generators/monarchy/resource_generator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ResourceGenerator < Rails::Generators::NamedBase
77
include Rails::Generators::Migration
88

99
desc 'This generator creates a resourcify model'
10-
source_root File.expand_path('../../templates', __FILE__)
10+
source_root File.expand_path('../templates', __dir__)
1111

1212
def create_resource_file
1313
template 'models/resource.rb', "app/models/#{file_name}.rb"

lib/generators/monarchy/setup_generator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class SetupGenerator < Rails::Generators::Base
77
include Rails::Generators::Migration
88

99
desc 'This generator setups Monarchy'
10-
source_root File.expand_path('../../templates', __FILE__)
10+
source_root File.expand_path('../templates', __dir__)
1111

1212
def setup_monarchy
1313
template 'config.rb', 'config/initializers/monarchy.rb'

0 commit comments

Comments
 (0)