exvo_notifications 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ */.DS_Store
2
+ .sass-cache
3
+ log/*
4
+ tmp/*
5
+ .bundle/*
6
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :gemcutter
2
+
3
+ # Specify your gem's dependencies in lorem.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,15 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ exvo_notifications (0.3.1)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+
10
+ PLATFORMS
11
+ ruby
12
+
13
+ DEPENDENCIES
14
+ bundler (>= 1.0.0)
15
+ exvo_notifications!
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
data/Readme ADDED
@@ -0,0 +1,38 @@
1
+ EXVO_NOTIFICATIONS
2
+
3
+ It's gem to maintain connection between Exvo-Store and widget app (Calculator, Word Clocks, etc...)
4
+
5
+ Flow: On widget site: After user has been logged in via Exvo-Auth, his privilages (does he has access to given widget) has to be checked. If user has access than he is allowed to watch the content, if not he is redirected to Store app.
6
+
7
+ Additionally Store send request to each widget if something change with user's privilages => this gem maintain those requests (notifications_controller)
8
+
9
+ INSTALLATION & REQUIRMENTS
10
+
11
+ 1. Set GEMFILE
12
+
13
+ gem "exvo_notifications"
14
+
15
+ 2. Generate migration: rails g exvo_notifications
16
+
17
+ Migration add field "plan" to table User, so it has to exist in database !!
18
+ This genearator append also "not_working.html" into /public
19
+
20
+ 3. Migrate db: rake db:migrate
21
+
22
+ 4. Include Controller helpers
23
+
24
+ include ExvoNotifications::Controllers::Access
25
+
26
+ # it appends method check_access
27
+ # this method requires current_user helper !!
28
+
29
+ 6. Set before filter in controller
30
+
31
+ before_filter :check_access
32
+
33
+ 7. Credentials / requirments:
34
+
35
+ ENV['EXVO_STORE_CLIENT_ID'] must be set (check_access require it)
36
+ protect_from_forgery should be removed
37
+
38
+
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "exvo_notifications/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "exvo_notifications"
7
+ s.version = ExvoNotifications::VERSION
8
+
9
+ s.required_rubygems_version = ">= 1.3.6"
10
+ s.authors = ["Robert S\304\231k"]
11
+ s.description = %q{Maintain Exvo Notifications in external apps}
12
+ s.email = ["sekupyna@gmail.com"]
13
+ s.summary = %q{Maintain Exvo Notifications}
14
+ s.rubyforge_project = "exvo_notifications"
15
+
16
+ s.add_development_dependency "bundler", ">= 1.0.0"
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
20
+ s.require_path = 'lib'
21
+ end
22
+
@@ -0,0 +1,3 @@
1
+ module ExvoNotifications
2
+ VERSION = "0.3.1"
3
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo_notifications
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Robert S\xC4\x99k"
@@ -15,10 +15,25 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-13 00:00:00 +01:00
18
+ date: 2011-01-19 00:00:00 +01:00
19
19
  default_executable:
20
- dependencies: []
21
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: bundler
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 0
34
+ version: 1.0.0
35
+ type: :development
36
+ version_requirements: *id001
22
37
  description: Maintain Exvo Notifications in external apps
23
38
  email:
24
39
  - sekupyna@gmail.com
@@ -29,12 +44,19 @@ extensions: []
29
44
  extra_rdoc_files: []
30
45
 
31
46
  files:
47
+ - .gitignore
48
+ - Gemfile
49
+ - Gemfile.lock
50
+ - Rakefile
51
+ - Readme
32
52
  - app/controllers/exvo_notifications/notifications_controller.rb
33
53
  - config/routes.rb
54
+ - exvo_notifications.gemspec
34
55
  - lib/exvo_notifications.rb
35
56
  - lib/exvo_notifications/controllers/access.rb
36
57
  - lib/exvo_notifications/controllers/methods.rb
37
58
  - lib/exvo_notifications/engine.rb
59
+ - lib/exvo_notifications/version.rb
38
60
  - lib/generators/exvo_notifications/exvo_notifications_generator.rb
39
61
  - lib/generators/exvo_notifications/templates/migration.rb
40
62
  - lib/generators/exvo_notifications/templates/not_working.html
@@ -43,8 +65,8 @@ homepage:
43
65
  licenses: []
44
66
 
45
67
  post_install_message:
46
- rdoc_options:
47
- - --charset=UTF-8
68
+ rdoc_options: []
69
+
48
70
  require_paths:
49
71
  - lib
50
72
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -61,13 +83,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
83
  requirements:
62
84
  - - ">="
63
85
  - !ruby/object:Gem::Version
64
- hash: 3
86
+ hash: 23
65
87
  segments:
66
- - 0
67
- version: "0"
88
+ - 1
89
+ - 3
90
+ - 6
91
+ version: 1.3.6
68
92
  requirements: []
69
93
 
70
- rubyforge_project:
94
+ rubyforge_project: exvo_notifications
71
95
  rubygems_version: 1.3.7
72
96
  signing_key:
73
97
  specification_version: 3