ruby-identitas-api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +39 -0
- data/LICENSE.txt +21 -0
- data/README.md +56 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/generators/ruby_identitas_api/install_generator.rb +9 -0
- data/lib/generators/templates/initializer.rb +5 -0
- data/lib/ruby/identitas/api.rb +15 -0
- data/lib/ruby/identitas/api/version.rb +7 -0
- data/lib/ruby/identitas/configuration.rb +29 -0
- data/lib/ruby/identitas/endpoints/me.rb +13 -0
- data/lib/ruby/identitas/main.rb +21 -0
- data/ruby-identitas-api.gemspec +38 -0
- data/spec/dummy/.gitignore +23 -0
- data/spec/dummy/Gemfile +56 -0
- data/spec/dummy/Gemfile.lock +206 -0
- data/spec/dummy/README.md +24 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/app/assets/javascripts/channels/.keep +0 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +9 -0
- data/spec/dummy/bin/rake +9 -0
- data/spec/dummy/bin/setup +38 -0
- data/spec/dummy/bin/spring +17 -0
- data/spec/dummy/bin/update +29 -0
- data/spec/dummy/bin/yarn +11 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/config/application.rb +18 -0
- data/spec/dummy/config/boot.rb +3 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +54 -0
- data/spec/dummy/config/environments/production.rb +91 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/ruby_identitas_api.rb +5 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/puma.rb +56 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +32 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/db/seeds.rb +7 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/lib/tasks/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/package.json +5 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/robots.txt +1 -0
- data/spec/dummy/test/application_system_test_case.rb +5 -0
- data/spec/dummy/test/controllers/.keep +0 -0
- data/spec/dummy/test/fixtures/.keep +0 -0
- data/spec/dummy/test/fixtures/files/.keep +0 -0
- data/spec/dummy/test/helpers/.keep +0 -0
- data/spec/dummy/test/integration/.keep +0 -0
- data/spec/dummy/test/mailers/.keep +0 -0
- data/spec/dummy/test/models/.keep +0 -0
- data/spec/dummy/test/system/.keep +0 -0
- data/spec/dummy/test/test_helper.rb +9 -0
- data/spec/dummy/tmp/.keep +0 -0
- data/spec/dummy/vendor/.keep +0 -0
- data/spec/ruby/identitas/api_spec.rb +9 -0
- data/spec/spec_helper.rb +14 -0
- metadata +278 -0
data/spec/dummy/Gemfile
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
git_source(:github) do |repo_name|
|
4
|
+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
5
|
+
"https://github.com/#{repo_name}.git"
|
6
|
+
end
|
7
|
+
|
8
|
+
|
9
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
10
|
+
gem 'rails', '~> 5.1.4'
|
11
|
+
# Use sqlite3 as the database for Active Record
|
12
|
+
gem 'sqlite3'
|
13
|
+
# Use Puma as the app server
|
14
|
+
gem 'puma', '~> 3.7'
|
15
|
+
# Use SCSS for stylesheets
|
16
|
+
gem 'sass-rails', '~> 5.0'
|
17
|
+
# Use Uglifier as compressor for JavaScript assets
|
18
|
+
gem 'uglifier', '>= 1.3.0'
|
19
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
20
|
+
# gem 'therubyracer', platforms: :ruby
|
21
|
+
|
22
|
+
# Use CoffeeScript for .coffee assets and views
|
23
|
+
gem 'coffee-rails', '~> 4.2'
|
24
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
25
|
+
gem 'turbolinks', '~> 5'
|
26
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
27
|
+
gem 'jbuilder', '~> 2.5'
|
28
|
+
# Use Redis adapter to run Action Cable in production
|
29
|
+
# gem 'redis', '~> 3.0'
|
30
|
+
# Use ActiveModel has_secure_password
|
31
|
+
# gem 'bcrypt', '~> 3.1.7'
|
32
|
+
|
33
|
+
# Use Capistrano for deployment
|
34
|
+
# gem 'capistrano-rails', group: :development
|
35
|
+
|
36
|
+
group :development, :test do
|
37
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
38
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
39
|
+
# Adds support for Capybara system testing and selenium driver
|
40
|
+
gem 'capybara', '~> 2.13'
|
41
|
+
gem 'selenium-webdriver'
|
42
|
+
end
|
43
|
+
|
44
|
+
group :development do
|
45
|
+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
46
|
+
gem 'web-console', '>= 3.3.0'
|
47
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
48
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
49
|
+
gem 'spring'
|
50
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
51
|
+
end
|
52
|
+
|
53
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
54
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
55
|
+
|
56
|
+
gem 'ruby-identitas-api', path: "../.."
|
@@ -0,0 +1,206 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
ruby-identitas-api (0.1.0)
|
5
|
+
httparty
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (5.1.4)
|
11
|
+
actionpack (= 5.1.4)
|
12
|
+
nio4r (~> 2.0)
|
13
|
+
websocket-driver (~> 0.6.1)
|
14
|
+
actionmailer (5.1.4)
|
15
|
+
actionpack (= 5.1.4)
|
16
|
+
actionview (= 5.1.4)
|
17
|
+
activejob (= 5.1.4)
|
18
|
+
mail (~> 2.5, >= 2.5.4)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
actionpack (5.1.4)
|
21
|
+
actionview (= 5.1.4)
|
22
|
+
activesupport (= 5.1.4)
|
23
|
+
rack (~> 2.0)
|
24
|
+
rack-test (>= 0.6.3)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
actionview (5.1.4)
|
28
|
+
activesupport (= 5.1.4)
|
29
|
+
builder (~> 3.1)
|
30
|
+
erubi (~> 1.4)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.1.4)
|
34
|
+
activesupport (= 5.1.4)
|
35
|
+
globalid (>= 0.3.6)
|
36
|
+
activemodel (5.1.4)
|
37
|
+
activesupport (= 5.1.4)
|
38
|
+
activerecord (5.1.4)
|
39
|
+
activemodel (= 5.1.4)
|
40
|
+
activesupport (= 5.1.4)
|
41
|
+
arel (~> 8.0)
|
42
|
+
activesupport (5.1.4)
|
43
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
+
i18n (~> 0.7)
|
45
|
+
minitest (~> 5.1)
|
46
|
+
tzinfo (~> 1.1)
|
47
|
+
addressable (2.5.2)
|
48
|
+
public_suffix (>= 2.0.2, < 4.0)
|
49
|
+
arel (8.0.0)
|
50
|
+
bindex (0.5.0)
|
51
|
+
builder (3.2.3)
|
52
|
+
byebug (9.1.0)
|
53
|
+
capybara (2.16.1)
|
54
|
+
addressable
|
55
|
+
mini_mime (>= 0.1.3)
|
56
|
+
nokogiri (>= 1.3.3)
|
57
|
+
rack (>= 1.0.0)
|
58
|
+
rack-test (>= 0.5.4)
|
59
|
+
xpath (~> 2.0)
|
60
|
+
childprocess (0.8.0)
|
61
|
+
ffi (~> 1.0, >= 1.0.11)
|
62
|
+
coffee-rails (4.2.2)
|
63
|
+
coffee-script (>= 2.2.0)
|
64
|
+
railties (>= 4.0.0)
|
65
|
+
coffee-script (2.4.1)
|
66
|
+
coffee-script-source
|
67
|
+
execjs
|
68
|
+
coffee-script-source (1.12.2)
|
69
|
+
concurrent-ruby (1.0.5)
|
70
|
+
crass (1.0.3)
|
71
|
+
erubi (1.7.0)
|
72
|
+
execjs (2.7.0)
|
73
|
+
ffi (1.9.18)
|
74
|
+
globalid (0.4.1)
|
75
|
+
activesupport (>= 4.2.0)
|
76
|
+
httparty (0.15.6)
|
77
|
+
multi_xml (>= 0.5.2)
|
78
|
+
i18n (0.9.1)
|
79
|
+
concurrent-ruby (~> 1.0)
|
80
|
+
jbuilder (2.7.0)
|
81
|
+
activesupport (>= 4.2.0)
|
82
|
+
multi_json (>= 1.2)
|
83
|
+
listen (3.1.5)
|
84
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
85
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
86
|
+
ruby_dep (~> 1.2)
|
87
|
+
loofah (2.1.1)
|
88
|
+
crass (~> 1.0.2)
|
89
|
+
nokogiri (>= 1.5.9)
|
90
|
+
mail (2.7.0)
|
91
|
+
mini_mime (>= 0.1.1)
|
92
|
+
method_source (0.9.0)
|
93
|
+
mini_mime (1.0.0)
|
94
|
+
mini_portile2 (2.3.0)
|
95
|
+
minitest (5.10.3)
|
96
|
+
multi_json (1.12.2)
|
97
|
+
multi_xml (0.6.0)
|
98
|
+
nio4r (2.1.0)
|
99
|
+
nokogiri (1.8.1)
|
100
|
+
mini_portile2 (~> 2.3.0)
|
101
|
+
public_suffix (3.0.1)
|
102
|
+
puma (3.11.0)
|
103
|
+
rack (2.0.3)
|
104
|
+
rack-test (0.8.2)
|
105
|
+
rack (>= 1.0, < 3)
|
106
|
+
rails (5.1.4)
|
107
|
+
actioncable (= 5.1.4)
|
108
|
+
actionmailer (= 5.1.4)
|
109
|
+
actionpack (= 5.1.4)
|
110
|
+
actionview (= 5.1.4)
|
111
|
+
activejob (= 5.1.4)
|
112
|
+
activemodel (= 5.1.4)
|
113
|
+
activerecord (= 5.1.4)
|
114
|
+
activesupport (= 5.1.4)
|
115
|
+
bundler (>= 1.3.0)
|
116
|
+
railties (= 5.1.4)
|
117
|
+
sprockets-rails (>= 2.0.0)
|
118
|
+
rails-dom-testing (2.0.3)
|
119
|
+
activesupport (>= 4.2.0)
|
120
|
+
nokogiri (>= 1.6)
|
121
|
+
rails-html-sanitizer (1.0.3)
|
122
|
+
loofah (~> 2.0)
|
123
|
+
railties (5.1.4)
|
124
|
+
actionpack (= 5.1.4)
|
125
|
+
activesupport (= 5.1.4)
|
126
|
+
method_source
|
127
|
+
rake (>= 0.8.7)
|
128
|
+
thor (>= 0.18.1, < 2.0)
|
129
|
+
rake (12.3.0)
|
130
|
+
rb-fsevent (0.10.2)
|
131
|
+
rb-inotify (0.9.10)
|
132
|
+
ffi (>= 0.5.0, < 2)
|
133
|
+
ruby_dep (1.5.0)
|
134
|
+
rubyzip (1.2.1)
|
135
|
+
sass (3.5.3)
|
136
|
+
sass-listen (~> 4.0.0)
|
137
|
+
sass-listen (4.0.0)
|
138
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
139
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
140
|
+
sass-rails (5.0.7)
|
141
|
+
railties (>= 4.0.0, < 6)
|
142
|
+
sass (~> 3.1)
|
143
|
+
sprockets (>= 2.8, < 4.0)
|
144
|
+
sprockets-rails (>= 2.0, < 4.0)
|
145
|
+
tilt (>= 1.1, < 3)
|
146
|
+
selenium-webdriver (3.8.0)
|
147
|
+
childprocess (~> 0.5)
|
148
|
+
rubyzip (~> 1.0)
|
149
|
+
spring (2.0.2)
|
150
|
+
activesupport (>= 4.2)
|
151
|
+
spring-watcher-listen (2.0.1)
|
152
|
+
listen (>= 2.7, < 4.0)
|
153
|
+
spring (>= 1.2, < 3.0)
|
154
|
+
sprockets (3.7.1)
|
155
|
+
concurrent-ruby (~> 1.0)
|
156
|
+
rack (> 1, < 3)
|
157
|
+
sprockets-rails (3.2.1)
|
158
|
+
actionpack (>= 4.0)
|
159
|
+
activesupport (>= 4.0)
|
160
|
+
sprockets (>= 3.0.0)
|
161
|
+
sqlite3 (1.3.13)
|
162
|
+
thor (0.20.0)
|
163
|
+
thread_safe (0.3.6)
|
164
|
+
tilt (2.0.8)
|
165
|
+
turbolinks (5.0.1)
|
166
|
+
turbolinks-source (~> 5)
|
167
|
+
turbolinks-source (5.0.3)
|
168
|
+
tzinfo (1.2.4)
|
169
|
+
thread_safe (~> 0.1)
|
170
|
+
uglifier (4.0.1)
|
171
|
+
execjs (>= 0.3.0, < 3)
|
172
|
+
web-console (3.5.1)
|
173
|
+
actionview (>= 5.0)
|
174
|
+
activemodel (>= 5.0)
|
175
|
+
bindex (>= 0.4.0)
|
176
|
+
railties (>= 5.0)
|
177
|
+
websocket-driver (0.6.5)
|
178
|
+
websocket-extensions (>= 0.1.0)
|
179
|
+
websocket-extensions (0.1.3)
|
180
|
+
xpath (2.1.0)
|
181
|
+
nokogiri (~> 1.3)
|
182
|
+
|
183
|
+
PLATFORMS
|
184
|
+
ruby
|
185
|
+
|
186
|
+
DEPENDENCIES
|
187
|
+
byebug
|
188
|
+
capybara (~> 2.13)
|
189
|
+
coffee-rails (~> 4.2)
|
190
|
+
jbuilder (~> 2.5)
|
191
|
+
listen (>= 3.0.5, < 3.2)
|
192
|
+
puma (~> 3.7)
|
193
|
+
rails (~> 5.1.4)
|
194
|
+
ruby-identitas-api!
|
195
|
+
sass-rails (~> 5.0)
|
196
|
+
selenium-webdriver
|
197
|
+
spring
|
198
|
+
spring-watcher-listen (~> 2.0.0)
|
199
|
+
sqlite3
|
200
|
+
turbolinks (~> 5)
|
201
|
+
tzinfo-data
|
202
|
+
uglifier (>= 1.3.0)
|
203
|
+
web-console (>= 3.3.0)
|
204
|
+
|
205
|
+
BUNDLED WITH
|
206
|
+
1.16.0
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
data/spec/dummy/Rakefile
ADDED
File without changes
|
@@ -0,0 +1,15 @@
|
|
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, or any plugin's
|
5
|
+
// 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 rails-ujs
|
14
|
+
//= require turbolinks
|
15
|
+
//= require_tree .
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// Action Cable provides the framework to deal with WebSockets in Rails.
|
2
|
+
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
|
3
|
+
//
|
4
|
+
//= require action_cable
|
5
|
+
//= require_self
|
6
|
+
//= require_tree ./channels
|
7
|
+
|
8
|
+
(function() {
|
9
|
+
this.App || (this.App = {});
|
10
|
+
|
11
|
+
App.cable = ActionCable.createConsumer();
|
12
|
+
|
13
|
+
}).call(this);
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
File without changes
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
|
7
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
8
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
<%= yield %>
|
13
|
+
</body>
|
14
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
begin
|
3
|
+
load File.expand_path('../spring', __FILE__)
|
4
|
+
rescue LoadError => e
|
5
|
+
raise unless e.message.include?('spring')
|
6
|
+
end
|
7
|
+
APP_PATH = File.expand_path('../config/application', __dir__)
|
8
|
+
require_relative '../config/boot'
|
9
|
+
require 'rails/commands'
|