tramway-user 0.1.0 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/MIT-LICENSE +20 -0
- data/README.md +12 -19
- data/Rakefile +34 -4
- data/app/assets/config/tramway_user_manifest.js +2 -0
- data/app/assets/javascripts/tramway/user/application.js +13 -0
- data/app/assets/javascripts/tramway/user/web/application.js +2 -0
- data/app/assets/stylesheets/tramway/user/application.css.sass +6 -0
- data/app/controllers/concerns/auth_managment.rb +29 -0
- data/app/controllers/tramway/user/application_controller.rb +13 -0
- data/app/controllers/tramway/user/web/application_controller.rb +7 -0
- data/app/controllers/tramway/user/web/sessions_controller.rb +32 -0
- data/app/forms/tramway/user/session_form.rb +14 -0
- data/app/helpers/tramway/user/application_helper.rb +8 -0
- data/app/helpers/tramway/user/web/application_helper.rb +4 -0
- data/app/jobs/tramway/user/application_job.rb +6 -0
- data/app/mailers/tramway/user/application_mailer.rb +8 -0
- data/app/models/tramway/user/application_record.rb +7 -0
- data/app/models/tramway/user/user.rb +12 -0
- data/app/views/layouts/tramway/user/application.html.erb +14 -0
- data/app/views/tramway/user/web/sessions/new.html.haml +6 -0
- data/config/locales/ru/helpers.yml +4 -0
- data/config/routes.rb +5 -0
- data/lib/tasks/tramway/user_tasks.rake +4 -0
- data/lib/tramway/user.rb +23 -6
- data/lib/tramway/user/engine.rb +7 -0
- data/lib/tramway/user/generators/install_generator.rb +9 -3
- data/lib/tramway/user/generators/templates/{create_users.rb → create_tramway_user_users.rb} +4 -4
- data/lib/tramway/user/generators/templates/tramway_user.rb +1 -0
- data/lib/tramway/user/version.rb +1 -1
- metadata +35 -77
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/.travis.yml +0 -5
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -104
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/lib/tramway/user/generators.rb +0 -6
- data/lib/tramway/user/user.rb +0 -4
- data/tramway-user.gemspec +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bd161a1ebaa9e050b73c14c89d72885994e5c9636db3b47f8d9900cd2a9bbd7d
|
4
|
+
data.tar.gz: 6761c8078f2eb5cc827363d29450f5fa1f00021983d66cec281269f6c59f5dee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7ad23a8b1f4ee39782ee4084302b4157f9363ced279330957443e0dd18b931c75194c5ec9a9c7b3aedf5596bc4dda5473f856c297a158c80ad00a8a2e27f140
|
7
|
+
data.tar.gz: ca889eea417826c2e8c9d906e0307aee4dab01d7cff9d6028559718de1ce0e01ce5cc2a2eb8248e6a22a2198b73cf0f20519d75585f0265321049bdd2b7837d3
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2017 Pavel Kalashnikov
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# Tramway::User
|
2
|
+
Short description and motivation.
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
6
|
|
7
7
|
## Installation
|
8
|
-
|
9
8
|
Add this line to your application's Gemfile:
|
10
9
|
|
11
10
|
```ruby
|
@@ -13,23 +12,17 @@ gem 'tramway-user'
|
|
13
12
|
```
|
14
13
|
|
15
14
|
And then execute:
|
16
|
-
|
17
|
-
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
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.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
20
|
+
```bash
|
21
|
+
$ gem install tramway-user
|
22
|
+
```
|
32
23
|
|
33
24
|
## Contributing
|
25
|
+
Contribution directions go here.
|
34
26
|
|
35
|
-
|
27
|
+
## License
|
28
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
@@ -1,6 +1,36 @@
|
|
1
|
-
|
2
|
-
require
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
3
6
|
|
4
|
-
|
7
|
+
require 'rdoc/task'
|
5
8
|
|
6
|
-
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'Tramway::User'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
|
21
|
+
load 'rails/tasks/statistics.rake'
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
require 'bundler/gem_tasks'
|
26
|
+
|
27
|
+
require 'rake/testtask'
|
28
|
+
|
29
|
+
Rake::TestTask.new(:test) do |t|
|
30
|
+
t.libs << 'test'
|
31
|
+
t.pattern = 'test/**/*_test.rb'
|
32
|
+
t.verbose = false
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
task default: :test
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module AuthManagment
|
2
|
+
def sign_in(user)
|
3
|
+
session[:user_id] = user.id
|
4
|
+
end
|
5
|
+
|
6
|
+
def sign_out
|
7
|
+
session[:user_id] = nil
|
8
|
+
end
|
9
|
+
|
10
|
+
def signed_in?
|
11
|
+
current_user
|
12
|
+
end
|
13
|
+
|
14
|
+
def authenticate_user!
|
15
|
+
redirect_to new_session_path unless signed_in?
|
16
|
+
end
|
17
|
+
|
18
|
+
def authenticate_admin!
|
19
|
+
if signed_in?
|
20
|
+
redirect_to '/' unless current_user.admin?
|
21
|
+
else
|
22
|
+
redirect_to '/users/session/new'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def current_user
|
27
|
+
@_current_user ||= ::Tramway::User::User.find_by id: session[:user_id]
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Tramway
|
2
|
+
module User
|
3
|
+
class ApplicationController < ActionController::Base
|
4
|
+
layout ::Tramway::User.layout_path
|
5
|
+
protect_from_forgery with: :exception
|
6
|
+
before_action :application
|
7
|
+
|
8
|
+
def application
|
9
|
+
@application = ::Tramway::Core.application.model_class.first
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Tramway::User
|
2
|
+
module Web
|
3
|
+
class SessionsController < ::Tramway::User::Web::ApplicationController
|
4
|
+
before_action :redirect_if_signed_in, except: :destroy
|
5
|
+
|
6
|
+
def new
|
7
|
+
@session_form = ::Tramway::User::SessionForm.new ::Tramway::User::User.new
|
8
|
+
end
|
9
|
+
|
10
|
+
def create
|
11
|
+
@session_form = ::Tramway::User::SessionForm.new User.find_or_initialize_by email: params[:user][:email]
|
12
|
+
if @session_form.validate params[:user]
|
13
|
+
sign_in @session_form.model
|
14
|
+
redirect_to ::Tramway::User.root_path
|
15
|
+
else
|
16
|
+
render :new
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def destroy
|
21
|
+
sign_out
|
22
|
+
redirect_to root_path
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def redirect_if_signed_in
|
28
|
+
redirect_to ::Tramway::User.root_path if signed_in?
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Tramway user</title>
|
5
|
+
<%= stylesheet_link_tag "tramway/user/application", media: "all" %>
|
6
|
+
<%= javascript_include_tag "tramway/user/application" %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
data/config/routes.rb
ADDED
data/lib/tramway/user.rb
CHANGED
@@ -1,11 +1,28 @@
|
|
1
|
-
require '
|
2
|
-
require 'tramway/user/
|
3
|
-
require 'tramway/user/version'
|
4
|
-
require 'tramway/user/generators'
|
1
|
+
require 'tramway/user/engine'
|
2
|
+
require 'tramway/user/generators/install_generator'
|
5
3
|
|
6
4
|
module Tramway
|
7
|
-
include Tramway::Core
|
8
|
-
|
9
5
|
module User
|
6
|
+
class << self
|
7
|
+
def root
|
8
|
+
File.dirname __dir__
|
9
|
+
end
|
10
|
+
|
11
|
+
def layout_path=(path)
|
12
|
+
@layout_path = path
|
13
|
+
end
|
14
|
+
|
15
|
+
def layout_path
|
16
|
+
@layout_path ||= 'tramway/user/application'
|
17
|
+
end
|
18
|
+
|
19
|
+
def root_path=(path)
|
20
|
+
@root_path = path
|
21
|
+
end
|
22
|
+
|
23
|
+
def root_path
|
24
|
+
@root_path
|
25
|
+
end
|
26
|
+
end
|
10
27
|
end
|
11
28
|
end
|
@@ -1,18 +1,24 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'tramway/core/generators/install_generator'
|
3
|
+
|
1
4
|
module Tramway::User::Generators
|
2
|
-
class InstallGenerator < ::
|
5
|
+
class InstallGenerator < ::Tramway::Core::Generators::InstallGenerator
|
3
6
|
include Rails::Generators::Migration
|
4
7
|
source_root File.expand_path('../templates', __FILE__)
|
5
8
|
|
6
9
|
desc 'Add the migrations for User'
|
7
10
|
|
11
|
+
def run_another_generators
|
12
|
+
generate 'tramway:core:install'
|
13
|
+
end
|
14
|
+
|
8
15
|
def self.next_migration_number(path)
|
9
16
|
next_migration_number = current_migration_number(path) + 1
|
10
17
|
ActiveRecord::Migration.next_migration_number next_migration_number
|
11
18
|
end
|
12
19
|
|
13
20
|
def copy_migrations
|
14
|
-
migration_template '
|
15
|
-
inject_into_file 'bin/rails', "include Tramway::User\n", before: :begin
|
21
|
+
migration_template 'create_tramway_user_users.rb', 'db/migrate/create_tramway_user_users.rb'
|
16
22
|
end
|
17
23
|
end
|
18
24
|
end
|
@@ -1,6 +1,8 @@
|
|
1
|
-
|
1
|
+
# FIXME specify rails version
|
2
|
+
# default is 5.1
|
3
|
+
class CreateTramwayUserUsers < ActiveRecord::Migration[5.1]
|
2
4
|
def change
|
3
|
-
create_table :
|
5
|
+
create_table :tramway_user_users do |t|
|
4
6
|
t.text :email
|
5
7
|
t.text :password_digest
|
6
8
|
t.text :first_name
|
@@ -14,5 +16,3 @@ class CreateUsers < ActiveRecord::Migration[5.1]
|
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
17
|
-
# FIXME specify rails version
|
18
|
-
# default is 5.1
|
@@ -0,0 +1 @@
|
|
1
|
+
::Tramway::User.root_path = '/'
|
data/lib/tramway/user/version.rb
CHANGED
metadata
CHANGED
@@ -1,37 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '1.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: pg
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
|
-
type: :
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: tramway-core
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
20
|
+
type: :development
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
@@ -39,49 +25,7 @@ dependencies:
|
|
39
25
|
- !ruby/object:Gem::Version
|
40
26
|
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.16'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.16'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '10.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '10.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: generator_spec
|
28
|
+
name: better_errors
|
85
29
|
requirement: !ruby/object:Gem::Requirement
|
86
30
|
requirements:
|
87
31
|
- - ">="
|
@@ -108,31 +52,45 @@ dependencies:
|
|
108
52
|
- - ">="
|
109
53
|
- !ruby/object:Gem::Version
|
110
54
|
version: '0'
|
111
|
-
description: Engine for users
|
55
|
+
description: Engine for users in your Rails app
|
112
56
|
email:
|
113
57
|
- kalashnikovisme@gmail.com
|
114
58
|
executables: []
|
115
59
|
extensions: []
|
116
60
|
extra_rdoc_files: []
|
117
61
|
files:
|
118
|
-
-
|
119
|
-
- ".rspec"
|
120
|
-
- ".travis.yml"
|
121
|
-
- Gemfile
|
122
|
-
- Gemfile.lock
|
62
|
+
- MIT-LICENSE
|
123
63
|
- README.md
|
124
64
|
- Rakefile
|
125
|
-
-
|
126
|
-
-
|
65
|
+
- app/assets/config/tramway_user_manifest.js
|
66
|
+
- app/assets/javascripts/tramway/user/application.js
|
67
|
+
- app/assets/javascripts/tramway/user/web/application.js
|
68
|
+
- app/assets/stylesheets/tramway/user/application.css.sass
|
69
|
+
- app/controllers/concerns/auth_managment.rb
|
70
|
+
- app/controllers/tramway/user/application_controller.rb
|
71
|
+
- app/controllers/tramway/user/web/application_controller.rb
|
72
|
+
- app/controllers/tramway/user/web/sessions_controller.rb
|
73
|
+
- app/forms/tramway/user/session_form.rb
|
74
|
+
- app/helpers/tramway/user/application_helper.rb
|
75
|
+
- app/helpers/tramway/user/web/application_helper.rb
|
76
|
+
- app/jobs/tramway/user/application_job.rb
|
77
|
+
- app/mailers/tramway/user/application_mailer.rb
|
78
|
+
- app/models/tramway/user/application_record.rb
|
79
|
+
- app/models/tramway/user/user.rb
|
80
|
+
- app/views/layouts/tramway/user/application.html.erb
|
81
|
+
- app/views/tramway/user/web/sessions/new.html.haml
|
82
|
+
- config/locales/ru/helpers.yml
|
83
|
+
- config/routes.rb
|
84
|
+
- lib/tasks/tramway/user_tasks.rake
|
127
85
|
- lib/tramway/user.rb
|
128
|
-
- lib/tramway/user/
|
86
|
+
- lib/tramway/user/engine.rb
|
129
87
|
- lib/tramway/user/generators/install_generator.rb
|
130
|
-
- lib/tramway/user/generators/templates/
|
131
|
-
- lib/tramway/user/
|
88
|
+
- lib/tramway/user/generators/templates/create_tramway_user_users.rb
|
89
|
+
- lib/tramway/user/generators/templates/tramway_user.rb
|
132
90
|
- lib/tramway/user/version.rb
|
133
|
-
- tramway-user.gemspec
|
134
91
|
homepage: https://github.com/kalashnikovisme/tramway-user
|
135
|
-
licenses:
|
92
|
+
licenses:
|
93
|
+
- MIT
|
136
94
|
metadata: {}
|
137
95
|
post_install_message:
|
138
96
|
rdoc_options: []
|
@@ -150,8 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
108
|
version: '0'
|
151
109
|
requirements: []
|
152
110
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.7.3
|
154
112
|
signing_key:
|
155
113
|
specification_version: 4
|
156
|
-
summary: Engine for users
|
114
|
+
summary: Engine for users in your Rails app
|
157
115
|
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
tramway-user (0.1.0)
|
5
|
-
activerecord
|
6
|
-
tramway-core
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actionpack (5.1.4)
|
12
|
-
actionview (= 5.1.4)
|
13
|
-
activesupport (= 5.1.4)
|
14
|
-
rack (~> 2.0)
|
15
|
-
rack-test (>= 0.6.3)
|
16
|
-
rails-dom-testing (~> 2.0)
|
17
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
18
|
-
actionview (5.1.4)
|
19
|
-
activesupport (= 5.1.4)
|
20
|
-
builder (~> 3.1)
|
21
|
-
erubi (~> 1.4)
|
22
|
-
rails-dom-testing (~> 2.0)
|
23
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
24
|
-
activemodel (5.1.4)
|
25
|
-
activesupport (= 5.1.4)
|
26
|
-
activerecord (5.1.4)
|
27
|
-
activemodel (= 5.1.4)
|
28
|
-
activesupport (= 5.1.4)
|
29
|
-
arel (~> 8.0)
|
30
|
-
activesupport (5.1.4)
|
31
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
32
|
-
i18n (~> 0.7)
|
33
|
-
minitest (~> 5.1)
|
34
|
-
tzinfo (~> 1.1)
|
35
|
-
arel (8.0.0)
|
36
|
-
builder (3.2.3)
|
37
|
-
coderay (1.1.2)
|
38
|
-
concurrent-ruby (1.0.5)
|
39
|
-
crass (1.0.3)
|
40
|
-
diff-lcs (1.3)
|
41
|
-
erubi (1.7.0)
|
42
|
-
generator_spec (0.9.4)
|
43
|
-
activesupport (>= 3.0.0)
|
44
|
-
railties (>= 3.0.0)
|
45
|
-
i18n (0.9.1)
|
46
|
-
concurrent-ruby (~> 1.0)
|
47
|
-
loofah (2.1.1)
|
48
|
-
crass (~> 1.0.2)
|
49
|
-
nokogiri (>= 1.5.9)
|
50
|
-
method_source (0.9.0)
|
51
|
-
mini_portile2 (2.3.0)
|
52
|
-
minitest (5.10.3)
|
53
|
-
nokogiri (1.8.1)
|
54
|
-
mini_portile2 (~> 2.3.0)
|
55
|
-
pry (0.11.3)
|
56
|
-
coderay (~> 1.1.0)
|
57
|
-
method_source (~> 0.9.0)
|
58
|
-
rack (2.0.3)
|
59
|
-
rack-test (0.7.1)
|
60
|
-
rack (>= 1.0, < 3)
|
61
|
-
rails-dom-testing (2.0.3)
|
62
|
-
activesupport (>= 4.2.0)
|
63
|
-
nokogiri (>= 1.6)
|
64
|
-
rails-html-sanitizer (1.0.3)
|
65
|
-
loofah (~> 2.0)
|
66
|
-
railties (5.1.4)
|
67
|
-
actionpack (= 5.1.4)
|
68
|
-
activesupport (= 5.1.4)
|
69
|
-
method_source
|
70
|
-
rake (>= 0.8.7)
|
71
|
-
thor (>= 0.18.1, < 2.0)
|
72
|
-
rake (10.5.0)
|
73
|
-
rspec (3.7.0)
|
74
|
-
rspec-core (~> 3.7.0)
|
75
|
-
rspec-expectations (~> 3.7.0)
|
76
|
-
rspec-mocks (~> 3.7.0)
|
77
|
-
rspec-core (3.7.0)
|
78
|
-
rspec-support (~> 3.7.0)
|
79
|
-
rspec-expectations (3.7.0)
|
80
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
81
|
-
rspec-support (~> 3.7.0)
|
82
|
-
rspec-mocks (3.7.0)
|
83
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
-
rspec-support (~> 3.7.0)
|
85
|
-
rspec-support (3.7.0)
|
86
|
-
thor (0.20.0)
|
87
|
-
thread_safe (0.3.6)
|
88
|
-
tramway-core (0.1.0)
|
89
|
-
tzinfo (1.2.4)
|
90
|
-
thread_safe (~> 0.1)
|
91
|
-
|
92
|
-
PLATFORMS
|
93
|
-
ruby
|
94
|
-
|
95
|
-
DEPENDENCIES
|
96
|
-
bundler (~> 1.16)
|
97
|
-
generator_spec
|
98
|
-
pry
|
99
|
-
rake (~> 10.0)
|
100
|
-
rspec (~> 3.0)
|
101
|
-
tramway-user!
|
102
|
-
|
103
|
-
BUNDLED WITH
|
104
|
-
1.16.0
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "tramway/user"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/lib/tramway/user/user.rb
DELETED
data/tramway-user.gemspec
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "tramway/user/version"
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "tramway-user"
|
8
|
-
spec.version = Tramway::User::VERSION
|
9
|
-
spec.authors = ["Pavel Kalashnikov"]
|
10
|
-
spec.email = ["kalashnikovisme@gmail.com"]
|
11
|
-
|
12
|
-
spec.summary = %q{Engine for users}
|
13
|
-
spec.description = %q{Engine for users}
|
14
|
-
spec.homepage = "https://github.com/kalashnikovisme/tramway-user"
|
15
|
-
|
16
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
-
f.match(%r{^(test|spec|features)/})
|
18
|
-
end
|
19
|
-
spec.bindir = "exe"
|
20
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
-
spec.require_paths = ["lib"]
|
22
|
-
|
23
|
-
spec.add_dependency 'activerecord'
|
24
|
-
spec.add_dependency 'tramway-core'
|
25
|
-
|
26
|
-
spec.add_development_dependency "bundler", "~> 1.16"
|
27
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
-
spec.add_development_dependency 'generator_spec'
|
30
|
-
spec.add_development_dependency 'pry'
|
31
|
-
end
|