eastrails 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/CHANGELOG.md +0 -0
  2. data/LICENSE +20 -0
  3. data/README.md +44 -0
  4. data/ROADMAP.md +0 -0
  5. data/bin/eastrails +4 -0
  6. data/lib/eastrails.rb +12 -0
  7. data/lib/eastrails/commands/add.rb +31 -0
  8. data/lib/eastrails/commands/base.rb +18 -0
  9. data/lib/eastrails/commands/init.rb +63 -0
  10. data/lib/eastrails/components.rb +18 -0
  11. data/lib/eastrails/components/base.rb +77 -0
  12. data/lib/eastrails/components/cancan.rb +12 -0
  13. data/lib/eastrails/components/capistrano.rb +15 -0
  14. data/lib/eastrails/components/cucumber.rb +14 -0
  15. data/lib/eastrails/components/devise.rb +47 -0
  16. data/lib/eastrails/components/exception_notifier.rb +17 -0
  17. data/lib/eastrails/components/haml.rb +15 -0
  18. data/lib/eastrails/components/heroku.rb +29 -0
  19. data/lib/eastrails/components/jasmine.rb +22 -0
  20. data/lib/eastrails/components/new_relic.rb +15 -0
  21. data/lib/eastrails/components/rspec.rb +24 -0
  22. data/lib/eastrails/components/twitter_bootstrap.rb +16 -0
  23. data/lib/eastrails/components/vcr.rb +21 -0
  24. data/lib/eastrails/executor.rb +38 -0
  25. data/lib/eastrails/generator.rb +13 -0
  26. data/lib/eastrails/parameters.rb +37 -0
  27. data/lib/eastrails/scanner/base.rb +17 -0
  28. data/lib/eastrails/scanner/security.rb +13 -0
  29. data/lib/eastrails/thor_ext.rb +36 -0
  30. data/lib/eastrails/version.rb +3 -0
  31. data/lib/resources/capistrano/deploy.rb +38 -0
  32. data/lib/resources/default/controllers/welcome_controller.rb +4 -0
  33. data/lib/resources/default/stylesheets/application-theme-default.css.scss +11 -0
  34. data/lib/resources/default/stylesheets/application-theme-kickstarter.css.scss +51 -0
  35. data/lib/resources/default/views/layouts/_messages.html.erb +8 -0
  36. data/lib/resources/default/views/layouts/_navigation.html.erb +1 -0
  37. data/lib/resources/default/views/layouts/application.html.erb +35 -0
  38. data/lib/resources/default/views/welcome/index.html.erb +1 -0
  39. data/lib/resources/devise/registrations/edit.html.erb +27 -0
  40. data/lib/resources/devise/registrations/new.html.erb +18 -0
  41. data/lib/resources/devise/sessions/new.html.erb +16 -0
  42. data/lib/resources/devise/shared/_links.html.erb +25 -0
  43. data/lib/resources/navigation/devise.html.erb +20 -0
  44. data/lib/resources/vcr/features/samples/internet.feature +6 -0
  45. data/lib/resources/vcr/features/step_definitions/internet_steps.rb +10 -0
  46. data/lib/resources/vcr/features/support/vcr_cucumber.rb +12 -0
  47. data/lib/resources/vcr/spec/samples/sample_spec.rb +10 -0
  48. data/lib/resources/vcr/spec/support/vcr_rspec.rb +13 -0
  49. metadata +238 -0
