osrcry 0.2.3 → 0.4.0

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
- SHA1:
3
- metadata.gz: 6f2c9587ec3868eaefb5f154e4f095683c12d228
4
- data.tar.gz: c58ffa5d87fe268a68bd9a8ee0e9796f1e3462a3
2
+ SHA256:
3
+ metadata.gz: 6084d68240fdc734dac241d9d325f09e41314d7b0a43b3d112b7f71bca7f6008
4
+ data.tar.gz: abc53c73d1d02c5bf3d0c6f8a3dca7444504b932473dd754f10b9e9266fb3865
5
5
  SHA512:
6
- metadata.gz: 4f53b05123142669a71f09461842a5532a10917acc0957c547ac2abe618f0817eb0e31d4358b37d8d68e8b9041896bc67ac9c6da27e0336b8ada8f8c95384ffd
7
- data.tar.gz: 8ee7294f8c6dbd869912ae76b2d9b31dc4dd7209f95f2be6c6564602f8212857df4e8fcaab8b00ee6d2cb01f41b5f6892a5f6100a1e08f45382bef4b33d088d9
6
+ metadata.gz: 545efea5144d0e9b76ed6c8bec0ca45ff67add54d7ffe1aa9d688a7c77cc90bb666720e739b1906d4c5a1389d15b24d9f3f9892ab8d1b5603d2c8af31df94102
7
+ data.tar.gz: c0c383993f02b2b0e3a17835273b21c78da62becc9a9c1ea0344a7f1d8426525095e79baeba95aa8e42fe94abc1710abf84632960d624c43b95ab676758cac8a
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  coverage
6
+ Gemfile.*lock
6
7
  InstalledFiles
7
8
  lib/bundler/man
8
9
  pkg
data/CONTRIBUTORS.md CHANGED
@@ -1,2 +1,4 @@
1
- * Wesley Beary <geemus+github@gmail.com>
2
- * geemus <geemus@gmail.com>
1
+ * Matt Eldridge
2
+ * Wesley Beary
3
+ * dependabot[bot]
4
+ * geemus
data/bin/osrcry CHANGED
@@ -2,15 +2,13 @@
2
2
 
3
3
  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'osrcry'))
4
4
 
5
- arguments = ARGV.map {|arg| arg.downcase}
5
+ arguments = ARGV.map {|arg| arg.downcase.split('.md', 2).first}
6
6
  commands = %w{
7
+ code_of_conduct
7
8
  contributing
8
- contributing.md
9
9
  contributors
10
- contributors.md
11
10
  init
12
11
  license
13
- license.md
14
12
  stale
15
13
  }
16
14
 
@@ -19,15 +17,18 @@ unless arguments.any? {|argument| commands.include?(argument)}
19
17
  else
20
18
  arguments.each do |command|
21
19
  case command
22
- when 'contributing', 'contributing.md'
20
+ when 'code_of_conduct'
23
21
  Osrcry::Contributing.execute
24
- when 'contributors', 'contributors.md'
22
+ when 'contributing'
23
+ Osrcry::Contributing.execute
24
+ when 'contributors'
25
25
  Osrcry::Contributors.execute
26
26
  when 'init'
27
+ Osrcry::CodeOfConduct.execute
27
28
  Osrcry::Contributing.execute
28
29
  Osrcry::Contributors.execute
29
30
  Osrcry::License.execute
30
- when 'license', 'license.md'
31
+ when 'license'
31
32
  Osrcry::License.execute
32
33
  when 'stale'
33
34
  Osrcry::Stale.execute
