modulorails 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 265c1a8a801aa9cd51479b23756c2b2631e9ac0d6fbd7634ce2fa572e0489ac9
4
- data.tar.gz: 251ec334d918a84982b3573e0ad610dc28eca31b77250ea2305caa46c5792951
3
+ metadata.gz: 7aebb014e4b73e3c0b3cd12106187db5592900f90ea33beb4bd80ffe7b54fba0
4
+ data.tar.gz: e84b4a5949cf657a3205b9f9b3edae7a7e1b0bc5621723eff5455d939199da5c
5
5
  SHA512:
6
- metadata.gz: 3dc837963f657c14c3ee2541fc7778de4ead2d2cb8216feb8908897b3c26400331ea07020c348ee88d11167f02c52ef8334bf6a4e9934cdcf3f22951a51f31d3
7
- data.tar.gz: 724b94a6b281027be0e5c36a9d93b66e1c8207e24e31d165f10ca04bf828461f019f689c29c983f377145d589a5dc90069ad9dda8bc1633f51e1ad25a1e13653
6
+ metadata.gz: c8abc2a6dc7bd6e6d344441bd16123f9a750a752732e02ae2826fd8a0a8ef0e5806cdde5da9da9b06d16a80fa414775d11fb657b90812c59350775b36db17a1c
7
+ data.tar.gz: af263b043c1c5ae69555b76ccf805d7567b0964eefe7748c96aad3aff2d66f9495e61025c8a51c242703e87bfc6e849e8accd69aafa1ab1ce2be35b8735cafde
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ This file is used to list changes made in each version of the gem.
4
4
 
5
5
  # 0.2.1
6
6
 
7
+ Auto-update fixes.
8
+
9
+ - Run `bundle install` to update the `Gemfile.lock` on auto-update.
10
+
11
+ # 0.2.1
12
+
7
13
  Minor fixes.
8
14
 
9
15
  - Fixes some errors occuring on a project where database can not be accessed.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- modulorails (0.2.1)
4
+ modulorails (0.2.2)
5
5
  git (~> 1.7, >= 1.7.0)
6
6
  httparty
7
7
  i18n
@@ -46,18 +46,20 @@ GEM
46
46
  multi_xml (>= 0.5.2)
47
47
  i18n (1.8.5)
48
48
  concurrent-ruby (~> 1.0)
49
- loofah (2.8.0)
49
+ loofah (2.9.0)
50
50
  crass (~> 1.0.2)
51
51
  nokogiri (>= 1.5.9)
52
52
  method_source (1.0.0)
53
53
  mime-types (3.3.1)
54
54
  mime-types-data (~> 3.2015)
55
- mime-types-data (3.2020.1104)
56
- mini_portile2 (2.4.0)
55
+ mime-types-data (3.2021.0225)
56
+ mini_portile2 (2.5.0)
57
57
  minitest (5.14.1)
58
58
  multi_xml (0.6.0)
59
- nokogiri (1.10.10)
60
- mini_portile2 (~> 2.4.0)
59
+ nokogiri (1.11.1)
60
+ mini_portile2 (~> 2.5.0)
61
+ racc (~> 1.4)
62
+ racc (1.5.2)
61
63
  rack (2.2.3)
62
64
  rack-test (1.1.0)
63
65
  rack (>= 1.0, < 3)
@@ -87,7 +89,7 @@ GEM
87
89
  diff-lcs (>= 1.2.0, < 2.0)
88
90
  rspec-support (~> 3.9.0)
89
91
  rspec-support (3.9.3)
90
- thor (1.0.1)
92
+ thor (1.1.0)
91
93
  thread_safe (0.3.6)
92
94
  tzinfo (1.2.7)
93
95
  thread_safe (~> 0.1)
@@ -23,9 +23,13 @@ module Modulorails
23
23
  private
24
24
 
25
25
  def edit_gemfile
26
+ # Log to warn the user
27
+ puts("[Modulorails] Last version for modulorails is #{@last_published_version} while you "\
28
+ "are using version #{Modulorails::VERSION}. Running auto-update.")
29
+
26
30
  # Read the lines of the Gemfile
27
31
  gemfile_location = Rails.root.join('Gemfile')
28
- lines = File.readlines gemfile_location
32
+ lines = File.readlines gemfile_location
29
33
 
30
34
  # Search and replace the modulorails line
31
35
  index = lines.index { |l| l =~ /gem\s['"]modulorails['"]/ }
@@ -35,8 +39,8 @@ module Modulorails
35
39
  # Update the Gemfile
36
40
  File.open(gemfile_location, 'w') { |f| f.puts(lines) }
37
41
 
38
- # Update the gem
39
- `bundle install || bundle update modulorails`
42
+ # Update the gem and the Gemfile.lock
43
+ system('bundle install')
40
44
  end
41
45
  end
42
46
  end
@@ -1,3 +1,3 @@
1
1
  module Modulorails
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modulorails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu Ciappara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-01 00:00:00.000000000 Z
11
+ date: 2021-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties