Skip to content

Commit 27fe8c4

Browse files
authored
Merge pull request #19 from rdodson41/develop
Release v0.1.0
2 parents e78c0bb + 30b939f commit 27fe8c4

39 files changed

+440
-425
lines changed

.rspec

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
--color
22
--require spec_helper
3-
--require simplecov
4-
--require faker
5-
--require jwt/base
6-
--require timecop

.rubocop.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
Metrics/BlockLength:
2+
Exclude:
3+
- spec/**/*.rb
4+
15
Style/Documentation:
26
Enabled: false
37

4-
Metrics/LineLength:
8+
Style/FrozenStringLiteralComment:
59
Enabled: false

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
language: ruby
22
rvm:
3+
- 2.4.0
34
- 2.3.3
5+
- 2.3.1
46
- 2.3.0
57
- 2.2.6
68
- 2.1.10
79
- 2.1.9
8-
- 2.0.0
910
addons:
1011
code_climate:
1112
repo_token:

CODE_OF_CONDUCT.md

Lines changed: 54 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,74 @@
1-
# Contributor Code of Conduct
1+
# Contributor Covenant Code of Conduct
22

3-
As contributors and maintainers of this project, and in the interest of
4-
fostering an open and welcoming community, we pledge to respect all people who
5-
contribute through reporting issues, posting feature requests, updating
6-
documentation, submitting pull requests or patches, and other activities.
3+
## Our Pledge
74

8-
We are committed to making participation in this project a harassment-free
9-
experience for everyone, regardless of level of experience, gender, gender
10-
identity and expression, sexual orientation, disability, personal appearance,
11-
body size, race, ethnicity, age, religion, or nationality.
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
1222

1323
Examples of unacceptable behavior by participants include:
1424

15-
* The use of sexualized language or imagery
16-
* Personal attacks
17-
* Trolling or insulting/derogatory comments
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
1828
* Public or private harassment
19-
* Publishing other's private information, such as physical or electronic
20-
addresses, without explicit permission
21-
* Other unethical or unprofessional conduct
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
2239

2340
Project maintainers have the right and responsibility to remove, edit, or
2441
reject comments, commits, code, wiki edits, issues, and other contributions
2542
that are not aligned to this Code of Conduct, or to ban temporarily or
2643
permanently any contributor for other behaviors that they deem inappropriate,
2744
threatening, offensive, or harmful.
2845

29-
By adopting this Code of Conduct, project maintainers commit themselves to
30-
fairly and consistently applying these principles to every aspect of managing
31-
this project. Project maintainers who do not follow or enforce the Code of
32-
Conduct may be permanently removed from the project team.
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
3354

34-
This code of conduct applies both within project spaces and in public spaces
35-
when an individual is representing the project or its community.
55+
## Enforcement
3656

3757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
38-
reported by contacting a project maintainer at <richard.elias.dodson@gmail.com>. All
58+
reported by contacting the project team at <richard.elias.dodson@gmail.com>. All
3959
complaints will be reviewed and investigated and will result in a response that
40-
is deemed necessary and appropriate to the circumstances. Maintainers are
41-
obligated to maintain confidentiality with regard to the reporter of an
42-
incident.
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
4369