@@ -0,0 +1,91 @@
1
+ module Osrcry
2
+ class License
3
+ def self.execute
4
+ unless Osrcry.email
5
+ puts "Unable to create CODE_OF_CONDUCT.md due to missing email.\nPlease set ENV['OSRCRY_EMAIL'] or add git config user.email and try again."
6
+ return
7
+ end
8
+
9
+ code_of_conduct = <<-CODEOFCONDUCT
10
+ # Contributor Covenant Code of Conduct
11
+
12
+ ## Our Pledge
13
+
14
+ In the interest of fostering an open and welcoming environment, we as
15
+ contributors and maintainers pledge to making participation in our project and
16
+ our community a harassment-free experience for everyone, regardless of age, body
17
+ size, disability, ethnicity, gender identity and expression, level of experience,
18
+ nationality, personal appearance, race, religion, or sexual identity and
19
+ orientation.
20
+
21
+ ## Our Standards
22
+
23
+ Examples of behavior that contributes to creating a positive environment
24
+ include:
25
+
26
+ * Using welcoming and inclusive language
27
+ * Being respectful of differing viewpoints and experiences
28
+ * Gracefully accepting constructive criticism
29
+ * Focusing on what is best for the community
30
+ * Showing empathy towards other community members
31
+
32
+ Examples of unacceptable behavior by participants include:
33
+
34
+ * The use of sexualized language or imagery and unwelcome sexual attention or
35
+ advances
36
+ * Trolling, insulting/derogatory comments, and personal or political attacks
37
+ * Public or private harassment
38
+ * Publishing others' private information, such as a physical or electronic
39
+ address, without explicit permission
40
+ * Other conduct which could reasonably be considered inappropriate in a
41
+ professional setting
42
+
43
+ ## Our Responsibilities
44
+
45
+ Project maintainers are responsible for clarifying the standards of acceptable
46
+ behavior and are expected to take appropriate and fair corrective action in
47
+ response to any instances of unacceptable behavior.
48
+
49
+ Project maintainers have the right and responsibility to remove, edit, or
50
+ reject comments, commits, code, wiki edits, issues, and other contributions
51
+ that are not aligned to this Code of Conduct, or to ban temporarily or
52
+ permanently any contributor for other behaviors that they deem inappropriate,
53
+ threatening, offensive, or harmful.
54
+
55
+ ## Scope
56
+
57
+ This Code of Conduct applies both within project spaces and in public spaces
58
+ when an individual is representing the project or its community. Examples of
59
+ representing a project or community include using an official project e-mail
60
+ address, posting via an official social media account, or acting as an appointed
61
+ representative at an online or offline event. Representation of a project may be
62
+ further defined and clarified by project maintainers.
63
+
64
+ ## Enforcement
65
+
66
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
67
+ reported by contacting the project team at #{Osrcry.email}. All
68
+ complaints will be reviewed and investigated and will result in a response that
69
+ is deemed necessary and appropriate to the circumstances. The project team is
70
+ obligated to maintain confidentiality with regard to the reporter of an incident.
71
+ Further details of specific enforcement policies may be posted separately.
72
+
73
+ Project maintainers who do not follow or enforce the Code of Conduct in good
74
+ faith may face temporary or permanent repercussions as determined by other
75
+ members of the project's leadership.
76
+
77
+ ## Attribution
78
+
79
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
80
+ available at [http://contributor-covenant.org/version/1/4][version]
81
+
82
+ [homepage]: http://contributor-covenant.org
83
+ [version]: http://contributor-covenant.org/version/1/4/
84
+ CODEOFCONDUCT
85
+
86
+ File.open('CODE_OF_CONDUCT.md', 'w') do |file|
87
+ file.write(code_of_conduct)
88
+ end
89
+ end
90
+ end
91
+ end
@@ -1,7 +1,7 @@
1
1
  module Osrcry
2
2
  class Contributors
3
3
  def self.execute
4
- collaborators = `git log --pretty=format:"* %an <%ae>" 2>&1`.split("\n").uniq.sort
4
+ collaborators = `git log --pretty=format:"* %an" 2>&1`.split("\n").uniq.sort
5
5
 
6
6
  if collaborators.first == "fatal: your current branch 'master' does not have any commits yet"
7
7
  puts "Unable to create CONTRIBUTORS.md as there are no git commits.\nPlease add git commits and try again."
@@ -1,3 +1,3 @@
1
1
  module Osrcry
2
- VERSION = "0.2.3"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/osrcry.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  dir = File.dirname(__FILE__)
2
+ require File.join(dir, 'osrcry', 'code_of_conduct')
2
3
  require File.join(dir, 'osrcry', 'contributing')
3
4
  require File.join(dir, 'osrcry', 'contributors')
4
5
  require File.join(dir, 'osrcry', 'license')
@@ -7,6 +8,10 @@ require File.join(dir, 'osrcry', 'version')
7
8
 
8
9
  module Osrcry
9
10
 
11
+ def self.email
12
+ @email ||= ENV['OSRCRY_EMAIL'] || `git config user.email`
13
+ end
14
+
10
15
  def self.remote
11
16
  @remote ||= `git remote -v`.split("\n").detect {|line| line =~ /^origin/}
12
17
  end
data/osrcry.gemspec CHANGED
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.3"
21
+ spec.add_development_dependency "bundler"
22
22
  spec.add_development_dependency "rake"
23
23
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osrcry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-01 00:00:00.000000000 Z
11
+ date: 2022-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '0'
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: '1.3'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -50,12 +50,12 @@ files:
50
50
  - CONTRIBUTING.md
51
51
  - CONTRIBUTORS.md
52
52
  - Gemfile
53
- - Gemfile.lock
54
53
  - LICENSE.md
55
54
  - README.md
56
55
  - Rakefile
57
56
  - bin/osrcry
58
57
  - lib/osrcry.rb
58
+ - lib/osrcry/code_of_conduct.rb
59
59
  - lib/osrcry/contributing.rb
60
60
  - lib/osrcry/contributors.rb
61
61
  - lib/osrcry/license.rb
@@ -66,7 +66,7 @@ homepage: ''
66
66
  licenses:
67
67
  - MIT
68
68
  metadata: {}
69
- post_install_message:
69
+ post_install_message:
70
70
  rdoc_options: []
71
71
  require_paths:
72
72
  - lib
@@ -81,9 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubyforge_project:
85
- rubygems_version: 2.5.1
86
- signing_key:
84
+ rubygems_version: 3.3.5
85
+ signing_key:
87
86
  specification_version: 4
88
87
  summary: Tools for open source project management.
89
88
  test_files: []
data/Gemfile.lock DELETED
@@ -1,20 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- osrcry (0.2.3)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- rake (12.0.0)
10
-
11
- PLATFORMS
12
- ruby
13
-
14
- DEPENDENCIES
15
- bundler (~> 1.3)
16
- osrcry!
17
- rake
18
-
19
- BUNDLED WITH
20
- 1.11.2