tawork 0.0.46 → 0.0.47

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzI1NjY1ZmY2NDZiOTBjZDAxMWM4MmJiYTE5ODJhMThiMjQ0MWUxMA==
4
+ YzA4MzU5NjFmNTljNTFjY2YyOTM5MzM3YzNlNjMwMzhlNjMyMDgwMg==
5
5
  data.tar.gz: !binary |-
6
- YjhhZTFiZWU3YzljMzhmY2M5NzZlNmMxYjY3YTQ3YzA1ZjZiYjhiMA==
6
+ OWNkMjg5NmRiYzU1M2I3M2JjOTFhYzJhZWI5YWIwMDY5OTAxZWRmNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWI4M2ZiYzYyNTVmNjQxODY2MWU0ZmQxMzU2ZjJmNzYzODU4MDMxYmIwYmYz
10
- ZWM3OWIyZmY3YTE3ZDZhNzNlZTM5NzBkZTNiYWQzYzA0NTg4M2MxZGYxNWI5
11
- ODA2ZGUwYjZmZGE1OWY0YjE4ZDIzYmE0N2Y5ZmJlNWFiMDZiZmY=
9
+ OTZlZjMwYzE5ZTIxOGFmOGJmYjZhNGUzZjc4NDJhYzRkZjgwYjM1M2I1Yzc0
10
+ ZjJkZjVmOGVhNDkxMmFmNTdmYTY5M2ZjMWNiYzRjYTAyNmYyMjIwNTFiNTVj
11
+ ODRjNmYzYjJiNGQ2ODYzZGE4OGQ5ZDljMWM4Njk3OTcwOGY3ZjQ=
12
12
  data.tar.gz: !binary |-
13
- ZTliMzA0YmQwYWIyN2U2YjU1M2IyNTcxYjkzMTU0ZTA0OTUxZjdiOGY3OGNl
14
- OWU4ZTgyMGZkMjM5NTI0M2EzNGZjMDk3ZGM4MGUzOGVhZTMwYjllNGQ2NGIx
15
- Y2E5MjU5NDIzMDRiMDlkZDcwMGIzNDNmZTVmODZmOWUwNjBjZDc=
13
+ NTIyODFmNzJiYzMxYmFhNWY2ODA4NjgyMzZlOGY0NTYxN2Q0MzhlZDZlZmU2
14
+ YTg3OWE5YTgwODE0MTA1NjgyYjRlNDQ4ZjVhNzkwMzE4ZThlN2VhYzM0MDI2
15
+ MjhiMGE5YjY0MDg5YTY1YzY3YzQxZDg5YjViNjE5MjNiMjc5M2E=
data/.gitignore CHANGED
@@ -18,3 +18,6 @@ tawork.git
18
18
  vendor/bundle
