moromi 0.2.0 → 0.3.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: 0342a2e55198ac88542c0c21100786c9c40c1bbb
4
- data.tar.gz: 6ad1948cc01e836e522c91df3f1ca314699e6dee
2
+ SHA256:
3
+ metadata.gz: d1884677c9e12a65a2a8c24c50e29bbe2e8943699d64500672f706afe594955b
4
+ data.tar.gz: e389803c74d8c9d50961b68123ec696a59431501ab04456fa2c4af92505a6624
5
5
  SHA512:
6
- metadata.gz: a55d47fffa4580219bb6749904d06448d74916642dc2326021797aa7fe906d5c9197693bc8e469901f85b8617d4ead87b0b4a80a59a5cef104729662827b155d
7
- data.tar.gz: 0d772d672df382e9eabb055b5e5a2a900a37e5ff45a0615831bb24eefdb24aa2477dd4828d5909cc08fbea9e6fe7adf17e596233556a655b7cc56f9b9bef227a
6
+ metadata.gz: 83b6db0d6f42e397f345ef198cf56d3b73a4caee1052dae88c24809fe5dc4c25b7e42805706af98d70d9f3c456e5aeaebc70e22ed9f40e0820abff077a62939f
7
+ data.tar.gz: 634014ac20184551fc27093a11d6342122351ede7884b7c87bb7c14d8eb62cfdf5c97e5be4d0020e48b66afebc06d25923d517016254407ae962ef78f2b3d7be
@@ -0,0 +1,23 @@
1
+ name: Ruby
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ strategy:
8
+ fail-fast: false
9
+ matrix:
10
+ os: [ubuntu-latest]
11
+ ruby: [2.7, 3.0]
12
+ runs-on: ${{ matrix.os }}
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
19
+ - run: |
20
+ gem install bundler
21
+ bundle config path vendor/bundle
22
+ bundle install --jobs 4 --retry 3
23
+ bundle exec rake
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Moromi
2
2
 
3
3
  [![Latest Version](https://img.shields.io/gem/v/moromi.svg)](http://rubygems.org/gems/moromi)
4
- [![Circle CI](https://circleci.com/gh/moromi/moromi.svg?style=svg)](https://circleci.com/gh/moromi/moromi)
4
+ [![Build Status](https://github.com/moromi/moromi/workflows/Ruby/badge.svg)](https://github.com/moromi/moromi/actions)
5
5
 
6
6
  Framework for my Rails projects.
7
7
 
@@ -21,6 +21,23 @@ Or install it yourself as:
21
21
 
22
22
  $ gem install moromi
23
23
 
24
+ ## Moromi gems
25
+
26
+ - [moromi](https://github.com/moromi/moromi)
27
+ [![Latest Version](https://img.shields.io/gem/v/moromi.svg)](http://rubygems.org/gems/moromi)
28
+
29
+ - [moromi-apns](https://github.com/moromi/moromi-apns)
30
+ [![Latest Version](https://img.shields.io/gem/v/moromi-apns.svg)](http://rubygems.org/gems/moromi-apns)
31
+
32
+ - [moromi-aws-sns](https://github.com/moromi/moromi-aws-sns)
33
+ [![Latest Version](https://img.shields.io/gem/v/moromi-aws-sns.svg)](http://rubygems.org/gems/moromi-aws-sns)
34
+
35
+ - [moromi-apns-aws_sns_adapter](https://github.com/moromi/moromi-apns-aws_sns_adapter)
36
+ [![Latest Version](https://img.shields.io/gem/v/moromi-apns-aws_sns_adapter.svg)](http://rubygems.org/gems/moromi-apns-aws_sns_adapter)
37
+
38
+ - [moromi-error](https://github.com/moromi/moromi-error)
39
+ [![Latest Version](https://img.shields.io/gem/v/moromi-error.svg)](http://rubygems.org/gems/moromi-error)
40
+
24
41
  ## Development
25
42
 
26
43
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -29,5 +46,5 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
29
46
 
30
47
  ## Contributing
31
48
 
32
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/moromi.
49
+ Bug reports and pull requests are welcome on GitHub at https://github.com/moromi/moromi.
33
50
 
@@ -1,4 +1,10 @@
1
+ require "active_support"
1
2
  require "moromi/version"
3
+ require "moromi/configuration"
4
+
5
+ if defined? ::Rails
6
+ require "moromi/user_authenticated_engine_usable"
7
+ end
2
8
 
3
9
  module Moromi
4
10
  # Your code goes here...
@@ -0,0 +1,13 @@
1
+ module Moromi
2
+ class Configuration
3
+ attr_accessor :app_name
4
+ end
5
+
6
+ def self.config
7
+ @config ||= Configuration.new
8
+ end
9
+
10
+ def self.configure
11
+ yield config
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ module Moromi
2
+ module UserAuthenticatedEngineUsable
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ helper_method :current_user
7
+ end
8
+
9
+ def custom_header
10
+ end
11
+
12
+ def current_user
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module Moromi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -19,7 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.12"
23
- spec.add_development_dependency "rake", "~> 10.0"
24
- spec.add_development_dependency "rspec", "~> 3.0"
22
+ spec.add_development_dependency "activesupport", ">= 5.0.0"
23
+
24
+ spec.add_development_dependency "bundler"
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "rspec"
25
27
  end
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moromi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Ooishi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-03 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.0
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 5.0.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - "~>"
31
+ - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: '1.12'
33
+ version: '0'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - "~>"
38
+ - - ">="
25
39
  - !ruby/object:Gem::Version
26
- version: '1.12'
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: '10.0'
47
+ version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - "~>"
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: '10.0'
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '3.0'
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '3.0'
68
+ version: '0'
55
69
  description: Framework for my Rails projects
56
70
  email:
57
71
  - taka0125@gmail.com
@@ -59,17 +73,18 @@ executables: []
59
73
  extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
76
+ - ".github/workflows/ruby.yml"
62
77
  - ".gitignore"
63
78
  - ".rspec"
64
- - ".travis.yml"
65
79
  - Gemfile
66
80
  - LICENSE
67
81
  - README.md
68
82
  - Rakefile
69
83
  - bin/console
70
84
  - bin/setup
71
- - circle.yml
72
85
  - lib/moromi.rb
86
+ - lib/moromi/configuration.rb
87
+ - lib/moromi/user_authenticated_engine_usable.rb
73
88
  - lib/moromi/version.rb
74
89
  - moromi.gemspec
75
90
  homepage: https://github.com/moromi/moromi
@@ -91,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
106
  - !ruby/object:Gem::Version
92
107
  version: '0'
93
108
  requirements: []
94
- rubyforge_project:
95
- rubygems_version: 2.5.1
109
+ rubygems_version: 3.0.3
96
110
  signing_key:
97
111
  specification_version: 4
98
112
  summary: Framework for my Rails projects
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.1
4
- before_install: gem install bundler -v 1.12.5
data/circle.yml DELETED
@@ -1,4 +0,0 @@
1
- machine:
2
- ruby:
3
- version:
4
- 2.3.1