apple_cart 0.0.1 → 0.0.2

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.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use ruby-1.9.2-head@apple_cart
1
+ rvm use ruby-1.9.2@apple_cart
@@ -2,81 +2,85 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  apple_cart (0.0.1)
5
- bundler (~> 1.0.7)
6
- rails (~> 3.0.3)
5
+ bundler (~> 1.0.15)
6
+ rails (~> 3.0.9)
7
7
  thor (~> 0.14.6)
8
8
 
9
+ PATH
10
+ remote: ../thor
11
+ specs:
12
+ thor (0.14.6)
13
+
9
14
  GEM
10
15
  remote: http://rubygems.org/
11
16
  specs:
12
17
  abstract (1.0.0)
13
- actionmailer (3.0.3)
14
- actionpack (= 3.0.3)
15
- mail (~> 2.2.9)
16
- actionpack (3.0.3)
17
- activemodel (= 3.0.3)
18
- activesupport (= 3.0.3)
18
+ actionmailer (3.0.9)
19
+ actionpack (= 3.0.9)
20
+ mail (~> 2.2.19)
21
+ actionpack (3.0.9)
22
+ activemodel (= 3.0.9)
23
+ activesupport (= 3.0.9)
19
24
  builder (~> 2.1.2)
20
25
  erubis (~> 2.6.6)
21
- i18n (~> 0.4)
26
+ i18n (~> 0.5.0)
22
27
  rack (~> 1.2.1)
23
- rack-mount (~> 0.6.13)
24
- rack-test (~> 0.5.6)
28
+ rack-mount (~> 0.6.14)
29
+ rack-test (~> 0.5.7)
25
30
  tzinfo (~> 0.3.23)
26
- activemodel (3.0.3)
27
- activesupport (= 3.0.3)
31
+ activemodel (3.0.9)
32
+ activesupport (= 3.0.9)
28
33
  builder (~> 2.1.2)
29
- i18n (~> 0.4)
30
- activerecord (3.0.3)
31
- activemodel (= 3.0.3)
32
- activesupport (= 3.0.3)
33
- arel (~> 2.0.2)
34
+ i18n (~> 0.5.0)
35
+ activerecord (3.0.9)
36
+ activemodel (= 3.0.9)
37
+ activesupport (= 3.0.9)
38
+ arel (~> 2.0.10)
34
39
  tzinfo (~> 0.3.23)
35
- activeresource (3.0.3)
36
- activemodel (= 3.0.3)
37
- activesupport (= 3.0.3)
38
- activesupport (3.0.3)
39
- arel (2.0.7)
40
+ activeresource (3.0.9)
41
+ activemodel (= 3.0.9)
42
+ activesupport (= 3.0.9)
43
+ activesupport (3.0.9)
44
+ arel (2.0.10)
40
45
  builder (2.1.2)
41
46
  erubis (2.6.6)
42
47
  abstract (>= 1.0.0)
43
48
  i18n (0.5.0)
44
- mail (2.2.15)
49
+ mail (2.2.19)
45
50
  activesupport (>= 2.3.6)
46
51
  i18n (>= 0.4.0)
47
52
  mime-types (~> 1.16)
48
53
  treetop (~> 1.4.8)
49
54
  mime-types (1.16)
50
55
  polyglot (0.3.1)
51
- rack (1.2.1)
52
- rack-mount (0.6.13)
56
+ rack (1.2.3)
57
+ rack-mount (0.6.14)
53
58
  rack (>= 1.0.0)
54
59
  rack-test (0.5.7)
55
60
  rack (>= 1.0)
56
- rails (3.0.3)
57
- actionmailer (= 3.0.3)
58
- actionpack (= 3.0.3)
59
- activerecord (= 3.0.3)
60
- activeresource (= 3.0.3)
61
- activesupport (= 3.0.3)
61
+ rails (3.0.9)
62
+ actionmailer (= 3.0.9)
63
+ actionpack (= 3.0.9)
64
+ activerecord (= 3.0.9)
65
+ activeresource (= 3.0.9)
66
+ activesupport (= 3.0.9)
62
67
  bundler (~> 1.0)
63
- railties (= 3.0.3)
64
- railties (3.0.3)
65
- actionpack (= 3.0.3)
66
- activesupport (= 3.0.3)
68
+ railties (= 3.0.9)
69
+ railties (3.0.9)
70
+ actionpack (= 3.0.9)
71
+ activesupport (= 3.0.9)
67
72
  rake (>= 0.8.7)
73
+ rdoc (~> 3.4)
68
74
  thor (~> 0.14.4)
69
- rake (0.8.7)
70
- thor (0.14.6)
75
+ rake (0.9.2)
76
+ rdoc (3.6.1)
71
77
  treetop (1.4.9)
72
78
  polyglot (>= 0.3.1)
73
- tzinfo (0.3.24)
79
+ tzinfo (0.3.28)
74
80
 
75
81
  PLATFORMS
76
82
  ruby
77
83
 
78
84
  DEPENDENCIES
79
85
  apple_cart!
80
- bundler (~> 1.0.7)
81
- rails (~> 3.0.3)
82
- thor (~> 0.14.6)
86
+ thor!
@@ -34,7 +34,7 @@ THEDOCTOR
34
34
  s.require_paths = ["lib"]
35
35
  #= Manifest =#
36
36
 
37
- s.add_dependency('rails', '~> 3.0.3')
38
- s.add_dependency('bundler', '~> 1.0.7')
37
+ s.add_dependency('rails', '~> 3.0.9')
38
+ s.add_dependency('bundler', '~> 1.0.15')
39
39
  s.add_dependency('thor', '~> 0.14.6')
