dailycred 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +7 -1
  4. data/dailycred.gemspec +2 -2
  5. data/dummy/.gitignore +3 -2
  6. data/dummy/Gemfile +14 -29
  7. data/dummy/README.rdoc +15 -248
  8. data/dummy/Rakefile +0 -1
  9. data/dummy/app/assets/javascripts/application.js +2 -1
  10. data/dummy/app/controllers/application_controller.rb +3 -14
  11. data/dummy/app/views/layouts/application.html.erb +2 -6
  12. data/dummy/bin/bundle +3 -0
  13. data/dummy/bin/rails +4 -0
  14. data/dummy/bin/rake +4 -0
  15. data/dummy/config/application.rb +2 -42
  16. data/dummy/config/boot.rb +0 -2
  17. data/dummy/config/environment.rb +2 -2
  18. data/dummy/config/environments/development.rb +9 -19
  19. data/dummy/config/environments/production.rb +40 -27
  20. data/dummy/config/environments/test.rb +12 -13
  21. data/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  22. data/dummy/config/initializers/inflections.rb +6 -5
  23. data/dummy/config/initializers/omniauth.rb +8 -4
  24. data/dummy/config/initializers/secret_token.rb +6 -1
  25. data/dummy/config/initializers/session_store.rb +1 -6
  26. data/dummy/config/initializers/wrap_parameters.rb +6 -6
  27. data/dummy/config/locales/en.yml +20 -2
  28. data/dummy/config/routes.rb +15 -26
  29. data/dummy/db/migrate/{20121218124721_create_users.rb → 20130417131939_create_users.rb} +2 -2
  30. data/dummy/db/schema.rb +8 -20
  31. data/dummy/public/404.html +2 -1
  32. data/dummy/public/422.html +1 -1
  33. data/dummy/public/500.html +2 -1
  34. data/dummy/public/robots.txt +1 -1
  35. data/dummy/test/models/.keep +0 -0
  36. data/dummy/test/test_helper.rb +11 -58
  37. data/dummy/vendor/assets/javascripts/.keep +0 -0
  38. data/dummy/vendor/assets/stylesheets/.keep +0 -0
  39. data/lib/dailycred/client.rb +1 -0
  40. data/lib/dailycred/version.rb +1 -1
  41. data/lib/dailycred.rb +0 -1
  42. data/spec/helper_spec.rb +0 -2
  43. metadata +24 -44
  44. data/dummy/Guardfile +0 -31
  45. data/dummy/app/assets/javascripts/posts.js.coffee +0 -3
  46. data/dummy/app/assets/stylesheets/posts.css.scss +0 -3
  47. data/dummy/app/assets/stylesheets/scaffolds.css.scss +0 -69
  48. data/dummy/app/controllers/posts_controller.rb +0 -86
  49. data/dummy/app/helpers/posts_helper.rb +0 -2
  50. data/dummy/app/models/post.rb +0 -3
  51. data/dummy/app/views/posts/_form.html.erb +0 -21
  52. data/dummy/app/views/posts/edit.html.erb +0 -6
  53. data/dummy/app/views/posts/index.html.erb +0 -23
  54. data/dummy/app/views/posts/new.html.erb +0 -5
  55. data/dummy/app/views/posts/show.html.erb +0 -10
  56. data/dummy/db/migrate/20120926012555_create_posts.rb +0 -9
  57. data/dummy/db/migrate/20121002192037_update_users_2.rb +0 -70
  58. data/dummy/db/migrate/20121108192739_add_column_to_posts.rb +0 -5
  59. data/dummy/db/migrate/20121218205329_change_created_column.rb +0 -5
  60. data/dummy/script/rails +0 -6
  61. data/dummy/test/fixtures/posts.yml +0 -7
  62. data/dummy/test/fixtures/users.yml +0 -3
  63. data/dummy/test/functional/posts_controller_test.rb +0 -51
  64. data/dummy/test/performance/browsing_test.rb +0 -12
  65. data/dummy/test/unit/helpers/posts_helper_test.rb +0 -4
  66. data/dummy/test/unit/post_test.rb +0 -7
  67. data/dummy/test/unit/user_test.rb +0 -77
  68. data/lib/omniauth/strategies/dailycred.rb +0 -81
  69. data/spec/omniauth/strategies/dailycred_spec.rb +0 -70
  70. /data/dummy/app/{mailers/.gitkeep → controllers/concerns/.keep} +0 -0
  71. /data/dummy/app/{models/.gitkeep → mailers/.keep} +0 -0
  72. /data/dummy/{lib/assets/.gitkeep → app/models/.keep} +0 -0
  73. /data/dummy/{lib/tasks/.gitkeep → app/models/concerns/.keep} +0 -0
  74. /data/dummy/{log/.gitkeep → lib/assets/.keep} +0 -0
  75. /data/dummy/{test/fixtures/.gitkeep → lib/tasks/.keep} +0 -0
  76. /data/dummy/{test/functional/.gitkeep → log/.keep} +0 -0
  77. /data/dummy/test/{integration/.gitkeep → controllers/.keep} +0 -0
  78. /data/dummy/test/{unit/.gitkeep → fixtures/.keep} +0 -0
  79. /data/dummy/{vendor/assets/javascripts/.gitkeep → test/helpers/.keep} +0 -0
  80. /data/dummy/{vendor/assets/stylesheets/.gitkeep → test/integration/.keep} +0 -0
  81. /data/dummy/{vendor/plugins/.gitkeep → test/mailers/.keep} +0 -0