44-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45-
version 1.3.0, available at
46-
[http://contributor-covenant.org/version/1/3/0/][version]
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
4772

4873
[homepage]: http://contributor-covenant.org
49-
[version]: http://contributor-covenant.org/version/1/3/0/
74+
[version]: http://contributor-covenant.org/version/1/4/

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Richard E. Dodson
3+
Copyright (c) 2016, 2017 Richard E. Dodson
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# JWT::Base
1+
# JWT::Ext
22

3-
[![Gem Version](https://badge.fury.io/rb/jwt-base.svg)](https://badge.fury.io/rb/jwt-base)
4-
[![Dependency Status](https://gemnasium.com/badges/github.com/rdodson41/ruby-jwt-base.svg)](https://gemnasium.com/github.com/rdodson41/ruby-jwt-base)
5-
[![Build Status](https://travis-ci.org/rdodson41/ruby-jwt-base.svg?branch=master)](https://travis-ci.org/rdodson41/ruby-jwt-base)
6-
[![Code Climate](https://codeclimate.com/github/rdodson41/ruby-jwt-base/badges/gpa.svg)](https://codeclimate.com/github/rdodson41/ruby-jwt-base)
7-
[![Test Coverage](https://codeclimate.com/github/rdodson41/ruby-jwt-base/badges/coverage.svg)](https://codeclimate.com/github/rdodson41/ruby-jwt-base/coverage)
8-
[![Issue Count](https://codeclimate.com/github/rdodson41/ruby-jwt-base/badges/issue_count.svg)](https://codeclimate.com/github/rdodson41/ruby-jwt-base)
3+
[![Gem Version](https://badge.fury.io/rb/jwt-ext.svg)](https://badge.fury.io/rb/jwt-ext)
4+
[![Dependency Status](https://gemnasium.com/badges/github.com/rdodson41/ruby-jwt-ext.svg)](https://gemnasium.com/github.com/rdodson41/ruby-jwt-ext)
5+
[![Build Status](https://travis-ci.org/rdodson41/ruby-jwt-ext.svg?branch=master)](https://travis-ci.org/rdodson41/ruby-jwt-ext)
6+
[![Code Climate](https://codeclimate.com/github/rdodson41/ruby-jwt-ext/badges/gpa.svg)](https://codeclimate.com/github/rdodson41/ruby-jwt-ext)
7+
[![Test Coverage](https://codeclimate.com/github/rdodson41/ruby-jwt-ext/badges/coverage.svg)](https://codeclimate.com/github/rdodson41/ruby-jwt-ext/coverage)
8+
[![Issue Count](https://codeclimate.com/github/rdodson41/ruby-jwt-ext/badges/issue_count.svg)](https://codeclimate.com/github/rdodson41/ruby-jwt-ext)
99

1010
A thin wrapper of [ruby-jwt](https://jwt.github.io/ruby-jwt), an implementation of the [RFC 7519 OAuth JSON Web Token (JWT)](https://tools.ietf.org/html/rfc7519) standard.
1111

@@ -14,7 +14,7 @@ A thin wrapper of [ruby-jwt](https://jwt.github.io/ruby-jwt), an implementation
1414
Add this line to your application's Gemfile:
1515

1616
```ruby
17-
gem 'jwt-base'
17+
gem 'jwt-ext'
1818
```
1919

2020
And then execute:
@@ -23,7 +23,7 @@ And then execute:
2323

2424
Or install it yourself as:
2525

26-
$ gem install jwt-base
26+
$ gem install jwt-ext
2727

2828
## Development
2929

@@ -33,7 +33,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
3333

3434
## Contributing
3535

36-
Bug reports and pull requests are welcome on GitHub at https://github.com/rdodson41/jwt-base. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36+
Bug reports and pull requests are welcome on GitHub at https://github.com/rdodson41/jwt-ext. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
3737

3838
## License
3939

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'bundler/gem_tasks'
22
require 'rspec/core/rake_task'
33

4-
RSpec::Core::RakeTask.new(:spec)
4+
RSpec::Core::RakeTask.new
55

66
task default: :spec

bin/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
22

33
require 'bundler/setup'
4-
require 'jwt/base'
4+
require 'jwt/ext'
55
require 'pry'
66

77
Pry.start
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
lib = File.expand_path('../lib', __FILE__)
22
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
33

4-
require 'jwt/base/version'
4+
require 'jwt/ext/version'
55

66
Gem::Specification.new do |spec|
7-
spec.name = 'jwt-base'
8-
spec.version = JWT::Base::VERSION
7+
spec.name = 'jwt-ext'
8+
spec.version = JWT::Ext::VERSION
99
spec.authors = ['Richard E. Dodson']
1010
spec.email = ['richard.elias.dodson@gmail.com']
1111

1212
spec.summary = 'Ruby JSON Web Token (JWT) Wrapper'
13-
spec.homepage = 'https://github.com/rdodson41/ruby-jwt-base'
13+
spec.homepage = 'https://github.com/rdodson41/ruby-jwt-ext'
1414
spec.license = 'MIT'
1515

16-
spec.files = `git ls-files -z`.split(/\x0/).reject { |file| file =~ %r{^(test|spec|features)/} }
16+
spec.files = `git ls-files -z`.split(/\x0/).reject do |file|
17+
file =~ %r{^(test|spec|features)/}
18+
end
1719
spec.bindir = 'exe'
18-
spec.executables = spec.files.grep(%r{^exe/}) { |file| File.basename(file) }
20+
spec.executables = spec.files.grep(%r{^exe/}) do |file|
21+
File.basename(file)
22+
end
1923
spec.require_paths = ['lib']
2024

21-
spec.required_ruby_version = '~> 2.0'
25+
spec.required_ruby_version = '~> 2.1'
2226

23-
spec.add_runtime_dependency 'activesupport', '~> 4.2'
2427
spec.add_runtime_dependency 'jwt', '~> 1.5'
2528

2629
spec.add_development_dependency 'bundler', '~> 1.13'
2730
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0'
2831
spec.add_development_dependency 'faker', '~> 1.6'
29-
spec.add_development_dependency 'pry', '~> 0.10'
3032
spec.add_development_dependency 'rake', '~> 12.0'
3133
spec.add_development_dependency 'rspec', '~> 3.0'
32-
spec.add_development_dependency 'rubocop', '~> 0.43'
3334
spec.add_development_dependency 'simplecov', '~> 0.12'
34-
spec.add_development_dependency 'timecop', '~> 0.8'
3535
end

lib/jwt/base.rb

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)