social_stream-documents 1.1.4 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/icons/attach.png +0 -0
  3. data/app/assets/javascripts/{social_stream.audio.js.erb → social_stream/audio.js.erb} +7 -3
  4. data/app/assets/javascripts/social_stream/document.js +27 -0
  5. data/app/assets/javascripts/social_stream/documents.timeline.js +11 -0
  6. data/app/assets/javascripts/social_stream/documents.wall.js +48 -0
  7. data/app/assets/javascripts/{social_stream.video.js.erb → social_stream/video.js.erb} +11 -8
  8. data/app/assets/javascripts/social_stream-documents.js +1 -1
  9. data/{spec/dummy/config/navigation.rb → app/assets/stylesheets/social_stream/documents/_toolbar.css.sass} +0 -0
  10. data/app/assets/stylesheets/social_stream/documents/aside/_documents.css.sass +4 -0
  11. data/app/assets/stylesheets/social_stream/documents/aside/layout/_documents.css.sass +30 -0
  12. data/{spec/dummy/db/.gitkeep → app/assets/stylesheets/social_stream/documents/create/_new.css.sass} +0 -0
  13. data/app/assets/stylesheets/social_stream/documents/create/layout/_new.css.sass +32 -0
  14. data/app/assets/stylesheets/social_stream/documents/documents/_documents.css.sass +4 -0
  15. data/app/assets/stylesheets/social_stream/documents/documents/layout/_documents.css.sass +52 -0
  16. data/app/assets/stylesheets/social_stream/documents/explore/_explore-documents.css.sass +12 -0
  17. data/app/assets/stylesheets/social_stream/documents/explore/layout/_explore-documents.css.sass +20 -0
  18. data/app/assets/stylesheets/social_stream/documents/responsive/_responsive-1200px-min.css.sass +21 -0
  19. data/app/assets/stylesheets/social_stream/documents/responsive/_responsive-767px-max.css.sass +58 -0
  20. data/app/assets/stylesheets/social_stream/documents/responsive/_responsive-768px-979px.css.sass +54 -0
  21. data/app/assets/stylesheets/social_stream/documents/search/_header.css.sass +25 -0
  22. data/app/assets/stylesheets/social_stream/documents/search/layout/_header.css.sass +33 -0
  23. data/app/assets/stylesheets/social_stream/documents/show/_show.css.sass +72 -0
  24. data/app/assets/stylesheets/social_stream/documents/show/layout/_show.css.sass +112 -0
  25. data/app/assets/stylesheets/social_stream/documents/timeline/_audios.css.sass +21 -0
  26. data/app/assets/stylesheets/social_stream/documents/timeline/_wallinput.css.sass +10 -0
  27. data/app/assets/stylesheets/social_stream/documents/timeline/layout/_audios.css.sass +67 -0
  28. data/app/assets/stylesheets/social_stream/documents/timeline/layout/_wallinput.css.sass +10 -0
  29. data/app/assets/stylesheets/social_stream-documents.css.sass +49 -0
  30. data/app/controllers/documents_controller.rb +16 -5
  31. data/app/decorators/social_stream/base/activity_object_decorator.rb +1 -0
  32. data/app/helpers/documents_helper.rb +35 -18
  33. data/app/models/audio.rb +1 -6
  34. data/app/models/document.rb +23 -28
  35. data/app/models/picture.rb +0 -19
  36. data/app/models/video.rb +0 -5
  37. data/app/views/audios/_audio.html.erb +2 -11
  38. data/app/views/audios/_audio_processed.html.erb +28 -23
  39. data/app/views/audios/_audio_processing.html.erb +5 -5
  40. data/app/views/audios/_quick_search_result.html.erb +3 -0
  41. data/app/views/audios/_search_result.html.erb +1 -0
  42. data/app/views/audios/_timeline.html.erb +11 -0
  43. data/app/views/audios/index.html.erb +3 -1
  44. data/app/views/common_documents/_document.html.erb +18 -0
  45. data/app/views/common_documents/_filter.html.erb +1 -0
  46. data/app/views/common_documents/_form.html.erb +44 -0
  47. data/app/views/common_documents/_index.html.erb +27 -63
  48. data/app/views/common_documents/_info.html.erb +50 -0
  49. data/app/views/common_documents/_list.html.erb +2 -0
  50. data/app/views/common_documents/_new.modal.html.erb +13 -0
  51. data/app/views/common_documents/_new_button.html.erb +11 -0
  52. data/app/views/common_documents/_quick_search_result.html.erb +19 -0
  53. data/app/views/common_documents/_show.html.erb +76 -27
  54. data/app/views/documents/_document.html.erb +2 -26
  55. data/app/views/documents/_document_show.html.erb +2 -4
  56. data/app/views/documents/_new_activity.html.erb +3 -1
  57. data/app/views/documents/_quick_search_result.html.erb +3 -0
  58. data/app/views/documents/_search_result.html.erb +1 -0
  59. data/app/views/documents/_timeline.html.erb +15 -0
  60. data/app/views/documents/index.html.erb +7 -1
  61. data/app/views/documents/new.html.erb +9 -0
  62. data/app/views/documents/search.html.erb +1 -1
  63. data/app/views/pictures/_picture.html.erb +2 -41
  64. data/app/views/pictures/_picture_show.html.erb +1 -16
  65. data/app/views/pictures/_quick_search_result.html.erb +3 -0
  66. data/app/views/pictures/_search_result.html.erb +1 -0
  67. data/app/views/pictures/_timeline.html.erb +17 -0
  68. data/app/views/pictures/index.html.erb +3 -1
  69. data/app/views/videos/_quick_search_result.html.erb +3 -0
  70. data/app/views/videos/_search_result.html.erb +1 -0
  71. data/app/views/videos/_timeline.html.erb +9 -0
  72. data/app/views/videos/_video.html.erb +2 -11
  73. data/app/views/videos/_video_processed.html.erb +11 -15
  74. data/app/views/videos/_video_processing.html.erb +6 -5
  75. data/app/views/videos/_video_show.html.erb +1 -1
  76. data/app/views/videos/index.html.erb +3 -1
  77. data/config/locales/en.yml +25 -12
  78. data/config/locales/es.yml +23 -12
  79. data/lib/generators/social_stream/documents/install_generator.rb +2 -3
  80. data/lib/generators/social_stream/documents/templates/initializer.rb +37 -9
  81. data/lib/social_stream/documents/dependencies.rb +1 -0
  82. data/lib/social_stream/documents/engine.rb +5 -14
  83. data/lib/social_stream/documents/models/activity_object.rb +18 -0
  84. data/lib/social_stream/documents/version.rb +1 -1
  85. data/lib/social_stream-documents.rb +56 -13
  86. data/lib/tasks/db/populate.rake +21 -0
  87. data/social_stream-documents.gemspec +4 -1
  88. data/spec/controllers/documents_controller_spec.rb +15 -9
  89. data/spec/controllers/pictures_controller_spec.rb +8 -8
  90. data/spec/socialstream_documents_spec.rb +6 -0
  91. data/vendor/assets/stylesheets/jplayer.blue.monday.css +2 -1
  92. metadata +71 -74
  93. data/app/assets/javascripts/social_stream.repository.js.erb +0 -27
  94. data/app/assets/stylesheets/documents.css.scss +0 -302
  95. data/app/assets/stylesheets/show.css.scss +0 -111
  96. data/app/assets/stylesheets/social_stream-documents.css +0 -6
  97. data/app/views/audios/_audio_focus_search.html.erb +0 -3
  98. data/app/views/audios/_audio_global_search.html.erb +0 -3
  99. data/app/views/audios/_audio_with_details.html.erb +0 -3
  100. data/app/views/common_documents/_document_info.html.erb +0 -48
  101. data/app/views/common_documents/_edit_form.html.erb +0 -57
  102. data/app/views/common_documents/_headers.html.erb +0 -77
  103. data/app/views/documents/_document_focus_search.html.erb +0 -2
  104. data/app/views/documents/_document_global_search.html.erb +0 -2
  105. data/app/views/documents/_document_with_details.html.erb +0 -13
  106. data/app/views/documents/_new_activity_fields.html.erb +0 -15
  107. data/app/views/pictures/_picture_focus_search.html.erb +0 -2
  108. data/app/views/pictures/_picture_global_search.html.erb +0 -2
  109. data/app/views/pictures/_picture_with_details.html.erb +0 -2
  110. data/app/views/videos/_video_focus_search.html.erb +0 -2
  111. data/app/views/videos/_video_global_search.html.erb +0 -2
  112. data/app/views/videos/_video_with_details.html.erb +0 -2
  113. data/config/locales/de.yml +0 -78
  114. data/config/locales/fr.yml +0 -78
  115. data/config/locales/hu.yml +0 -77
  116. data/config/locales/nl.yml +0 -78
  117. data/lib/social_stream/views/toolbar/documents.rb +0 -28
  118. data/lib/tasks/db/populate_documents.rake +0 -19
  119. data/spec/dummy/.gitignore +0 -1
  120. data/spec/dummy/Rakefile +0 -7
  121. data/spec/dummy/app/assets/javascripts/application.js +0 -9
  122. data/spec/dummy/app/assets/stylesheets/application.css +0 -7
  123. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  124. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  125. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  126. data/spec/dummy/config/application.rb +0 -45
  127. data/spec/dummy/config/boot.rb +0 -10
  128. data/spec/dummy/config/database.yml +0 -25
  129. data/spec/dummy/config/environment.rb +0 -5
  130. data/spec/dummy/config/environments/development.rb +0 -30
  131. data/spec/dummy/config/environments/production.rb +0 -60
  132. data/spec/dummy/config/environments/test.rb +0 -39
  133. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  134. data/spec/dummy/config/initializers/devise.rb +0 -176
  135. data/spec/dummy/config/initializers/inflections.rb +0 -10
  136. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  137. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  138. data/spec/dummy/config/initializers/session_store.rb +0 -8
  139. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  140. data/spec/dummy/config/locales/en.yml +0 -5
  141. data/spec/dummy/config/relations.yml +0 -39
  142. data/spec/dummy/config/routes.rb +0 -60
  143. data/spec/dummy/config.ru +0 -4
  144. data/spec/dummy/db/schema.rb +0 -6
  145. data/spec/dummy/public/404.html +0 -26
  146. data/spec/dummy/public/422.html +0 -26
  147. data/spec/dummy/public/500.html +0 -26
  148. data/spec/dummy/public/favicon.ico +0 -0
  149. data/spec/dummy/public/javascripts/application.js +0 -2
  150. data/spec/dummy/public/javascripts/controls.js +0 -965
  151. data/spec/dummy/public/javascripts/dragdrop.js +0 -974
  152. data/spec/dummy/public/javascripts/effects.js +0 -1123
  153. data/spec/dummy/public/javascripts/prototype.js +0 -6001
  154. data/spec/dummy/public/javascripts/rails.js +0 -191
  155. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  156. data/spec/dummy/script/rails +0 -6