@@ -1,67 +1,80 @@
1
1
  Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
- # Code is not reloaded between requests
4
+ # Code is not reloaded between requests.
5
5
  config.cache_classes = true
6
6
 
7
- # Full error reports are disabled and caching is turned on
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both thread web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
8
14
  config.consider_all_requests_local = false
9
15
  config.action_controller.perform_caching = true
10
16
 
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
+ # config.action_dispatch.rack_cache = true
21
+
22
+ # Disable Rails's static asset server (Apache or nginx will already do this).
12
23
  config.serve_static_assets = false
13
24
 
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
25
+ # Compress JavaScripts and CSS.
26
+ config.assets.js_compressor = :uglifier
27
+ # config.assets.css_compressor = :sass
16
28
 
17
- # Don't fallback to assets pipeline if a precompiled asset is missed
29
+ # Whether to fallback to assets pipeline if a precompiled asset is missed.
18
30
  config.assets.compile = false
19
31
 
20
- # Generate digests for assets URLs
32
+ # Generate digests for assets URLs.
21
33
  config.assets.digest = true
22
34
 
23
- # Defaults to nil and saved in location specified by config.assets.prefix
24
- # config.assets.manifest = YOUR_PATH
35
+ # Version of your assets, change this if you want to expire all your assets.
36
+ config.assets.version = '1.0'
25
37
 
26
- # Specifies the header that your server uses for sending files
38
+ # Specifies the header that your server uses for sending files.
27
39
  # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
40
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
41
 
30
42
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
43
  # config.force_ssl = true
32
44
 
33
- # See everything in the log (default is :info)
34
- # config.log_level = :debug
45
+ # Set to :debug to see everything in the log.
46
+ config.log_level = :info
35
47
 
36
- # Prepend all log lines with the following tags
48
+ # Prepend all log lines with the following tags.
37
49
  # config.log_tags = [ :subdomain, :uuid ]
38
50
 
39
- # Use a different logger for distributed setups
51
+ # Use a different logger for distributed setups.
40
52
  # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
53
 
42
- # Use a different cache store in production
54
+ # Use a different cache store in production.
43
55
  # config.cache_store = :mem_cache_store
44
56
 
45
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
57
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
46
58
  # config.action_controller.asset_host = "http://assets.example.com"
47
59
 
48
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
60
+ # Precompile additional assets.
61
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
49
62
  # config.assets.precompile += %w( search.js )