@@ -0,0 +1,18 @@
1
+ <h2>Sign up</h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div class="control-group"><%= f.label :email %>
7
+ <%= f.email_field :email %></div>
8
+
9
+ <div class="control-group"><%= f.label :password %>
10
+ <%= f.password_field :password %></div>
11
+
12
+ <div class="control-group"><%= f.label :password_confirmation %>
13
+ <%= f.password_field :password_confirmation %></div>
14
+
15
+ <div class="control-group"><%= f.submit "Sign up", :class => "btn btn-primary" %></div>
16
+ <% end %>
17
+
18
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,16 @@
1
+ <h2>Sign in</h2>
2
+ <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
3
+ <%= devise_error_messages! %>
4
+ <div class="control-group"><%= f.label :email %>
5
+ <%= f.text_field :email %></div>
6
+
7
+ <div class="control-group"><%= f.label :password %>
8
+ <%= f.password_field :password %></div>
9
+
10
+ <div class="control-group"><%= f.label :remember_me %>
11
+ <%= f.check_box :password_confirmation %></div>
12
+
13
+ <div class="control-group"><%= f.submit "Sign in", :class => "btn btn-primary" %></div>
14
+ <% end %>
15
+
16
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,25 @@
1
+ <%- if controller_name != 'sessions' %>
2
+ <%= link_to "Sign in", new_session_path(resource_name) %><br />
3
+ <% end -%>
4
+
5
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
+ <%= link_to "Sign up", new_registration_path(resource_name) %><br />
7
+ <% end -%>
8
+
9
+ <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
10
+ <%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
11
+ <% end -%>
12
+
13
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
+ <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
15
+ <% end -%>
16
+
17
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
18
+ <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
19
+ <% end -%>
20
+
21
+ <%- if devise_mapping.omniauthable? %>
22
+ <%- resource_class.omniauth_providers.each do |provider| %>
23
+ <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br />
24
+ <% end -%>
25
+ <% end -%>
@@ -0,0 +1,20 @@
1
+ <ul class="nav">
2
+ <% if user_signed_in? %>
3
+ <li>
4
+ <%= link_to 'Logout', destroy_user_session_path, :method=>'delete' %>
5
+ </li>
6
+ <% else %>
7
+ <li>
8
+ <%= link_to 'Login', new_user_session_path %>
9
+ </li>
10
+ <% end %>
11
+ <% if user_signed_in? %>
12
+ <li>
13
+ <%= link_to 'Edit account', edit_user_registration_path %>
14
+ </li>
15
+ <% else %>
16
+ <li>
17
+ <%= link_to 'Sign up', new_user_registration_path %>
18
+ </li>
19
+ <% end %>
20
+ </ul>
@@ -0,0 +1,6 @@
1
+ Feature: Sample feature
2
+ To use vcr in your test
3
+
4
+ @internet
5
+ Scenario: Google Page
6
+ Then Google should offer search
@@ -0,0 +1,10 @@
1
+ require "open-uri"
2
+
3
+ Then /^Google should offer search$/ do
4
+ content = open("http://www.google.com.vn").read
5
+ if content.respond_to?(:should)
6
+ content.should include("search")
7
+ else
8
+ assert content.include?("search")
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ require 'vcr'
2
+
3
+ VCR.configure do |c|
4
+ c.cassette_library_dir = 'features/fixtures/vcr_cassettes'
5
+ c.stub_with :webmock
6
+ c.ignore_localhost = true
7
+ end
8
+
9
+ VCR.cucumber_tags do |t|
10
+ t.tag '@internet', record: :new_episodes, use_scenario_name: true
11
+ end
12
+
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+ require "open-uri"
3
+
4
+ describe "Google" do
5
+ it "has Search", :vcr do
6
+ content = open("http://www.google.com.vn").read
7
+ content.should include("search")
8
+ end
9
+ end
10
+
@@ -0,0 +1,13 @@
1
+ require 'vcr'
2
+
3
+ VCR.configure do |c|
4
+ c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
5
+ c.stub_with :webmock
6
+ c.ignore_localhost = true
7
+ c.configure_rspec_metadata!
8
+ end
9
+
10
+ RSpec.configure do |c|
11
+ c.treat_symbols_as_metadata_keys_with_true_values = true
12
+ end
13
+
metadata ADDED
@@ -0,0 +1,238 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eastrails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - East Agile
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: thor
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: brakeman
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: activesupport
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 3.2.11
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 3.2.11
62
+ - !ruby/object:Gem::Dependency
63
+ name: rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 3.2.11
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 3.2.11
78
+ - !ruby/object:Gem::Dependency
79
+ name: haml
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: hpricot
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: ruby_parser
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: debugger
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: rspec
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ description: Create a first basic default website for new East Agile clients
159
+ email:
160
+ - admin@eastagile.com
161
+ executables:
162
+ - eastrails
163
+ extensions: []
164
+ extra_rdoc_files: []
165
+ files:
166
+ - lib/eastrails/commands/add.rb
167
+ - lib/eastrails/commands/base.rb
168
+ - lib/eastrails/commands/init.rb
169
+ - lib/eastrails/components/base.rb
170
+ - lib/eastrails/components/cancan.rb
171
+ - lib/eastrails/components/capistrano.rb
172
+ - lib/eastrails/components/cucumber.rb
173
+ - lib/eastrails/components/devise.rb
174
+ - lib/eastrails/components/exception_notifier.rb
175
+ - lib/eastrails/components/haml.rb
176
+ - lib/eastrails/components/heroku.rb
177
+ - lib/eastrails/components/jasmine.rb
178
+ - lib/eastrails/components/new_relic.rb
179
+ - lib/eastrails/components/rspec.rb
180
+ - lib/eastrails/components/twitter_bootstrap.rb
181
+ - lib/eastrails/components/vcr.rb
182
+ - lib/eastrails/components.rb
183
+ - lib/eastrails/executor.rb
184
+ - lib/eastrails/generator.rb
185
+ - lib/eastrails/parameters.rb
186
+ - lib/eastrails/scanner/base.rb
187
+ - lib/eastrails/scanner/security.rb
188
+ - lib/eastrails/thor_ext.rb
189
+ - lib/eastrails/version.rb
190
+ - lib/eastrails.rb
191
+ - lib/resources/capistrano/deploy.rb
192
+ - lib/resources/default/controllers/welcome_controller.rb
193
+ - lib/resources/vcr/features/step_definitions/internet_steps.rb
194
+ - lib/resources/vcr/features/support/vcr_cucumber.rb
195
+ - lib/resources/vcr/spec/samples/sample_spec.rb
196
+ - lib/resources/vcr/spec/support/vcr_rspec.rb
197
+ - bin/eastrails
198
+ - LICENSE
199
+ - CHANGELOG.md
200
+ - README.md
201
+ - ROADMAP.md
202
+ - lib/resources/default/stylesheets/application-theme-default.css.scss
203
+ - lib/resources/default/stylesheets/application-theme-kickstarter.css.scss
204
+ - lib/resources/default/views/layouts/_messages.html.erb
205
+ - lib/resources/default/views/layouts/_navigation.html.erb
206
+ - lib/resources/default/views/layouts/application.html.erb
207
+ - lib/resources/default/views/welcome/index.html.erb
208
+ - lib/resources/devise/registrations/edit.html.erb
209
+ - lib/resources/devise/registrations/new.html.erb
210
+ - lib/resources/devise/sessions/new.html.erb
211
+ - lib/resources/devise/shared/_links.html.erb
212
+ - lib/resources/navigation/devise.html.erb
213
+ - lib/resources/vcr/features/samples/internet.feature
214
+ homepage: http://www.eastagile.com
215
+ licenses: []
216
+ post_install_message:
217
+ rdoc_options: []
218
+ require_paths:
219
+ - lib
220
+ required_ruby_version: !ruby/object:Gem::Requirement
221
+ none: false
222
+ requirements:
223
+ - - ! '>='
224
+ - !ruby/object:Gem::Version
225
+ version: '0'
226
+ required_rubygems_version: !ruby/object:Gem::Requirement
227
+ none: false
228
+ requirements:
229
+ - - ! '>='
230
+ - !ruby/object:Gem::Version
231
+ version: 1.3.6
232
+ requirements: []
233
+ rubyforge_project:
234
+ rubygems_version: 1.8.24
235
+ signing_key:
236
+ specification_version: 3
237
+ summary: Generate default rails app with choices
238
+ test_files: []