40
40
  end
@@ -14,7 +14,7 @@ OPTIONAL_GEMS = {
14
14
  :stats => ["hoptoad_notifier", "newrelic_rpm"],
15
15
  :time_freeze => "timecop",
16
16
  :heroku => ["heroku", "taps"],
17
- :capistrano => ["capistrano", "kompanee-recipes"],
17
+ :capistrano => ["capistrano", "chicken_soup"],
18
18
  :mysql => "mysql",
19
19
  :sqlite => "sqlite3",
20
20
  :postgres => "pg"
@@ -1,3 +1,3 @@
1
1
  module AppleCart
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,6 +1,3 @@
1
- # Always Version .keep files
2
- !.keep
3
-
4
1
  # Bundler Files
5
2
  .bundle
6
3
  vendor/bundler_gems
@@ -9,11 +6,12 @@ vendor/bundler_gems
9
6
  db/*.sqlite3
10
7
  db/schema.rb
11
8
 
12
- # Default Paperclip Image Location
9
+ # Default Uploads Location
13
10
  public/system/
14
11
 
15
12
  # OS Files
16
13
  *.DS_Store
14
+ Thumbs.db
17
15
 
18
16
  # Testing Files
19
17
  coverage/*
@@ -32,5 +30,9 @@ database.yml
32
30
 
33
31
  # Temporary files
34
32
  log/*.log
35
- tmp/
33
+ tmp/*
36
34
  *.swp
35
+
36
+ # Always Version .keep and .gitkeep files
37
+ !.keep
38
+ !.gitkeep
@@ -1 +1,9 @@
1
- rvm use ruby-1.9.2-head@<%= app_name %>
1
+ rvm use ruby-1.9.2@<%= app_name %>
2
+
3
+ echo "Set your deployment variables in your .rvmrc file."
4
+
5
+ # export RAILS_STAGING_SERVER="deploy@myserver.com"
6
+ # export RAILS_STAGING_DIRECTORY="/var/www/deploydir/current"
7
+
8
+ # export RAILS_PRODUCTION_SERVER="deploy@myserver.com"
9
+ # export RAILS_PRODUCTION_DIRECTORY="/var/www/deploydir/current"
@@ -2,13 +2,21 @@ source 'http://rubygems.org'
2
2
 
3
3
  # Typical Application Gems
4
4
  gem 'rails', '~> 3.0' # Come on ride the train it's the choo choo train
5
- gem 'passenger', '~> 3.0' # Web Server Interface
6
- gem 'haml' # SCSS Conversion
5
+ gem 'passenger' # Web Server Interface
7
6
  # gem 'simple_form' # Form Generation
8
7
 
8
+ # New Parsing Goodness
9
+ gem 'sass' # SCSS Conversion
10
+ gem 'compass' # SCSS Helper
11
+ gem 'coffee-script' # Make your Javascript prettier
12
+ gem 'coffeebeans' # Request/Response with CoffeeScript
13
+
9
14
  # Security
10
15
  # gem 'devise' # Authentication
16
+ # gem 'omniauth' # External Authentication
11
17
  # gem 'cancan' # Authorization
18
+ # gem 'recaptcha' # Interface for Google's Captcha API
19
+ # gem 'rack-ssl-enforcer' # Easily Customize SSL and Secure Cookies
12
20
 
13
21
  # Validation Helpers
14
22
  # gem 'validates_timeliness' # Date Validations
@@ -18,64 +26,85 @@ source 'http://rubygems.org'
18
26
  # gem 'hoptoad_notifier' # Error Notifications
19
27
  # gem 'newrelic_rpm' # Performance Metrics
20
28
 
21
- # Application-Specific Gems
29
+ # Working with HTML
30
+ # gem 'roadie' # Makes designing HTML emails a breeze
31
+ # gem 'sanitize' # For removing unsafe HTML tags from user input
32
+
33
+ # Domain Logic
34
+ # gem 'state_machine' # Adds states and state transitions to models
35
+ # gem 'money' # Adds arithmically-safe money calculations
36
+
37
+ # Working With Files
38
+ # gem 'carrierwave' # Easy file uploads (and some image manipulation)
39
+
40
+ # Performance
41
+ # gem 'escape_utils' # Escape HTML 'fast as balls'
42
+ # gem 'home_run' # Lightning-fast C-level Date parsing library
43
+ # gem 'yajl-ruby' # Average 4x speed improvments for parsing JSON and YAML
44
+ # gem 'jammit' # Asset-packaging and Image spriting made easy
45
+
46
+ # Other
47
+ # gem 'capit' # Quick Thumbnail generation from URLs
48
+ # gem 'whenever' # Cron job management in your Rails app
49
+ # gem 'koala' # Facebook API Interface
50
+ # gem 'active_admin' # Quick and Dirty CRUD Interface
51
+ # gem 'best_in_place' # Easy "in-place editor" support
22
52
 
23
53
  # Database Adapters
24
54
  # gem 'sqlite3', :group => [:development, :test]
25
55
  # gem 'mysql', :group => [:staging, :production]
26
56
  # gem 'pg', :group => [:staging, :production]
27
57
 
58
+ # Application-Specific Gems
59
+
28
60
  group :development do
29
61
  # Deployment
30
62
  # gem 'heroku' # It's where all good apps go
31
63
  # gem 'taps' # Allows for Heroku db:push/pull
32
64
  # gem 'capistrano' # Deployment Magic
33
- # gem 'kompanee-recipes' # Make Capistrano Magicaller
65
+ # gem 'chicken_soup' # Make Capistrano Magicaller
66
+
67
+ gem 'deadweight' # Find unused CSS selectors
34
68
  end
35
69
 
36
- group :development, :test do
70
+ group :development, :test, :staging do
37
71
  # Helper Gems For IRB
38
72
  gem 'map_by_method' # (ie Person.map_by_name)
39
73
  gem 'awesome_print' # Prettier than Pretty Print
74
+ gem 'wirb' # Suppliment for Pretty Output
75
+ gem 'fancy_irb' # Pretty Output Triumvirate
76
+ end
40
77
 
78
+ group :development, :test do
41
79
  # Allows setting breakpoints for debugging
42
80
  gem 'ruby-debug', :platforms => :ruby_18
43
81
  gem 'ruby-debug19', :platforms => :ruby_19
44
82
 
45
83
  # Autotest gems
46
- gem 'autotest', '= 4.4.5'
47
- gem 'autotest-rails-pure'
84
+ gem 'ZenTest'
48
85
 
49
- # FSEvent and Growl are only available on Macs
50
- if RUBY_PLATFORM =~ /darwin/
51
- gem 'autotest-fsevent' # File change event handling
52
- gem 'autotest-growl' # ROAR! Your Tests FAIL!
53
- end
86
+ # FSEvent and Growl are only available on Macs
87
+ if RUBY_PLATFORM =~ /darwin/
88
+ gem 'autotest-fsevent' # File change event handling
89
+ gem 'autotest-growl' # ROAR! Your Tests FAIL!
90
+ gem 'slowgrowl' # Show Growl notificatons for slow processes
91
+ end
54
92
 
55
93
  # RSpec
56
94
  gem 'rspec' # RSpec Meta Gem
57
95
  gem 'rspec-rails' # RSpec Rails Adapter
58
96
 
59
97
  # Team RSpec
60
- gem 'shoulda-matchers' # Thoughtbot's RSpec Matchers
61
- # gem 'rspectacular' # The Kompanee's RSpec Matchers
98
+ gem 'shoulda' # Thoughtbot's RSpec Matchers
99
+ # gem 'rspectacular' # Extra Matchers for RSpec
62
100
  # gem 'timecop' # Flux Capacitor... Fluxing
63
101
  gem 'fuubar' # RSpec Progress Bar
64
102
 
65
- # Cucumber
66
- gem 'cucumber' # No Jokes Please... BDD is serious
67
- gem 'cucumber-rails', # Cucumber Rails Adapter
68
- :git => 'git://github.com/aslakhellesoy/cucumber-rails.git',
69
- :ref => 'f3002faf12560dc7a7dc' # There's a fix needed for Capybara at this commit
70
-
71
- # Team Cucumber
72
- gem 'database_cleaner' # Empties the DB Before/After Tests
103
+ # Integration Testing
73
104
  gem 'capybara' # Headless Browser Interaction
105
+ gem 'rev' # Used for "save and open page"
74
106
  gem 'launchy' # Used for "save and open page"
75
- gem 'fuubar-cucumber' # Cucumber Progress Bar
76
-
77
- # Javascript
78
- # gem 'akephalos', # Headless Javascript Testing
107
+ gem 'capybara-webkit' # Headless Javascript Testing
79
108
 
80
109
  # Model Generation
81
110
  gem 'factory_girl_rails' # Easy Object Creation
@@ -84,4 +113,15 @@ group :development, :test do
84
113
  # Code Coverage Reporting
85
114
  gem 'rcov', :platforms => :ruby_18
86
115
  gem 'simplecov', :platforms => :ruby_19
116
+
117
+ # Live Page Testing
118
+ # gem 'evergreen' # Javascript Testing
119
+ gem 'rawler' # Crawls site and reports dead links
120
+
121
+ gem 'spork', '~> 0.9.0.rc' # Rails environment forking for tests
122
+ # Rails 3 requires prerelease version of this gem.
123
+ end
124
+
125
+ group :test, :staging do
126
+ gem 'mail_safe' # Keep emails from being sent out publicly during development
87
127
  end
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
5
- <title><%= app_name %></title>
5
+ <title><%= @application_name %></title>
6
6
  <%%= stylesheet_link_tag :defaults, :media => 'all', :cache => true %>
7
7
  <%%= csrf_meta_tag %>
8
8
  </head>
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <title><%= app_name %> - Down for Maintenance</title>
4
+ <title><%= @application_name %> - Down for Maintenance</title>
5
5
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6
6
  <style>
7
7
  html, body, div, span, applet, object, iframe,
@@ -2,12 +2,12 @@
2
2
  rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
3
  preferred_format = "--format #{ENV['CUCUMBER_FORMAT'] || 'Cucumber::Formatter::Fuubar'}"
4
4
 
5
- rerun_opts = rerun.to_s.strip.empty? ? "#{preferred_format} features" : "#{preferred_format} #{rerun}"
6
- std_opts = "#{preferred_format} --strict --color"
5
+ std_opts = "#{preferred_format} --tags ~@pending --strict --color"
6
+ rerun_opts = rerun.to_s.strip.empty? ? "#{std_opts} features" : "#{preferred_format} #{rerun}"
7
7
  %>
8
8
 
9
9
  default: <%= std_opts %> features
10
- wip: --tags @wip --wip features
10
+ wip: --tags @wip --tags ~@pending --wip features
11
11
  rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
12
12
  autotest: <%= std_opts %>
13
- autotest-all: <%= std_opts %>
13
+ autotest-all: <%= std_opts %>
@@ -12,3 +12,11 @@ test: &test
12
12
 
13
13
  cucumber:
14
14
  <<: *test
15
+
16
+ # for_postgres_dbs:
17
+ # adapter: postgresql
18
+ # encoding: unicode
19
+ # database: db_name
20
+ # username: myuser
21
+ # pool: 5
22
+ # min_messages: warning
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # Set your application information here.
3
3
  #
4
- set :application, ""
4
+ set :application, "<%= @application_name %>"
5
5
  set :application_short, "<%= app_name %>"
6
6
 
7
7
  desc "Sets up the environment for a staging deployment."
@@ -0,0 +1,3 @@
1
+ HoptoadNotifier.configure do |config|
2
+ config.api_key = 'HOPTOAD_API_KEY'
3
+ end
@@ -0,0 +1,4 @@
1
+ if defined?(MailSafe::Config)
2
+ MailSafe::Config.internal_address_definition = /.*@<%= @app_domain %>\.com/i
3
+ MailSafe::Config.replacement_address = 'me@<%= @app_domain %>.com'
4
+ end
@@ -0,0 +1,231 @@
1
+ #
2
+ # This file configures the New Relic RPM Agent. New Relic RPM monitors
3
+ # Rails and Java applications with deep visibility and low overhead. For more
4
+ # information, visit www.newrelic.com.
5
+ #
6
+ # Generated February 01, 2011
7
+ #
8
+ # This configuration file is custom generated for The Kompanee
9
+
10
+ # Here are the settings that are common to all environments:
11
+ common: &default_settings
12
+ # ============================== LICENSE KEY ===============================
13
+
14
+ # You must specify the license key associated with your New Relic
15
+ # account. This key binds your Agent's data to your account in the
16
+ # New Relic RPM service.
17
+ license_key: 'NEW_RELIC_LICENSE_KEY'
18
+
19
+ # Agent Enabled (Rails Only)
20
+ # Use this setting to force the agent to run or not run.
21
+ # Default is 'auto' which means the agent will install and run only
22
+ # if a valid dispatcher such as Mongrel is running. This prevents
23
+ # it from running with Rake or the console. Set to false to
24
+ # completely turn the agent off regardless of the other settings.
25
+ # Valid values are true, false and auto.
26
+ # agent_enabled: auto
27
+
28
+ # Application Name
29
+ # Set this to be the name of your application as you'd like it show
30
+ # up in RPM. RPM will then auto-map instances of your application
31
+ # into a RPM "application" on your home dashboard page. If you want
32
+ # to map this instance into multiple apps, like "AJAX Requests" and
33
+ # "All UI" then specify a semicolon separated list of up to three
34
+ # distinct names. If you comment this out, it defaults to the
35
+ # capitalized RAILS_ENV (i.e., Production, Staging, etc)
36
+ app_name: APPLICATION_NAME
37
+
38
+ # When "true", the agent collects performance data about your
39
+ # application and reports this data to the NewRelic RPM service at
40
+ # newrelic.com. This global switch is normally overridden for each
41
+ # environment below. (formerly called 'enabled')
42
+ monitor_mode: true
43
+
44
+ # Developer mode should be off in every environment but
45
+ # development as it has very high overhead in memory.
46
+ developer_mode: false
47
+
48
+ # The newrelic agent generates its own log file to keep its logging
49
+ # information separate from that of your application. Specify its
50
+ # log level here.
51
+ log_level: info
52
+
53
+ # The newrelic agent communicates with the RPM service via http by
54
+ # default. If you want to communicate via https to increase
55
+ # security, then turn on SSL by setting this value to true. Note,
56
+ # this will result in increased CPU overhead to perform the
57
+ # encryption involved in SSL communication, but this work is done
58
+ # asynchronously to the threads that process your application code,
59
+ # so it should not impact response times.
60
+ ssl: true
61
+
62
+ # EXPERIMENTAL: enable verification of the SSL certificate sent by
63
+ # the server. This setting has no effect unless SSL is enabled
64
+ # above. This may block your application. Only enable it if the data
65
+ # you send us needs end-to-end verified certificates.
66
+ #
67
+ # This means we cannot cache the DNS lookup, so each request to the
68
+ # RPM service will perform a lookup. It also means that we cannot
69
+ # use a non-blocking lookup, so in a worst case, if you have DNS
70
+ # problems, your app may block indefinitely.
71
+ # verify_certificate: true
72
+
73
+ # Set your application's Apdex threshold value with the 'apdex_t'
74
+ # setting, in seconds. The apdex_t value determines the buckets used
75
+ # to compute your overall Apdex score.
76
+ # Requests that take less than apdex_t seconds to process will be
77
+ # classified as Satisfying transactions; more than apdex_t seconds
78
+ # as Tolerating transactions; and more than four times the apdex_t
79
+ # value as Frustrating transactions.
80
+ # For more about the Apdex standard, see
81
+ # http://support.newrelic.com/faqs/general/apdex
82
+
83
+ apdex_t: 0.5
84
+
85
+ # Proxy settings for connecting to the RPM server.
86
+ #
87
+ # If a proxy is used, the host setting is required. Other settings
88
+ # are optional. Default port is 8080.
89
+ #
90
+ # proxy_host: hostname
91
+ # proxy_port: 8080
92
+ # proxy_user:
93
+ # proxy_pass:
94
+
95
+
96
+ # Tells transaction tracer and error collector (when enabled)
97
+ # whether or not to capture HTTP params. When true, frameworks can
98
+ # exclude HTTP parameters from being captured.
99
+ # Rails: the RoR filter_parameter_logging excludes parameters
100
+ # Java: create a config setting called "ignored_params" and set it to
101
+ # a comma separated list of HTTP parameter names.
102
+ # ex: ignored_params: credit_card, ssn, password
103
+ capture_params: true
104
+
105
+
106
+ # Transaction tracer captures deep information about slow
107
+ # transactions and sends this to the RPM service once a
108
+ # minute. Included in the transaction is the exact call sequence of
109
+ # the transactions including any SQL statements issued.
110
+ transaction_tracer:
111
+
112
+ # Transaction tracer is enabled by default. Set this to false to
113
+ # turn it off. This feature is only available at the Silver and
114
+ # above product levels.
115
+ enabled: false
116
+
117
+ # Threshold in seconds for when to collect a transaction
118
+ # trace. When the response time of a controller action exceeds
119
+ # this threshold, a transaction trace will be recorded and sent to
120
+ # RPM. Valid values are any float value, or (default) "apdex_f",
121
+ # which will use the threshold for an dissatisfying Apdex
122
+ # controller action - four times the Apdex T value.
123
+ transaction_threshold: apdex_f
124
+
125
+ # When transaction tracer is on, SQL statements can optionally be
126
+ # recorded. The recorder has three modes, "off" which sends no
127
+ # SQL, "raw" which sends the SQL statement in its original form,
128
+ # and "obfuscated", which strips out numeric and string literals
129
+ record_sql: obfuscated
130
+
131
+ # Threshold in seconds for when to collect stack trace for a SQL
132
+ # call. In other words, when SQL statements exceed this threshold,
133
+ # then capture and send to RPM the current stack trace. This is
134
+ # helpful for pinpointing where long SQL calls originate from
135
+ stack_trace_threshold: 0.500
136
+
137
+ # Determines whether the agent will capture query plans for slow
138
+ # SQL queries. Only supported in mysql and postgres. Should be
139
+ # set to false when using other adapters.
140
+ # explain_enabled: true
141
+
142
+ # Threshold for query execution time below which query plans will not
143
+ # not be captured. Relevant only when `explain_enabled` is true.
144
+ # explain_threshold: 0.5
145
+
146
+ # Error collector captures information about uncaught exceptions and
147
+ # sends them to RPM for viewing
148
+ error_collector:
149
+
150
+ # Error collector is enabled by default. Set this to false to turn
151
+ # it off. This feature is only available at the Silver and above
152
+ # product levels
153
+ enabled: false
154
+
155
+ # Rails Only - tells error collector whether or not to capture a
156
+ # source snippet around the place of the error when errors are View
157
+ # related.
158
+ capture_source: true
159
+
160
+ # To stop specific errors from reporting to RPM, set this property
161
+ # to comma separated values. Default is to ignore routing errors
162
+ # which are how 404's get triggered.
163
+ #
164
+ ignore_errors: ActionController::RoutingError
165
+
166
+ # (Advanced) Uncomment this to ensure the cpu and memory samplers
167
+ # won't run. Useful when you are using the agent to monitor an
168
+ # external resource
169
+ # disable_samplers: true
170
+
171
+ # If you aren't interested in visibility in these areas, you can
172
+ # disable the instrumentation to reduce overhead.
173
+ #
174
+ # disable_view_instrumentation: true
175
+ # disable_activerecord_instrumentation: true
176
+ # disable_memcache_instrumentation: true
177
+ # disable_dj: true
178
+
179
+ # Certain types of instrumentation such as GC stats will not work if
180
+ # you are running multi-threaded. Please let us know.
181
+ # multi_threaded = false
182
+
183
+ # Application Environments
184
+ # ------------------------------------------
185
+ # Environment specific settings are in this section.
186
+ # For Rails applications, RAILS_ENV is used to determine the environment
187
+ # For Java applications, pass -Dnewrelic.environment <environment> to set
188
+ # the environment
189
+
190
+ # NOTE if your application has other named environments, you should
191
+ # provide newrelic configuration settings for these environments here.
192
+
193
+ development:
194
+ <<: *default_settings
195
+ # Turn off communication to RPM service in development mode (also
196
+ # 'enabled').
197
+ # NOTE: for initial evaluation purposes, you may want to temporarily
198
+ # turn the agent on in development mode.
199
+ monitor_mode: false
200
+
201
+ # Rails Only - when running in Developer Mode, the New Relic Agent will
202
+ # present performance information on the last 100 transactions you have
203
+ # executed since starting the mongrel.
204
+ # NOTE: There is substantial overhead when running in developer mode.
205
+ # Do not use for production or load testing.
206
+ developer_mode: true
207
+
208
+ # Enable textmate links
209
+ # textmate: true
210
+
211
+ test:
212
+ <<: *default_settings
213
+ # It almost never makes sense to turn on the agent when running
214
+ # unit, functional or integration tests or the like.
215
+ monitor_mode: false
216
+
217
+ # Turn on the agent in production for 24x7 monitoring. NewRelic
218
+ # testing shows an average performance impact of < 5 ms per
219
+ # transaction, you you can leave this on all the time without
220
+ # incurring any user-visible performance degradation.
221
+ production:
222
+ <<: *default_settings
223
+ monitor_mode: true
224
+
225
+ # Many applications have a staging environment which behaves
226
+ # identically to production. Support for that environment is provided
227
+ # here. By default, the staging environment has the agent turned on.
228
+ staging:
229
+ <<: *default_settings
230
+ monitor_mode: true
231
+ app_name: APPLICATION_NAME (Staging)
@@ -0,0 +1 @@
1
+ require 'ruby-debug'
@@ -21,7 +21,7 @@ development:
21
21
  title: Grand Poobah
22
22
 
23
23
  email: poobah [at] thekompanee [the dot] com
24
- twitter: @jeff_felchner
24
+ twitter: @jfelchner
25
25
  homepage: http://www.jefffelchner.com
26
26
 
27
27
  preferred contact: email
@@ -38,7 +38,7 @@ site:
38
38
  css: 3
39
39
 
40
40
  browsers:
41
- internet explorer: >= 8
41
+ internet explorer: >= 7
42
42
  firefox: >= 3.6
43
43
  chrome: >= 5
44
44
  safari: >= 5
@@ -1,14 +1,36 @@
1
- .line:after,.lastUnit:after{clear:both;display:block;visibility:hidden;overflow:hidden;height:0 !important;line-height:0;font-size:xx-large;content:" x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ";}
2
- .line{*zoom:1;}
3
- .unit{float:left;}
4
- .size1of1{float:none;}
5
- .size1of2{width:50%;}
6
- .size1of3{width:33.33333%;}
7
- .size2of3{width:66.66666%;}
8
- .size1of4{width:25%;}
9
- .size3of4{width:75%;}
10
- .size1of5{width:20%;}
11
- .size2of5{width:40%;}
12
- .size3of5{width:60%;}
13
- .size4of5{width:80%;}
14
- .lastUnit{display:table-cell;float:none;width:auto;*display:block;*zoom:1;_position:relative;_left:-3px;_margin-right:-3px;}
1
+ .line:after, .lastUnit:after {
2
+ clear: both;
3
+ display: block;
4
+ visibility: hidden;
5
+ overflow: hidden;
6
+ height: 0 !important;
7
+ line-height: 0;
8
+ font-size: xx-large;
9
+ content: " x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ";
10
+ }
11
+
12
+ .line {*zoom: 1;}
13
+
14
+ .unit {
15
+ display: inline-block;
16
+ *display: block;
17
+ *zoom: 1;
18
+ }
19
+
20
+ .size1of1 {}
21
+ .size1of2 {width: 50%;}
22
+ .size1of3 {width: 33.33333%;}
23
+ .size2of3 {width: 66.66666%;}
24
+ .size1of4 {width: 25%;}
25
+ .size3of4 {width: 75%;}
26
+ .size1of5 {width: 20%;}
27
+ .size2of5 {width: 40%;}
28
+ .size3of5 {width: 60%;}
29
+ .size4of5 {width: 80%;}
30
+
31
+ .lastUnit { display: inline-block;
32
+ *display: block;
33
+ *zoom: 1;
34
+
35
+ width: auto;
36
+ }
@@ -1,18 +1,46 @@
1
- /* http://meyerweb.com/eric/tools/css/reset/ */
2
- /* v1.0 | 20080212 */
3
-
4
1
  * {
5
2
  margin: 0;
6
3
  padding: 0;
7
- border: none;
4
+ border: 0;
8
5
  text-decoration: none;
9
- font-size: 100%;
10
- font-weight: normal;
11
6
  text-align: left;
12
- vertical-align: baseline;
13
7
  background: transparent;
14
8
  outline: none; }
15
9
 
10
+ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6,
11
+ p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del,
12
+ dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt,
13
+ var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label,
14
+ legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside,
15
+ canvas, details, embed, figure, figcaption, footer, header, hgroup, menu,
16
+ nav, output, ruby, section, summary, time, mark, audio, video {
17
+ font: inherit;
18
+ font-size: 100%;
19
+ font-weight: normal;
20
+ vertical-align: baseline; }
21
+
22
+ html,
23
+ body {
24
+ width: 100%;
25
+ height: 100%;
26
+ }
27
+
28
+ body {
29
+ line-height: 1;
30
+ background: white;
31
+ color: black; }
32
+
33
+ /* HTML5 display-role reset for older browsers */
34
+ article, aside, details, figcaption, figure, footer, header, hgroup, menu,
35
+ nav, section {
36
+ display: block; }
37
+
38
+ /* Make all block-level elements automatically set themselves to relative positioning */
39
+ article, aside, details, figcaption, figure, footer, header, hgroup, menu,
40
+ nav, section, div {
41
+ position: relative;
42
+ }
43
+
16
44
  code, kbd, samp, pre, tt, var, textarea, input, select, isindex, listing,
17
45
  xmp, plaintext {
18
46
  font: inherit;
@@ -26,7 +54,7 @@ th, b, strong, h1, h2, h3, h4, h5, h6 {
26
54
  font-weight: normal; }
27
55
 
28
56
  /* tables still need 'cellspacing="0"' in the markup */
29
- table {
57
+ table {
30
58
  border-collapse: collapse;
31
59
  border-spacing: 0; }
32
60
 
@@ -34,13 +62,7 @@ caption, th, td, center {
34
62
  text-align: left;
35
63
  vertical-align: top; }
36
64
 
37
- body {
38
- line-height: 1;
39
- background: white;
40
- color: black; }
41
-
42
- blockquote,
43
- q {
65
+ blockquote, q {
44
66
  quotes: none; }
45
67
 
46
68
  blockquote:before,
@@ -78,12 +100,6 @@ blink {
78
100
  nobr {
79
101
  white-space: normal; }
80
102
 
81
- html,
82
- body {
83
- width: 100%;
84
- height: 100%;
85
- }
86
-
87
103
  /* remember to define focus styles! */
88
104
  :focus {
89
105
  outline: 0;
@@ -93,6 +109,32 @@ body {
93
109
  ins {
94
110
  text-decoration: none;
95
111
  }
112
+
96
113
  del {
97
114
  text-decoration: line-through;
98
115
  }
116
+
117
+ /* Fonts */
118
+
119
+ /**
120
+ * Nudge down to get to 13px equivalent for these form elements
121
+ */
122
+ select,
123
+ input,
124
+ button,
125
+ textarea {
126
+ font:99%;
127
+ }
128
+
129
+ /**
130
+ * Bump up IE to get to 13px equivalent for these fixed-width elements
131
+ */
132
+ pre,
133
+ code,
134
+ kbd,
135
+ samp,
136
+ tt {
137
+ font-family:monospace;
138
+ *font-size:108%;
139
+ line-height:100%;
140
+ }
@@ -33,7 +33,7 @@ body {
33
33
 
34
34
  /* text-align IE5.5 */
35
35
  _text-align: left;
36
- }
36
+ }
37
37
 
38
38
  /* "old school" and "liquid" extend page to allow for different page widths */
39
39
  .oldSchool {
@@ -48,16 +48,3 @@ body {
48
48
  width: auto;
49
49
  margin: 0;
50
50
  }
51
-
52
- /* ====== Columns ====== */
53
- .leftCol {
54
- float: left;
55
- width: 250px;
56
- _margin-right: -3px;
57
- }
58
-
59
- .rightCol {
60
- float: right;
61
- width: 300px;
62
- _margin-left: -3px;
63
- }
@@ -1,5 +1,4 @@
1
1
  RSpec.configure do |config|
2
2
  # Configure RSpec to respect the alias 'pit' for pending specs
3
- config.filter_run :pending => true
4
3
  config.alias_example_to :pit, :pending => true
5
4
  end
@@ -3,8 +3,9 @@ require File.expand_path(File.join(__FILE__, "..", "..", "lib", "apple_cart", "h
3
3
  @source_root = File.dirname(__FILE__)
4
4
  @source_paths << @source_root
5
5
 
6
- @app_class = app_name.camelize
7
- @app_domain = app_name.gsub!(/_/, '')
6
+ @app_class = app_name.camelize
7
+ @app_domain = app_name.gsub(/_/, '')
8
+ @application_name = ask("What is your application's full name?")
8
9
 
9
10
  def configure_session_storage
10
11
  ar_session_store = yes? " Would you like to use ActiveRecord sessions for this project?"
@@ -41,6 +42,8 @@ STYLESHEET_EXPANSIONS = <<-EXPANSIONS
41
42
  EXPANSIONS
42
43
 
43
44
 
45
+
46
+
44
47
  talk "Git Configuration"
45
48
 
46
49
  say "Initializing Git repository..."
@@ -95,7 +98,6 @@ talk "Add Base Stylesheets"
95
98
 
96
99
  empty_directory "public/stylesheets/sass"
97
100
  copy_source_file "public/stylesheets/sass/reset.scss"
98
- copy_source_file "public/stylesheets/sass/fonts.scss"
99
101
  copy_source_file "public/stylesheets/sass/grids.scss"
100
102
  copy_source_file "public/stylesheets/sass/template.scss"
101
103
 
@@ -176,13 +178,27 @@ route "root :to => 'devise/sessions#new'"
176
178
  git_commit "Configure Routes"
177
179
 
178
180
 
181
+ talk "Bundler FTW!"
182
+
183
+ copy_file "Gemfile.temp", "Gemfile"
184
+
185
+ say "Preparing RVM environment..."
186
+ say "If Ruby 1.9.2 was not previously installed, you may want to grab some popcorn..."
187
+ run "rvm use ruby-1.9.2@#{app_name}"
188
+
189
+ say "Installing your requested gems..."
190
+ run "bundle install"
191
+
192
+ git_commit "Bundler FTW!"
193
+
194
+
179
195
  talk "Setup Database"
180
196
 
181
197
  remove_file "config/database.yml"
182
198
  copy_source_file "config/database.yml.example"
183
199
  link_file "config/database.yml.example", "config/database.yml"
184
200
 
185
- rake "db:create"
201
+ rake "db:create:all"
186
202
 
187
203
  git_commit "Setup Database"
188
204
 
@@ -202,18 +218,23 @@ copy_file File.expand_path("config/environments/production
202
218
  git_commit "Configure For Staging"
203
219
 
204
220
 
205
- talk "Bundler FTW!"
221
+ talk "Configure New Relic RPM"
206
222
 
207
- copy_file "Gemfile.temp", "Gemfile"
223
+ license_key = ask("What is your New Relic License Key? ")
224
+ copy_source_file "config/newrelic.yml"
225
+ gsub_file "config/newrelic.yml", "NEW_RELIC_LICENSE_KEY", license_key
226
+ gsub_file "config/newrelic.yml", "APPLICATION_NAME", @application_name
208
227
 
209
- say "Preparing RVM environment..."
210
- say "If Ruby 1.9.2-HEAD was not previously installed, you may want to grab some popcorn..."
211
- run "rvm use ruby-1.9.2-head@#{app_name}"
228
+ git_commit "Configure New Relic RPM"
212
229
 
213
- say "Installing your requested gems..."
214
- run "bundle install"
215
230
 
216
- git_commit "Bundler FTW!"
231
+ talk "Configure Hoptoad"
232
+
233
+ hoptoad_api_key = ask("What is your Hoptoad API key? ")
234
+ copy_source_file "config/initializers/hoptoad.rb"
235
+ gsub_file "config/initializers/hoptoad.rb", "HOPTOAD_API_KEY", hoptoad_api_key
236
+
237
+ git_commit "Configure Hoptoad"
217
238
 
218
239
 
219
240
  talk "Set Up Gems"
@@ -223,12 +244,6 @@ generate "rspec:install"
223
244
  copy_source_file ".rspec", :force => true
224
245
  directory "spec/support"
225
246
 
226
- say "Installing Cucumber..."
227
- generate "cucumber:install", "--rspec --capybara"
228
- copy_source_file "config/cucumber.yml", :force => true
229
- directory "features/support"
230
- directory "features/step_definitions"
231
-
232
247
  say "Installing SimpleForm..."
233
248
  generate "simple_form:install"
234
249
 
@@ -305,5 +320,4 @@ git_commit "Install View Files"
305
320
 
306
321
  puts
307
322
  talk "Congratulations"
308
- say "You just upset the apple cart! Enjoy those apples!"
309
- say "Remember to run 'rails generate hoptoad' with your API key."
323
+ say "You just upset the apple cart! How you like THEM apples!?"
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_cart
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 1
9
- version: 0.0.1
4
+ prerelease:
5
+ version: 0.0.2
10
6
  platform: ruby
11
7
  authors:
12
8
  - thekompanee
@@ -15,7 +11,7 @@ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
13
 
18
- date: 2011-01-31 00:00:00 -06:00
14
+ date: 2011-06-21 00:00:00 -05:00
19
15
  default_executable: apple_cart
20
16
  dependencies:
21
17
  - !ruby/object:Gem::Dependency
@@ -26,11 +22,7 @@ dependencies:
26
22
  requirements:
27
23
  - - ~>
28
24
  - !ruby/object:Gem::Version
29
- segments:
30
- - 3
31
- - 0
32
- - 3
33
- version: 3.0.3
25
+ version: 3.0.9
34
26
  type: :runtime
35
27
  version_requirements: *id001
36
28
  - !ruby/object:Gem::Dependency
@@ -41,11 +33,7 @@ dependencies:
41
33
  requirements:
42
34
  - - ~>
43
35
  - !ruby/object:Gem::Version
44
- segments:
45
- - 1
46
- - 0
47
- - 7
48
- version: 1.0.7
36
+ version: 1.0.15
49
37
  type: :runtime
50
38
  version_requirements: *id002
51
39
  - !ruby/object:Gem::Dependency
@@ -56,10 +44,6 @@ dependencies:
56
44
  requirements:
57
45
  - - ~>
58
46
  - !ruby/object:Gem::Version
59
- segments:
60
- - 0
61
- - 14
62
- - 6
63
47
  version: 0.14.6
64
48
  type: :runtime
65
49
  version_requirements: *id003
@@ -82,6 +66,8 @@ files:
82
66
  - .rvmrc
83
67
  - Gemfile
84
68
  - Gemfile.lock
69
+ - LICENSE
70
+ - README.md
85
71
  - Rakefile
86
72
  - apple_cart.gemspec
87
73
  - bin/apple_cart
@@ -107,11 +93,15 @@ files:
107
93
  - source/config/initializers/constants.rb
108
94
  - source/config/initializers/core_ext.rb
109
95
  - source/config/initializers/date_and_time_formats.rb
96
+ - source/config/initializers/hoptoad.rb
97
+ - source/config/initializers/mail_safe.rb.erb
98
+ - source/config/newrelic.yml
110
99
  - source/db/samplize.rb
111
100
  - source/db/seed.rb
112
101
  - source/features/step_definitions/form_steps.rb
113
102
  - source/features/step_definitions/object_creation_steps.rb
114
103
  - source/features/step_definitions/third_person_web_steps.rb
104
+ - source/features/support/debug.rb
115
105
  - source/features/support/factory_girl.rb
116
106
  - source/features/support/regex.rb
117
107
  - source/features/support/seed_data.rb
@@ -120,7 +110,6 @@ files:
120
110
  - source/lib/tasks/db.rake
121
111
  - source/lib/tasks/seed.rake
122
112
  - source/public/humans.txt
123
- - source/public/stylesheets/sass/fonts.scss
124
113
  - source/public/stylesheets/sass/grids.scss
125
114
  - source/public/stylesheets/sass/reset.scss
126
115
  - source/public/stylesheets/sass/template.scss
@@ -131,8 +120,6 @@ files:
131
120
  - source/spec/support/matchers/paperclip_matchers.rb
132
121
  - source/spec/support/pending.rb
133
122
  - source/template.rb
134
- - README.md
135
- - LICENSE
136
123
  has_rdoc: true
137
124
  homepage: http://github.com/jfelchner/apple_cart
138
125
  licenses: []
@@ -147,21 +134,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
134
  requirements:
148
135
  - - ">="
149
136
  - !ruby/object:Gem::Version
150
- segments:
151
- - 0
152
137
  version: "0"
153
138
  required_rubygems_version: !ruby/object:Gem::Requirement
154
139
  none: false
155
140
  requirements:
156
141
  - - ">="
157
142
  - !ruby/object:Gem::Version
158
- segments:
159
- - 0
160
143
  version: "0"
161
144
  requirements: []
162
145
 
163
146
  rubyforge_project: apple_cart
164
- rubygems_version: 1.3.7
147
+ rubygems_version: 1.6.2
165
148
  signing_key:
166
149
  specification_version: 3
167
150
  summary: This is how The Kompanee does Rails.
@@ -1,38 +0,0 @@
1
- /*
2
- Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
- Code licensed under the BSD License:
4
- http://developer.yahoo.com/yui/license.html
5
- version: 3.3.0
6
- build: 3167
7
- */
8
-
9
- /**
10
- * Nudge down to get to 13px equivalent for these form elements
11
- */
12
- select,
13
- input,
14
- button,
15
- textarea {
16
- font:99%;
17
- }
18
-
19
- /**
20
- * To help tables remember to inherit
21
- */
22
- table {
23
- font-size:inherit;
24
- font:100%;
25
- }
26
-
27
- /**
28
- * Bump up IE to get to 13px equivalent for these fixed-width elements
29
- */
30
- pre,
31
- code,
32
- kbd,
33
- samp,
34
- tt {
35
- font-family:monospace;
36
- *font-size:108%;
37
- line-height:100%;
38
- }