50
63
 
51
- # Disable delivery errors, bad email addresses will be ignored
64
+ # Ignore bad email addresses and do not raise email delivery errors.
65
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
52
66
  # config.action_mailer.raise_delivery_errors = false
53
67
 
54
- # Enable threaded mode
55
- # config.threadsafe!
56
-
57
68
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
- # the I18n.default_locale when a translation can not be found)
69
+ # the I18n.default_locale when a translation can not be found).
59
70
  config.i18n.fallbacks = true
60
71
 
61
- # Send deprecation notices to registered listeners
72
+ # Send deprecation notices to registered listeners.
62
73
  config.active_support.deprecation = :notify
63
74
 
64
- # Log the query plan for queries taking more than this (works
65
- # with SQLite, MySQL, and PostgreSQL)
66
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
75
+ # Disable automatic flushing of the log to improve performance.
76
+ # config.autoflush_log = false
77
+
78
+ # Use default logging formatter so that PID and timestamp are not suppressed.
79
+ config.log_formatter = ::Logger::Formatter.new
67
80
  end
@@ -1,5 +1,5 @@
1
1
  Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
5
5
  # test suite. You never need to work with it otherwise. Remember that
@@ -7,31 +7,30 @@ Dummy::Application.configure do
7
7
  # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
9
 
10
- # Configure static asset server for tests with Cache-Control for performance
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
11
16
  config.serve_static_assets = true
12
17
  config.static_cache_control = "public, max-age=3600"
13
18
 
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
19
+ # Show full error reports and disable caching.
18
20
  config.consider_all_requests_local = true
19
21
  config.action_controller.perform_caching = false
20
22
 
21
- # Raise exceptions instead of rendering exception templates
23
+ # Raise exceptions instead of rendering exception templates.
22
24
  config.action_dispatch.show_exceptions = false
23
25
 
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
26
28
 
27
29
  # Tell Action Mailer not to deliver emails to the real world.
28
30
  # The :test delivery method accumulates sent emails in the
29
31
  # ActionMailer::Base.deliveries array.
30
32
  config.action_mailer.delivery_method = :test
31
33
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
- # Print deprecation notices to the stderr
34
+ # Print deprecation notices to the stderr.
36
35
  config.active_support.deprecation = :stderr
37
36
  end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -1,15 +1,16 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
6
7
  # inflect.plural /^(ox)$/i, '\1en'
7
8
  # inflect.singular /^(ox)en/i, '\1'
8
9
  # inflect.irregular 'person', 'people'
9
10
  # inflect.uncountable %w( fish sheep )
10
11
  # end
11
- #
12
+
12
13
  # These inflection rules are supported but not enabled by default:
13
- # ActiveSupport::Inflector.inflections do |inflect|
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
14
15
  # inflect.acronym 'RESTful'
15
16
  # end
@@ -1,5 +1,9 @@
1
- # Rails.configuration.DAILYCRED_CLIENT_ID = "4133a23f-b9c3-47e4-8989-cfb30510079d"
2
- # Rails.configuration.DAILYCRED_SECRET_KEY = "a1c21e72-98d8-47c2-9e9a-1e2dcd363b2f-f353b2af-1f51-416c-ad4c-59e70721dfab"
1
+ Rails.configuration.DAILYCRED_CLIENT_ID = "37a067dd-3fef-4efd-909a-38b8081c5867"
2
+ Rails.configuration.DAILYCRED_SECRET_KEY = "b622f8a7-fa92-4fe8-bb74-b5bad5db79d3-817ddff2-6fa1-4499-ae47-69ea0d4c5c44"
3
3
 
4
- Rails.configuration.DAILYCRED_CLIENT_ID = "9be01b69-b9b9-4376-ab88-ace42033f241"
5
- Rails.configuration.DAILYCRED_SECRET_KEY = "33e355d1-9e39-465e-b8d6-fcc734ce6e37-ee05ae3d-9bbe-4996-b6fd-04fa0341fc7f"
4
+ # configure where users should be redirected after authentication
5
+ #
6
+ # Rails.configuration.DAILYCRED_OPTIONS = {
7
+ # :after_auth => '/hello', #after login
8
+ # :after_unauth => '/goodbye' #after logout
9
+ # }
@@ -2,6 +2,11 @@
2
2
 
