Skip to content

Commit 65ab965

Browse files
authored
gem: include all files in lib (#6)
* gem: specify dependencies in spec * git: ignore gem lockfile * gem: include all files in lib * git: restore gem lockfile * spec: remove self
1 parent bdb8a97 commit 65ab965

File tree

3 files changed

+45
-24
lines changed

3 files changed

+45
-24
lines changed

Gemfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@ source "https://rubygems.org"
44

55
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
66

7-
# OmniAuth is what this strategy is providing
8-
gem "omniauth", ">= 2.0"
9-
# Use Ruby-Eth for signature recovery
10-
gem 'eth', '>= 0.4.16'
11-
12-
# Spec tests
13-
gem 'rspec', '>= 3.10.0'
14-
gem 'rack-test'
7+
# Specify your gem's dependencies in gemspec
8+
gemspec

Gemfile.lock

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
PATH
2+
remote: .
3+
specs:
4+
omniauth-ethereum (0.1.0)
5+
eth (~> 0.4.16)
6+
omniauth (~> 2.0)
7+
18
GEM
29
remote: https://rubygems.org/
310
specs:
@@ -44,13 +51,12 @@ GEM
4451
ffi-compiler (>= 1.0, < 2.0)
4552

4653
PLATFORMS
47-
x86_64-darwin-19
54+
x86_64-linux
4855

4956
DEPENDENCIES
50-
eth (>= 0.4.16)
51-
omniauth (>= 2.0)
52-
rack-test
53-
rspec (>= 3.10.0)
57+
omniauth-ethereum!
58+
rack-test (~> 1.1)
59+
rspec (~> 3.10)
5460

5561
BUNDLED WITH
56-
2.2.27
62+
2.2.28

omniauth-ethereum.gemspec

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,36 @@
11
lib = File.expand_path('lib', __dir__)
22
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3-
require 'omniauth-ethereum'
43

54
Gem::Specification.new do |spec|
6-
spec.name = 'omniauth-ethereum'
7-
spec.version = '0.0.1'
8-
spec.summary = "OmniAuth Strategy for Ethereum"
9-
spec.description = "Authentication Strategy for OmniAuth to authenticate a user with an Ethereum account"
10-
spec.authors = ["Afri Schoedon"]
11-
spec.email = '[email protected]'
12-
spec.files = ["lib/omniauth-ethereum.rb"]
13-
spec.homepage = 'https://github.com/byz-f/omniauth-ethereum'
14-
spec.license = 'Apache-2.0'
5+
spec.name = 'omniauth-ethereum'
6+
spec.version = '0.1.0'
7+
spec.summary = "OmniAuth Strategy for Ethereum"
8+
spec.description = "Authentication Strategy for OmniAuth to authenticate a user with an Ethereum account"
9+
spec.authors = ["Afri Schoedon"]
10+
spec.email = '[email protected]'
11+
spec.homepage = 'https://github.com/q9f/omniauth-ethereum'
12+
spec.license = 'Apache-2.0'
13+
14+
spec.metadata = {
15+
'homepage_uri' => 'https://github.com/q9f/omniauth-ethereum',
16+
'source_code_uri' => 'https://github.com/q9f/omniauth-ethereum',
17+
'github_repo' => 'https://github.com/q9f/omniauth-ethereum',
18+
'bug_tracker_uri' => 'https://github.com/q9f/omniauth-ethereum/issues',
19+
}.freeze
20+
21+
spec.require_paths = ["lib"]
22+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23+
24+
spec.platform = Gem::Platform::RUBY
25+
spec.required_ruby_version = ">= 2.7", "< 4.0"
26+
27+
# OmniAuth is what this strategy is providing
28+
spec.add_dependency 'omniauth', '~> 2.0'
29+
30+
# Use Ruby-Eth for signature recovery
31+
spec.add_dependency 'eth', '~> 0.4.16'
32+
33+
# Spec tests
34+
spec.add_development_dependency 'rspec', '~> 3.10'
35+
spec.add_development_dependency 'rack-test', '~> 1.1'
1536
end

0 commit comments

Comments
 (0)