2 | <% if @user.access_token %>
3 | Your access token is <%= @user.access_token %>
4 | <% else %>
5 | Click this link to authorize sirius.
6 | <% end %>
7 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_book_search.src/_m000010.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_book_search.src/_m000010.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_book_search.src/_m000011.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_book_search.src/_m000011.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_captcha_error.src/_m000001.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_captcha_error.src/_m000001.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_captcha_error.src/_m000005.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_captcha_error.src/_m000005.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_request_error.src/_m000006.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_request_error.src/_m000006.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_spreadsheets.src/_m000001.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_spreadsheets.src/_m000001.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_webmaster_tools.src/_m000007.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_webmaster_tools.src/_m000007.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_webmaster_tools.src/_m000008.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_client/_webmaster_tools.src/_m000008.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/test/test_config.yml.example:
--------------------------------------------------------------------------------
1 | ---
2 | username: myaccount
3 | password: mypassword
4 | # uncomment to test authsub
5 | #authsub_token: someauthsubtoken
6 | # uncomment to test secure authsub
7 | #authsub_private_key: /path/to/private/key
8 |
--------------------------------------------------------------------------------
/app/assets/javascripts/home.js.coffee:
--------------------------------------------------------------------------------
1 | # Place all the behaviors and hooks related to the matching controller here.
2 | # All this logic will automatically be available in application.js.
3 | # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
4 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000019.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000019.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000037.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000037.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000042.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000042.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000045.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000045.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000046.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_default_service.src/_m000046.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000036.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000036.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000037.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000037.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000039.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000039.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000040.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000040.html.i
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000041.html.i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sandbox/Sirius/master/vendor/plugins/gdata-ruby-util/.hg/store/data/doc/classes/_g_data/_h_t_t_p/_mime_body_string.src/_m000041.html.i
--------------------------------------------------------------------------------
/app/assets/javascripts/users.js.coffee:
--------------------------------------------------------------------------------
1 | # Place all the behaviors and hooks related to the matching controller here.
2 | # All this logic will automatically be available in application.js.
3 | # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
4 |
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env rake
2 | # Add your own tasks in files placed in lib/tasks ending in .rake,
3 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4 |
5 | require File.expand_path('../config/application', __FILE__)
6 |
7 | Sirius::Application.load_tasks
8 |
--------------------------------------------------------------------------------
/app/views/layouts/application.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Sirius
5 | <%= stylesheet_link_tag "application" %>
6 | <%= javascript_include_tag "application" %>
7 | <%= csrf_meta_tags %>
8 |
9 |
10 |
11 | <%= yield %>
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/script/rails:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3 |
4 | APP_PATH = File.expand_path('../../config/application', __FILE__)
5 | require File.expand_path('../../config/boot', __FILE__)
6 | require 'rails/commands'
7 |
--------------------------------------------------------------------------------
/db/migrate/20111014224928_create_users.rb:
--------------------------------------------------------------------------------
1 | class CreateUsers < ActiveRecord::Migration
2 | def change
3 | create_table :users do |t|
4 | t.string :first_name
5 | t.string :last_name
6 | t.string :password
7 | t.string :access_token
8 |
9 | t.timestamps
10 | end
11 | end
12 | end
13 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hgtags:
--------------------------------------------------------------------------------
1 | 2779e734e0f05be07a6723b614a1a3b134a1afc3 1.1.0
2 | 4359456026eae63f0cfa1a494fdb285098f1b675 1.0.0
3 | dc919b092f8f1a7e30f03812601f9d0394d4c808 0.0.1
4 | e12689fd2570f176d954aa0b5be63f164c58cb50 1.0.1
5 | 93890a03f97a199331ff9bb940ea32db13ebcb8f 1.1.1
6 | 3b104063e5ed32b6bd227d3eae82430d1b803702 1.1.2
7 |
--------------------------------------------------------------------------------
/db/seeds.rb:
--------------------------------------------------------------------------------
1 | # This file should contain all the record creation needed to seed the database with its default values.
2 | # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3 | #
4 | # Examples:
5 | #
6 | # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7 | # Mayor.create(name: 'Emanuel', city: cities.first)
8 |
--------------------------------------------------------------------------------
/test/fixtures/users.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://api.rubyonrails.org/classes/Fixtures.html
2 |
3 | one:
4 | email: MyString
5 | first_name: MyString
6 | last_name: MyString
7 | password: MyString
8 | access_token: MyString
9 |
10 | two:
11 | email: MyString
12 | first_name: MyString
13 | last_name: MyString
14 | password: MyString
15 | access_token: MyString
16 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/application.css:
--------------------------------------------------------------------------------
1 | /*
2 | * This is a manifest file that'll automatically include all the stylesheets available in this directory
3 | * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4 | * the top of the compiled file, but it's generally better to create a new file per style scope.
5 | *= require_self
6 | *= require_tree .
7 | */
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/.hg/cache/tags:
--------------------------------------------------------------------------------
1 | 28 0556611fd2b54a2001580761a8bb908982b44aae 5ff9be89016c7995ee30593f2eeeccb0d17fff7c
2 |
3 | 93890a03f97a199331ff9bb940ea32db13ebcb8f 1.1.1
4 | 2779e734e0f05be07a6723b614a1a3b134a1afc3 1.1.0
5 | 3b104063e5ed32b6bd227d3eae82430d1b803702 1.1.2
6 | dc919b092f8f1a7e30f03812601f9d0394d4c808 0.0.1
7 | e12689fd2570f176d954aa0b5be63f164c58cb50 1.0.1
8 | 4359456026eae63f0cfa1a494fdb285098f1b675 1.0.0
9 |
--------------------------------------------------------------------------------
/config/initializers/inflections.rb:
--------------------------------------------------------------------------------
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
11 |
--------------------------------------------------------------------------------
/test/performance/browsing_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 | require 'rails/performance_test_help'
3 |
4 | class BrowsingTest < ActionDispatch::PerformanceTest
5 | # Refer to the documentation for all available options
6 | # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
7 | # :output => 'tmp/performance', :formats => [:flat] }
8 |
9 | def test_homepage
10 | get '/'
11 | end
12 | end
13 |
--------------------------------------------------------------------------------
/config/initializers/backtrace_silencers.rb:
--------------------------------------------------------------------------------
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!
8 |
--------------------------------------------------------------------------------
/config/initializers/session_store.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | Sirius::Application.config.session_store :cookie_store, key: '_sirius_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 | # Sirius::Application.config.session_store :active_record_store
9 |
--------------------------------------------------------------------------------
/app/models/user.rb:
--------------------------------------------------------------------------------
1 | class User < ActiveRecord::Base
2 | # Include default devise modules. Others available are:
3 | # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
4 | devise :database_authenticatable, :registerable,
5 | :recoverable, :rememberable, :trackable, :validatable
6 |
7 | # Setup accessible (or protected) attributes for your model
8 | attr_accessible :email, :password, :password_confirmation, :remember_me
9 | end
10 |
--------------------------------------------------------------------------------
/test/test_helper.rb:
--------------------------------------------------------------------------------
1 | ENV["RAILS_ENV"] = "test"
2 | require File.expand_path('../../config/environment', __FILE__)
3 | require 'rails/test_help'
4 |
5 | class ActiveSupport::TestCase
6 | # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7 | #
8 | # Note: You'll currently still have to declare fixtures explicitly in integration tests
9 | # -- they do not yet inherit this setting
10 | fixtures :all
11 |
12 | # Add more helper methods to be used by all tests here...
13 | end
14 |
--------------------------------------------------------------------------------
/app/assets/javascripts/application.js:
--------------------------------------------------------------------------------
1 | // This is a manifest file that'll be compiled into including all the files listed below.
2 | // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3 | // be included in the compiled file accessible from http://example.com/assets/application.js
4 | // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5 | // the compiled file.
6 | //
7 | //= require jquery
8 | //= require jquery_ujs
9 | //= require_tree .
10 |
--------------------------------------------------------------------------------
/config/initializers/secret_token.rb:
--------------------------------------------------------------------------------
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 | Sirius::Application.config.secret_token = '77ff990e800eba255cd4cb94fdcbd6ff4af9c8591d16ba293d2eab6d8d3cc226d9953dd0181a5ce4371d8b514f794e4b95654fe0df2da254c93f9f727a91b25e'
8 |
--------------------------------------------------------------------------------
/app/views/users/show.html.erb:
--------------------------------------------------------------------------------
1 |
27 |
28 |
29 | <%= link_to 'Edit', edit_user_path(@user) %> |
30 | <%= link_to 'Back', users_path %>
31 |
--------------------------------------------------------------------------------
/config/initializers/wrap_parameters.rb:
--------------------------------------------------------------------------------
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
15 |
--------------------------------------------------------------------------------
/README:
--------------------------------------------------------------------------------
1 | Spec:
2 |
3 | - web interface
4 | - create an account
5 | - grant sirius access to google calendar
6 | - email interface
7 | - CC sirius on emails when you're arranging to meet someone
8 | 1. sirius checks your calendar for relevant availability
9 | 2. sirius sends email to your contact with options
10 | 3. contact replies with their choice, or asks for more
11 | options
12 | 4. sirius updates your calendar and notifies you
13 |
14 | progress so far:
15 |
16 | web interface complete except for styling
17 | email interface only allows creation of events by
18 | sending sirius an email with the content of the form
19 | "tennis at tomorrow 6pm"
--------------------------------------------------------------------------------
/config/database.yml:
--------------------------------------------------------------------------------
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
26 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | $:.unshift(File.dirname(__FILE__))
16 |
17 | require 'gdata/http'
18 | require 'gdata/client'
19 | require 'gdata/auth'
20 | $KCODE = 'UTF8'
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/http.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | require 'gdata/http/default_service'
16 | require 'gdata/http/mime_body'
17 | require 'gdata/http/request'
18 | require 'gdata/http/response'
19 |
--------------------------------------------------------------------------------
/public/422.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | The change you wanted was rejected (422)
5 |
17 |
18 |
19 |
20 |
21 |
22 |
The change you wanted was rejected.
23 |
Maybe you tried to change something you didn't have access to.
We've been notified about this issue and we'll take a look at it shortly.
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/auth.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | require 'gdata/auth/clientlogin'
16 | require 'gdata/auth/authsub'
17 |
18 | module GData
19 | module Auth
20 | SOURCE_LIB_STRING = 'GoogleDataRubyUtil-'
21 | end
22 | end
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source 'http://rubygems.org'
2 |
3 | gem 'rails', '3.1.0'
4 |
5 | # Bundle edge Rails instead:
6 | # gem 'rails', :git => 'git://github.com/rails/rails.git'
7 |
8 | group :development do
9 | gem 'sqlite3'
10 | end
11 |
12 |
13 | # Gems used only for assets and not required
14 | # in production environments by default.
15 | group :assets do
16 | gem 'sass-rails', " ~> 3.1.0"
17 | gem 'coffee-rails', "~> 3.1.0"
18 | gem 'uglifier'
19 | end
20 |
21 | gem 'jquery-rails'
22 |
23 | # Use unicorn as the web server
24 | # gem 'unicorn'
25 |
26 | # Deploy with Capistrano
27 | # gem 'capistrano'
28 |
29 | # To use debugger
30 | # gem 'ruby-debug19', :require => 'ruby-debug'
31 |
32 | group :test do
33 | # Pretty printed test output
34 | gem 'turn', :require => false
35 | end
36 |
37 | gem 'devise'
38 | gem 'nokogiri'
39 | gem 'pg'
40 | gem 'thin'
41 | gem 'chronic'
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/doc/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
12 |
13 | gdata module documentation
14 |
15 |
16 |
24 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/test/ts_gdata_http.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | require 'tc_gdata_http_request'
16 | require 'tc_gdata_http_mime_body'
17 |
18 | class TS_GData_HTTP
19 | def self.suite
20 | suite = Test::Unit::TestSuite.new
21 | suite << TC_GData_HTTP_Request.suite
22 | suite << TC_GData_HTTP_MimeBody.suite
23 | return suite
24 | end
25 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/test/ts_gdata_auth.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | require 'tc_gdata_auth_clientlogin'
16 | require 'tc_gdata_auth_authsub'
17 |
18 | class TS_GData_Auth
19 | def self.suite
20 | suite = Test::Unit::TestSuite.new
21 | suite << TC_GData_Auth_ClientLogin.suite
22 | suite << TC_GData_Auth_AuthSub.suite
23 | return suite
24 | end
25 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/doc/classes/GData/HTTP/MimeBody.src/M000034.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | content_type (GData::HTTP::MimeBody)
9 |
10 |
11 |
12 |
13 |
# File lib/gdata/http/mime_body.rb, line 54
14 | defcontent_type
15 | return"multipart/related; boundary=\"#{@boundary}\""
16 | end
# File lib/gdata/http/mime_body.rb, line 54
14 | defcontent_type
15 | return"multipart/related; boundary=\"#{@boundary}\""
16 | end
17 |
18 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/apps.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Apps Provisioning API.
19 | class Apps < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'apps'
23 | super(options)
24 | end
25 | end
26 | end
27 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/blogger.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Blogger API.
19 | class Blogger < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'blogger'
23 | options[:authsub_scope] ||= 'http://www.blogger.com/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/contacts.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Contacts API.
19 | class Contacts < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'cp'
23 | options[:authsub_scope] ||= 'https://www.google.com/m8/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/gbase.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Google Base API.
19 | class GBase < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'gbase'
23 | options[:authsub_scope] ||= 'https://www.google.com/base/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/health.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Health API.
19 | class Health < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'health'
23 | options[:authsub_scope] ||= 'https://www.google.com/health/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/gmail.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the GMail Atom Feed.
19 | class GMail < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'mail'
23 | options[:authsub_scope] ||= 'https://mail.google.com/mail/feed/atom/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/doclist.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Documents List Data API.
19 | class DocList < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'writely'
23 | options[:authsub_scope] ||= 'https://docs.google.com/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/finance.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Finance API.
19 | class Finance < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'finance'
23 | options[:authsub_scope] ||= 'http://finance.google.com/finance/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/notebook.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Notebook Data API.
19 | class Notebook < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'notebook'
23 | options[:authsub_scope] ||= 'https://www.google.com/notebook/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/doc/classes/GData/Client/Base.src/M000015.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | get (GData::Client::Base)
9 |
10 |
11 |
12 |
13 |
# File lib/gdata/client/base.rb, line 102
14 | defget(url)
15 | returnself.make_request(:get, url)
16 | end
18 |
19 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/booksearch.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Book Search Data API.
19 | class BookSearch < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'print'
23 | options[:authsub_scope] ||= 'https://www.google.com/books/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/app/views/users/_form.html.erb:
--------------------------------------------------------------------------------
1 | <%= form_for(@user) do |f| %>
2 | <% if @user.errors.any? %>
3 |
4 |
<%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:
5 |
6 |
7 | <% @user.errors.full_messages.each do |msg| %>
8 |
# File lib/gdata/client/gdata.rb, line 101
14 | defget(url)
15 | returnself.make_request(:get, url)
16 | end
17 |
18 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/spreadsheets.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Spreadsheets API.
19 | class Spreadsheets < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'wise'
23 | options[:authsub_scope] ||= 'https://spreadsheets.google.com/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/doc/classes/GData/Client/Base.src/M000007.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | delete (GData::Client::Base)
9 |
10 |
11 |
12 |
13 |
# File lib/gdata/client/gdata.rb, line 116
14 | defdelete(url)
15 | returnself.make_request(:delete, url)
16 | end
18 |
19 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/webmaster_tools.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Webmaster Tools API.
19 | class WebmasterTools < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'sitemaps'
23 | options[:authsub_scope] ||= 'https://www.google.com/webmasters/tools/feeds/'
24 | super(options)
25 | end
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/lib/gdata/client/photos.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | module GData
16 | module Client
17 |
18 | # Client class to wrap working with the Picasa Web Albums API.
19 | class Photos < Base
20 |
21 | def initialize(options = {})
22 | options[:clientlogin_service] ||= 'lh2'
23 | options[:authsub_scope] ||= 'https://picasaweb.google.com/data/'
24 | options[:version] ||= '1'
25 | super(options)
26 | end
27 | end
28 | end
29 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/doc/classes/GData/Client/Calendar.src/M000032.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | auth_handler= (GData::Client::Calendar)
9 |
10 |
11 |
12 |
13 |
# File lib/gdata/client/calendar.rb, line 32
14 | defauth_handler=(handler)
15 | @session_cookie = nil
16 | returnsuper(handler)
17 | end
19 |
20 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/test/ts_gdata_client.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | require 'tc_gdata_client_base'
16 | require 'tc_gdata_client_calendar'
17 | require 'tc_gdata_client_photos'
18 | require 'tc_gdata_client_youtube'
19 |
20 | class TS_GData_Client
21 | def self.suite
22 | suite = Test::Unit::TestSuite.new
23 | suite << TC_GData_Client_Base.suite
24 | suite << TC_GData_Client_Calendar.suite
25 | suite << TC_GData_Client_Photos.suite
26 | suite << TC_GData_Client_YouTube.suite
27 | return suite
28 | end
29 | end
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/doc/classes/GData/Client/Apps.src/M000027.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | new (GData::Client::Apps)
9 |
10 |
11 |
12 |
13 |
# File lib/gdata/client/apps.rb, line 21
14 | definitialize(options = {})
15 | options[:clientlogin_service] ||='apps'
16 | super(options)
17 | end
# File lib/gdata/client/calendar.rb, line 50
14 | defprepare_headers
15 | if@session_cookie
16 | @headers['cookie'] = @session_cookie
17 | end
18 | super
19 | end
20 |
21 |
--------------------------------------------------------------------------------
/config/environments/development.rb:
--------------------------------------------------------------------------------
1 | Sirius::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
31 |
--------------------------------------------------------------------------------
/db/migrate/20111014224939_add_devise_to_users.rb:
--------------------------------------------------------------------------------
1 | class AddDeviseToUsers < ActiveRecord::Migration
2 | def self.up
3 | change_table(:users) do |t|
4 | t.database_authenticatable :null => false
5 | t.recoverable
6 | t.rememberable
7 | t.trackable
8 |
9 | # t.encryptable
10 | # t.confirmable
11 | # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
12 | # t.token_authenticatable
13 |
14 |
15 | # Uncomment below if timestamps were not included in your original model.
16 | # t.timestamps
17 | end
18 |
19 | add_index :users, :email, :unique => true
20 | add_index :users, :reset_password_token, :unique => true
21 | # add_index :users, :confirmation_token, :unique => true
22 | # add_index :users, :unlock_token, :unique => true
23 | # add_index :users, :authentication_token, :unique => true
24 | end
25 |
26 | def self.down
27 | # By default, we don't want to make any assumption about how to roll back a migration when your
28 | # model already existed. Please edit below which fields you would like to remove in this migration.
29 | raise ActiveRecord::IrreversibleMigration
30 | end
31 | end
32 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/test/tc_gdata_http_request.rb:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2008 Google Inc.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | $:.unshift(File.dirname(__FILE__))
16 | require 'test_helper'
17 |
18 | class TC_GData_HTTP_Request < Test::Unit::TestCase
19 |
20 | include TestHelper
21 |
22 | def test_world_is_sane
23 | assert(true, 'World is not sane.')
24 | end
25 |
26 | def test_google_is_live
27 | request = GData::HTTP::Request.new('http://www.google.com')
28 |
29 | service = GData::HTTP::DefaultService.new
30 |
31 | response = service.make_request(request)
32 |
33 | assert_equal(200, response.status_code)
34 | end
35 |
36 | end
--------------------------------------------------------------------------------
/app/controllers/email_controller.rb:
--------------------------------------------------------------------------------
1 | class EmailController < ApplicationController
2 |
3 | def index
4 | event, time = params['body-plain'].split(' at ')
5 | start_time = Chronic.parse(time)
6 | end_time = (start_time + 1.hour).iso8601
7 | start_time = start_time.iso8601
8 | xml = <<-eos
9 |
11 |
13 | #{event}
14 |
16 |
17 |
19 |
20 |
22 |
23 | eos
24 | client = GData::Client::DocList.new
25 | client.authsub_token = User.where(:email => params[:sender]).first.access_token
26 | client.post('https://www.google.com/calendar/feeds/default/private/full', xml)
27 | render json: {:success => true}
28 | end
29 |
30 | end
31 |
--------------------------------------------------------------------------------
/test/functional/users_controller_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class UsersControllerTest < ActionController::TestCase
4 | setup do
5 | @user = users(:one)
6 | end
7 |
8 | test "should get index" do
9 | get :index
10 | assert_response :success
11 | assert_not_nil assigns(:users)
12 | end
13 |
14 | test "should get new" do
15 | get :new
16 | assert_response :success
17 | end
18 |
19 | test "should create user" do
20 | assert_difference('User.count') do
21 | post :create, user: @user.attributes
22 | end
23 |
24 | assert_redirected_to user_path(assigns(:user))
25 | end
26 |
27 | test "should show user" do
28 | get :show, id: @user.to_param
29 | assert_response :success
30 | end
31 |
32 | test "should get edit" do
33 | get :edit, id: @user.to_param
34 | assert_response :success
35 | end
36 |
37 | test "should update user" do
38 | put :update, id: @user.to_param, user: @user.attributes
39 | assert_redirected_to user_path(assigns(:user))
40 | end
41 |
42 | test "should destroy user" do
43 | assert_difference('User.count', -1) do
44 | delete :destroy, id: @user.to_param
45 | end
46 |
47 | assert_redirected_to users_path
48 | end
49 | end
50 |
--------------------------------------------------------------------------------
/vendor/plugins/gdata-ruby-util/doc/classes/GData/Client/Base.src/M000024.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | authsub_token= (GData::Client::Base)
9 |
10 |
11 |
12 |
13 |
# File lib/gdata/client/base.rb, line 168
14 | defauthsub_token=(token)
15 | self.auth_handler = GData::Auth::AuthSub.new(token)
16 | end