3
3
  # Your secret key for verifying the integrity of signed cookies.
4
4
  # If you change this key, all old signed cookies will become invalid!
5
+
5
6
  # Make sure the secret is at least 30 characters and all random,
6
7
  # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = 'a05292890fc8c9b3b30d4a6cc1bf8374a9d030eb685847211d0624ab218c359ba562ecefee793801d92df8326bdf4938c74e57e6a224e469f0af0b382b4fdb44'
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = 'cb5a0759593cd5f1cb9802a3c05fb35cd7348e8b867a69136addced11ff4763bc78da24db0b3e9d0fefd8696dc35de025090e9800b992b33d68ee2afcaf1895f'
@@ -1,8 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
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
3
+ Dummy::Application.config.session_store :encrypted_cookie_store, key: '_dummy_session'
@@ -1,14 +1,14 @@
1
1
  # Be sure to restart your server when you modify this file.
2
- #
2
+
3
3
  # This file contains settings for ActionController::ParamsWrapper which
4
4
  # is enabled by default.
5
5
 
6
6
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
7
  ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json]
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
9
  end
10
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
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -1,5 +1,23 @@
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.
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
3
21
 
4
22
  en:
5
23
  hello: "Hello world"
@@ -1,22 +1,21 @@
1
1
  Dummy::Application.routes.draw do
2
- resources :posts
3
-
4
2
  mount Dailycred::Engine => '/auth', :as => 'dailycred_engine'
5
- # The priority is based upon order of creation:
6
- # first created -> highest priority.
3
+ # The priority is based upon order of creation: first created -> highest priority.
4
+ # See how all your routes lay out with "rake routes".
5
+
6
+ # You can have the root of your site routed with "root"
7
+ # root to: 'welcome#index'
7
8
 
8
- # Sample of regular route:
9
- # match 'products/:id' => 'catalog#view'
10
- # Keep in mind you can assign values other than :controller and :action
9
+ # Example of regular route:
10
+ # get 'products/:id' => 'catalog#view'
11
11
 
12
- # Sample of named route:
13
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
14
- # This route can be invoked with purchase_url(:id => product.id)
12
+ # Example of named route that can be invoked with purchase_url(id: product.id)
13
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
15
14
 
16
- # Sample resource route (maps HTTP verbs to controller actions automatically):
15
+ # Example resource route (maps HTTP verbs to controller actions automatically):
17
16
  # resources :products
18
17
 
19
- # Sample resource route with options:
18
+ # Example resource route with options:
20
19
  # resources :products do
21
20
  # member do
22
21
  # get 'short'
@@ -28,34 +27,24 @@ Dummy::Application.routes.draw do
28
27
  # end
29
28
  # end
30
29
 
31
- # Sample resource route with sub-resources:
30
+ # Example resource route with sub-resources:
32
31
  # resources :products do
33
32
  # resources :comments, :sales
34
33
  # resource :seller
35
34
  # end
36
35
 
37
- # Sample resource route with more complex sub-resources
36
+ # Example resource route with more complex sub-resources:
38
37
  # resources :products do
39
38
  # resources :comments
40
39
  # resources :sales do
41
- # get 'recent', :on => :collection
40
+ # get 'recent', on: :collection
42
41
  # end
43
42
  # end
44
43
 
45
- # Sample resource route within a namespace:
44
+ # Example resource route within a namespace:
46
45
  # namespace :admin do
47
46
  # # Directs /admin/products/* to Admin::ProductsController
48
47
  # # (app/controllers/admin/products_controller.rb)
49
48
  # resources :products
50
49
  # end
