noodall 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/noodall +8 -0
- data/lib/noodall/generator.rb +40 -0
- data/lib/noodall/templates/Gemfile +23 -0
- data/lib/noodall/templates/README +256 -0
- data/lib/noodall/templates/Rakefile +7 -0
- data/lib/noodall/templates/app/controllers/application_controller.rb +3 -0
- data/lib/noodall/templates/app/helpers/application_helper.rb +58 -0
- data/lib/noodall/templates/app/mailers/.empty_directory +0 -0
- data/lib/noodall/templates/app/models/.empty_directory +0 -0
- data/lib/noodall/templates/app/views/layouts/application.html.erb.tt +19 -0
- data/lib/noodall/templates/config/application.rb +49 -0
- data/lib/noodall/templates/config/boot.rb +13 -0
- data/lib/noodall/templates/config/cucumber.yml +8 -0
- data/lib/noodall/templates/config/database.yml +11 -0
- data/lib/noodall/templates/config/environment.rb +5 -0
- data/lib/noodall/templates/config/environments/development.rb.tt +27 -0
- data/lib/noodall/templates/config/environments/production.rb.tt +50 -0
- data/lib/noodall/templates/config/environments/staging.rb.tt +50 -0
- data/lib/noodall/templates/config/environments/test.rb.tt +36 -0
- data/lib/noodall/templates/config/initializers/backtrace_silencers.rb +7 -0
- data/lib/noodall/templates/config/initializers/devise.rb.tt +143 -0
- data/lib/noodall/templates/config/initializers/inflections.rb +10 -0
- data/lib/noodall/templates/config/initializers/mime_types.rb +5 -0
- data/lib/noodall/templates/config/initializers/mongo_mapper.rb +11 -0
- data/lib/noodall/templates/config/initializers/noodall.rb +3 -0
- data/lib/noodall/templates/config/initializers/secret_token.rb.tt +7 -0
- data/lib/noodall/templates/config/initializers/session_store.rb.tt +8 -0
- data/lib/noodall/templates/config/locales/devise.en.yml +39 -0
- data/lib/noodall/templates/config/locales/en.yml +5 -0
- data/lib/noodall/templates/config/routes.rb +9 -0
- data/lib/noodall/templates/config.ru +4 -0
- data/lib/noodall/templates/db/seeds.rb +10 -0
- data/lib/noodall/templates/doc/README_FOR_APP +2 -0
- data/lib/noodall/templates/features/component_slots.feature +15 -0
- data/lib/noodall/templates/features/content_templates.feature +22 -0
- data/lib/noodall/templates/features/step_definitions/cms_node_steps.rb +84 -0
- data/lib/noodall/templates/features/step_definitions/component_steps.rb +46 -0
- data/lib/noodall/templates/features/step_definitions/sign_in_steps.rb +48 -0
- data/lib/noodall/templates/features/step_definitions/web_steps.rb +219 -0
- data/lib/noodall/templates/features/support/env.rb +53 -0
- data/lib/noodall/templates/features/support/home_page.rb +4 -0
- data/lib/noodall/templates/features/support/paths.rb +35 -0
- data/lib/noodall/templates/gitignore +4 -0
- data/lib/noodall/templates/public/404.html +26 -0
- data/lib/noodall/templates/public/422.html +26 -0
- data/lib/noodall/templates/public/500.html +26 -0
- data/lib/noodall/templates/public/favicon.ico +0 -0
- data/lib/noodall/templates/public/images/rails.png +0 -0
- data/lib/noodall/templates/public/index.html +239 -0
- data/lib/noodall/templates/public/javascripts/application.js +2 -0
- data/lib/noodall/templates/public/javascripts/controls.js +965 -0
- data/lib/noodall/templates/public/javascripts/dragdrop.js +974 -0
- data/lib/noodall/templates/public/javascripts/effects.js +1123 -0
- data/lib/noodall/templates/public/javascripts/prototype.js +6001 -0
- data/lib/noodall/templates/public/robots.txt +5 -0
- data/lib/noodall/templates/public/stylesheets/.empty_directory +0 -0
- data/lib/noodall/templates/script/cucumber +10 -0
- data/lib/noodall/templates/script/rails +5 -0
- data/lib/noodall/templates/spec/factories/asset.rb +6 -0
- data/lib/noodall/templates/spec/factories/home.rb +5 -0
- data/lib/noodall/templates/spec/factories/user.rb +15 -0
- data/lib/noodall/templates/spec/files/beef.png +0 -0
- data/lib/noodall/templates/spec/files/test.pdf +0 -0
- data/lib/noodall/version.rb +1 -1
- data/noodall.gemspec +4 -3
- metadata +91 -12
File without changes
|
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
|
4
|
+
if vendored_cucumber_bin
|
5
|
+
load File.expand_path(vendored_cucumber_bin)
|
6
|
+
else
|
7
|
+
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
8
|
+
require 'cucumber'
|
9
|
+
load Cucumber::BINARY
|
10
|
+
end
|
@@ -0,0 +1,5 @@
|
|
1
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
2
|
+
|
3
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
4
|
+
require File.expand_path('../../config/boot', __FILE__)
|
5
|
+
require 'rails/commands'
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Factory.define :user do |user|
|
2
|
+
user.email { |u| Faker::Internet.email(u.name) }
|
3
|
+
user.name { Faker::Name.name }
|
4
|
+
user.password { "password" }
|
5
|
+
user.password_confirmation { "password" }
|
6
|
+
end
|
7
|
+
|
8
|
+
Factory.define :website_editor, :parent => :user do |user|
|
9
|
+
user.groups [ "editor" ]
|
10
|
+
end
|
11
|
+
|
12
|
+
Factory.define :website_administrator, :parent => :user do |user|
|
13
|
+
user.groups [ "admin" ]
|
14
|
+
end
|
15
|
+
|
Binary file
|
Binary file
|
data/lib/noodall/version.rb
CHANGED
data/noodall.gemspec
CHANGED
@@ -12,9 +12,10 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.description = "Noodall meta-gem that depends on the other components. UI and Core data objects."
|
13
13
|
|
14
14
|
s.required_rubygems_version = ">= 1.3.6"
|
15
|
-
s.add_dependency '
|
16
|
-
s.add_dependency 'noodall-
|
17
|
-
|
15
|
+
s.add_dependency 'rails', "~> 3.0.1"
|
16
|
+
s.add_dependency 'noodall-core', ">= 0"
|
17
|
+
s.add_dependency 'noodall-ui', ">= 0"
|
18
|
+
# s.add_dependency 'noodall-devise', ">= 0"
|
18
19
|
|
19
20
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
20
21
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors: []
|
13
13
|
|
@@ -15,13 +15,29 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-08 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: rails
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 5
|
30
|
+
segments:
|
31
|
+
- 3
|
32
|
+
- 0
|
33
|
+
- 1
|
34
|
+
version: 3.0.1
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: noodall-core
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
25
41
|
none: false
|
26
42
|
requirements:
|
27
43
|
- - ">="
|
@@ -31,11 +47,11 @@ dependencies:
|
|
31
47
|
- 0
|
32
48
|
version: "0"
|
33
49
|
type: :runtime
|
34
|
-
version_requirements: *
|
50
|
+
version_requirements: *id002
|
35
51
|
- !ruby/object:Gem::Dependency
|
36
52
|
name: noodall-ui
|
37
53
|
prerelease: false
|
38
|
-
requirement: &
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
55
|
none: false
|
40
56
|
requirements:
|
41
57
|
- - ">="
|
@@ -45,11 +61,11 @@ dependencies:
|
|
45
61
|
- 0
|
46
62
|
version: "0"
|
47
63
|
type: :runtime
|
48
|
-
version_requirements: *
|
64
|
+
version_requirements: *id003
|
49
65
|
- !ruby/object:Gem::Dependency
|
50
66
|
name: bundler
|
51
67
|
prerelease: false
|
52
|
-
requirement: &
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
69
|
none: false
|
54
70
|
requirements:
|
55
71
|
- - ">="
|
@@ -61,12 +77,12 @@ dependencies:
|
|
61
77
|
- 0
|
62
78
|
version: 1.0.0
|
63
79
|
type: :development
|
64
|
-
version_requirements: *
|
80
|
+
version_requirements: *id004
|
65
81
|
description: Noodall meta-gem that depends on the other components. UI and Core data objects.
|
66
82
|
email: []
|
67
83
|
|
68
|
-
executables:
|
69
|
-
|
84
|
+
executables:
|
85
|
+
- noodall
|
70
86
|
extensions: []
|
71
87
|
|
72
88
|
extra_rdoc_files: []
|
@@ -75,7 +91,70 @@ files:
|
|
75
91
|
- .gitignore
|
76
92
|
- Gemfile
|
77
93
|
- Rakefile
|
94
|
+
- bin/noodall
|
78
95
|
- lib/noodall.rb
|
96
|
+
- lib/noodall/generator.rb
|
97
|
+
- lib/noodall/templates/Gemfile
|
98
|
+
- lib/noodall/templates/README
|
99
|
+
- lib/noodall/templates/Rakefile
|
100
|
+
- lib/noodall/templates/app/controllers/application_controller.rb
|
101
|
+
- lib/noodall/templates/app/helpers/application_helper.rb
|
102
|
+
- lib/noodall/templates/app/mailers/.empty_directory
|
103
|
+
- lib/noodall/templates/app/models/.empty_directory
|
104
|
+
- lib/noodall/templates/app/views/layouts/application.html.erb.tt
|
105
|
+
- lib/noodall/templates/config.ru
|
106
|
+
- lib/noodall/templates/config/application.rb
|
107
|
+
- lib/noodall/templates/config/boot.rb
|
108
|
+
- lib/noodall/templates/config/cucumber.yml
|
109
|
+
- lib/noodall/templates/config/database.yml
|
110
|
+
- lib/noodall/templates/config/environment.rb
|
111
|
+
- lib/noodall/templates/config/environments/development.rb.tt
|
112
|
+
- lib/noodall/templates/config/environments/production.rb.tt
|
113
|
+
- lib/noodall/templates/config/environments/staging.rb.tt
|
114
|
+
- lib/noodall/templates/config/environments/test.rb.tt
|
115
|
+
- lib/noodall/templates/config/initializers/backtrace_silencers.rb
|
116
|
+
- lib/noodall/templates/config/initializers/devise.rb.tt
|
117
|
+
- lib/noodall/templates/config/initializers/inflections.rb
|
118
|
+
- lib/noodall/templates/config/initializers/mime_types.rb
|
119
|
+
- lib/noodall/templates/config/initializers/mongo_mapper.rb
|
120
|
+
- lib/noodall/templates/config/initializers/noodall.rb
|
121
|
+
- lib/noodall/templates/config/initializers/secret_token.rb.tt
|
122
|
+
- lib/noodall/templates/config/initializers/session_store.rb.tt
|
123
|
+
- lib/noodall/templates/config/locales/devise.en.yml
|
124
|
+
- lib/noodall/templates/config/locales/en.yml
|
125
|
+
- lib/noodall/templates/config/routes.rb
|
126
|
+
- lib/noodall/templates/db/seeds.rb
|
127
|
+
- lib/noodall/templates/doc/README_FOR_APP
|
128
|
+
- lib/noodall/templates/features/component_slots.feature
|
129
|
+
- lib/noodall/templates/features/content_templates.feature
|
130
|
+
- lib/noodall/templates/features/step_definitions/cms_node_steps.rb
|
131
|
+
- lib/noodall/templates/features/step_definitions/component_steps.rb
|
132
|
+
- lib/noodall/templates/features/step_definitions/sign_in_steps.rb
|
133
|
+
- lib/noodall/templates/features/step_definitions/web_steps.rb
|
134
|
+
- lib/noodall/templates/features/support/env.rb
|
135
|
+
- lib/noodall/templates/features/support/home_page.rb
|
136
|
+
- lib/noodall/templates/features/support/paths.rb
|
137
|
+
- lib/noodall/templates/gitignore
|
138
|
+
- lib/noodall/templates/public/404.html
|
139
|
+
- lib/noodall/templates/public/422.html
|
140
|
+
- lib/noodall/templates/public/500.html
|
141
|
+
- lib/noodall/templates/public/favicon.ico
|
142
|
+
- lib/noodall/templates/public/images/rails.png
|
143
|
+
- lib/noodall/templates/public/index.html
|
144
|
+
- lib/noodall/templates/public/javascripts/application.js
|
145
|
+
- lib/noodall/templates/public/javascripts/controls.js
|
146
|
+
- lib/noodall/templates/public/javascripts/dragdrop.js
|
147
|
+
- lib/noodall/templates/public/javascripts/effects.js
|
148
|
+
- lib/noodall/templates/public/javascripts/prototype.js
|
149
|
+
- lib/noodall/templates/public/robots.txt
|
150
|
+
- lib/noodall/templates/public/stylesheets/.empty_directory
|
151
|
+
- lib/noodall/templates/script/cucumber
|
152
|
+
- lib/noodall/templates/script/rails
|
153
|
+
- lib/noodall/templates/spec/factories/asset.rb
|
154
|
+
- lib/noodall/templates/spec/factories/home.rb
|
155
|
+
- lib/noodall/templates/spec/factories/user.rb
|
156
|
+
- lib/noodall/templates/spec/files/beef.png
|
157
|
+
- lib/noodall/templates/spec/files/test.pdf
|
79
158
|
- lib/noodall/version.rb
|
80
159
|
- noodall.gemspec
|
81
160
|
has_rdoc: true
|