invisible_standards 0.1.0 → 0.1.1

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: 7c313d617d8bee7d2f48d04958ef142906831a3caee6f28f35ebf6a0586dcac4
4
- data.tar.gz: deafab56f5c6a7190290185a296592fb3a0fa43d1918d7683c20e656fbc9d770
3
+ metadata.gz: edc0495de51fda612b488aa112e8594c8489f97c56fdf9d71879da6492146c7b
4
+ data.tar.gz: dc3caf25cfc6c82aacb516962fe3da6e82e02d5886a74cdc4ea332b37794736d
5
5
  SHA512:
6
- metadata.gz: 7ae1709e45373bf4825ce5c7f9c7be117a40c1e6322bf312f9376abfdbb6415956fb307a16b92ccba84f51e9573ba0c169c2181c76815ea08840740bdb04db5a
7
- data.tar.gz: 55d787b9e51b38cec7fb0ef11a5c7ceb3bb17e4f4d00ead6a6fd05ca8c4d347a2ccf8d618d8ebc23bf6ef15101d238a96bea2de319beabece0bce354bb446501
6
+ metadata.gz: 8437f7dbcd154e8db1f49c13cc62e230a2bdd60ae27046b3043d7f9e6d48bf6691528d25f777e1391e6648ffd0d24070a1c73c99e0559c4b811fc19e03e6451f
7
+ data.tar.gz: 318172fe13dcd90a505e3c0b8dfb180247091c91d77d463d0bf4cc69a7297ff9fd07daec5c015cde9091560673ee25f8120fd5edde3b5015b3b1840828f43f7a
data/README.md CHANGED
@@ -21,7 +21,22 @@ You can also install this globally by running this command in your terminal
21
21
 
22
22
  ```bash
23
23
  # on command line
24
- gem install invisible_standards
24
+ $ gem install invisible_standards
25
+ ```
26
+
27
+ ### Changelog
28
+
29
+ You can generate a CHANGELOG.md file with changes including an unreleased version
30
+
31
+ These must be present
32
+ ```bash
33
+ CHANGELOG_GITHUB_TOKEN=tok_123 # also accepts GITHUB_TOKEN
34
+ CHANGELOG_VERSION=v0.1.1
35
+ CHANGELOG_REPO=invisiblehats/invisible_standards
36
+ ```
37
+
38
+ ```bash
39
+ $ bundle exec rake invisible_toolkit:changelog:generate
25
40
  ```
26
41
 
27
42
  ### Rubocop
data/ihv-rubocop.yml ADDED
@@ -0,0 +1,30 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+ Exclude:
4
+ - 'db/schema.rb'
5
+ - 'vendor/**/*'
6
+ - 'bin/**/*'
7
+ - 'node_modules/**/*'
8
+
9
+ Naming/VariableNumber:
10
+ EnforcedStyle: snake_case
11
+
12
+ Metrics/MethodLength:
13
+ Exclude:
14
+ - 'db/**/*'
15
+
16
+ Style/ClassAndModuleChildren:
17
+ EnforcedStyle: compact
18
+
19
+ Style/Documentation:
20
+ Exclude:
21
+ - 'db/**/*'
22
+
23
+ Style/TrailingCommaInArguments:
24
+ EnforcedStyleForMultiline: comma
25
+
26
+ Style/TrailingCommaInArrayLiteral:
27
+ EnforcedStyleForMultiline: comma
28
+
29
+ Style/TrailingCommaInHashLiteral:
30
+ EnforcedStyleForMultiline: comma
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'github_changelog_generator/task'
4
+
5
+ class InvisibleStandards::Engine < ::Rails::Engine
6
+ rake_tasks do
7
+ # These will be moved into a different repo soon
8
+ namespace :invisible_toolkit do
9
+ namespace :changelog do
10
+ desc 'Create a new changelog based on the current version'
11
+ GitHubChangelogGenerator::RakeTask.new :generate do |config|
12
+ user, project = ENV['CHANGELOG_REPO'].split('/')
13
+
14
+ config.user = user
15
+ config.project = project
16
+ config.future_release = ENV['CHANGELOG_VERSION']
17
+ config.token = ENV['CHANGELOG_TOKEN'] || ENV['GITHUB_TOKEN']
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module InvisibleStandards
4
+ VERSION = '0.1.1'
5
+ NAME = 'invisible_standards'
6
+ REPO = 'invisiblehats/invisible_standards'
7
+ AUTHORS = ['Myk Klemme'].freeze
8
+ EMAIL = ['mykklemme@gmail.com'].freeze
9
+ HOMEPAGE = 'https://github.com/invisiblehats/invisible_standards'
10
+ SUMMARY = 'Summary of InvisibleStandards.'
11
+ DESCRIPTION = 'Description of InvisibleStandards.'
12
+ LICENSE = 'MIT'
13
+ end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'invisible_standards/railtie'
3
+ require 'invisible_standards/project_meta'
4
+ require 'invisible_standards/engine' if defined?(Rails)
4
5
 
5
6
  module InvisibleStandards
6
- # Your code goes here...
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invisible_standards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myk Klemme
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2019-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,28 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '12'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: github_changelog_generator
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.15.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.15.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '4.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '4.2'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: rubocop
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
59
  - - ">="
32
60
  - !ruby/object:Gem::Version
33
- version: '0'
61
+ version: '0.70'
34
62
  type: :runtime
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
66
  - - ">="
39
67
  - !ruby/object:Gem::Version
40
- version: '0'
68
+ version: '0.70'
41
69
  description: Description of InvisibleStandards.
42
70
  email:
43
71
  - mykklemme@gmail.com
@@ -47,12 +75,11 @@ extra_rdoc_files: []
47
75
  files:
48
76
  - MIT-LICENSE
49
77
  - README.md
50
- - Rakefile
78
+ - ihv-rubocop.yml
51
79
  - lib/invisible_standards.rb
52
- - lib/invisible_standards/railtie.rb
53
- - lib/invisible_standards/version.rb
54
- - lib/tasks/invisible_standards_tasks.rake
55
- homepage: ''
80
+ - lib/invisible_standards/engine.rb
81
+ - lib/invisible_standards/project_meta.rb
82
+ homepage: https://github.com/invisiblehats/invisible_standards
56
83
  licenses:
57
84
  - MIT
58
85
  metadata:
data/Rakefile DELETED
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- begin
4
- require 'bundler/setup'
5
- rescue LoadError
6
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7
- end
8
-
9
- require 'rdoc/task'
10
-
11
- RDoc::Task.new(:rdoc) do |rdoc|
12
- rdoc.rdoc_dir = 'rdoc'
13
- rdoc.title = 'InvisibleStandards'
14
- rdoc.options << '--line-numbers'
15
- rdoc.rdoc_files.include('README.md')
16
- rdoc.rdoc_files.include('lib/**/*.rb')
17
- end
18
-
19
- require 'bundler/gem_tasks'
20
-
21
- require 'rake/testtask'
22
-
23
- Rake::TestTask.new(:test) do |t|
24
- t.libs << 'test'
25
- t.pattern = 'test/**/*_test.rb'
26
- t.verbose = false
27
- end
28
-
29
- task default: :test
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module InvisibleStandards
4
- class Railtie < ::Rails::Railtie
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module InvisibleStandards
4
- VERSION = '0.1.0'
5
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
- # desc "Explaining what the task does"
3
- # task :invisible_standards do
4
- # # Task goes here
5
- # end