51
-
52
- # You can have the root of your site routed with "root"
53
- # just remember to delete public/index.html.
54
- root :to => 'posts#index'
55
-
56
- # See how all your routes lay out with "rake routes"
57
-
58
- # This is a legacy wild controller route that's not recommended for RESTful applications.
59
- # Note: This route will make all actions in every controller accessible via GET requests.
60
- # match ':controller(/:action(/:id))(.:format)'
61
50
  end
@@ -10,13 +10,13 @@ class CreateUsers < ActiveRecord::Migration
10
10
  t.boolean :admin
11
11
  t.string :referred_by
12
12
  t.string :token
13
- t.string :access_token
14
13
  t.text :tags
15
14
  t.text :referred
16
15
  t.text :access_tokens
17
16
  t.boolean :subscribed
18
17
  t.string :display
19
18
  t.text :identities
19
+ t.datetime :created
20
20
 
21
21
  t.timestamps
22
22
  end
@@ -29,13 +29,13 @@ class CreateUsers < ActiveRecord::Migration
29
29
  safe_column :users, :admin, :boolean
30
30
  safe_column :users, :referred, :string
31
31
  safe_column :users, :token, :string
32
- safe_column :users, :access_token, :string
33
32
  safe_column :users, :tags, :text
34
33
  safe_column :users, :referred, :text
35
34
  safe_column :users, :access_tokens, :text
36
35
  safe_column :users, :display, :string
37
36
  safe_column :users, :subscribed, :boolean
38
37
  safe_column :users, :identities, :text
38
+ safe_column :users, :created, :datetime
39
39
  end
40
40
  end
41
41
 
data/dummy/db/schema.rb CHANGED
@@ -9,40 +9,28 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20121218205329) do
14
+ ActiveRecord::Schema.define(version: 20130417131939) do
15
15
 
16
- create_table "posts", :force => true do |t|
17
- t.string "title"
18
- t.datetime "created_at", :null => false
19
- t.datetime "updated_at", :null => false
20
- t.datetime "created"
21
- end
22
-
23
- create_table "users", :force => true do |t|
16
+ create_table "users", force: true do |t|
24
17
  t.string "provider"
25
18
  t.string "uid"
26
19
  t.string "email"
27
- t.datetime "created", :limit => 8
28
20
  t.string "username"
29
21
  t.boolean "verified"
30
22
  t.boolean "admin"
31
23
  t.string "referred_by"
32
24
  t.string "token"
33
- t.text "facebook"
34
25
  t.text "tags"
35
26
  t.text "referred"
36
- t.text "google"
37
- t.text "twitter"
38
- t.text "github"
39
- t.datetime "created_at", :null => false
40
- t.datetime "updated_at", :null => false
41
- t.string "display"
42
- t.boolean "subscribed"
43
27
  t.text "access_tokens"
44
- t.string "access_token"
28
+ t.boolean "subscribed"
29
+ t.string "display"
45
30
  t.text "identities"
31
+ t.datetime "created"
32
+ t.datetime "created_at"
33
+ t.datetime "updated_at"
46
34
  end
47
35
 
48
36
  end
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
5
+ <style>
6
6
  body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