@@ -1,45 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require
6
- require "social_stream-documents"
7
-
8
- module Dummy
9
- class Application < Rails::Application
10
- # Settings in config/environments/* take precedence over those specified here.
11
- # Application configuration should go into files in config/initializers
12
- # -- all .rb files in that directory are automatically loaded.
13
-
14
- # Custom directories with classes and modules you want to be autoloadable.
15
- # config.autoload_paths += %W(#{config.root}/extras)
16
-
17
- # Only load the plugins named here, in the order given (default is alphabetical).
18
- # :all can be used as a placeholder for all plugins not explicitly named.
19
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
-
21
- # Activate observers that should always be running.
22
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
-
24
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
- # config.time_zone = 'Central Time (US & Canada)'
27
-
28
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
- # config.i18n.default_locale = :de
31
-
32
- # Configure the default encoding used in templates for Ruby 1.9.
33
- config.encoding = "utf-8"
34
-
35
- # Configure sensitive parameters which will be filtered from the log file.
36
- config.filter_parameters += [:password]
37
-
38
- # Enable the asset pipeline
39
- config.assets.enabled = true
40
-
41
- # Version of your assets, change this if you want to expire all your assets
42
- config.assets.version = '1.0'
43
- end
44
- end
45
-
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -1,30 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger
20
- config.active_support.deprecation = :log
21
-
22
- # Only use best-standards-support built into browsers
23
- config.action_dispatch.best_standards_support = :builtin
24
-
25
- # Do not compress assets
26
- config.assets.compress = false
27
-
28
- # Expands the lines which load the assets
29
- config.assets.debug = true
30
- end
@@ -1,60 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Full error reports are disabled and caching is turned on
8
- config.consider_all_requests_local = false
9
- config.action_controller.perform_caching = true
10
-
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
12
- config.serve_static_assets = false
13
-
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
16
-
17
- # Don't fallback to assets pipeline if a precompiled asset is missed
18
- config.assets.compile = false
19
-
20
- # Generate digests for assets URLs
21
- config.assets.digest = true
22
-
23
- # Defaults to Rails.root.join("public/assets")
24
- # config.assets.manifest = YOUR_PATH
25
-
26
- # Specifies the header that your server uses for sending files
27
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
-
30
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
- # config.force_ssl = true
32
-
33
- # See everything in the log (default is :info)
34
- # config.log_level = :debug
35
-
36
- # Use a different logger for distributed setups
37
- # config.logger = SyslogLogger.new
38
-
39
- # Use a different cache store in production
40
- # config.cache_store = :mem_cache_store
41
-
42
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
43
- # config.action_controller.asset_host = "http://assets.example.com"
44
-
45
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
46
- # config.assets.precompile += %w( search.js )
47
-
48
- # Disable delivery errors, bad email addresses will be ignored
49
- # config.action_mailer.raise_delivery_errors = false
50
-
51
- # Enable threaded mode
52
- # config.threadsafe!
53
-
54
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
55
- # the I18n.default_locale when a translation can not be found)
56
- config.i18n.fallbacks = true
57
-
58
- # Send deprecation notices to registered listeners
59
- config.active_support.deprecation = :notify
60
- end
@@ -1,39 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
13
-
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
16
-
17
- # Show full error reports and disable caching
18
- config.consider_all_requests_local = true
19
- config.action_controller.perform_caching = false
20
-
21
- # Raise exceptions instead of rendering exception templates
22
- config.action_dispatch.show_exceptions = false
23
-
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
26
-
27
- # Tell Action Mailer not to deliver emails to the real world.
28
- # The :test delivery method accumulates sent emails in the
29
- # ActionMailer::Base.deliveries array.
30
- config.action_mailer.delivery_method = :test
31
-
32
- # Use SQL instead of Active Record's schema dumper when creating the test database.
33
- # This is necessary if your schema can't be completely dumped by the schema dumper,
34
- # like if you have constraints or database-specific column types
35
- # config.active_record.schema_format = :sql
36
-
37
- # Print deprecation notices to the stderr
38
- config.active_support.deprecation = :stderr
39
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,176 +0,0 @@
1
- # Use this hook to configure devise mailer, warden hooks and so forth. The first
2
- # four configuration values can also be set straight in your models.
3
- Devise.setup do |config|
4
- # ==> Mailer Configuration
5
- # Configure the e-mail address which will be shown in DeviseMailer.
6
- config.mailer_sender = "please-change-me@config-initializers-devise.com"
7
-
8
- # Configure the class responsible to send e-mails.
9
- # config.mailer = "Devise::Mailer"
10
-
11
- # ==> ORM configuration
12
- # Load and configure the ORM. Supports :active_record (default) and
13
- # :mongoid (bson_ext recommended) by default. Other ORMs may be
14
- # available as additional gems.
15
- require 'devise/orm/active_record'
16
-
17
- # ==> Configuration for any authentication mechanism
18
- # Configure which keys are used when authenticating a user. The default is
19
- # just :email. You can configure it to use [:username, :subdomain], so for
20
- # authenticating a user, both parameters are required. Remember that those
21
- # parameters are used only when authenticating and not when retrieving from
22
- # session. If you need permissions, you should implement that in a before filter.
23
- # You can also supply a hash where the value is a boolean determining whether
24
- # or not authentication should be aborted when the value is not present.
25
- # config.authentication_keys = [ :email ]
26
-
27
- # Configure parameters from the request object used for authentication. Each entry
28
- # given should be a request method and it will automatically be passed to the
29
- # find_for_authentication method and considered in your model lookup. For instance,
30
- # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
31
- # The same considerations mentioned for authentication_keys also apply to request_keys.
32
- # config.request_keys = []
33
-
34
- # Configure which authentication keys should be case-insensitive.
35
- # These keys will be downcased upon creating or modifying a user and when used
36
- # to authenticate or find a user. Default is :email.
37
- # config.case_insensitive_keys = [ :email ]
38
-
39
- # Tell if authentication through request.params is enabled. True by default.
40
- # config.params_authenticatable = true
41
-
42
- # Tell if authentication through HTTP Basic Auth is enabled. False by default.
43
- # config.http_authenticatable = false
44
-
45
- # If http headers should be returned for AJAX requests. True by default.
46
- # config.http_authenticatable_on_xhr = true
47
-
48
- # The realm used in Http Basic Authentication. "Application" by default.
49
- # config.http_authentication_realm = "Application"
50
-
51
- # ==> Configuration for :database_authenticatable
52
- # For bcrypt, this is the cost for hashing the password and defaults to 10. If
53
- # using other encryptors, it sets how many times you want the password re-encrypted.
54
- config.stretches = 10
55
-
56
- # ==> Configuration for :confirmable
57
- # The time you want to give your user to confirm his account. During this time
58
- # he will be able to access your application without confirming. Default is 0.days
59
- # When confirm_within is zero, the user won't be able to sign in without confirming.
60
- # You can use this to let your user access some features of your application
61
- # without confirming the account, but blocking it after a certain period
62
- # (ie 2 days).
63
- # config.confirm_within = 2.days
64
-
65
- # ==> Configuration for :rememberable
66
- # The time the user will be remembered without asking for credentials again.
67
- # config.remember_for = 2.weeks
68
-
69
- # If true, a valid remember token can be re-used between multiple browsers.
70
- # config.remember_across_browsers = true
71
-
72
- # If true, extends the user's remember period when remembered via cookie.
73
- # config.extend_remember_period = false
74
-
75
- # ==> Configuration for :validatable
76
- # Range for password length. Default is 6..20.
77
- # config.password_length = 6..20
78
-
79
- # Regex to use to validate the email address
80
- # config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i
81
-
82
- # ==> Configuration for :timeoutable
83
- # The time you want to timeout the user session without activity. After this
84
- # time the user will be asked for credentials again. Default is 30 minutes.
85
- # config.timeout_in = 30.minutes
86
-
87
- # ==> Configuration for :lockable
88
- # Defines which strategy will be used to lock an account.
89
- # :failed_attempts = Locks an account after a number of failed attempts to sign in.
90
- # :none = No lock strategy. You should handle locking by yourself.
91
- # config.lock_strategy = :failed_attempts
92
-
93
- # Defines which strategy will be used to unlock an account.
94
- # :email = Sends an unlock link to the user email
95
- # :time = Re-enables login after a certain amount of time (see :unlock_in below)
96
- # :both = Enables both strategies
97
- # :none = No unlock strategy. You should handle unlocking by yourself.
98
- # config.unlock_strategy = :both
99
-
100
- # Number of authentication tries before locking an account if lock_strategy
101
- # is failed attempts.
102
- # config.maximum_attempts = 20
103
-
104
- # Time interval to unlock the account if :time is enabled as unlock_strategy.
105
- # config.unlock_in = 1.hour
106
-
107
- # ==> Configuration for :encryptable
108
- # Allow you to use another encryption algorithm besides bcrypt (default). You can use
109
- # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
110
- # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
111
- # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
112
- # REST_AUTH_SITE_KEY to pepper)
113
- # config.encryptor = :sha512
114
-
115
- # Setup a pepper to generate the encrypted password.
116
- # config.pepper = "6efecaefd488a07abded679d45be30dc97935d74c44825b647149a6fa30ee8cd5e05bb3a426ce8a87fcd75b04079b1bac68a079acdcc175800c4131dde7961f0"
117
-
118
- # ==> Configuration for :token_authenticatable
119
- # Defines name of the authentication token params key
120
- # config.token_authentication_key = :auth_token
121
-
122
- # If true, authentication through token does not store user in session and needs
123
- # to be supplied on each request. Useful if you are using the token as API token.
124
- # config.stateless_token = false
125
-
126
- # ==> Scopes configuration
127
- # Turn scoped views on. Before rendering "sessions/new", it will first check for
128
- # "users/sessions/new". It's turned off by default because it's slower if you
129
- # are using only default views.
130
- # config.scoped_views = false
131
-
132
- # Configure the default scope given to Warden. By default it's the first
133
- # devise role declared in your routes (usually :user).
134
- # config.default_scope = :user
135
-
136
- # Configure sign_out behavior.
137
- # Sign_out action can be scoped (i.e. /users/sign_out affects only :user scope).
138
- # The default is true, which means any logout action will sign out all active scopes.
139
- # config.sign_out_all_scopes = true
140
-
141
- # ==> Navigation configuration
142
- # Lists the formats that should be treated as navigational. Formats like
143
- # :html, should redirect to the sign in page when the user does not have
144
- # access, but formats like :xml or :json, should return 401.
145
- #
146
- # If you have any extra navigational formats, like :iphone or :mobile, you
147
- # should add them to the navigational formats lists.
148
- #
149
- # The :"*/*" format below is required to match Internet Explorer requests.
150
- # config.navigational_formats = [:"*/*", :html]
151
-
152
- # The default HTTP method used to sign out a resource. Default is :get.
153
- # config.sign_out_via = :get
154
-
155
- # ==> OmniAuth
156
- # Add a new OmniAuth provider. Check the wiki for more information on setting
157
- # up on your models and hooks.
158
- # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
159
- config.omniauth :linkedin, "ekxfXU8nueVSMQ9fc5KJAryBkyztUlCBYMW3DoQPzbE79WhivvzhQloRNHCHgPeB", "WYiHFT-KKFgjd45W3-pEAficmXRHmN6_6DGwj1C_ZILJlSO1gBvv6VNYXU9tybGY"
160
-
161
- config.omniauth :facebook, "129571360447856","eef39dce5e20e76f77495c59623bdb38"
162
-
163
- #re state_less token removal
164
- #https://github.com/plataformatec/devise/issues/1499
165
- config.skip_session_storage << :token_auth
166
-
167
- # ==> Warden configuration
168
- # If you want to use other strategies, that are not supported by Devise, or
169
- # change the failure app, you can configure them inside the config.warden block.
170
- #
171
- # config.warden do |manager|
172
- # manager.failure_app = AnotherApp
173
- # manager.intercept_401 = false
174
- # manager.default_strategies(:scope => :user).unshift :some_external_strategy
175
- # end
176
- end
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '64ac9e68eea7ea0f6e41cd784aee79f12fa53b11e86b46e04d7e38cfb460df7156d5fbc09626fe621c9b3a0bd40b53f74404060639a71d630edf538f638026d4'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json]
9
- end
10
-
11
- # Disable root element in JSON by default.
12
- ActiveSupport.on_load(:active_record) do
13
- self.include_root_in_json = false
14
- end
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,39 +0,0 @@
1
- # Default relations for Social Stream
2
- #
3
- # Define the default relations and permissions supported by your application
4
- # Though subjects can customize their own relations, these are the defaults
5
- # to start up
6
- #
7
- # Detailed information on permissions is available at:
8
- # http://rdoc.info/gems/social_stream/Permission
9
- #
10
- user:
11
- friend:
12
- name: friend
13
- permissions:
14
- - [ follow ]
15
- - [ create, activity ]
16
- - [ read, activity ]
17
- acquaintance:
18
- name: acquaintance
19
- permissions:
20
- - [ read, activity ]
21
- colleague:
22
- name: colleague
23
- permissions:
24
- - [ follow ]
25
- - [ create, activity ]
26
- - [ read, activity ]
27
-
28
- group:
29
- member:
30
- name: member
31
- permissions:
32
- - [ represent ]
33
- - [ create, activity ]
34
- - [ read, activity ]
35
- - [ read, tie ]
36
- partner:
37
- name: partner
38
- permissions:
39
- - [ read, activity ]
@@ -1,60 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- devise_for :users, :controllers => {:omniauth_callbacks => 'omniauth_callbacks'}
3
-
4
- # The priority is based upon order of creation:
5
- # first created -> highest priority.
6
-
7
- # Sample of regular route:
8
- # match 'products/:id' => 'catalog#view'
9
- # Keep in mind you can assign values other than :controller and :action
10
-
11
- # Sample of named route:
12
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
13
- # This route can be invoked with purchase_url(:id => product.id)
14
-
15
- # Sample resource route (maps HTTP verbs to controller actions automatically):
16
- # resources :products
17
-
18
- # Sample resource route with options:
19
- # resources :products do
20
- # member do
21
- # get 'short'
22
- # post 'toggle'
23
- # end
24
- #
25
- # collection do
26
- # get 'sold'
27
- # end
28
- # end
29
-
30
- # Sample resource route with sub-resources:
31
- # resources :products do
32
- # resources :comments, :sales
33
- # resource :seller
34
- # end
35
-
36
- # Sample resource route with more complex sub-resources
37
- # resources :products do
38
- # resources :comments
39
- # resources :sales do
40
- # get 'recent', :on => :collection
41
- # end
42
- # end
43
-
44
- # Sample resource route within a namespace:
45
- # namespace :admin do
46
- # # Directs /admin/products/* to Admin::ProductsController
47
- # # (app/controllers/admin/products_controller.rb)
48
- # resources :products
49
- # end
50
-
51
- # You can have the root of your site routed with "root"
52
- # just remember to delete public/index.html.
53
- # root :to => 'welcome#index'
54
-
55
- # See how all your routes lay out with "rake routes"
56
-
57
- # This is a legacy wild controller route that's not recommended for RESTful applications.
58
- # Note: This route will make all actions in every controller accessible via GET requests.
59
- # match ':controller(/:action(/:id(.:format)))'
60
- end
data/spec/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
@@ -1,6 +0,0 @@
1
- require 'social_stream/migrations/documents'
2
-
3
- ActiveRecord::Schema.define(:version => 0) do
4
- SocialStream::Migrations::Base.new.up
5
- SocialStream::Migrations::Documents.new.up
6
- end
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
- </div>
25
- </body>
26
- </html>
File without changes
@@ -1,2 +0,0 @@
1
- // Place your application-specific JavaScript functions and classes here
2
- // This file is automatically included by javascript_include_tag :defaults