19
19
  bin/*
20
20
  tawork*.gem
21
+
22
+ # Ignore application configuration
23
+ /config/application.yml
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rails-assets.org'
3
3
 
4
4
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
5
  # gem 'rails', '4.1.0.beta1'
6
- gem 'rails', "4.1.0.rc1"
6
+ gem 'rails', "4.2.1"
7
7
 
8
8
  # Use mysql as the database for Active Record
9
9
  gem 'mysql2'
@@ -21,6 +21,8 @@ gem 'haml-contrib'
21
21
  gem 'ancestry'
22
22
  gem 'devise'
23
23
  gem 'omniauth-openid'
24
+ gem "omniauth-google-oauth2"
25
+ gem "figaro"
24
26
  gem 'simple_form'
25
27
  gem 'aasm'
26
28
  gem 'acts_as_list', git: "git@github.com:swanandp/acts_as_list.git"
@@ -66,7 +68,7 @@ gem 'coffee-rails', '~> 4.0.0'
66
68
  gem 'jquery-rails'
67
69
 
68
70
  # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
69
- gem 'turbolinks'
71
+ # gem 'turbolinks'
70
72
 
71
73
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
72
74
  gem 'jbuilder', '~> 1.2'
@@ -79,6 +81,7 @@ end
79
81
  gem 'pry-rails'
80
82
 
81
83
  group :development do
84
+ gem 'web-console', '~> 2.0'
82
85
  gem "better_errors"
83
86
  gem "binding_of_caller"
84
87
  # gem 'rack-mini-profiler'
data/Gemfile.lock CHANGED
@@ -38,9 +38,9 @@ GIT
38
38
 
39
39
  GIT
40
40
  remote: git@github.com:swanandp/acts_as_list.git
41
- revision: 7390b48ae2cb419d60f0509d80647b5b10845780
41
+ revision: 84325ede9ad528acbf68a97c5070cff113ee6a17
42
42
  specs:
43
- acts_as_list (0.4.0)
43
+ acts_as_list (0.6.0)
44
44
  activerecord (>= 3.0)
45
45
 
46
46
  GEM
@@ -49,42 +49,48 @@ GEM
49
49
  specs:
50
50
  RedCloth (4.2.9)
51
51
  aasm (3.1.1)
52
- actionmailer (4.1.0.rc1)
53
- actionpack (= 4.1.0.rc1)
54
- actionview (= 4.1.0.rc1)
55
- mail (~> 2.5.4)
56
- actionpack (4.1.0.rc1)
57
- actionview (= 4.1.0.rc1)
58
- activesupport (= 4.1.0.rc1)
59
- rack (~> 1.5.2)
52
+ actionmailer (4.2.1)
53
+ actionpack (= 4.2.1)
54
+ actionview (= 4.2.1)
55
+ activejob (= 4.2.1)
56
+ mail (~> 2.5, >= 2.5.4)
57
+ rails-dom-testing (~> 1.0, >= 1.0.5)
58
+ actionpack (4.2.1)
59
+ actionview (= 4.2.1)
60
+ activesupport (= 4.2.1)
61
+ rack (~> 1.6)
60
62
  rack-test (~> 0.6.2)
61
- actionview (4.1.0.rc1)
62
- activesupport (= 4.1.0.rc1)
63
+ rails-dom-testing (~> 1.0, >= 1.0.5)
64
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
65
+ actionview (4.2.1)
66
+ activesupport (= 4.2.1)
63
67
  builder (~> 3.1)
64
68
  erubis (~> 2.7.0)
65
- activemodel (4.1.0.rc1)
66
- activesupport (= 4.1.0.rc1)
69
+ rails-dom-testing (~> 1.0, >= 1.0.5)
70
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
71
+ activejob (4.2.1)
72
+ activesupport (= 4.2.1)
73
+ globalid (>= 0.3.0)
74
+ activemodel (4.2.1)
75
+ activesupport (= 4.2.1)
67
76
  builder (~> 3.1)
68
- activerecord (4.1.0.rc1)
69
- activemodel (= 4.1.0.rc1)
70
- activesupport (= 4.1.0.rc1)
71
- arel (~> 5.0.0)
72
- activesupport (4.1.0.rc1)
73
- i18n (~> 0.6, >= 0.6.9)
77
+ activerecord (4.2.1)
78
+ activemodel (= 4.2.1)
79
+ activesupport (= 4.2.1)
80
+ arel (~> 6.0)
81
+ activesupport (4.2.1)
82
+ i18n (~> 0.7)
74
83
  json (~> 1.7, >= 1.7.7)
75
84
  minitest (~> 5.1)
76
- thread_safe (~> 0.1)
85
+ thread_safe (~> 0.3, >= 0.3.4)
77
86
  tzinfo (~> 1.1)
78
87
  acts-as-taggable-on (3.0.2)
79
88
  rails (>= 3, < 5)
80
89
  ancestry (2.0.0)
81
90
  activerecord (>= 3.0.0)
82
- arel (5.0.0)
83
- atomic (1.1.15)
91
+ arel (6.0.0)
84
92
  awesome_print (1.2.0)
85
- bcrypt (3.1.7)
86
- bcrypt-ruby (3.1.5)
87
- bcrypt (>= 3.1.3)
93
+ bcrypt (3.1.10)
88
94
  better_errors (1.1.0)
89
95
  coderay (>= 1.0.0)
90
96
  erubis (>= 2.6.6)
@@ -119,10 +125,11 @@ GEM
119
125
  debugger-ruby_core_source (~> 1.3.2)
120
126
  debugger-linecache (1.2.0)
121
127
  debugger-ruby_core_source (1.3.2)
122
- devise (3.2.3)
123
- bcrypt-ruby (~> 3.0)
128
+ devise (3.4.1)
129
+ bcrypt (~> 3.0)
124
130
  orm_adapter (~> 0.1)
125
131
  railties (>= 3.2.6, < 5)
132
+ responders
126
133
  thread_safe (~> 0.1)
127
134
  warden (~> 1.2.3)
128
135
  diff-lcs (1.2.5)
@@ -134,6 +141,8 @@ GEM
134
141
  execjs (2.0.2)
135
142
  faraday (0.9.0)
136
143
  multipart-post (>= 1.2, < 3)
144
+ figaro (1.1.1)
145
+ thor (~> 0.14)
137
146
  font-awesome-rails (4.0.3.1)
138
147
  railties (>= 3.2, < 5.0)
139
148
  foreman (0.63.0)
@@ -146,6 +155,8 @@ GEM
146
155
  diff-lcs (~> 1.1)
147
156
  mime-types (~> 1.15)
148
157
  posix-spawn (~> 0.3.6)
158
+ globalid (0.3.5)
159
+ activesupport (>= 4.1.0)
149
160
  gollum-lib (2.0.0)
150
161
  github-markup (>= 0.7.5, < 1.0.0)
151
162
  gitlab-grit (= 2.6.0)
@@ -169,7 +180,7 @@ GEM
169
180
  hashie (2.0.5)
170
181
  hike (1.2.3)
171
182
  hirb (0.7.1)
172
- i18n (0.6.9)
183
+ i18n (0.7.0)
173
184
  jazz_hands (0.5.2)
174
185
  awesome_print (~> 1.2)
175
186
  coolline (>= 0.4.2)
@@ -188,33 +199,47 @@ GEM
188
199
  jquery-rails (3.1.0)
189
200
  railties (>= 3.0, < 5.0)
190
201
  thor (>= 0.14, < 2.0)
191
- json (1.8.1)
202
+ json (1.8.2)
203
+ jwt (1.4.1)
192
204
  kaminari (0.15.1)
193
205
  actionpack (>= 3.0.0)
194
206
  activesupport (>= 3.0.0)
195
207
  kramdown (1.3.2)
196
- mail (2.5.4)
197
- mime-types (~> 1.16)
198
- treetop (~> 1.4.8)
208
+ loofah (2.0.2)
209
+ nokogiri (>= 1.5.9)
210
+ mail (2.6.3)
211
+ mime-types (>= 1.16, < 3)
199
212
  method_source (0.8.2)
200
213
  mime-types (1.25.1)
201
- mini_portile (0.5.2)
202
- minitest (5.3.0)
203
- multi_json (1.9.0)
214
+ mini_portile (0.6.2)
215
+ minitest (5.6.1)
216
+ multi_json (1.11.0)
217
+ multi_xml (0.5.5)
204
218
  multipart-post (2.0.0)
205
219
  mysql2 (0.3.15)
206
- nokogiri (1.6.1)
207
- mini_portile (~> 0.5.0)
220
+ nokogiri (1.6.6.2)
221
+ mini_portile (~> 0.6.0)
222
+ oauth2 (1.0.0)
223
+ faraday (>= 0.8, < 0.10)
224
+ jwt (~> 1.0)
225
+ multi_json (~> 1.3)
226
+ multi_xml (~> 0.5)
227
+ rack (~> 1.2)
208
228
  omniauth (1.2.1)
209
229
  hashie (>= 1.2, < 3)
210
230
  rack (~> 1.0)
231
+ omniauth-google-oauth2 (0.2.6)
232
+ omniauth (> 1.0)
233
+ omniauth-oauth2 (~> 1.1)
234
+ omniauth-oauth2 (1.3.0)
235
+ oauth2 (~> 1.0)
236
+ omniauth (~> 1.2)
211
237
  omniauth-openid (1.0.1)
212
238
  omniauth (~> 1.0)
213
239
  rack-openid (~> 1.3.1)
214
240
  orm_adapter (0.5.0)
215
241
  plupload-rails (1.2.1)
216
242
  rails (>= 3.1)
217
- polyglot (0.3.4)
218
243
  posix-spawn (0.3.8)
219
244
  pry (0.9.12.6)
220
245
  coderay (~> 1.0)
@@ -243,22 +268,23 @@ GEM
243
268
  activerecord (>= 3.0)
244
269
  i18n (>= 0.5.0)
245
270
  railties (>= 3.0.0)
246
- rack (1.5.2)
271
+ rack (1.6.1)
247
272
  rack-openid (1.3.1)
248
273
  rack (>= 1.1.0)
249
274
  ruby-openid (>= 2.1.8)
250
- rack-test (0.6.2)
275
+ rack-test (0.6.3)
251
276
  rack (>= 1.0)
252
- rails (4.1.0.rc1)
253
- actionmailer (= 4.1.0.rc1)
254
- actionpack (= 4.1.0.rc1)
255
- actionview (= 4.1.0.rc1)
256
- activemodel (= 4.1.0.rc1)
257
- activerecord (= 4.1.0.rc1)
258
- activesupport (= 4.1.0.rc1)
277
+ rails (4.2.1)
278
+ actionmailer (= 4.2.1)
279
+ actionpack (= 4.2.1)
280
+ actionview (= 4.2.1)
281
+ activejob (= 4.2.1)
282
+ activemodel (= 4.2.1)
283
+ activerecord (= 4.2.1)
284
+ activesupport (= 4.2.1)
259
285
  bundler (>= 1.3.0, < 2.0)
260
- railties (= 4.1.0.rc1)
261
- sprockets-rails (~> 2.0.0)
286
+ railties (= 4.2.1)
287
+ sprockets-rails
262
288
  rails-assets-backbone (1.1.2)
263
289
  rails-assets-underscore (>= 1.5.0)
264
290
  rails-assets-highlightjs (8.0.0)
@@ -270,18 +296,28 @@ GEM
270
296
  rails-assets-jquery.scrollTo (1.4.11)
271
297
  rails-assets-jquery (>= 1.8)
272
298
  rails-assets-underscore (1.6.0)
299
+ rails-deprecated_sanitizer (1.0.3)
300
+ activesupport (>= 4.2.0.alpha)
301
+ rails-dom-testing (1.0.6)
302
+ activesupport (>= 4.2.0.beta, < 5.0)
303
+ nokogiri (~> 1.6.0)
304
+ rails-deprecated_sanitizer (>= 1.0.1)
305
+ rails-html-sanitizer (1.0.2)
306
+ loofah (~> 2.0)
273
307
  rails-timeago (2.9.0)
274
308
  actionpack (>= 3.1)
275
309
  activesupport (>= 3.1)
276
- railties (4.1.0.rc1)
277
- actionpack (= 4.1.0.rc1)
278
- activesupport (= 4.1.0.rc1)
310
+ railties (4.2.1)
311
+ actionpack (= 4.2.1)
312
+ activesupport (= 4.2.1)
279
313
  rake (>= 0.8.7)
280
314
  thor (>= 0.18.1, < 2.0)
281
- rake (10.1.1)
315
+ rake (10.4.2)
282
316
  rdoc (4.1.1)
283
317
  json (~> 1.4)
284
318
  redcarpet (3.1.1)
319
+ responders (2.1.0)
320
+ railties (>= 4.2.0, < 5)
285
321
  rouge (1.3.3)
286
322
  ruby-openid (2.5.0)
287
323
  sanitize (2.0.6)
@@ -295,9 +331,9 @@ GEM
295
331
  sdoc (0.4.0)
296
332
  json (~> 1.8)
297
333
  rdoc (~> 4.0, < 5.0)
298
- simple_form (3.0.1)
299
- actionpack (>= 4.0.0, < 4.1)
300
- activemodel (>= 4.0.0, < 4.1)
334
+ simple_form (3.1.0)
335
+ actionpack (~> 4.0)
336
+ activemodel (~> 4.0)
301
337
  slop (3.5.0)
302
338
  spring (1.1.2)
303
339
  sprockets (2.11.0)
@@ -314,22 +350,21 @@ GEM
314
350
  daemons (>= 1.0.9)
315
351
  eventmachine (>= 1.0.0)
316
352
  rack (>= 1.0.0)
317
- thor (0.18.1)
318
- thread_safe (0.2.0)
319
- atomic (>= 1.1.7, < 2)
353
+ thor (0.19.1)
354
+ thread_safe (0.3.5)
320
355
  tilt (1.4.1)
321
- treetop (1.4.15)
322
- polyglot
323
- polyglot (>= 0.3.1)
324
- turbolinks (2.2.1)
325
- coffee-rails
326
- tzinfo (1.1.0)
356
+ tzinfo (1.2.2)
327
357
  thread_safe (~> 0.1)
328
358
  uglifier (2.4.0)
329
359
  execjs (>= 0.3.0)
330
360
  json (>= 1.8.0)
331
361
  warden (1.2.3)
332
362
  rack (>= 1.0)
363
+ web-console (2.1.2)
364
+ activemodel (>= 4.0)
365
+ binding_of_caller (>= 0.7.2)
366
+ railties (>= 4.0)
367
+ sprockets-rails (>= 2.0, < 4.0)
333
368
  yard (0.8.7.3)
334
369
 
335
370
  PLATFORMS
@@ -353,6 +388,7 @@ DEPENDENCIES
353
388
  elasticsearch!
354
389
  elasticsearch-model!
355
390
  elasticsearch-rails!
391
+ figaro
356
392
  font-awesome-rails
357
393
  foreman
358
394
  github-markdown
@@ -365,11 +401,12 @@ DEPENDENCIES
365
401
  kaminari
366
402
  kramdown
367
403
  mysql2
404
+ omniauth-google-oauth2
368
405
  omniauth-openid
369
406
  plupload-rails
370
407
  pry-rails
371
408
  public_activity
372
- rails (= 4.1.0.rc1)
409
+ rails (= 4.2.1)
373
410
  rails-assets-backbone
374
411
  rails-assets-highlightjs
375
412
  rails-assets-jquery-autosize
@@ -384,5 +421,5 @@ DEPENDENCIES
384
421
  spring
385
422
  thin
386
423
  tinymce-rails!
387
- turbolinks
388
424
  uglifier (>= 1.3.0)
425
+ web-console (~> 2.0)
@@ -1,5 +1,5 @@
1
1
  class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
2
- skip_before_filter :verify_authenticity_token, only: [:google_apps]
2
+ skip_before_filter :verify_authenticity_token, only: [:google_apps, :google_oauth2]
3
3
 
4
4
  def google_apps
5
5
  if UserVerifier.respond_to?(:verified?)
@@ -20,4 +20,8 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
20
20
  redirect_to new_user_registration_url
21
21
  end
22
22
  end
23
+
24
+ def google_oauth2
25
+ google_apps
26
+ end
23
27
  end
data/app/models/user.rb CHANGED
@@ -6,7 +6,7 @@ class User < ActiveRecord::Base
6
6
  # :confirmable, :lockable, :timeoutable and :omniauthable
7
7
  devise :database_authenticatable, :registerable,
8
8
  :recoverable, :rememberable, :trackable, :validatable
9
- devise :omniauthable, omniauth_providers: [:google_apps]
9
+ devise :omniauthable, omniauth_providers: [:google_apps, :google_oauth2]
10
10
 
11
11
  has_many :tickets, foreign_key: 'creator_id'
12
12
  has_many :projects, foreign_key: 'creator_id', class_name: "Project"
@@ -231,6 +231,10 @@ Devise.setup do |config|
231
231
  # up on your models and hooks.
232
232
  # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
233
233
  config.omniauth :open_id, store: OpenID::Store::Filesystem.new('/tmp'), name: 'google_apps', identifier: 'https://www.google.com/accounts/o8/id', require: 'omniauth-openid'
234
+ if Figaro.env.enable_google_oauth2
235
+ config.omniauth :google_oauth2, Figaro.env.google_client_id!, Figaro.env.google_client_secret!, { access_type: "offline", approval_prompt: "" }
236
+ end
237
+
234
238
 
235
239
  # ==> Warden configuration
236
240
  # If you want to use other strategies, that are not supported by Devise, or
@@ -1,3 +1,3 @@
1
1
  module Tawork
2
- VERSION = '0.0.46'
2
+ VERSION = '0.0.47'
3
3
  end
data/tawork.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
19
19
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
20
20
 
21
- s.add_dependency "rails", "4.1.0.rc1"
21
+ s.add_dependency "rails", "4.2.1"
22
22
 
23
23
  s.require_paths = ['lib']
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tawork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.46
4
+ version: 0.0.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adnan Ali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.0.rc1
19
+ version: 4.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.0.rc1
26
+ version: 4.2.1
27
27
  description: Wiki and Tickets
28
28
  email:
29
29
  - adnan.ali@gmail.com
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
328
  version: '0'
329
329
  requirements: []
330
330
  rubyforge_project:
331
- rubygems_version: 2.2.2
331
+ rubygems_version: 2.4.5
332
332
  signing_key:
333
333
  specification_version: 4
334
334
  summary: Wiki and Tickets