7
  div.dialog {
8
8
  width: 25em;
@@ -22,5 +22,6 @@
22
22
  <h1>The page you were looking for doesn't exist.</h1>
23
23
  <p>You may have mistyped the address or the page may have moved.</p>
24
24
  </div>
25
+ <p>If you are the application owner check the logs for more information.</p>
25
26
  </body>
26
27
  </html>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
5
+ <style>
6
6
  body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
7
  div.dialog {
8
8
  width: 25em;
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
5
+ <style>
6
6
  body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
7
  div.dialog {
8
8
  width: 25em;
@@ -21,5 +21,6 @@
21
21
  <div class="dialog">
22
22
  <h1>We're sorry, but something went wrong.</h1>
23
23
  </div>
24
+ <p>If you are the application owner check the logs for more information.</p>
24
25
  </body>
25
26
  </html>
@@ -1,5 +1,5 @@
1
1
  # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
2
  #
3
3
  # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-Agent: *
4
+ # User-agent: *
5
5
  # Disallow: /
File without changes
@@ -1,62 +1,15 @@
1
- require 'rubygems'
2
- require 'spork'
3
- #uncomment the following line to use spork with the debugger
4
- #require 'spork/ext/ruby-debug'
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
5
4
 
6
- Spork.prefork do
7
- # Loading more in this block will cause your tests to run faster. However,
8
- # if you change any configuration or code from libraries loaded here, you'll
9
- # need to restart spork for it take effect.
10
- ENV["RAILS_ENV"] = "test"
11
- require File.expand_path('../../config/environment', __FILE__)
12
- require 'rails/test_help'
5
+ class ActiveSupport::TestCase
6
+ ActiveRecord::Migration.check_pending!
13
7
 
14
- class ActiveSupport::TestCase
15
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
16
- #
17
- # Note: You'll currently still have to declare fixtures explicitly in integration tests
18
- # -- they do not yet inherit this setting
19
- fixtures :all
8
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
9
+ #
10
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
11
+ # -- they do not yet inherit this setting
12
+ fixtures :all
20
13
 
21
- # Add more helper methods to be used by all tests here...
22
- end
23
-
24
- end
25
-
26
- Spork.each_run do
27
- # This code will be run each time you run your specs.
14
+ # Add more helper methods to be used by all tests here...
28
15
  end
29
-
30
- # --- Instructions ---
31
- # Sort the contents of this file into a Spork.prefork and a Spork.each_run
32
- # block.
33
- #
34
- # The Spork.prefork block is run only once when the spork server is started.
35
- # You typically want to place most of your (slow) initializer code in here, in
36
- # particular, require'ing any 3rd-party gems that you don't normally modify
37
- # during development.
38
- #
39
- # The Spork.each_run block is run each time you run your specs. In case you
40
- # need to load files that tend to change during development, require them here.
41
- # With Rails, your application modules are loaded automatically, so sometimes
42
- # this block can remain empty.
43
- #
44
- # Note: You can modify files loaded *from* the Spork.each_run block without
45
- # restarting the spork server. However, this file itself will not be reloaded,
46
- # so if you change any of the code inside the each_run block, you still need to
47
- # restart the server. In general, if you have non-trivial code in this file,
48
- # it's advisable to move it into a separate file so you can easily edit it
49
- # without restarting spork. (For example, with RSpec, you could move
50
- # non-trivial code into a file spec/support/my_helper.rb, making sure that the
51
- # spec/support/* files are require'd from inside the each_run block.)
52
- #
53
- # Any code that is left outside the two blocks will be run during preforking
54
- # *and* during each_run -- that's probably not what you want.
55
- #
56
- # These instructions should self-destruct in 10 seconds. If they don't, feel
57
- # free to delete them.
58
-
59
-
60
-
61
-
62
-
File without changes
File without changes
@@ -1,5 +1,6 @@
1
1
  module Dailycred
2
2
  class Client
3
+ require 'faraday'
3
4
  attr_accessor :client_id, :secret_key, :options, :url
4
5
 
5
6
  URL = "https://www.dailycred.com"
@@ -1,3 +1,3 @@
1
1
  module Dailycred
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/lib/dailycred.rb CHANGED
@@ -1,2 +1 @@
1
- require "omniauth/strategies/dailycred"
2
1
  Dir[File.expand_path('../dailycred/*', __FILE__)].each { |f| require f }
data/spec/helper_spec.rb CHANGED
@@ -9,8 +9,6 @@ require 'dailycred'
9
9
 
10
10
  Dir[File.expand_path('../support/**/*', __FILE__)].each { |f| require f }
11
11
 
12
- require 'omniauth/strategies/dailycred_spec'
13
-
14
12
  RSpec.configure do |config|
15
13
  config.include Rack::Test::Methods
16
14
  config.extend OmniAuth::Test::StrategyMacros, :type => :strategy