generic_app 3.0.13 → 3.0.14

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
  SHA256:
3
- metadata.gz: 6d5d94925da349986f3cad8cf7725b0ccebea8bf2e41c6997a794824f1f94c68
4
- data.tar.gz: 29aeabae855c64440beb0c6edf291b849ecef7a783f7a6d8a41f5bc46b76e40c
3
+ metadata.gz: 62769586c3eec208a0d875ce551c7a9173ff1b0eaa0e7976e61432a32e195063
4
+ data.tar.gz: 3257508c3a187d8e2d8e150742ed4774588a7a78e21f3c989b18ba5878955ca5
5
5
  SHA512:
6
- metadata.gz: 5a195ea04893758908c873c458a19117f83b06f97bac0c53c65f05df35a449c766882b4175586858f2a64b02e04b331121fd3e1e10c409f9da97e09bc5785a57
7
- data.tar.gz: 51534cf3c038324f9aeacd4217bdb100af0f43c35e13db3e00a7749420c12051fadbcc3783fad9420f4e2254183a4484dbca05f227623961c36c541000db129b
6
+ metadata.gz: 63369f2c4fe5ca0189f5709f2d85957122fc71ce2130a1c7ca8cb6665aadd89f6f148befea6b4d246bdf0a51e56cf5d6db4893b611d876b211abdfd729198a51
7
+ data.tar.gz: 06ef9765a7326e1567fb2fc74235b8fb4909331023d3f784fd5d68d393f2bcfea80830965a301d71e22fc29bb2a212582263ea6f33807411a9dd14ccec3b9572
data/.rubocop.yml CHANGED
@@ -1,3 +1,6 @@
1
+ Style/Documentation:
2
+ Enabled: false
3
+
1
4
  Metrics/LineLength:
2
5
  Exclude:
3
6
  - generic_app.gemspec
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/generic_app.svg)](https://badge.fury.io/rb/generic_app)
2
- [![CircleCI](https://circleci.com/gh/jhsu802701/generic_app.svg?style=svg)](https://circleci.com/gh/jhsu802701/generic_app)
2
+ [![Build Status](https://semaphoreci.com/api/v1/jhsu802701/generic_app/branches/master/badge.svg)](https://semaphoreci.com/jhsu802701/generic_app)
3
3
  [![Dependency Status](https://gemnasium.com/badges/github.com/jhsu802701/generic_app.svg)](https://gemnasium.com/github.com/jhsu802701/generic_app)
4
4
  [![security](https://hakiri.io/github/jhsu802701/generic_app/master.svg)](https://hakiri.io/github/jhsu802701/generic_app/master)
5
5
  [![Code Climate](https://codeclimate.com/github/jhsu802701/generic_app/badges/gpa.svg)](https://codeclimate.com/github/jhsu802701/generic_app)
data/generic_app.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'generic_app/version'
4
4
 
@@ -1,3 +1,3 @@
1
1
  module GenericApp
2
- VERSION = '3.0.13'.freeze
2
+ VERSION = '3.0.14'.freeze
3
3
  end
data/lib/generic_app.rb CHANGED
@@ -1,4 +1,4 @@
1
- URL_TEMPLATE = 'https://github.com/jhsu802701/rails-20180126-180222-775.git'.freeze
1
+ URL_TEMPLATE = 'https://github.com/jhsu802701/rails-20180313-173135-247.git'.freeze
2
2
 
3
3
  require 'generic_app/version'
4
4
  require 'string_in_file'
@@ -6,7 +6,7 @@ require 'line_containing'
6
6
  require 'remove_double_blank'
7
7
  require 'open-uri'
8
8
 
9
- #
9
+ # rubocop:disable Metrics/ModuleLength
10
10
  module GenericApp
11
11
  # Create app, stick with SQLite database in development
12
12
  def self.create_new(subdir_name, email, title)
@@ -32,7 +32,7 @@ module GenericApp
32
32
  end
33
33
 
34
34
  def self.update_pg_setup(subdir_name)
35
- open("#{subdir_name}/pg_setup.sh", 'w') do |f|
35
+ File.open("#{subdir_name}/pg_setup.sh", 'w') do |f|
36
36
  f.write open('https://gist.githubusercontent.com/jhsu802701/e4d60a972893f78da0f6906a0beeac06/raw/293bd0e74adbfa6b47c81332aa81b84d89770518/pg_setup.sh').read
37
37
  end
38
38
  end
@@ -56,6 +56,7 @@ module GenericApp
56
56
  def self.remove_badges(subdir_name)
57
57
  path_readme = "#{subdir_name}/README.md"
58
58
  LineContaining.delete('[![CircleCI](https://circleci.com', path_readme)
59
+ LineContaining.delete('[![Build Status](https://travis-ci.org', path_readme)
59
60
  LineContaining.delete('[![Dependency Status](https://gemnasium.com', path_readme)
60
61
  LineContaining.delete('[![security](https://hakiri.io', path_readme)
61
62
  LineContaining.delete('[![Code Climate](https://codeclimate.com', path_readme)
@@ -63,6 +64,7 @@ module GenericApp
63
64
  RemoveDoubleBlank.update(path_readme)
64
65
  end
65
66
 
67
+ # rubocop:disable Metrics/AbcSize
66
68
  def self.update_titles(subdir_name, title)
67
69
  array_files = []
68
70
  array_files << "#{subdir_name}/README.md"
@@ -98,12 +100,12 @@ module GenericApp
98
100
  array_files << "#{subdir_name}/test/integration/admin_lock_test.rb"
99
101
  array_files << "#{subdir_name}/test/integration/admin_edit_test.rb"
100
102
 
101
-
102
103
  array_files.each do |f|
103
104
  StringInFile.replace('Generic App Template', title, f)
104
105
  StringInFile.replace('GENERIC APP TEMPLATE', title, f)
105
106
  end
106
107
  end
108
+ # rubocop:enable Metrics/AbcSize
107
109
 
108
110
  def self.update_todo(subdir_name)
109
111
  url_todo = 'https://gist.github.com/jhsu802701/fdfd6e0732773b379413625463f2d2c0'
@@ -130,3 +132,4 @@ module GenericApp
130
132
  puts 'README-to_do.txt within your new app.'
131
133
  end
132
134
  end
135
+ # rubocop:enable Metrics/ModuleLength
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generic_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.13
4
+ version: 3.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Hsu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-26 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  version: '0'
232
232
  requirements: []
233
233
  rubyforge_project:
234
- rubygems_version: 2.7.4
234
+ rubygems_version: 2.7.6
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: Save time by instantly creating a generic Rails app.